/* PocketTone marketing site — the device, as a webpage.
   Palette is lifted verbatim from the app's PTTheme.swift so the page and the
   product read as one object. Fonts are SELF-HOSTED (no CDN, no external requests
   — matches the app's no-tracking ethos):
   - Righteous : retro geometric display face for wordmark, headings, labels (SIL OFL)
   - DSEG7     : seven-segment LCD numerals, mirroring the app's SevenSegmentLabel (SIL OFL)
   - system mono for the LCD text lines; system sans for long-form prose (legibility).
   Licenses in assets/fonts/. */

@font-face {
  font-family: "Righteous";
  src: url("assets/fonts/Righteous-Regular.woff2") format("woff2"),
       url("assets/fonts/Righteous-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DSEG7";
  src: url("assets/fonts/DSEG7Classic-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Chassis / body */
  --cream:      #ECE8DF;   /* upper panel */
  --cream-2:    #E3DFD5;   /* keyboard well (slightly darker) */
  --body:       #E9E5DC;
  --seam:       #B3B0A3;   /* hairline seams */
  --bezel:      #9E9C91;   /* desk behind the chassis (page background) */
  --ink:        #2E2B26;   /* outlines + legends */
  --ink-soft:   #57544D;   /* secondary text */

  /* LCD */
  --lcd-bezel:  #1F1F1C;
  --lcd-face:   #9EB0A1;   /* pale green-grey */
  --lcd-on:     #20290F;   /* lit segment (darkened a touch for contrast) */
  --lcd-off:    #8C9E8F;

  /* Accent caps (used sparingly, like the real unit) */
  --red:    #C74021;
  --orange: #DB800F;
  --blue:   #336EA8;
  --green:  #458C4D;
  --teal:   #3D8C87;

  /* Keys */
  --key-white-top: #FCFBF6;
  --key-white-bot: #ECE9E3;
  --key-black:     #292621;

  --radius: 22px;
  --radius-sm: 12px;
  --maxw: 1080px;

  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --display: "Righteous", "Trebuchet MS", system-ui, sans-serif;  /* retro display face */
  --lcd7: "DSEG7", ui-monospace, monospace;                       /* seven-segment numerals */

  /* Cast shadow shared by domed elements */
  --cast: 0 2px 0 rgba(46,43,38,.18), 0 10px 24px rgba(46,43,38,.16);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bezel);
  /* faint vertical shading on the "desk" so the chassis floats */
  background-image: linear-gradient(180deg, #a7a59a 0%, #97958a 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Link blue is darkened from the app's --blue (#336EA8, 4.36:1) to clear WCAG AA
   (≥4.5:1) on the cream chassis gradient and the support callout. */
a { color: #295a89; text-underline-offset: 2px; }
a:hover { color: #1f4258; }

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Silkscreen label type: the wide-tracked uppercase legends ---- */
.label {
  font-family: var(--display);
  font-weight: 400;            /* Righteous is single-weight */
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  color: var(--ink-soft);
}

/* ===================================================================
   Chassis: the cream device body that wraps every page
   =================================================================== */
.chassis {
  max-width: var(--maxw);
  margin: clamp(16px, 4vw, 48px) auto;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.6),
    inset 0 -3px 0 rgba(46,43,38,.10),
    0 18px 50px rgba(31,31,28,.38);
  padding: clamp(20px, 4vw, 44px);
  position: relative;
}

/* ---- Header / wordmark + rainbow hairline (the LcdModule motif) ---- */
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark {
  width: 54px; height: 54px; border-radius: 24%;
  border: 1.5px solid var(--ink);
  box-shadow: var(--cast);
  flex: 0 0 auto;
}
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .02em;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  color: var(--ink);
  line-height: 1;
}
.rainbow {
  height: 5px; border-radius: 3px; margin: 12px 0 0;
  background: linear-gradient(90deg,
    #BF3821 0%, #BF3821 20%,
    #E0800D 20%, #E0800D 40%,
    #D9C421 40%, #D9C421 60%,
    #409C54 60%, #409C54 80%,
    #2B6EB0 80%, #2B6EB0 100%);
  box-shadow: inset 0 0 0 1px rgba(46,43,38,.12);
}

/* Top nav (right-aligned silkscreen links) */
.topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.nav { display: flex; gap: 18px; align-items: center; padding-top: 6px; }
.nav a { font-family: var(--display); color: var(--ink-soft); text-decoration: none; font-weight: 400;
  text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.nav a:hover { color: var(--ink); }

/* ===================================================================
   LCD panel — dark bezel wrapping a glowing green face
   =================================================================== */
.lcd {
  background: var(--lcd-bezel);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: var(--cast);
}
.lcd-face {
  background: var(--lcd-face);
  border-radius: 7px;
  padding: 18px 20px;
  /* faint horizontal scanlines + inset depth */
  background-image: repeating-linear-gradient(
    180deg, rgba(31,41,15,.05) 0 2px, transparent 2px 4px);
  box-shadow: inset 0 2px 6px rgba(31,31,28,.45), inset 0 -1px 0 rgba(255,255,255,.18);
  color: var(--lcd-on);
}
.lcd-face .seg {                 /* monospace LCD text — reads as a device readout */
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 0 1px rgba(32,41,15,.4);
}
.lcd-face .seg7 {                /* DSEG7 seven-segment numerals (mirrors the app LCD) */
  font-family: var(--lcd7);
  letter-spacing: .04em;
  text-shadow: 0 0 1px rgba(32,41,15,.45);
}
/* Top readout row: a dim seven-segment device reading, like the real unit */
.lcd-readout { margin: 0 0 7px; font-size: .82rem; color: #2A3A1C; display: flex; align-items: baseline; gap: 8px; letter-spacing: .08em; }
.lcd-readout .seg7 { font-size: 1.3rem; }
.lcd-tagline { font-size: clamp(1.05rem, 2.5vw, 1.6rem); margin: 0; line-height: 1.15; }
.lcd-sub { font-size: .82rem; color: #2A3A1C; margin: 8px 0 0; letter-spacing: .08em; } /* 5.3:1 on the LCD face — dim but AA-legible */

/* Price strip variant (mirrors the in-app paywall) */
.price-lcd { display: inline-block; }
.price-lcd .seg { font-size: clamp(1rem, 2.4vw, 1.4rem); }
.price-lcd .seg7 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  margin-top: clamp(22px, 4vw, 38px);
}
.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.1; margin: 16px 0 0; letter-spacing: .005em; font-weight: 400;
}
.hero-copy p.lede { font-size: 1.05rem; color: var(--ink-soft); margin: 14px 0 0; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; }

.hero-art { position: relative; }
.hero-art .device-shot { margin: 0 auto; max-width: 420px; }

/* "Coming to the App Store" button — a domed device key, NOT Apple's official
   badge (that mark has usage rules). Swap for the official badge once live. */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #34322f 0%, #1f1d1b 100%);
  color: #f3f0e9; text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 11px 18px;
  box-shadow: var(--cast), inset 0 1px 0 rgba(255,255,255,.18);
  font-weight: 600;
}
.appstore-btn:hover { color: #fff; transform: translateY(-1px); }
.appstore-btn .lines { font-family: var(--display); display: flex; flex-direction: column; line-height: 1.05; }
.appstore-btn .lines small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.appstore-btn .lines b { font-size: 1.2rem; font-weight: 400; letter-spacing: .01em; }
.coming-note { font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; }

/* ===================================================================
   Section scaffolding
   =================================================================== */
section { margin-top: clamp(34px, 6vw, 64px); }
.section-head { display: flex; align-items: baseline; gap: 12px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.9vw, 1.8rem); margin: 0; letter-spacing: .005em;
}
.divider { height: 1px; background: var(--seam); border: 0; margin: 14px 0 0; }

/* ---- Feature grid: domed "key-cap" cards ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 24px;
}
.cap {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 20px 18px;
  /* the "cel-shaded pillow": top inner highlight, bottom inner shade */
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.7),
    inset 0 -4px 8px rgba(46,43,38,.12),
    var(--cast);
}
.cap .dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(46,43,38,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  margin-bottom: 12px;
}
.cap h3 { font-family: var(--display); margin: 0 0 5px; font-size: 1.18rem; letter-spacing: .005em; line-height: 1.1; }
.cap p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.dot.red{background:var(--red)} .dot.orange{background:var(--orange)}
.dot.blue{background:var(--blue)} .dot.green{background:var(--green)}
.dot.teal{background:var(--teal)} .dot.ink{background:var(--key-black)}

/* ---- Screenshot strip ---- */
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 24px;
}
.shot {
  border: 2px solid var(--ink); border-radius: 10px; overflow: hidden;
  background: var(--lcd-bezel); box-shadow: var(--cast);
}
.shot img { width: 100%; height: auto; }

/* ---- Pro band ---- */
.pro {
  margin-top: clamp(34px, 6vw, 64px);
  background: var(--cream-2);
  border: 1.5px solid var(--seam);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px);
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.pro .pro-copy { max-width: 34ch; }
.pro h2 { font-family: var(--display); margin: 0 0 6px; font-size: clamp(1.35rem, 2.9vw, 1.8rem); }
.pro p { margin: 0; color: var(--ink-soft); }

/* ===================================================================
   Prose pages (support / privacy)
   =================================================================== */
.prose { margin-top: 26px; max-width: 68ch; }
.prose h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  margin: 0 0 4px; letter-spacing: .01em; line-height: 1.1; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 34px 0 8px; letter-spacing: .005em; }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin: 22px 0 4px; }
.prose p, .prose li { color: #3b3833; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose .meta { color: var(--ink-soft); font-size: .85rem; }
.faq { margin-top: 18px; }
.faq details {
  border: 1.5px solid var(--seam); border-radius: 12px;
  padding: 4px 16px; margin: 10px 0; background: var(--cream);
}
.faq summary {
  cursor: pointer; font-family: var(--display); font-weight: 400; font-size: 1.1rem;
  padding: 12px 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "▸ "; color: var(--orange); }
.faq details[open] summary::before { content: "▾ "; }
.faq details p { margin: 0 0 14px; color: var(--ink-soft); }

.callout {
  border-left: 4px solid var(--teal);
  background: rgba(61,140,135,.08);
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 18px 0;
}

/* ===================================================================
   Footer
   =================================================================== */
footer {
  margin-top: clamp(36px, 6vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--seam);
  display: flex; gap: 16px; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-soft);
}
footer .foot-links { display: flex; gap: 18px; }
footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .device-shot { max-width: 340px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .appstore-btn:hover { transform: none; }
}
