/* ===================================================================
   Ayah Scroll — shared styles (landing page + guides)
   Palette drawn from the App Store screenshots:
   peach #f8cf9e · deep green #16493a · warm orange #d9772f · cream #fdf7ee
   =================================================================== */

:root {
  --cream: #fdf8ef;
  --cream-2: #f9efdd;
  --peach: #f8cf9e;
  --peach-soft: #fbe3c4;
  --green: #16493a;
  --green-deep: #0e3328;
  --green-bright: #1e7a54;
  --orange: #d9772f;
  --coral: #d95b37;
  --ink: #24211b;
  --ink-soft: #5c564a;
  --white: #ffffff;
  --gold: #c99a3f;
  --radius: 20px;
  --shadow-soft: 0 10px 40px rgba(36, 33, 27, 0.10);
  --shadow-card: 0 4px 24px rgba(36, 33, 27, 0.08);
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-bright); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--green-deep); }

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

section { padding: 88px 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36, 33, 27, 0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: var(--shadow-card); }
.nav-brand span { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--green-deep); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: var(--green-deep); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--white); }
@media (max-width: 820px) { .nav-links li:not(.nav-cta-li) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 6px 20px rgba(22, 73, 58, 0.35); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(22, 73, 58, 0.45); }
.btn-ghost { background: transparent; color: var(--green-deep); border: 2px solid rgba(22, 73, 58, 0.25); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; border-radius: 11px; }

/* Apple-style store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 22px 10px 18px; border-radius: 13px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .sb-small { font-size: 0.66rem; font-weight: 400; letter-spacing: 0.02em; }
.store-badge .sb-big { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 600px at 85% -10%, var(--peach-soft) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #e9f2e4 0%, transparent 55%),
    var(--cream);
  padding: 72px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: italic; color: var(--orange); }
.hero .lead { margin: 22px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 26px; }
.hero-rating { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.94rem; font-weight: 500; }
.stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.hero-phones { position: relative; display: flex; justify-content: center; gap: 20px; padding-top: 20px; }
.hero-phones img {
  width: min(46%, 260px); border-radius: 28px;
  box-shadow: 0 24px 60px rgba(36, 33, 27, 0.28);
}
.hero-phones img:first-child { transform: rotate(-4deg) translateY(24px); }
.hero-phones img:last-child { transform: rotate(3deg); }

/* ---------- Trust strip ---------- */
.trust { background: var(--green-deep); color: var(--cream); padding: 34px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--peach); }
.trust-label { font-size: 0.86rem; opacity: 0.85; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
@media (max-width: 940px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-card);
  border: 1px solid rgba(36, 33, 27, 0.05);
}
.card .icon { font-size: 1.7rem; margin-bottom: 14px; display: block; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Screenshots gallery ---------- */
.shots { background: var(--green); }
.shots h2, .shots .lead { color: var(--cream); }
.shots .eyebrow { color: var(--peach); }
.shots-track {
  display: flex; gap: 22px; overflow-x: auto; padding: 40px 6px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots-track::-webkit-scrollbar { height: 8px; }
.shots-track::-webkit-scrollbar-thumb { background: rgba(253,248,239,0.3); border-radius: 4px; }
.shot { flex: 0 0 auto; width: 250px; scroll-snap-align: start; }
.shot img { border-radius: 22px; box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.shot figcaption { color: var(--peach-soft); font-size: 0.85rem; margin-top: 12px; text-align: center; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--cream-2); border-radius: var(--radius); padding: 34px 28px 30px; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  color: var(--orange); display: block; margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Guides grid ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 720px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card {
  display: block; background: var(--white); text-decoration: none;
  border-radius: var(--radius); padding: 26px 26px 24px;
  border: 1px solid rgba(36,33,27,0.07); box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.guide-card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.guide-card h3 { margin: 8px 0 6px; color: var(--green-deep); }
.guide-card p { color: var(--ink-soft); font-size: 0.92rem; }
.guide-card .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; color: var(--green-bright); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item {
  background: var(--white); border-radius: 16px; margin-bottom: 14px;
  border: 1px solid rgba(36,33,27,0.07); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.02rem;
  color: var(--green-deep); list-style: none; position: relative; padding-right: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--orange); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.97rem; }
.faq-item .faq-body a { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 60%, #1d5c43 100%);
  border-radius: 28px; padding: 64px 48px; text-align: center; color: var(--cream);
  box-shadow: var(--shadow-soft);
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--peach-soft); max-width: 56ch; margin: 14px auto 30px; }
@media (max-width: 620px) { .cta-band { padding: 44px 24px; } }

/* ---------- Footer ---------- */
footer { background: var(--green-deep); color: rgba(253,248,239,0.75); padding: 56px 0 36px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--cream); font-size: 0.92rem; margin-bottom: 14px; font-weight: 700; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: rgba(253,248,239,0.75); text-decoration: none; font-size: 0.92rem; }
footer a:hover { color: var(--peach); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(253,248,239,0.15); margin-top: 44px; padding-top: 24px; font-size: 0.84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Guide article pages ---------- */
.article-hero { background: linear-gradient(180deg, var(--peach-soft) 0%, var(--cream) 100%); padding: 64px 0 48px; }
.breadcrumb { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-deep); }
.article-meta { color: var(--ink-soft); font-size: 0.9rem; margin-top: 16px; }
article.guide-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
article.guide-body h2 { margin-top: 2em; }
article.guide-body h3 { margin-top: 1.6em; margin-bottom: 0.4em; }
article.guide-body p { margin: 1em 0; color: #3c382f; }
article.guide-body ul, article.guide-body ol { margin: 1em 0 1em 1.4em; color: #3c382f; }
article.guide-body li { margin-bottom: 0.5em; }
.answer-box {
  background: var(--cream-2); border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0; padding: 20px 24px; margin: 1.4em 0; font-size: 1.03rem;
}
.guide-shot { margin: 2em auto; max-width: 320px; }
.guide-shot img { border-radius: 24px; box-shadow: var(--shadow-soft); }
.guide-shot figcaption { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.inline-cta {
  background: var(--white); border: 1px solid rgba(36,33,27,0.08);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 28px; margin: 2.2em 0; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.inline-cta img { width: 64px; height: 64px; border-radius: 14px; }
.inline-cta .cta-text { flex: 1; min-width: 220px; }
.inline-cta .cta-text strong { display: block; font-size: 1.06rem; color: var(--green-deep); }
.inline-cta .cta-text span { font-size: 0.9rem; color: var(--ink-soft); }
.related { max-width: 760px; margin: 64px auto 0; padding: 0 24px; }
.related h2 { font-size: 1.4rem; }
.related-links { list-style: none; margin-top: 18px; }
.related-links li { margin-bottom: 10px; }
.related-links a { font-weight: 600; text-decoration: none; }
