/* ==========================================================================
   pocketstrum.com — shared stylesheet
   Change a colour here and it changes on every page.
   ========================================================================== */

:root {
  --cream:      #f5f0e6;
  --cream-deep: #ebe3d4;
  --ink:        #17150f;
  --ink-soft:   #4a453a;
  --ink-faint:  #7d7565;
  --red:        #d63b26;
  --red-dark:   #b02d1b;
  --amber:      #e8a33d;
  --line:       rgba(23, 21, 15, 0.12);
  --panel:      #fffdf8;

  --shadow-sm: 0 1px 2px rgba(23,21,15,.06), 0 2px 8px rgba(23,21,15,.05);
  --shadow-md: 0 2px 6px rgba(23,21,15,.07), 0 12px 32px rgba(23,21,15,.09);
  --shadow-lg: 0 4px 12px rgba(23,21,15,.08), 0 24px 64px rgba(23,21,15,.13);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --radius: 14px;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.021em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h3 { font-size: 1.24rem; letter-spacing: -0.012em; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .42em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* --- layout --------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.eyebrow {
  font-family: var(--mono); font-size: .705rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--red); font-weight: 600; margin: 0 0 .85em;
}
.lede { font-size: clamp(1.08rem, 2.1vw, 1.29rem); color: var(--ink-soft); line-height: 1.58; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }

/* --- launch banner --------------------------------------------------------
   Shown while the launch price is running; pricing.js removes it after. */
.launch-banner {
  background: var(--ink); color: var(--cream);
  font-size: .885rem; line-height: 1.45;
}
.launch-banner .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 8px 18px; flex-wrap: wrap; padding-top: 11px; padding-bottom: 11px;
  text-align: center;
}
.launch-banner strong { color: #fff; font-weight: 650; }
.launch-banner .lb-clock {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
  background: var(--red); color: #fff;
  padding: 4px 11px; border-radius: 999px; font-weight: 600;
}
.launch-banner .lb-cta {
  color: var(--cream); text-decoration: underline; text-underline-offset: 3px;
  white-space: nowrap; font-weight: 600;
}
.launch-banner .lb-cta:hover { color: #fff; }
@media (max-width: 560px) {
  .launch-banner { font-size: .81rem; }
  .launch-banner .wrap { gap: 6px 12px; }
}

/* --- skip link ------------------------------------------------------------ */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 240, 230, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 62px;
}
.brand {
  font-family: var(--mono); font-weight: 700; font-size: .8rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 3px rgba(214,59,38,.18); flex: none;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .875rem; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav .btn-sm { color: #fff; }
@media (max-width: 780px) {
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--cream);
  padding: 15px 27px; border-radius: 999px; border: 0;
  font-family: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { background: #000; color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { background: var(--panel); color: var(--ink); border-color: var(--ink-faint); }
.btn-sm { padding: 9px 18px; font-size: .855rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-note { font-size: .855rem; color: var(--ink-faint); margin: 14px 0 0; }
.btn .price {
  font-family: var(--mono); font-size: .8rem; opacity: .72; font-weight: 500;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid currentColor;
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  padding: 68px 0 54px;
  background:
    radial-gradient(1100px 480px at 76% -8%, rgba(232,163,61,.20), transparent 62%),
    radial-gradient(880px 420px at 8% 4%, rgba(214,59,38,.11), transparent 60%);
}
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: italic; font-family: var(--serif); font-weight: 400; color: var(--red); }
.hero .lede { max-width: 34em; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 38px; } }

/* --- interactive strumplate ---------------------------------------------- */
.instrument {
  background: linear-gradient(178deg, #fffdf7, #efe6d3);
  border: 1px solid rgba(23,21,15,.16);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
  padding: 20px;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.instrument-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.instrument-label {
  font-family: var(--mono); font-size: .655rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.chord-readout {
  font-family: var(--mono); font-weight: 700; font-size: 1.02rem;
  background: #241f16; color: #ff6a4d; padding: 5px 13px; border-radius: 5px;
  min-width: 76px; text-align: center; letter-spacing: .04em;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.6);
  text-shadow: 0 0 9px rgba(255,106,77,.65);
}
.chord-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.chord-key {
  appearance: none; -webkit-appearance: none;
  font-family: var(--mono); font-size: .76rem; font-weight: 600;
  padding: 11px 2px; border-radius: 6px; cursor: pointer;
  background: linear-gradient(180deg, #fffefb, #ded4c0);
  border: 1px solid rgba(23,21,15,.2);
  box-shadow: 0 2px 0 rgba(23,21,15,.16), inset 0 1px 0 #fff;
  color: var(--ink); transition: transform .06s, box-shadow .06s;
}
.chord-key[aria-pressed="true"], .chord-key.on {
  background: linear-gradient(180deg, #e8503a, #c02f1c);
  color: #fff; border-color: #99240f;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.35);
  transform: translateY(2px);
}
.strumplate {
  position: relative; height: 132px; border-radius: 11px; overflow: hidden;
  background: #17150f; cursor: ew-resize; margin-top: 12px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.65);
  display: flex;
}
.string {
  flex: 1; position: relative; transition: filter .18s ease;
}
.string::after {
  content: ""; position: absolute; inset: 12% 42% 12% 42%;
  border-radius: 2px; background: currentColor; opacity: .78;
}
.string.lit { filter: brightness(2.6) saturate(1.5); }
.strum-hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.62); pointer-events: none; transition: opacity .3s;
  text-shadow: 0 1px 6px #000;
}
.strumplate.played .strum-hint { opacity: 0; }
.instrument-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 13px; flex-wrap: wrap;
}
.voice-picker { display: flex; gap: 5px; flex-wrap: wrap; }
.voice-btn {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 5px; font-weight: 600;
  background: transparent; border: 1px solid rgba(23,21,15,.22); color: var(--ink-soft);
}
.voice-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.demo-caption { font-size: .8rem; color: var(--ink-faint); margin: 14px 0 0; text-align: center; }

/* --- cards ---------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 27px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(214,59,38,.14), rgba(232,163,61,.16));
  font-size: 1.28rem; margin-bottom: 16px;
}

/* --- stats ---------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--panel); padding: 26px 20px; text-align: center; }
.stat b { display: block; font-size: 2.05rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 7px; font-size: .8rem; color: var(--ink-faint); letter-spacing: .01em; }

/* --- feature rows --------------------------------------------------------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
  margin-bottom: 76px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip > *:first-child { order: 2; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 26px; margin-bottom: 52px; }
  .feature-row.flip > *:first-child { order: 0; }
}

/* --- screenshots ---------------------------------------------------------- */
.shot-frame {
  border-radius: 26px; overflow: hidden; background: var(--cream-deep);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.shot-frame img { width: 100%; }
/* [hidden] must beat display:grid — without this the placeholder shows
   underneath the real screenshot once the image loads. */
.shot-placeholder[hidden] { display: none !important; }
.shot-placeholder {
  aspect-ratio: 9 / 19.5; display: grid; place-items: center; padding: 24px;
  text-align: center; color: var(--ink-faint); font-family: var(--mono); font-size: .72rem;
  line-height: 1.7; background: repeating-linear-gradient(45deg, #ece4d5 0 12px, #e6ddcc 12px 24px);
}
.shot-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .shot-strip { grid-template-columns: 1fr; } }

/* Phone screenshots are 370px wide at source — cap the frame so they render
   at native size and stay crisp instead of being upscaled and going soft. */
.shot-frame.phone { max-width: 372px; margin-left: auto; margin-right: auto; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .shot-pair { grid-template-columns: 1fr; } }
.shot-caption {
  text-align: center; font-size: .82rem; color: var(--ink-faint);
  margin: 12px 0 0; font-family: var(--mono); letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- alternating band ----------------------------------------------------- */
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: var(--cream-deep); }
.band-ink h2, .band-ink h3 { color: var(--cream); }
.band-ink .lede { color: rgba(245,240,230,.74); }
.band-ink a { color: var(--amber); }
.band-ink .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 21px 40px 21px 0; position: relative;
  font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; color: var(--red); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 0 21px; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }


/* --- quote / story -------------------------------------------------------- */
.story {
  font-family: var(--serif); font-size: clamp(1.16rem, 2.4vw, 1.42rem); line-height: 1.62;
  color: var(--ink-soft);
}
.story strong { color: var(--ink); font-weight: 600; }

/* --- pill list ------------------------------------------------------------ */
.pills { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; list-style: none; margin: 0; }
.pills li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .875rem; margin: 0;
}
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding-left: 30px; position: relative; margin-bottom: .62em; }
.check li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px;
  color: var(--red); font-weight: 700; font-size: 1.05rem;
}

/* --- table ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

/* --- prose (support / privacy / press) ------------------------------------ */
.prose { padding: 56px 0 84px; }
.prose h2 { margin-top: 2em; font-size: 1.62rem; }
.prose h2:first-of-type { margin-top: 1em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose code {
  font-family: var(--mono); font-size: .87em; background: var(--cream-deep);
  padding: 2px 6px; border-radius: 4px;
}
.updated { font-size: .84rem; color: var(--ink-faint); font-family: var(--mono); }

/* --- footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: rgba(245,240,230,.6);
  padding: 56px 0 40px; font-size: .89rem;
}
.site-footer a { color: rgba(245,240,230,.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-grid h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(245,240,230,.45); margin-bottom: 1.1em; font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .58em; }
.footer-bottom {
  border-top: 1px solid rgba(245,240,230,.14); padding-top: 26px;
  font-size: .81rem; color: rgba(245,240,230,.45); line-height: 1.7;
}
.footer-brand { color: var(--cream); font-family: var(--mono); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; display: block; margin-bottom: 14px; }

/* --- misc ----------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- AI/answer-engine summary block --------------------------------------
   A short, factual, quotable summary near the top of key pages. Helps human
   skimmers and gives answer engines a clean block to lift. */
.tldr {
  background: var(--panel, #fffdf8);
  border-left: 4px solid var(--red, #d63b26);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 0 0 30px;
  font-size: .98rem;
}
.tldr p { margin: 0; }
.tldr strong:first-child { letter-spacing: -.01em; }
