/* features + ideas: built on landing.css. Each chapter is a full card in one
   of the app's theme colours (--c), with its own text colour (--t). */

.px-hero { padding: 88px 0 40px; display: flex; flex-direction: column; gap: 22px; }
.px-hero .lp-h1 { max-width: 14ch; }
.px-hero .lp-lede { max-width: 46ch; }
.px-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.px-jump a { height: 38px; display: inline-flex; align-items: center; gap: 9px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--outline); color: var(--ink); text-decoration: none; font-size: 15px; transition: background 0.2s ease; }
.px-jump a::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink)); }
.px-jump a:hover { background: var(--wall); }

/* ---------- features chapters ---------- */
.px-ch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; margin: 24px 0; padding: 64px 56px; border-radius: 32px; background: var(--c); color: var(--t); overflow: hidden; scroll-margin-top: 88px; }
.px-ch::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.22;
  background: radial-gradient(circle, var(--t) 40%, transparent 44%) 0 0 / 12px 12px;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 100%, #000 5%, transparent 70%);
  mask-image: radial-gradient(70% 90% at 100% 100%, #000 5%, transparent 70%); }
.px-ch > * { position: relative; z-index: 1; }
.px-ch .lp-h2 { color: var(--t); margin: 12px 0 16px; }
.px-tag { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.8; }
.px-lede { font-size: 18px; line-height: 1.5; margin: 0; max-width: 40ch; opacity: 0.85; }
.px-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; }
.px-list li { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--t) 22%, transparent); }
.px-list b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.px-list span { font-size: 15px; line-height: 1.45; opacity: 0.78; }
.px-art { display: flex; justify-content: center; align-items: center; gap: 16px; }
.px-art .ph { flex: none; width: 210px; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.px-art.n2 .ph { width: 240px; }
.px-art.n3 .ph:nth-child(2) { transform: translateY(36px); }
.px-art.n2 .ph:nth-child(2) { transform: translateY(32px); }
.px-ch:hover .px-art .ph:first-child { transform: translateY(-10px) rotate(-2deg); }
.px-ch:hover .px-art .ph:last-child { transform: translateY(14px) rotate(2deg); }
.px-ch .lp-dev { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }

.px-rules { margin: 72px 0 24px; }
.px-rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 32px; }
.px-rule-grid .card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.px-rule-grid b { font-size: 18px; font-weight: 600; }
.px-rule-grid span { color: var(--deep-brass); font-size: 15px; line-height: 1.45; }

/* ---------- ideas: a row of captioned phones per section ---------- */
.ix-sec { position: relative; margin: 24px 0; padding: 56px 0 48px; border-radius: 32px; background: var(--c); color: var(--t); overflow: hidden; }
.ix-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding: 0 56px; }
.ix-head .lp-h2 { color: var(--t); }
.ix-row { display: flex; gap: 22px; padding: 40px 56px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 56px; scrollbar-width: none; }
.ix-row::-webkit-scrollbar { display: none; }
.ix-fig { flex: none; width: 230px; margin: 0; display: flex; flex-direction: column; gap: 16px; scroll-snap-align: start; }
.ix-fig .lp-dev { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ix-fig:hover .lp-dev { transform: translateY(-8px) rotate(-1.5deg); }
.ix-fig figcaption { display: flex; flex-direction: column; gap: 4px; }
.ix-fig b { font-size: 17px; font-weight: 600; }
.ix-fig span { font-size: 14px; line-height: 1.4; opacity: 0.8; }

@media (max-width: 900px) {
  .px-ch { grid-template-columns: 1fr; padding: 40px 22px; gap: 32px; }
  .px-art { gap: 10px; }
  .px-art .ph, .px-art.n2 .ph { width: 30%; }
  .px-art.n2 .ph { width: 44%; }
  .ix-head { padding: 0 22px; }
  .ix-row { padding: 32px 22px 8px; gap: 14px; scroll-padding-inline: 22px; }
  .ix-fig { width: 62vw; max-width: 240px; }
}

/* ---------- chapter text, stylized ---------- */
.px-top { display: flex; align-items: center; gap: 14px; }
.px-num { font-size: 64px; line-height: 0.8; font-weight: 700; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--t); opacity: 0.9; }
.px-tag { height: 30px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--t) 14%, transparent); border: 1px solid color-mix(in srgb, var(--t) 22%, transparent); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 1; }
.px-ch .lp-h2 { font-size: clamp(36px, 4.2vw, 58px); margin: 22px 0 14px; }
.px-lede { font-size: 19px; }
.px-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.px-list li { position: relative; gap: 6px; padding: 16px 16px 18px; border: 1px solid color-mix(in srgb, var(--t) 18%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--t) 8%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 0.25s ease, transform 0.25s ease; }
.px-list li:hover { background: color-mix(in srgb, var(--t) 14%, transparent); transform: translateY(-2px); }
.px-list li i { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.55; }
.px-list b { font-size: 16px; line-height: 1.25; }
.px-list span { font-size: 14px; }
.px-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 560px) { .px-list { grid-template-columns: 1fr; } }

