/* ==========================================================================
   AudioPina — site styles
   All artwork comes from the supplied AudioBook-APP files and is shown whole:
   every image slot below matches its source aspect ratio, so nothing is cropped.
   ========================================================================== */

@font-face {
  font-family: Nunito;
  src: url('assets/nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens -- */

:root {
  --ink: #111c36;
  --ink-soft: #33436a;
  --muted: #5b6b88;
  --line: #dfe6f6;
  --line-soft: #eaeffb;
  --surface: #ffffff;
  --canvas: #f6f9ff;
  --blue: #3a6cea;
  --blue-deep: #2a55c8;
  --violet: #7458e0;
  --pink: #bb64c4;

  --brand-gradient: linear-gradient(115deg, #3a78ee 0%, #7458e0 52%, #bb64c4 100%);
  --shadow-sm: 0 2px 8px rgba(38, 62, 120, .06);
  --shadow-md: 0 14px 34px rgba(38, 62, 120, .09);
  --shadow-lg: 0 30px 70px rgba(31, 55, 118, .16);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 110px);
}

/* ---------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft brand wash behind the whole page. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(148, 178, 255, .38), transparent 60%),
    radial-gradient(48rem 34rem at 4% 12%, rgba(206, 178, 255, .30), transparent 62%),
    radial-gradient(52rem 36rem at 50% 108%, rgba(168, 210, 255, .26), transparent 64%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); font-weight: 900; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 850; letter-spacing: -.04em; }
h3 { font-size: 1.2rem; font-weight: 850; }

a, button, summary { -webkit-tap-highlight-color: transparent; }

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

::selection {
  background: rgba(116, 88, 224, .2);
}

/* --------------------------------------------------------------- layout -- */

.wrap {
  width: min(1200px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: var(--surface);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.skip-link:focus { top: 14px; }

/* --------------------------------------------------------- shared atoms -- */

.eyebrow {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet);
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 62ch;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: .95rem;
  font-weight: 850;
  letter-spacing: -.01em;
  box-shadow: 0 12px 26px rgba(70, 96, 220, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 34px rgba(70, 96, 220, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.button-ghost {
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.button-small {
  padding: 11px 19px;
  font-size: .85rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
  font-size: .9rem;
  color: var(--blue);
}

.text-link:hover { color: var(--violet); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  margin-bottom: 4px;
  background: rgba(246, 249, 255, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header::after {
  content: '';
  position: absolute;
  inset-inline: calc(var(--gutter) * -1);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.05em;
}

.brand img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 14px rgba(94, 120, 220, .35));
}

.brand-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-sm);
}

.site-nav a {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 800;
  color: var(--ink-soft);
  transition: background .18s ease, color .18s ease;
}

.site-nav a:hover {
  background: #eef3ff;
  color: var(--blue);
}

.site-nav a[aria-current='page'] {
  background: #eaf0ff;
  color: var(--blue-deep);
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(36px, 5vw, 70px) var(--section-y);
}

.hero-copy > .eyebrow { display: block; margin-bottom: 18px; }

.hero h1 { margin-bottom: 22px; }

.hero .lead { max-width: 30rem; }

.hero-slogan {
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--violet);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-facts span {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line-soft);
  font-size: .78rem;
  font-weight: 800;
  color: var(--ink-soft);
}

/* Poster frame: 1145x1374 source, shown complete. */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(430px, 100%);
}

.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .75;
}

.hero-visual::before {
  width: 62%;
  aspect-ratio: 1;
  top: -6%;
  right: -12%;
  background: #9bd8ff;
}

.hero-visual::after {
  width: 55%;
  aspect-ratio: 1;
  bottom: -5%;
  left: -12%;
  background: #e2a8ee;
}

.poster {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #eef3fd;
  border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg);
}

.poster img {
  width: 100%;
  aspect-ratio: 1145 / 1374;
}

/* ---------------------------------------------------------- format band -- */

.format-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
  padding-block: 20px;
}

.format-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  text-align: center;
}

.format-band strong {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.format-band ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -.02em;
}

.format-band li {
  display: flex;
  align-items: center;
  gap: 22px;
}

.format-band li:not(:last-child)::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
  opacity: .55;
}

