/* Shared styles for guide / landing pages. Tokens mirror index.html. */
:root {
  --ink: #17122b;
  --muted: #5e5873;
  --line: #ece7f3;
  --bg: #fffcfa;
  --card: #ffffff;
  --soft: #f6f2fd;
  --violet: #7b3fe4;
  --brand: #6a63c0;
  --pink: #f0368a;
  --orange: #ff7a3d;
  --blue: #3f7bf5;
  --yellow: #ffc12e;
  --green: #2fb36b;
  --grad: linear-gradient(95deg, var(--pink) 0%, var(--violet) 55%, var(--blue) 100%);
  --shadow: 0 30px 60px -24px rgba(58, 30, 120, .35), 0 12px 24px -12px rgba(58, 30, 120, .18);
  --radius: 28px;
  --maxw: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.7 "DM Sans", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 250, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px "Outfit", sans-serif; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.btn-sm {
  text-decoration: none; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 820px) { .nav-links { display: none; } }

/* App Store button */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 22px 10px 16px; border-radius: 14px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
  transition: transform .15s ease;
}
.appstore:hover { transform: translateY(-2px); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore span { display: flex; flex-direction: column; line-height: 1.1; }
.appstore small { font-size: 11px; opacity: .85; }
.appstore b { font: 600 20px "Outfit", sans-serif; letter-spacing: -.01em; }

/* page hero */
.phero { position: relative; overflow: hidden; padding: 28px 0 56px; }
.phero .splash { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .4; pointer-events: none; }
.crumbs { position: relative; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 8px; opacity: .6; }
.phero .inner { position: relative; max-width: 780px; }
.eyebrow {
  display: inline-flex; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--violet); background: var(--soft); border: 1px solid #e6dcfb;
  padding: 7px 14px; border-radius: 999px;
}
.phero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin: 20px 0 18px; }
.phero .lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 36em; }
.phero .cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 28px; }
.phero .note { font-size: 14px; color: var(--muted); }

/* article layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding-bottom: 80px; }
.article { max-width: 720px; }
.article h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; margin: 56px 0 16px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 21px; font-weight: 700; margin: 32px 0 10px; }
.article p { margin: 0 0 18px; color: #3b3550; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 22px; color: #3b3550; }
.article li { margin-bottom: 10px; }
.article li::marker { color: var(--violet); font-weight: 700; }
.article strong { color: var(--ink); }
.article a { color: var(--violet); font-weight: 600; }

.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 18px 64px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font: 700 15px "Outfit", sans-serif;
}

.callout {
  background: var(--soft); border: 1px solid #e6dcfb; border-radius: 20px;
  padding: 22px 24px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

.figure { margin: 36px auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.figure .shot { width: min(280px, 72vw); }
.figure.two .shot { width: min(250px, 42vw); }
.figure figcaption { width: 100%; text-align: center; font-size: 14px; color: var(--muted); }
.shot {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); border: 1px solid rgba(23,18,43,.06);
}
.shot img { width: 100%; aspect-ratio: 780 / 1693; object-fit: cover; object-position: top; }

/* sidebar */
.aside { position: sticky; top: 92px; }
.appcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px;
  box-shadow: 0 20px 40px -28px rgba(58,30,120,.4); text-align: center;
}
.appcard img.icon { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 14px; }
.appcard b { display: block; font: 700 21px "Outfit", sans-serif; }
.appcard p { font-size: 15px; color: var(--muted); margin: 6px 0 18px; }
.appcard ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; font-size: 15px; display: grid; gap: 8px; }
.appcard li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }
.appcard .appstore { width: 100%; justify-content: center; }
.aside .shot { margin-top: 22px; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; max-width: 420px; margin: 0 auto; width: 100%; }
  .aside .shot { display: none; }
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 600 18px "Outfit", sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft);
  display: grid; place-items: center; color: var(--violet); font-size: 19px; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; }

/* related + guides cards */
.related { padding: 72px 0 88px; background: linear-gradient(180deg, transparent, var(--soft) 30%); }
.related h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 28px; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.gcard {
  display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px; transition: transform .15s, border-color .15s;
}
.gcard:hover { transform: translateY(-3px); border-color: #cdbdf5; }
.gcard .emo { font-size: 26px; }
.gcard b { display: block; font: 700 19px "Outfit", sans-serif; margin: 12px 0 6px; }
.gcard span.d { font-size: 15px; color: var(--muted); display: block; }
.gcard i { display: inline-block; margin-top: 14px; font-style: normal; font-weight: 600; color: var(--violet); font-size: 15px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 32px; }
.fgrid b { display: block; color: var(--ink); font: 600 15px "Outfit", sans-serif; margin-bottom: 12px; }
.fgrid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fgrid a { text-decoration: none; }
.fgrid a:hover { color: var(--ink); }
.fbrand p { margin-top: 12px; max-width: 22em; }
.fcopy { margin-top: 36px; }
@media (max-width: 820px) { .fgrid { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .appstore, .gcard { transition: none; }
}