/* ---------- ideas, stylized: header like the features chapters, captions as tiles ---------- */
.ix-sec::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.2;
  background: radial-gradient(circle, var(--t) 40%, transparent 44%) 0 0 / 12px 12px;
  -webkit-mask-image: radial-gradient(60% 80% at 100% 0%, #000 5%, transparent 70%);
  mask-image: radial-gradient(60% 80% at 100% 0%, #000 5%, transparent 70%); }
.ix-sec > * { position: relative; z-index: 1; }
.ix-head .lp-h2 { font-size: clamp(36px, 4.2vw, 58px); margin-top: 18px; }
.ix-head .px-lede { max-width: 34ch; }
.ix-fig { width: 240px; gap: 14px; }
.ix-fig figcaption { gap: 6px; padding: 14px 16px 16px; border: 1px solid color-mix(in srgb, var(--t) 18%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--t) 8%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 0.25s ease; min-height: 106px; }
.ix-fig:hover figcaption { background: color-mix(in srgb, var(--t) 14%, transparent); }
.ix-fig figcaption i { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.55; }
.ix-fig b { font-size: 16px; line-height: 1.25; }

/* ---------- ideas v2: a bento wall of colour tiles ---------- */
.ix2-sec { margin: 72px 0 24px; }
.ix2-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px 28px; margin-bottom: 28px; }
.ix2-num { font-size: clamp(88px, 10vw, 150px); line-height: 0.78; font-weight: 700; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--c); }
.ix2-tag { display: inline-flex; height: 28px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.ix2-head .lp-h2 { font-size: clamp(36px, 4.4vw, 60px); }
.ix2-head .lp-lede { max-width: 30ch; padding-bottom: 6px; }
.ix2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ix2-tile { position: relative; margin: 0; padding: 22px 22px 26px; border-radius: 28px; background: var(--c); color: var(--t); display: flex; flex-direction: column; gap: 20px; overflow: hidden; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease; }
.ix2-tile::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.22;
  background: radial-gradient(circle, var(--t) 40%, transparent 44%) 0 0 / 11px 11px;
  -webkit-mask-image: radial-gradient(80% 60% at 100% 100%, #000 5%, transparent 70%); mask-image: radial-gradient(80% 60% at 100% 100%, #000 5%, transparent 70%); }
.ix2-tile > * { position: relative; z-index: 1; }
.ix2-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2); }
.ix2-tile figcaption { display: flex; flex-direction: column; gap: 6px; }
.ix2-tile i { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.6; }
.ix2-tile b { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.ix2-tile span { font-size: 15px; line-height: 1.4; opacity: 0.82; }
.ix2-tile .ph { width: 76%; margin: auto auto 0; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ix2-tile:hover .ph { transform: rotate(-2deg) scale(1.02); }
.ix2-tile .lp-dev { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3); }
/* the first tile of each section is a wide feature: caption left, phone right */
.ix2-tile.big { grid-column: span 2; grid-row: span 1; flex-direction: row; align-items: center; padding: 32px; gap: 28px; }
.ix2-tile.big figcaption { flex: 1; }
.ix2-tile.big b { font-size: clamp(30px, 3vw, 44px); }
.ix2-tile.big span { font-size: 17px; }
.ix2-tile.big .ph { width: 44%; flex: none; margin: 0; }
@media (max-width: 1100px) { .ix2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ix2-head { grid-template-columns: 1fr; }
  .ix2-num { font-size: 72px; }
  .ix2-grid { grid-template-columns: 1fr; }
  .ix2-tile.big { grid-column: auto; flex-direction: column; align-items: stretch; padding: 22px 22px 26px; }
  .ix2-tile.big .ph, .ix2-tile .ph { width: 70%; margin: 0 auto; }
}
.ix2-tile.big.w4 { grid-column: 1 / -1; padding: 40px 48px; }
.ix2-tile.big.w4 .ph { width: 22%; margin-right: 6%; }
.ix2-tile.big.w4 figcaption { max-width: 46ch; }
@media (max-width: 1100px) { .ix2-tile.big.w4 .ph { width: 36%; } }
@media (max-width: 640px) { .ix2-tile.big.w4 { padding: 22px 22px 26px; } .ix2-tile.big.w4 .ph { width: 70%; margin: 0 auto; } }
.ix2-tile.big.w4 { justify-content: space-between; }

/* ---------- ideas v3: scrollytelling, one sticky phone per section ---------- */
.ix3 { position: relative; margin: 28px 0; padding: 64px 56px 24px; border-radius: 36px; background: var(--c); color: var(--t); }
.ix3::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.2;
  background: radial-gradient(circle, var(--t) 40%, transparent 44%) 0 0 / 12px 12px;
  -webkit-mask-image: radial-gradient(50% 40% at 0% 100%, #000 5%, transparent 70%); mask-image: radial-gradient(50% 40% at 0% 100%, #000 5%, transparent 70%); }
.ix3 > * { position: relative; z-index: 1; }
.ix3-head .lp-h2 { color: var(--t); font-size: clamp(40px, 5vw, 72px); margin: 22px 0 12px; }
.ix3-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; margin-top: 8px; }
.ix3-stage { position: sticky; top: 92px; height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; }
.ix3-stage .lp-dev { width: min(320px, calc((100vh - 170px) * 0.46)); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.32); }
.ix3-screen { position: relative; border-radius: 38px; overflow: hidden; line-height: 0; aspect-ratio: 640 / 1392; }
.ix3-screen img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ix3-screen img.on { opacity: 1; transform: none; }
.ix3-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.ix3-steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0.32; transition: opacity 0.4s ease, transform 0.5s ease; transform: translateX(14px); }
.ix3-steps li.on { opacity: 1; transform: none; }
.ix3-steps li:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 12vh; }
.ix3-steps li:last-child { min-height: 70vh; }
.ix3-steps i { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.7; }
.ix3-steps b { font-size: clamp(34px, 4vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.ix3-steps span { font-size: 20px; line-height: 1.45; max-width: 30ch; opacity: 0.85; }
@media (max-width: 860px) {
  .ix3 { padding: 40px 20px 8px; border-radius: 28px; }
  .ix3-body { grid-template-columns: 1fr; gap: 0; }
  .ix3-stage { top: 76px; height: auto; padding: 12px 0 20px; z-index: 2; background: linear-gradient(var(--c) 85%, transparent); }
  .ix3-stage .lp-dev { width: min(190px, 46vw); }
  .ix3-steps li { min-height: 46vh; transform: none; }
  .ix3-steps li:first-child { padding-top: 0; min-height: 40vh; }
  .ix3-steps b { font-size: 32px; }
  .ix3-steps span { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .ix3-screen img, .ix3-steps li { transition: none; } }

.px-ch::after, .ix3::after, .ix-sec::after { display: none !important; }
.px-ch > *:not(canvas), .ix3 > *:not(canvas) { position: relative; z-index: 1; }

/* phones always fit inside the chapter, with room on the right */
.px-ch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.px-art { padding: 0 8px 36px; min-width: 0; }
.px-art .ph { width: calc((100% - 32px) / 3); max-width: 210px; flex: 0 1 auto; }
.px-art.n2 .ph { width: calc((100% - 16px) / 2); max-width: 240px; }
/* phones a little bigger (still fit) */
.px-ch { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 32px; padding-right: 40px; }
.px-art .ph { max-width: 236px; }
.px-art.n2 .ph { max-width: 268px; }
.ix3-stage .lp-dev { width: min(350px, calc((100vh - 160px) * 0.46)); }