/* ------------------------------------------------------ section heading -- */

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 28px 50px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.section-heading .eyebrow { display: block; margin-bottom: 14px; }
.section-heading p { color: var(--muted); }

.section-heading-center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-heading-center p { max-width: 54ch; }

/* -------------------------------------------------------- format cards -- */

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.format-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .96), rgba(243, 247, 255, .96));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.format-card:hover {
  transform: translateY(-4px);
  border-color: #cdd9f7;
  box-shadow: var(--shadow-md);
}

.format-card p {
  color: var(--muted);
  font-size: .95rem;
  flex: 1;
}

.format-card .text-link { margin-top: 6px; }

.glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 10px 22px rgba(86, 104, 220, .28);
}

.glyph svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  box-shadow: 0 10px 22px rgba(86, 104, 220, .28);
}

/* ------------------------------------------------------------- showcase -- */

/* 1672x941 artwork, shown complete at its native 16:9 ratio. */
.showcase {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg);
  background: #eef3fd;
}

.showcase img {
  width: 100%;
  aspect-ratio: 1672 / 941;
}

.showcase figcaption {
  padding: 16px 22px;
  background: rgba(255, 255, 255, .92);
  border-top: 1px solid var(--line-soft);
  font-size: .82rem;
  font-weight: 750;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------------------------------- how it works -- */

.how {
  background: linear-gradient(180deg, rgba(234, 241, 255, .85), rgba(240, 236, 255, .7));
  border-block: 1px solid var(--line);
}

.how-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.how-layout > div > .eyebrow { display: block; margin-bottom: 14px; }
.how-layout h2 { margin-bottom: 12px; }

.steps {
  list-style: none;
  padding: 0;
  margin-top: 32px;
  display: grid;
  gap: 22px;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: start;
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Illustrative creation panel (not a working control). */
.prompt-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.prompt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.prompt-panel-head span {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-label {
  display: block;
  margin: 22px 0 10px;
  font-size: .8rem;
  font-weight: 850;
  color: var(--ink-soft);
}

.prompt-example {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #f7f9ff, #f1f4ff);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 750;
  line-height: 1.5;
}

.setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.setting-grid div {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #f9fbff;
}

.setting-grid dt,
.setting-grid span {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.setting-grid strong {
  display: block;
  margin-top: 3px;
  font-size: .92rem;
  font-weight: 850;
}

.panel-note {
  margin-top: 18px;
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
}

/* ------------------------------------------------------------- benefits -- */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-grid article {
  padding: 30px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.benefit-grid h3 { margin: 18px 0 8px; }
.benefit-grid p { color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------- prompt ideas -- */

.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
}

.idea-grid li {
  padding: 20px 22px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.idea-grid li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------------ faq -- */

.faq {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 850;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform .2s ease;
}

details[open] summary::after { transform: rotate(45deg); }

details p {
  padding: 0 40px 22px 0;
  color: var(--muted);
  font-size: .95rem;
}

/* -------------------------------------------------------------- get app -- */

.get-app .wrap {
  padding: clamp(40px, 6vw, 66px) var(--gutter);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, .9);
  background:
    radial-gradient(28rem 20rem at 12% 110%, rgba(179, 205, 255, .75), transparent 62%),
    radial-gradient(26rem 20rem at 92% -14%, rgba(228, 187, 245, .75), transparent 62%),
    #eef3ff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.get-app img {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 14px 26px rgba(90, 112, 210, .3));
}

.get-app h2 { margin: 14px 0 12px; }
.get-app > .wrap > p { color: var(--muted); margin-inline: auto; max-width: 48ch; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  min-width: 190px;
  border-radius: var(--radius);
  background: #1d2a48;
  border: 1px solid #32405f;
  color: #fff;
  text-align: left;
}

.store-badge svg {
  width: 26px;
  height: 30px;
  flex: none;
  fill: currentColor;
}

.store-badge small {
  display: block;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #cbd7f0;
}

.store-badge strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -.02em;
}

.store-note {
  margin-top: 16px;
  font-size: .82rem;
  color: var(--muted);
}

.store-note a { color: var(--blue); font-weight: 800; }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--section-y);
  padding-block: 40px 44px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 34px 50px;
  align-items: start;
}

.footer-top > div > p {
  margin-top: 14px;
  max-width: 28ch;
  font-size: .9rem;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.footer-nav h2 {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer-nav a:hover { color: var(--blue); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}

/* ---------------------------------------------------------- inner pages -- */

.page-hero {
  padding-block: clamp(30px, 4vw, 54px) clamp(30px, 4vw, 44px);
}

.breadcrumbs {
  font-size: .82rem;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 26px;
}

.breadcrumbs a { color: var(--blue); }

.page-hero > .eyebrow { display: block; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 18px; }

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  font-size: .86rem;
  font-weight: 800;
  color: var(--muted);
}

.back-link:hover { color: var(--blue); }

.page-date {
  display: block;
  margin-top: 18px;
  font-size: .8rem;
  color: var(--muted);
}

.prose {
  max-width: 74ch;
  padding-bottom: var(--section-y);
}

.prose section {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-bottom: 14px; }
.prose h3 { margin: 22px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 12px; display: grid; gap: 9px; }

.prose a:not(.button):not(.text-link) {
  color: var(--blue);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose .showcase { margin-block: 30px 34px; }

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: var(--section-y);
}

.doc-layout aside {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
}

.doc-layout aside nav {
  display: grid;
  gap: 11px;
  margin-top: 14px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
}

.doc-layout aside nav a:hover { color: var(--blue); }

.doc-layout .prose { padding-bottom: 0; }

.callout {
  margin-top: 34px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #eef3ff, #f2edff);
  border: 1px solid var(--line);
}

.callout h2 { font-size: 1.25rem; margin-bottom: 10px; }
.callout p { color: var(--muted); }
.callout p + p { margin-top: 12px; }

.page-cta {
  padding-block: 10px var(--section-y);
  text-align: center;
}

/* ----------------------------------------------------------- contact/404 -- */

.email-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.email-heading:hover { color: var(--violet); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 30px;
}

.support-grid article {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.support-grid article:last-child { grid-column: 1 / -1; }
.support-grid h2 { font-size: 1.4rem; margin: 18px 0 12px; }
.support-grid p { color: var(--muted); }
.support-grid p + p { margin-top: 12px; }
.support-grid .text-link { margin-top: 18px; }

.not-found {
  padding-block: clamp(50px, 9vw, 110px);
  text-align: center;
}

.not-found img {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 14px 26px rgba(90, 112, 210, .3));
}

.not-found p { color: var(--muted); margin-top: 12px; }
.not-found .button { margin-top: 28px; }

/* ------------------------------------------------ shared audio (/audio/) -- */
/* Mirrors the app's Audio Details screen (AudioPlayerScreen): the app's own
   palette (lib/theme/app_colors.dart), glass cards and phone-width column. */

.shared-audio-page {
  --ap-accent: #4f8cff;
  --ap-text: #1a2744;
  --ap-text-2: #5a6b88;
  --ap-muted: #8a9bb5;
  --ap-track: #c5d6ee;
  --ap-glass: rgba(255, 255, 255, .5);
  --ap-glass-border: rgba(183, 205, 232, .53);
  background: linear-gradient(135deg, #f7faff 0%, #e8f2ff 48%, #d4e6ff 100%) fixed;
}

.shared-audio-page::before {
  background:
    radial-gradient(40rem 30rem at 12% 18%, rgba(62, 200, 255, .20), transparent 62%),
    radial-gradient(40rem 30rem at 92% 30%, rgba(184, 140, 255, .20), transparent 62%),
    radial-gradient(44rem 30rem at 50% 104%, rgba(232, 180, 255, .18), transparent 64%);
}

.shared-audio-page .site-header { background: rgba(240, 246, 255, .72); }
.shared-audio-page .site-footer { margin-top: clamp(40px, 6vw, 72px); }

.sa {
  color: var(--ap-text);
  padding: 8px var(--gutter) 0;
}

.sa-column {
  width: min(540px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sa-column[hidden] { display: none; }

.sa-topbar {
  font-size: .9rem;
  font-weight: 600;
  margin: 6px 0 14px;
}

.sa-glass {
  width: 100%;
  background: var(--ap-glass);
  border: 1px solid var(--ap-glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Cover: 22px radius, soft shadow, same size range as the app (156–200)
   with a little more room on large screens. */
.sa-cover {
  position: relative;
  width: clamp(156px, 48vw, 232px);
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: #202938;
  box-shadow: 0 6px 16px rgba(26, 39, 68, .08), 0 18px 40px rgba(26, 39, 68, .10);
}

.sa-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sa-cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.sa-cover-fallback svg { width: 38%; fill: rgba(255, 255, 255, .38); }
.sa-cover-fallback[hidden], .sa-cover img[hidden] { display: none; }

.sa-title {
  margin-top: 14px;
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.sa-chapter-line {
  margin-top: 5px;
  color: var(--ap-text-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}

.sa-description {
  margin-top: 8px;
  max-width: 46ch;
  color: var(--ap-text-2);
  font-size: 14px;
  line-height: 1.45;
}

/* Progress card: 3px track, 6px thumb, times in tabular figures. */
.sa-progress {
  margin-top: 14px;
  padding: 12px 14px 9px;
  border-radius: 16px;
}

.sa-progress input[type='range'] {
  --sa-fill: 0%;
  display: block;
  width: 100%;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sa-progress input[type='range']::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--ap-accent) var(--sa-fill), var(--ap-track) var(--sa-fill));
}

.sa-progress input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: var(--ap-accent);
}

.sa-progress input[type='range']::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: var(--ap-track);
}

.sa-progress input[type='range']::-moz-range-progress {
  height: 3px;
  border-radius: 3px;
  background: var(--ap-accent);
}

.sa-progress input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--ap-accent);
}

.sa-times {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--ap-text-2);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.sa-status {
  margin-top: 7px;
  color: var(--ap-text-2);
  font-size: 12.5px;
}

/* Transport: 52px glass skip buttons around the 76px accent play button. */
.sa-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.sa button:not(.button) { font: inherit; color: inherit; }

.sa-skip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: var(--ap-glass);
  border: 1px solid var(--ap-glass-border);
  cursor: pointer;
  transition: background .18s ease;
}

.sa-skip:hover { background: rgba(255, 255, 255, .75); }
.sa-skip svg { width: 22px; height: 22px; fill: var(--ap-text); }

.sa-skip span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--ap-text-2);
}

.sa-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ap-accent);
  box-shadow: 0 10px 24px rgba(79, 140, 255, .32);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.sa-play:hover { filter: brightness(1.06); transform: scale(1.03); }
