/* Pockd site. Two themes follow the app: Paper (light) and Night (dark). */

/* Fonts served from pockd.app itself: no request to Google, so no visitor IP goes to a third party. */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/HankenGrotesk.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/Literata.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F7F2E8;
  --surface: #EEE6D6;
  --text: #1d1a16;
  --muted: #5d5449;
  --accent: #7F4808;
  --rule: #DCD1BF;
  --lit: #E8A13C;
  --lit-text: #1d1a16;
  --bezel: #1d1a16;
  color-scheme: light;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

:root[data-theme="dark"] {
    --bg: #12100E;
    --surface: #1C1916;
    --text: #EFE9DF;
    --muted: #A59C90;
    --accent: #E9A23B;
    --rule: #2F2A24;
    --lit: #E9A23B;
    --lit-text: #12100E;
    --bezel: #2B2622;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--text); color: var(--bg);
  padding: 0.5rem 0.9rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */

.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 22%; }
.site-head nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--text); }

/* App Store button: black, in the style of Apple's badge */

.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 0.4rem 1.2rem 0.45rem;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #A6A6A6; border-radius: 10px;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", var(--sans);
  line-height: 1.1;
}
.store small { font-size: 0.72rem; letter-spacing: 0.01em; }
.store span { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; }
.store:hover { background: #1a1a1a; }
.store:focus-visible { outline-color: var(--accent); }

/* Hero */

.hero {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  padding-top: clamp(2rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 6rem);
  align-items: center;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}
.hero .promise {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted);
  max-width: 30rem; margin: 0 0 2rem;
}
.hero .fine { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* The page being read: the one bold element */

.reading {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0;
}
.reading .src { font-size: 0.85rem; color: var(--muted); margin: 0 0 1rem; }
.reading blockquote {
  margin: 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.6;
}
.reading .w { border-radius: 4px; padding: 0.02em 0.1em; margin: 0 -0.1em; transition: background-color 120ms linear, color 120ms linear; }
.reading .w.on { background: var(--lit); color: var(--lit-text); }

.player {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 0.85rem;
}
.player .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.player .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 380ms linear; }
.player .time { font-variant-numeric: tabular-nums; min-width: 2.2em; }
.player .play {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--text); display: grid; place-items: center;
}
.player .play svg { width: 14px; height: 14px; fill: var(--bg); }

/* Sections */

section { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }

h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.lede { color: var(--muted); max-width: var(--measure); margin: 0; }

/* Features: a reading list, not a card grid */

.features { border-top: 1px solid var(--rule); }
.feature-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.feature-list li {
  display: grid; grid-template-columns: 1fr; gap: 0.4rem 3rem;
  padding: 1.6rem 0; border-top: 1px solid var(--rule);
}
.feature-list li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) {
  .feature-list li { grid-template-columns: minmax(14rem, 22rem) 1fr; }
}
.feature-list h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.3; margin: 0;
}
.feature-list p { margin: 0; max-width: var(--measure); color: var(--muted); }

/* Privacy */

.privacy-band { background: var(--surface); }
.privacy-band .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 860px) {
  .privacy-band .wrap { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 4rem; }
}
.privacy-band h2 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts li:first-child { border-top: 1px solid var(--rule); }
.facts strong { font-weight: 600; }
.facts span { color: var(--muted); }

/* Screens */

.gallery {
  list-style: none; margin: 2.5rem 0 0; padding: 0.5rem 0 1.25rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62vw);
  gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter);
}
@media (min-width: 640px) { .gallery { grid-auto-columns: 240px; } }
@media (min-width: 1100px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto; overflow: visible; }
}
.gallery li { scroll-snap-align: start; }
.phone {
  margin: 0; padding: 7px; background: var(--bezel);
  border-radius: 34px;
}
.phone img {
  width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover;
  border-radius: 28px; background: var(--surface);
}
@media (min-width: 1100px) {
  .phone { border-radius: 26px; padding: 5px; }
  .phone img { border-radius: 22px; }
}

/* Closing call */

