/* ============================================================
   AudioBooks support page
   Loaded after /styles.css; only adds what the base styles lack.
   ============================================================ */

/* Paper accent: the app itself is ink on warm paper */
body[data-product-accent="paper"]{
  --product: #d8c9a8;
  --product-soft: rgba(216,201,168,.12);
  --product-line: rgba(216,201,168,.34);
}
body[data-product-accent="paper"] .step-arrow{ color: rgba(216,201,168,.45); }

.ab-page section[id]{ scroll-margin-top: 84px; }

/* ===== Hero ===== */
.ab-hero-grid{
  grid-template-columns: 1.25fr .75fr;
}
.ab-hero-title{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:6px;
}
.ab-icon{
  width:72px;
  height:72px;
  border-radius:17px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  flex:none;
}
.ab-hero-title .product-h1{ margin:0; }
.ab-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 0 0 22px;
  padding:0;
  list-style:none;
}
.ab-facts li{
  padding:6px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
  background: rgba(255,255,255,.02);
}
.ab-hero-visual{
  display:flex;
  justify-content:center;
}

/* ===== Phone frame ===== */
.ab-phone{
  position:relative;
  width:100%;
  max-width:280px;
  margin:0;
  padding:9px;
  border-radius:44px;
  background: linear-gradient(160deg, #1b222c, #0a0e13);
  border:1px solid var(--line-strong);
  box-shadow:
    0 24px 60px rgba(0,0,0,.5),
    0 0 90px -30px var(--product-soft);
}
.ab-phone img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: 552 / 1200;
  border-radius:35px;
  background:#121212;
}
.ab-phone--sm{ max-width:230px; border-radius:38px; padding:8px; }
.ab-phone--sm img{ border-radius:30px; }

.ab-shot{ margin:0; }
.ab-shot figcaption{
  margin-top:12px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
  line-height:1.45;
}
.ab-shots{
  display:flex;
  justify-content:center;
  gap:22px;
}

/* ===== Table of contents ===== */
.ab-toc{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset: toc;
}
.ab-toc a{
  display:flex;
  align-items:baseline;
  gap:10px;
  height:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(255,255,255,.02);
  font-size:14px;
  color:var(--text);
  transition: border-color .18s ease, background .18s ease;
}
.ab-toc a:hover{
  opacity:1;
  border-color: var(--product-line);
  background: var(--product-soft);
}
.ab-toc a::before{
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size:11px;
  color:var(--product);
  letter-spacing:.08em;
}