.sa-play svg { grid-area: 1 / 1; width: 40px; height: 40px; fill: #fff; }
.sa-play .sa-icon-pause, .sa-play.is-playing .sa-icon-play { display: none; }
.sa-play.is-playing .sa-icon-pause { display: block; }

.sa-spinner {
  grid-area: 1 / 1;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: rgba(255, 255, 255, .9);
  opacity: 0;
  pointer-events: none;
}

.sa-play.is-loading .sa-spinner { opacity: 1; animation: sa-spin .9s linear infinite; }

@keyframes sa-spin { to { transform: rotate(360deg); } }

.sa-player-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #e25563;
  font-size: 14px;
  font-weight: 700;
}

.sa-player-error[hidden] { display: none; }
.sa-player-error button { background: none; border: 0; padding: 0; cursor: pointer; }

/* Secondary actions: equal-width 12px-radius glass tiles. */
.sa-actions {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
}

.sa-action {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 8px 2px;
  border-radius: 12px;
  background: var(--ap-glass);
  border: 1px solid var(--ap-glass-border);
  color: var(--ap-text);
  cursor: pointer;
  transition: background .18s ease;
}

.sa-action:hover { background: rgba(255, 255, 255, .75); }
.sa-action svg { width: 18px; height: 18px; fill: currentColor; }
.sa-action img { width: 18px; height: 18px; }

