/* TapeDeck: page sections (load after site.css) and the responsive rules. */

.section { position: relative; z-index: 1; padding-top: clamp(96px, 11vw, 136px); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2, .paper-band h2 { margin-top: 16px; font-size: clamp(2.15rem, 4.8vw, 3.5rem); letter-spacing: -.04em; line-height: 1.04; }
.section-head p { margin-top: 18px; font-size: 1.1rem; }


/* ── Features: the index of the deep dive ── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.feature { padding: 26px 24px 24px; border-radius: var(--r-lg); transition: border-color .3s, transform .3s var(--ease); }
.feature:hover { border-color: rgba(242, 237, 228, .18); transform: translateY(-2px); }
.feature .key { display: flex; align-items: center; justify-content: space-between; }
.feature .key svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature .key svg .solid { fill: var(--text); stroke: none; }
.feature .key b { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.feature h3 { margin-top: 20px; font-size: 1.12rem; letter-spacing: -.02em; }
.feature p { margin-top: 8px; font-size: .95rem; }
.feature a { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--text-2); text-decoration: none; }
.feature a:hover { color: var(--text); }
.also { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.also li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(242, 237, 228, .025); font-size: .88rem; color: var(--text); }

/* ── How it works: steps beside the silent deck (demo.css) ── */
.how-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.how-grid .section-head { margin-bottom: 40px; }
.steps { list-style: none; display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
.step-n {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2);
  background: var(--surface); font-family: var(--mono); font-size: .86rem; font-weight: 500; color: var(--text);
}
.step h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.step p { margin-top: 6px; }
.demo-note { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); }

/* ── Deep dive: numbered rows, copy beside a real crop ── */
.dives { border-top: 1px solid var(--line); }
.dive {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center;
  padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line);
}
.dive.flip .media { order: -1; }
.dive h3 { margin-top: 16px; font-size: clamp(1.85rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.07; }
.dive .copy > p { margin-top: 18px; font-size: 1.04rem; }
.facts { margin-top: 26px; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.facts li span:last-child { font-family: var(--mono); font-size: .84rem; color: var(--text); text-align: right; }
.media { position: relative; width: 100%; max-width: 500px; margin: 0 auto; }
.media::before {
  content: ""; position: absolute; inset: 14% 10%; z-index: -1; filter: blur(60px); opacity: .5; pointer-events: none;
  background: radial-gradient(closest-side, rgba(207, 200, 188, .3), transparent);
}
.media.rec::before { background: radial-gradient(closest-side, rgba(238, 101, 38, .3), transparent); } /* a recording crop */
.media figcaption { margin-top: 14px; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); }

/* ── Graphite and Paper ── */
.paper-band { position: relative; z-index: 1; margin-top: clamp(96px, 11vw, 136px); padding: clamp(80px, 9vw, 112px) 0; background: var(--paper); color: var(--paper-text-2); }
.paper-band .label { color: var(--paper-text-2); }
.paper-band h2 { color: var(--paper-text); }
.paper-band p { margin-top: 18px; font-size: 1.08rem; max-width: 34rem; }
.paper-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.paper-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.paper-phones .phone + .phone { margin-top: 56px; }
.themes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.themes li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--paper-line); border-radius: 999px; background: var(--paper-card); color: var(--paper-text); font-size: .92rem; font-weight: 500; }
.themes i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(26, 23, 20, .25); }
.paper-band :focus-visible { outline-color: var(--paper-text); }

/* ── Privacy ── */
.private-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: clamp(30px, 5vw, 56px); border-radius: 28px; }
.private-card h2 { margin-top: 16px; }
.private-card p { margin-top: 16px; max-width: 36rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: .92rem; color: var(--text); }

/* ── Specs ── */
.spec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 4vw, 48px); }
.spec-groups > .glass { padding: 22px 26px 8px; border-radius: var(--r-lg); }
.spec-groups h3 { padding-bottom: 14px; font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.specs { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-2); font-size: .95rem; }
.specs th, .specs td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 34%; padding-right: 20px; font-weight: 500; color: var(--text-2); }
.specs td { color: var(--text); }
.specs td small { display: block; margin-top: 4px; font-size: .84rem; color: var(--muted); }

/* ── Pricing ── */
.price-card {
  max-width: 560px; margin: 0 auto; padding: clamp(30px, 5vw, 44px); border-radius: 28px; text-align: center;
  background: radial-gradient(90% 60% at 50% 0%, rgba(207, 200, 188, .12), transparent 70%), rgba(27, 26, 24, .7);
}
.price-card .top { display: flex; justify-content: center; align-items: center; gap: 12px; }
.price-card .name { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; color: var(--text); }
.price-card .name svg { width: 28px; height: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.price { margin-top: 18px; font-size: clamp(4.2rem, 9vw, 5.6rem); font-weight: 300; letter-spacing: -.045em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; } /* light, like the app's counter */
.price sup { margin-right: 4px; font-size: .42em; vertical-align: .9em; letter-spacing: 0; color: var(--text-2); }
.price-note { margin-top: 12px; font-size: .95rem; }
.checklist { display: grid; gap: 11px; margin: 28px 0 30px; list-style: none; text-align: left; }
.checklist li { position: relative; padding-left: 30px; font-size: .97rem; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(242, 237, 228, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23F2EDE4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(242, 237, 228, .3);
}
.price-card .btn { width: 100%; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.badges a { display: block; }
.badges img { height: 44px; width: auto; border-radius: 8px; }
/* Store badges stay inert until the app is live; see app-sites CLAUDE.md */
a[data-store-url] { opacity: .5; cursor: default; pointer-events: none; }
.store-soon { margin-top: 10px; font-size: .86rem; color: var(--text-2); }

/* ── FAQ ── */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; list-style: none; cursor: pointer; font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; border-radius: 1px; background: var(--text-2); transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--text); }
.faq details p { max-width: 740px; padding: 0 0 24px; font-size: 1rem; }
.site-end { height: clamp(72px, 9vw, 120px); }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(6, 1fr); }
  .stats li { grid-column: span 2; }
  .stats li:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--line); }
  .stats li:nth-child(4) { border-left: 0; }
}
@media (max-width: 920px) {
  .how-grid, .dive, .paper-grid, .private-card, .spec-groups { grid-template-columns: minmax(0, 1fr); }
  .dive.flip .media { order: 0; }
  .paper-phones { max-width: 560px; }
}
@media (max-width: 640px) {
  .trio { grid-template-columns: 1fr; }
  .trio .phone { padding: 6px; border-radius: 34px; }
  .trio .phone img { border-radius: 28px; }
  .trio .phone--main { width: 62%; }
  .trio .phone--side { position: absolute; top: 10%; width: 44%; opacity: .62; }
  .trio .phone--left { left: 0; translate: none; rotate: -6deg; }
  .trio .phone--right { right: 0; translate: none; rotate: 6deg; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li, .stats li:nth-child(n+4) { grid-column: auto; border-left: 0; border-top: 1px solid var(--line); padding: 18px; }
  .stats li:nth-child(1), .stats li:nth-child(2) { border-top: 0; }
  .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats li:last-child { grid-column: 1 / -1; border-left: 0; }
  .features { grid-template-columns: 1fr; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts li span:last-child { text-align: left; }
  .specs th { width: 40%; }
  .cta-row .btn { flex: 1 1 100%; }
  .paper-phones { gap: 14px; }
  .paper-phones .phone { padding: 6px; border-radius: 32px; }
  .paper-phones .phone img { border-radius: 26px; }
  .paper-phones .phone + .phone { margin-top: 36px; }
}