/* ===== Tour (phone + list of screens) ===== */
.ab-tour{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap:48px;
  align-items:center;
  max-width: 920px;
  margin: 0 auto;
}
.ab-tour .tour-stage{ justify-self:center; }
.ab-tour-side{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.ab-tour .tour-thumbs{
  grid-template-columns: repeat(2, 1fr);
  margin:0;
}

/* ===== Split: text + screenshots ===== */
.ab-split{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:56px;
  align-items:center;
}
.ab-split--reverse{ grid-template-columns: auto 1fr; }
.ab-split--reverse .ab-shots{ order:-1; }

.ab-text h2{
  margin:0 0 10px;
  font-size:26px;
  letter-spacing:-.01em;
}
.ab-text .ab-intro{
  margin:0 0 20px;
  color:var(--muted);
  font-size:15px;
  line-height:1.65;
  max-width:60ch;
}
.ab-text h3{
  margin:22px 0 8px;
  font-size:15px;
  font-weight:600;
}
.ab-text p{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
  max-width:62ch;
}
.ab-text a,
.ab-faq a,
.ab-note a{
  color:var(--product);
  text-decoration:underline;
  text-underline-offset:3px;
}

.ab-list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:62ch;
}
.ab-list li{
  position:relative;
  padding-left:20px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.ab-list li::before{
  content:"";
  position:absolute;
  left:2px;
  top:.62em;
  width:7px;
  height:7px;
  border-radius:2px;
  background:var(--product);
  opacity:.75;
}
.ab-list strong{ color:var(--text); font-weight:600; }

/* Numbered how-to steps */
.ab-reorder{
  margin-top:56px;
  padding-top:48px;
  border-top:1px solid var(--line);
}
.ab-howto{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset: howto;
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:62ch;
}
.ab-howto li{
  position:relative;
  padding-left:40px;
  min-height:26px;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}
.ab-howto li::before{
  counter-increment: howto;
  content: counter(howto);
  position:absolute;
  left:0;
  top:0;
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid var(--product-line);
  background: var(--product-soft);
  color:var(--product);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size:12px;
}

/* UI labels as they appear in the app */
.ui{
  display:inline-block;
  padding:0 7px;
  border:1px solid var(--line-strong);
  border-radius:6px;
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-size:.92em;
  line-height:1.5;
  white-space:nowrap;
}

/* Callout */
.ab-note{
  margin-top:20px;
  padding:14px 16px;
  border-left:2px solid var(--product);
  border-radius:10px;
  background: var(--product-soft);
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  max-width:62ch;
}
.ab-note strong{ color:var(--text); }

/* Steps: content under the base .steps grid */
.ab-steps{ margin-bottom:40px; }

/* Cards (files and cloud, plans) */
.ab-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.ab-card{
  padding:20px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.ab-card h3{
  margin:0 0 8px;
  font-size:15px;
  font-weight:600;
}
.ab-card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.ab-card p + p{ margin-top:8px; }

.ab-plans{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  max-width:860px;
}
.ab-plan{
  padding:24px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.ab-plan--full{
  border-color: var(--product-line);
  background:
    radial-gradient(420px 240px at 0% 0%, var(--product-soft), transparent 70%),
    rgba(255,255,255,.025);
}
.ab-plan-name{
  margin:0 0 4px;
  font-size:18px;
  font-weight:600;
}
.ab-plan-price{
  margin:0 0 16px;
  font-size:13px;
  color:var(--product);
  letter-spacing:.02em;
}

/* Formats table: base .coverage-table, wider first column */
.ab-formats .coverage-row{ grid-template-columns: 200px 1fr; }

/* FAQ */
.ab-faq{
  max-width:820px;
  border-top:1px solid var(--line);
}
.ab-faq details{ border-bottom:1px solid var(--line); }
.ab-faq summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 2px;
  cursor:pointer;
  list-style:none;
  font-size:15px;
  font-weight:500;
  color:var(--text);
}
.ab-faq summary::-webkit-details-marker{ display:none; }
.ab-faq summary::after{
  content:"+";
  flex:none;
  font-size:20px;
  font-weight:300;
  color:var(--product);
  transition: transform .2s ease;
}
.ab-faq details[open] summary::after{ transform: rotate(45deg); }
.ab-faq details p{
  margin:0 0 16px;
  padding:0 2px;
  max-width:68ch;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}

.ab-cta-links{
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
  margin-top:12px;
  font-size:13px;
}
.ab-cta-links a{
  color:var(--product);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ===== Responsive ===== */
@media (max-width: 1000px){
  .ab-hero-grid{ grid-template-columns: 1fr; }
  .ab-hero-visual{ display:none; }
  .ab-toc{ grid-template-columns: repeat(2, 1fr); }
  .ab-tour{ grid-template-columns: 1fr; gap:24px; }
  .ab-tour .tour-thumbs{ grid-template-columns: repeat(3, 1fr); }
  .ab-split,
  .ab-split--reverse{ grid-template-columns: 1fr; gap:32px; }
  .ab-split--reverse .ab-shots{ order:0; }
  .ab-cards{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .ab-page .eyebrow-product{ flex-wrap:wrap; row-gap:6px; }
  .ab-icon{ width:56px; height:56px; border-radius:13px; }
  .ab-toc{ grid-template-columns: 1fr; }
  .ab-tour .tour-thumbs{ grid-template-columns: repeat(2, 1fr); }
  .ab-tour .ab-phone{ max-width:240px; }
  .ab-shots{ gap:12px; }
  .ab-shots .ab-phone--sm{ max-width:170px; padding:6px; border-radius:30px; }
  .ab-shots .ab-phone--sm img{ border-radius:24px; }
  .ab-cards,
  .ab-plans{ grid-template-columns: 1fr; }
  .ab-formats .coverage-row{ grid-template-columns: 1fr; }
}

.ab-appstore-btn{ display:inline-flex; align-items:center; line-height:0; }
.ab-appstore-btn img{ display:block; height:45px; width:auto; }