.sa-action span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
}

/* AudioDetailsMetaGrid: 3 columns (2 when narrow), accent icon + value, muted label. */
.sa-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  text-align: left;
}

.sa-meta[hidden] { display: none; }

.sa-meta-value {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.sa-meta-value svg { flex: none; width: 14px; height: 14px; margin-top: 1px; fill: var(--ap-accent); }
.sa-meta-value span { overflow-wrap: anywhere; }

.sa-meta-label {
  margin-top: 3px;
  padding-left: 19px;
  color: var(--ap-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

/* _DetailsSection: collapsible 14px-radius glass card. */
.sa-section {
  margin-top: 10px;
  border-radius: 14px;
  text-align: left;
}

.sa-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sa-section summary::-webkit-details-marker { display: none; }

.sa-section summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--ap-text-2);
  border-bottom: 2px solid var(--ap-text-2);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.sa-section[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.sa-section > :not(summary) { margin: 0 14px 14px; }

.sa-summary {
  color: var(--ap-text-2);
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-line;
}

/* PlayerChaptersList: 52px start-time column, current chapter in accent. */
.sa-chapters {
  list-style: none;
  padding: 0;
}

.sa-chapters-empty { color: var(--ap-text-2); font-size: 14.5px; }

.sa-chapter {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 8px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.sa-chapter:hover { background: rgba(79, 140, 255, .08); }

.sa-chapter-time {
  flex: none;
  width: 52px;
  color: var(--ap-text-2);
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.sa-chapter-title {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
}

.sa-chapter-eq { flex: none; width: 18px; height: 18px; fill: var(--ap-accent); visibility: hidden; }
.sa-chapter.is-current .sa-chapter-time,
.sa-chapter.is-current .sa-chapter-title { color: var(--ap-accent); }
.sa-chapter.is-current .sa-chapter-title { font-weight: 700; }
.sa.is-playing .sa-chapter.is-current .sa-chapter-eq { visibility: visible; animation: sa-pulse 1.2s ease-in-out infinite; }

@keyframes sa-pulse { 50% { opacity: .45; } }

.sa-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: left;
}

.sa-cta img { flex: none; width: 44px; height: 44px; }
.sa-cta div { flex: 1; display: grid; line-height: 1.3; }
.sa-cta strong { font-size: 14.5px; font-weight: 800; }
.sa-cta span { color: var(--ap-text-2); font-size: 13px; }

/* Loading and unavailable states. */
.sa-state { padding-block: clamp(40px, 8vw, 90px); }

.sa-state img {
  width: 96px;
  height: 96px;
  margin-bottom: 22px;
  filter: drop-shadow(0 14px 26px rgba(90, 112, 210, .3));
}

.sa-state-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 850;
  letter-spacing: -.03em;
}

.sa-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.sa-state-actions button { border: 0; cursor: pointer; font-family: inherit; line-height: inherit; }
.sa-state-actions [hidden] { display: none; }

.sa-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .85), rgba(255, 255, 255, .45)) 0 0 / 200% 100%;
  animation: sa-shimmer 1.4s ease-in-out infinite;
  box-shadow: none;
}