.closing { text-align: left; border-top: 1px solid var(--rule); }
.closing p { color: var(--muted); max-width: var(--measure); margin: 0 0 2rem; }

/* Footer */

.site-foot {
  border-top: 1px solid var(--rule);
  padding-top: 2rem; padding-bottom: 2.5rem;
  font-size: 0.92rem; color: var(--muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: baseline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--text); }

/* Long-form pages */

.doc { padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.doc article { max-width: 38rem; }
.doc h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.75rem;
}
.doc .updated { color: var(--muted); margin: 0 0 2.5rem; }
.doc h2 { font-size: 1.45rem; letter-spacing: -0.01em; margin: 2.5rem 0 0.6rem; }
.doc p { margin: 0 0 1rem; }
.doc .short {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.6;
  padding: 1.25rem 1.5rem; background: var(--surface); border-radius: 12px; margin-bottom: 1rem;
}
.doc .short h2 { margin-top: 0; }
.doc .short ul.plain { list-style: none; padding: 0; margin: 0; font-size: 1.05rem; }
.doc .short ul.plain li { margin: 0 0 .55rem; }
.doc ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.doc li { margin: 0 0 .5rem; }
.doc h2.group { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.doc h3 { font-size: 1.08rem; margin: 1.5rem 0 .35rem; }
.doc code { font-size: .88em; overflow-wrap: anywhere; }
.doc .table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.45; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--rule); }
.doc th:first-child { width: 26%; }
.doc th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) {
  .doc thead { display: none; }
  .doc tr, .doc td { display: block; }
  .doc tr { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
  .doc td { border: 0; padding: .1rem 0; }
  .doc td:first-child { font-weight: 600; }
}

.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound p { color: var(--muted); max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) {
  .reading .w { transition: none; }
}


/* Privacy-first sections */
.eyebrow { margin: 0 0 0.75rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ondevice { display: flex; align-items: center; gap: 0.5rem; margin: 1.1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.ondevice svg { width: 15px; height: 15px; fill: var(--accent); flex: none; }
.online { border-top: 1px solid var(--rule); }
.when { margin: 2rem 0; padding: 0; list-style: none; counter-reset: when; display: grid; gap: 1.25rem; max-width: var(--measure); }
.when li { counter-increment: when; position: relative; padding-left: 2.75rem; color: var(--muted); }
.when li::before { content: counter(when); position: absolute; left: 0; top: -0.1em; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.95rem; }
.when strong { color: var(--text); font-weight: 600; }
.compare-sec { border-top: 1px solid var(--rule); }
.compare { margin-top: 2rem; border-top: 1px solid var(--rule); }
.compare [role=row] { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.compare .head { font-size: 0.85rem; color: var(--muted); }
.compare .head span:last-child { color: var(--accent); font-weight: 600; }
.compare [role=rowheader] { font-weight: 600; }
.compare [role=cell] { color: var(--muted); }
.compare [role=cell]:last-child { color: var(--text); }
@media (max-width: 560px) {
  .compare [role=row] { grid-template-columns: 1fr 1fr; }
  .compare [role=rowheader] { grid-column: 1 / -1; }
  .compare .head span:first-child { display: none; }
}


/* Hero phone: a recreation of the app (dark theme), animated by the script in index.html */
.demo { margin: 0; display: grid; justify-items: center; }
.device {
  width: min(310px, 78vw); aspect-ratio: 1206 / 2622; padding: 3.2%;
  background: #0b0a09; border-radius: 15% / 7%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), inset 0 0 0 2px #2b2622;
}
.screen {
  --b0: #12100E; --b1: #1F1C19; --f0: #EFE9DF; --f1: #CFC6BA; --f2: #8C8379; --ac: #E9A23B; --hl: #6B4A1C;
  position: relative; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; background: var(--b0); color: var(--f0);
  container-type: inline-size; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
}
.island { position: absolute; top: 2.6cqw; left: 50%; transform: translateX(-50%); width: 30cqw; height: 8.5cqw; background: #000; border-radius: 99px; z-index: 5; }
.status { position: absolute; top: 3.6cqw; left: 9cqw; right: 8cqw; display: flex; justify-content: space-between; font-size: 4.3cqw; font-weight: 600; z-index: 4; }
.sig { display: flex; gap: .8cqw; align-items: flex-end; }
.sig i { width: 1.2cqw; background: var(--f0); border-radius: 1px; }
.sig i:nth-child(1){height:1.6cqw}.sig i:nth-child(2){height:2.3cqw}.sig i:nth-child(3){height:3cqw}.sig i:nth-child(4){height:3.7cqw}
.scr { position: absolute; inset: 0; padding: 17cqw 6cqw 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; }

/* Library */
.lib .eyebrow-s { margin: 4cqw 0 0; font-size: 3.2cqw; letter-spacing: .08em; color: var(--f2); font-weight: 600; }
.lib .lib-title { margin: .5cqw 0 3.5cqw; font-size: 10cqw; font-weight: 700; letter-spacing: -.02em; }
.lib .search { background: var(--b1); border-radius: 3cqw; padding: 3cqw 4cqw; font-size: 3.8cqw; color: var(--f2); margin-bottom: 5cqw; }
.lib .grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw 4cqw; }
.lib .grid img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 1.8cqw; display: block; transition: transform .25s; }
.lib .grid b { display: block; font-size: 3.8cqw; margin-top: 2cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib .grid small { display: block; font-size: 3.2cqw; color: var(--f2); }
.screen.pressed .target img { transform: scale(.95); }
.tabs { position: absolute; left: 14cqw; right: 14cqw; bottom: 5cqw; display: flex; justify-content: space-around; background: rgba(40,36,32,.92); border-radius: 99px; padding: 3cqw 2cqw; font-size: 3.3cqw; color: var(--f1); }
.tabs .on { color: var(--ac); font-weight: 600; }

/* Reader */
.reader { padding: 0; transform: translateX(100%); background: var(--b0); }
.screen.reading-now .reader { transform: none; }
.screen.reading-now .lib { transform: translateX(-30%); opacity: .4; }
.bar-top { display: flex; align-items: center; justify-content: space-between; padding: 14.5cqw 5cqw 3cqw; background: #1b1916; text-align: center; }
.bar-top b { display: block; font-size: 4.2cqw; font-weight: 600; }
.bar-top small { font-size: 3.3cqw; color: var(--f2); }
.chev, .dots { width: 8.5cqw; height: 8.5cqw; border-radius: 50%; background: #2a2622; flex: none; }
.page { padding: 5cqw 6cqw; font-size: 5.4cqw; line-height: 1.6; font-family: var(--serif); text-align: left; hyphens: none; text-wrap: pretty; word-spacing: -0.02em; }
.page .ch { margin: 0 0 3cqw; font-weight: 600; font-size: 6cqw; font-family: -apple-system, system-ui, sans-serif; color: var(--f2); }
.page .txt { margin: 0 0 3.5cqw; color: var(--f2); }
.page .w { border-radius: 1.6cqw; padding: 0 .7cqw; margin: 0 -.7cqw; transition: background-color 120ms linear, color 120ms linear; }
.page .w.read { color: var(--f0); }
.page .w.on { background: var(--hl); color: var(--f0); }
.pl { position: absolute; left: 0; right: 0; bottom: 0; padding: 4cqw 6cqw 6cqw; background: linear-gradient(transparent, var(--b0) 12%); }
.prog { height: 1.2cqw; border-radius: 1cqw; background: #34302b; }
.prog i { display: block; height: 100%; width: 2%; border-radius: inherit; background: var(--f0); transition: width .3s linear; }
.times { display: flex; justify-content: space-between; font-size: 3cqw; color: var(--f2); margin: 2cqw 0 4cqw; }
.ctl { display: flex; justify-content: space-between; align-items: center; padding: 0 2cqw; color: var(--f0); font-size: 3.4cqw; font-weight: 700; }
.ctl .b15, .ctl .f30 { width: 8cqw; height: 8cqw; border: .7cqw solid var(--f0); border-radius: 50%; display: grid; place-items: center; font-size: 3cqw; }
.ctl .sleep { width: 6cqw; height: 6cqw; border-radius: 50%; box-shadow: inset -1.6cqw -.6cqw 0 0 var(--f0); transform: rotate(-30deg); }
.ctl .pp { display: flex; gap: 2cqw; }
.ctl .pp i { width: 2.6cqw; height: 9cqw; background: var(--f0); border-radius: .8cqw; }
.row2 { display: flex; justify-content: center; position: relative; margin-top: 5cqw; }
.voice { display: flex; align-items: center; gap: 2cqw; background: #26221e; border-radius: 99px; padding: 2cqw 5cqw 2cqw 2cqw; font-size: 3.8cqw; }
.voice i { width: 6cqw; height: 6cqw; border-radius: 50%; background: radial-gradient(circle, var(--ac) 30%, #3a2f22 32%); }
.bm, .bm-f { width: 4.4cqw; height: 5.6cqw; clip-path: polygon(0 0,100% 0,100% 100%,50% 75%,0 100%); background: var(--f0); }
.row2 .bm { position: absolute; right: 2cqw; top: 1.2cqw; transition: background .2s; }
.screen.saved .row2 .bm { background: var(--ac); }
.bm-f { background: var(--ac); display: inline-block; }
.toast { position: absolute; left: 4cqw; right: 4cqw; top: 33cqw; display: flex; align-items: center; gap: 3cqw; padding: 3.5cqw 4.5cqw; border-radius: 5cqw; background: #2a2622; font-size: 3.8cqw; font-weight: 600; opacity: 0; transform: translateY(-3cqw); transition: .3s; }
.toast em { margin-left: auto; font-style: normal; color: var(--ac); }
.screen.saved .toast { opacity: 1; transform: none; }

/* A finger tap */
.tap { position: absolute; width: 14cqw; height: 14cqw; margin: -7cqw 0 0 -7cqw; border-radius: 50%; background: rgba(255,255,255,.35); opacity: 0; pointer-events: none; z-index: 6; }
.tap.go { animation: tap .6s ease-out; }
@keyframes tap { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.3); } }

@media (prefers-reduced-motion: reduce) { .scr, .tap { transition: none; animation: none; } }


/* Theme switch in the header */
.theme-btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .9rem; color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 99px; padding: .3rem .75rem; cursor: pointer; }
.theme-btn:hover { color: var(--text); border-color: var(--muted); }
.theme-btn svg { width: 15px; height: 15px; fill: currentColor; }
.site-head nav { align-items: center; }

/* Hero proof points */
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; }
.proof li { font-size: .9rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--rule); border-radius: 99px; padding: .3rem .8rem; }
.proof li::before { content: "\2713"; color: var(--accent); margin-right: .4rem; }
.eyebrow { font-size: .95rem; letter-spacing: .02em; text-transform: none; }

/* Second section: the comparison with the phone beside it, on the beige band */
.compare-sec { background: var(--surface); border-top: none; }
.compare-sec .compare [role=row] { border-color: var(--rule); }
.compare-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .compare-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.compare-grid .demo { justify-self: center; }
/* Alternate: the next section returns to paper */
.privacy-band { background: none; border-top: 1px solid var(--rule); }
.reading .ondevice { margin-top: 1.25rem; }

/* Apple's official badge: shown as supplied, with clear space around it */
.store { display: inline-block; background: none; padding: 0; border: 0; border-radius: 8px; min-height: 0; line-height: 0; }
.store:hover { background: none; opacity: .85; }
.store img { display: block; width: auto; height: 48px; }

/* Store badges, shown as supplied, each with a "Coming soon" tag until the listings are live */
.stores { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: flex-start; }
.store.soon { display: inline-flex; flex-direction: column; align-items: center; gap: .45rem; cursor: default; }
.store.soon:hover { opacity: 1; }
.store.soon img { height: 48px; width: auto; }
.store.soon em { font-style: normal; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); background: var(--surface); border: 1px solid var(--rule); border-radius: 99px; padding: .15rem .65rem; }

/* Our own extension button, matched to the App Store badge: black, white type, grey outline */
.ext-btn { display: inline-flex; align-items: center; gap: .55rem; height: 48px; padding: 0 1rem 0 .8rem; box-sizing: border-box;
  background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 9px; line-height: 1.05; }
.ext-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.ext-btn small { display: block; font-size: .66rem; letter-spacing: .01em; }
.ext-btn b { display: block; font-size: 1.12rem; white-space: nowrap; font-weight: 600; letter-spacing: -.01em; }

.ext-btn svg.chrome { width: 24px; height: 24px; fill: #fff; stroke: none; }

/* "Coming soon" as plain text under each button (the link sets line-height 0 for the badge, so reset it here) */
.store.soon em { line-height: 1.3; background: none; border: 0; padding: 0; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* Screenshot zoom */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.zoom img { display: block; transition: transform 160ms ease; }
.zoom:hover img { transform: scale(1.015); }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lightbox { border: 0; padding: 0; background: none; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 8, 6, .95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; pointer-events: none; }
.lightbox img { height: min(82dvh, 1174px); width: auto; max-width: 88vw; object-fit: contain; border-radius: 28px; background: #1C1916; border: 6px solid #2B2622; pointer-events: auto; }
.lightbox figcaption { color: #EFE9DF; font-size: .95rem; text-align: center; max-width: 30rem; padding: 0 1rem; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: 400 1.9rem/1 var(--sans); cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox button:focus-visible { outline: 2px solid #E9A23B; outline-offset: 2px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: max(16px, calc(50% - min(82dvh, 1174px) * .23 - 80px)); top: 50%; translate: 0 -50%; }
.lb-next { right: max(16px, calc(50% - min(82dvh, 1174px) * .23 - 80px)); top: 50%; translate: 0 -50%; }
@media (max-width: 560px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lightbox img { height: min(74dvh, 1174px); border-radius: 22px; border-width: 4px; }
}
@media (prefers-reduced-motion: reduce) { .zoom img { transition: none; } }

/* Hero: three cards in one place (Listen, Ask, Summarize), switched by tabs */
.hero-show { display: grid; gap: .9rem; min-width: 0; }
.show-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.show-tabs button {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted);
  background: none; border: 1px solid var(--rule); border-radius: 99px;
  padding: .45rem 1rem; min-height: 40px; cursor: pointer;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}
.show-tabs button:hover { color: var(--text); border-color: var(--muted); }
.show-tabs button[aria-selected="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.show-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slides { display: grid; }
.slides > .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 0s linear 400ms; }
.slides > .slide.is-on { opacity: 1; visibility: visible; transition: opacity 400ms ease; }
.slide .ondevice { margin-top: 1.25rem; }

/* Ask */
.ask .q {
  font-family: var(--sans); font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  margin: 0 0 1rem; display: inline-block; padding: .55rem 1rem; border-radius: 16px 16px 4px 16px;
  background: var(--text); color: var(--bg);
}
.ask .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: blink 900ms steps(1) infinite; }
.ask .thinking { margin: 0 0 .75rem; color: var(--muted); font-size: .95rem; }
.ask .thinking span { animation: blink 900ms steps(1) infinite; }
.ask .thinking span:nth-child(2) { animation-delay: 300ms; }
.ask .thinking span:nth-child(3) { animation-delay: 600ms; }
.ask .a { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; }
.ask .a .w { transition: opacity 160ms linear; }
.ask .a .off { opacity: 0; }
.ask .a .mark { transition: opacity 160ms linear; }
.mark {
  display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%;
  background: var(--accent); color: var(--bg); font: 700 .7em/1 var(--sans); vertical-align: .2em;
}
.ask .cite {
  display: flex; gap: .7rem; align-items: flex-start; margin: 0; padding: .75rem .9rem;
  border-radius: 12px; background: var(--bg); font-size: .88rem; color: var(--muted); line-height: 1.45;
  transition: opacity 300ms ease, transform 300ms ease;
}
.ask .cite .mark { flex: none; font-size: .8rem; vertical-align: 0; }
.ask .cite strong { color: var(--text); display: block; }
.ask[data-stage="typing"] .thinking, .ask[data-stage="typing"] .a, .ask[data-stage="typing"] .cite,
.ask[data-stage="thinking"] .a, .ask[data-stage="thinking"] .cite,
.ask[data-stage="answering"] .cite { opacity: 0; }
.ask[data-stage="typing"] .thinking, .ask[data-stage="answering"] .thinking, .ask[data-stage="done"] .thinking { display: none; }
.ask[data-stage="answering"] .cite { transform: translateY(6px); }
.ask:not([data-stage="typing"]) .caret { display: none; }

/* Summarize */
.sum .making { margin: 0 0 1.25rem; transition: opacity 300ms ease; }
.sum .progress { height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.sum .progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 140ms linear; }
.sum .step { margin: .6rem 0 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.sum .result { transition: opacity 400ms ease, transform 400ms ease; }
.sum .badge-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 .75rem; color: var(--muted); font-size: .85rem; }
.sum .band { background: var(--accent); color: var(--bg); font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 4px; }
.sum .overview { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; }
.sum .listen-row { display: flex; align-items: center; gap: .75rem; margin: 0; font-weight: 600; }
.sum .listen-row .play { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--text); display: grid; place-items: center; }
.sum .listen-row .play svg { width: 14px; height: 14px; fill: var(--bg); }
.sum .listen-row .len { color: var(--muted); font-weight: 400; }
.sum[data-stage="making"] .result { opacity: 0; transform: translateY(8px); }
.sum[data-stage="done"] .making { display: none; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .slides > .slide, .ask .cite, .sum .result { transition: none; }
  .ask .caret, .ask .thinking span { animation: none; }
}
.sum .ghost { display: block; height: .8rem; border-radius: 4px; background: var(--rule); margin-top: .9rem; animation: pulse 1.4s ease-in-out infinite; }
.sum .ghost.short { width: 60%; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sum .ghost { animation: none; } }

/* Support: jump links */
.doc .jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: -1.5rem 0 2rem; }
.doc .jump a { font-size: .85rem; text-decoration: none; color: var(--text); border: 1px solid var(--rule); border-radius: 99px; padding: .35rem .8rem; }
.doc .jump a:hover { border-color: var(--muted); }
.doc ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.doc h2.group { scroll-margin-top: 1rem; }

/* ===== Version 2 home page ===== */
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.04; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0 0 .6rem; }
.hear {
  display: inline-flex; align-items: center; gap: .65rem; font: inherit; font-weight: 700; font-size: 1rem;
  color: var(--bg); background: var(--accent); border: 0; border-radius: 99px; padding: .5rem 1.15rem .5rem .5rem;
  min-height: 48px; cursor: pointer;
}
.hear:hover { filter: brightness(1.06); }
.hear:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.hear-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.hear-icon svg { width: 13px; height: 13px; fill: var(--accent); }
.hear .i-pause, .hear.playing .i-play { display: none; }
.hear.playing .i-pause { display: block; }
.soon-pill {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.1rem;
  border: 1px solid var(--rule); border-radius: 99px; font-weight: 600; font-size: .95rem; color: var(--text);
}
.soon-pill svg { width: 16px; height: 16px; fill: currentColor; }
.hero .fine { margin: 0 0 1.5rem; }
.hero .proof { margin-top: 0; }

/* The hero picture: Listen, with Ask and Summarize beside it, all visible at once */
.trio { display: grid; gap: 1rem; min-width: 0; }
.trio .tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .75rem;
}
.trio .reading .src { display: inline; margin-left: .5rem; }
.t-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini { margin: 0; background: var(--surface); border-radius: 18px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.mini .q {
  align-self: flex-start; margin: 0 0 .65rem; padding: .4rem .8rem; border-radius: 14px 14px 4px 14px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: .92rem;
}
.mini .a { margin: 0 0 .6rem; font-family: var(--serif); font-size: 1rem; line-height: 1.5; }
.mini .src-line { margin: auto 0 0; display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); }
.mini .src-line .mark { vertical-align: 0; }
.mini .sum-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.05rem; }
.mini .band { background: var(--accent); color: var(--bg); font-family: var(--sans); font-weight: 800; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .18rem .45rem; border-radius: 4px; }
.mini .sum-parts { margin: 0 0 .8rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.mini .listen-row { margin: auto 0 0; display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; }
.mini .listen-row .play { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--text); display: grid; place-items: center; }
.mini .listen-row .play svg { width: 11px; height: 11px; fill: var(--bg); }
@media (max-width: 420px) { .t-row { grid-template-columns: 1fr; } }

/* Add it. Hear it. Ask it. */
.steps-sec { border-top: 1px solid var(--rule); }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps .shot { margin: 0 0 1.25rem; max-width: 260px; padding: 6px; background: var(--bezel); border-radius: 34px; }
.steps .shot img { width: 100%; height: auto; display: block; border-radius: 28px; }
.steps h3 { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .5rem; font-size: 1.2rem; }
.steps .n {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--bg); font-size: .9rem; font-weight: 800; transform: translateY(-.1rem);
}
.steps p { margin: 0; color: var(--muted); max-width: 30rem; }
.formats { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 2.5rem 0 0; }
.formats li { border: 1px solid var(--rule); border-radius: 99px; padding: .35rem .9rem; font-size: .9rem; font-weight: 600; }
.formats::before { content: "Works with"; align-self: center; color: var(--muted); font-size: .9rem; margin-right: .3rem; }

/* Save articles. Listen later. */
.articles-sec { background: var(--surface); }
.articles-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .articles-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.ticks li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks strong { color: var(--text); }

/* Answers you can check */
.ai-grid { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 760px) { .ai-grid { grid-template-columns: repeat(3, 1fr); } }
.ai-grid h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.ai-grid p { margin: 0; color: var(--muted); }

/* Private */
.privacy-band .compare { margin-top: 1.5rem; }

/* Free */
.free-sec { background: var(--surface); text-align: left; }

/* FAQ */
.faq { display: grid; gap: 0; margin-top: 1.5rem; max-width: 46rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .95rem; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); max-width: 40rem; }
.faq-sec .more { margin-top: 1.5rem; color: var(--muted); }
.closing .also { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

/* v2 */
.can { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .8rem; max-width: 34rem; }
.can li { display: flex; gap: .8rem; align-items: flex-start; font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.45; color: var(--muted); }
.can strong { color: var(--text); }
.can .ic { flex: none; width: 2rem; height: 2rem; border-radius: 10px; background: var(--surface); color: var(--accent); display: grid; place-items: center; margin-top: -.15rem; }
.can .ic svg { width: 1.15rem; height: 1.15rem; }
.trio .tag { color: var(--accent); font-size: .78rem; }
.maker { border-top: 1px solid var(--rule); }
.hear.small { min-height: 44px; padding: .4rem 1rem; font-size: .95rem; }

/* v3 */
.soon-pill { border: 0; padding: 0 .25rem; min-height: 48px; color: var(--muted); font-weight: 600; }
.soon-pill .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero .proof { margin: 0 0 1.25rem; }
@media (max-width: 760px) { .steps .shot { max-width: 230px; margin-left: auto; margin-right: auto; } }
.gallery { justify-content: start; }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: start; gap: 1.5rem; } }

.article-shot { margin: 0 auto; max-width: 300px; }
.article-shot img { width: 100%; height: auto; display: block; padding: 6px; background: var(--bezel); border-radius: 34px; }
.article-shot figcaption { margin-top: .75rem; color: var(--muted); font-size: .85rem; text-align: center; }

h1, h2, h3 { text-wrap: balance; }

.hero .lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3; margin: 0 0 1.25rem; color: var(--text); }

.hero .stores { margin: .5rem 0 1rem; }

/* Our promise */
.promise-sec { border-top: 1px solid var(--rule); }
.promise-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .promise-list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.promise-list li { background: var(--surface); border-radius: 14px; padding: 1.1rem 1.25rem; color: var(--muted); }
.promise-list strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: .25rem; }