.sa-skeleton-line { height: 20px; margin-top: 16px; border-radius: 8px; }
.sa-skeleton-thin { height: 12px; margin-top: 10px; }
.sa-skeleton-card { width: 100%; height: 64px; margin-top: 18px; border-radius: 16px; }

@keyframes sa-shimmer { to { background-position: -200% 0; } }

@media (max-width: 400px) {
  .sa-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-cta { flex-wrap: wrap; }
  .sa-cta .button { width: 100%; }
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-facts { width: 100%; }
  .hero-visual { order: -1; width: min(370px, 100%); }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .how-layout { grid-template-columns: 1fr; }
  .format-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-layout aside { position: static; }
  .doc-layout aside nav { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .site-header { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .site-header > .button { order: 2; }
  .site-nav { order: 3; flex-basis: 100%; justify-content: center; overflow-x: auto; }
  .brand { order: 1; margin-right: auto; }
  .format-grid, .benefit-grid, .support-grid { grid-template-columns: 1fr; }
  .support-grid article:last-child { grid-column: auto; }
  .setting-grid { grid-template-columns: 1fr; }
  .prompt-panel { padding: 22px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .brand { font-size: 1.25rem; }
  .brand img { width: 34px; height: 34px; }
  .site-header > .button { display: none; }
  .site-nav a { padding: 7px 12px; font-size: .82rem; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .button { width: 100%; }
  .store-badge { min-width: 0; width: 100%; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
