/* Shared styles for the English guide pages (docs/<slug>/index.html).
   Tokens and components are copied from docs/index.html so the guides match
   the landing page; keep them in step when the site's design changes. */

:root {
  --blue: #0084FF;
  --grad-a: #00B2FF;
  --grad-b: #006AFF;
  --grad-deep: #005FE8;
  --ink: #14283f;
  --muted: #4a627a;
  --body: #33475c;
  --page: #ffffff;
  --section-tint: #eef5ff;
  --bubble-grey: #f0f2f5;
  --shadow-soft: 0 8px 30px -12px rgba(15, 60, 130, .18);
  --shadow-card: 0 14px 40px -18px rgba(15, 60, 130, .22);
  --radius-bubble: 22px;
  --font-display: "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  overflow-x: hidden; overflow-x: clip;
  background: var(--page); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grad-b); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }
code {
  background: rgba(0, 106, 255, .09);
  padding: .12em .45em; border-radius: 6px;
  font-size: .88em; overflow-wrap: anywhere;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.page-hero :focus-visible, .download :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--grad-b); color: #fff; font-weight: 700;
  padding: .7rem 1.2rem; border-radius: 999px; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.narrow { max-width: 760px; margin-inline: auto; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 #edf2f9; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.site-nav a { text-decoration: none; font-weight: 700; color: var(--muted); font-size: .97rem; }
.site-nav a:hover { color: var(--grad-b); }
.nav-cta {
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  color: #fff !important; padding: .5rem 1.15rem; border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(0,106,255,.55); }
@media (max-width: 560px) { .nav-hide-sm { display: none; } }

/* ---------- Hero: a smaller version of the landing page's bubble ---------- */
.page-hero {
  position: relative; overflow: hidden;
  margin: 10px clamp(8px, 1.5vw, 16px) 0;
  border-radius: clamp(26px, 4vw, 48px);
  background: linear-gradient(178deg, var(--grad-a) 0%, var(--blue) 12%, var(--grad-b) 34%, var(--grad-deep) 100%);
  color: #fff; text-align: center;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.1rem, 4vw, 2rem);
}
.page-hero .orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); pointer-events: none; }
.page-hero .o1 { width: 220px; height: 220px; top: -70px; left: -60px; }
.page-hero .o2 { width: 140px; height: 140px; bottom: -40px; right: 6%; }
.hero-inner { position: relative; max-width: 780px; margin-inline: auto; }
.crumbs { font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.88); }
.crumbs a { color: #fff; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem;
  background: rgba(255,255,255,.94); color: var(--grad-b);
  font-weight: 700; font-size: .88rem;
  padding: .42rem 1rem; border-radius: 999px;
}
.page-hero h1 { margin-top: .8rem; font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
.hero-sub { margin: .9rem auto 0; max-width: 640px; font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-ctas { margin-top: 1.5rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.btn-bubble {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  text-decoration: none; padding: .8rem 1.65rem; border-radius: 999px;
  transition: transform .22s cubic-bezier(.2,.7,.3,1.4), box-shadow .22s ease;
}
.btn-primary {
  background: #fff; color: var(--grad-b);
  border-bottom-right-radius: 6px;
  box-shadow: 0 14px 34px -10px rgba(0, 30, 90, .45);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); }
.btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.hero-fineprint { margin-top: .8rem; font-size: .9rem; font-weight: 700; }

/* ---------- Sections and article text ---------- */
section { padding-block: clamp(2.5rem, 5.5vw, 4.25rem); }
.tint { background: var(--section-tint); }
.eyebrow {
  display: inline-block; font-weight: 800; font-family: var(--font-display);
  font-size: .85rem; letter-spacing: .09em; text-transform: uppercase;
  color: #005FD6; margin-bottom: .6rem;
}
.sec-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.center { text-align: center; }

.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 800; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--body); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose strong { color: var(--ink); }

/* the short answer, as an incoming message bubble */
.answer {
  background: var(--bubble-grey);
  border-radius: var(--radius-bubble); border-bottom-left-radius: 6px;
  padding: 1.25rem 1.45rem;
}
.answer .eyebrow { margin-bottom: .3rem; }
.answer p { color: var(--ink); }
.answer p + p { margin-top: .6rem; }

/* timeline */
.timeline { list-style: none; padding: 0 !important; margin-top: 1.4rem; border-left: 3px solid #d6e6fb; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.4rem; margin: 0 !important; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .45rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 0 0 4px #fff;
}
.timeline time { display: block; font-family: var(--font-display); font-weight: 800; color: var(--ink); }

/* option cards (compact landing-page feature cards) */
.options { display: grid; gap: clamp(.9rem, 1.8vw, 1.25rem); grid-template-columns: repeat(2, 1fr); margin-top: 1.6rem; }
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } }
.option {
  position: relative; background: #fff;
  border-radius: var(--radius-bubble); box-shadow: var(--shadow-card);
  padding: 1.25rem 1.35rem 1.3rem; text-align: left;
}
.tint .option { background: #fff; }
section:not(.tint) .option { background: #f2f7ff; box-shadow: none; }
.option.rec { outline: 3px solid var(--grad-b); outline-offset: -3px; }
.option h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 .35rem; line-height: 1.25; }
.option p, .option li { color: var(--body); font-size: .97rem; line-height: 1.5; }
.option ul { margin-top: .5rem; padding-left: 1.15rem; }
.option li + li { margin-top: .2rem; }
.tag {
  display: inline-block; margin-bottom: .5rem;
  font-family: var(--font-display); font-weight: 800; font-size: .74rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .16rem .65rem; border-radius: 999px;
  background: #e4f0ff; color: #005FD6;
}
.option.rec .tag { background: var(--grad-b); color: #fff; }

/* screenshot */
.shot { margin: 2rem auto 0; max-width: 900px; }
.shot img { border-radius: 14px; box-shadow: 0 30px 70px -30px rgba(15, 60, 130, .45); margin-inline: auto; }
.shot figcaption { margin-top: .8rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; }
.steps li + li { margin-top: .9rem !important; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .05rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff;
  font: 800 .9rem/1 var(--font-display);
}

/* ---------- Compare table ---------- */
.cmp-scroll { overflow-x: auto; margin-top: 1.6rem; border-radius: var(--radius-bubble); box-shadow: var(--shadow-card); }
table.cmp { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; text-align: left; font-size: .95rem; }
table.cmp th, table.cmp td { padding: .85rem 1rem; border-bottom: 1px solid #edf2f9; vertical-align: top; }
table.cmp thead th { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
table.cmp tbody th { font-weight: 700; color: var(--muted); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp .us { background: #e4f0ff; color: var(--ink); font-weight: 700; }
table.cmp thead .us { color: var(--grad-b); }
.cmp-note { color: var(--muted); font-size: .88rem; margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; text-align: left; }
.faq-item { background: var(--bubble-grey); border-radius: var(--radius-bubble); transition: background .25s ease; }
.faq-item[open] { background: #e8f2ff; }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.35rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  border-radius: var(--radius-bubble);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: inherit; letter-spacing: normal; }
.faq-q-mark {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff;
  transition: transform .25s ease;
}
.faq-item[open] .faq-q-mark { transform: rotate(45deg); }
.faq-a { padding: 0 1.35rem 1.15rem; color: var(--muted); font-size: 1rem; }
.faq-a + .faq-a { margin-top: -.5rem; }
.faq-a a { font-weight: 700; }

/* ---------- Download: the closing bubble ---------- */
.download-wrap { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.download {
  position: relative; overflow: hidden;
  margin: 0 clamp(8px, 1.5vw, 16px);
  border-radius: clamp(26px, 4vw, 48px);
  background: linear-gradient(170deg, var(--grad-a) 0%, var(--blue) 8%, var(--grad-b) 24%, var(--grad-deep) 100%);
  color: #fff; text-align: center;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2.5rem);
}
.download .orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }
.download .d1 { width: 190px; height: 190px; top: -60px; right: -40px; }
.download .d2 { width: 120px; height: 120px; bottom: -30px; left: 6%; }
.download h2 { position: relative; font-size: clamp(1.9rem, 4.2vw, 2.6rem); font-weight: 800; }
.download .dl-sub { position: relative; max-width: 560px; margin: .8rem auto 0; }
.download code { background: rgba(255,255,255,.16); color: #fff; }
.dl-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 1rem; max-width: 940px; margin: 2rem auto 0; align-items: start;
}
.dl-grid.solo { max-width: 360px; grid-template-columns: 1fr; }
.dl-col { display: flex; flex-direction: column; gap: 10px; }
.dl-alts { font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .9); text-align: center; }
.dl-alts a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.dl {
  display: flex; align-items: center; gap: .9rem;
  background: #fff; color: var(--ink);
  text-decoration: none; text-align: left;
  padding: 1rem 1.25rem; border-radius: 999px;
  box-shadow: 0 14px 34px -12px rgba(0, 30, 90, .4);
  transition: transform .22s cubic-bezier(.2,.7,.3,1.4), box-shadow .22s ease;
}
.dl:hover, .dl:focus-visible { transform: translateY(-4px) scale(1.02); box-shadow: 0 22px 48px -14px rgba(0, 30, 90, .5); }
.dl-ico { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; background: #f2f6fb; display: grid; place-items: center; }
.dl b { display: block; font-family: var(--font-display); font-size: 1.06rem; font-weight: 800; }
.dl small { color: var(--muted); font-weight: 600; font-size: .82rem; }
.other-versions { position: relative; margin-top: 1.5rem; font-weight: 600; }
.other-versions a { color: #fff; font-weight: 800; text-underline-offset: 3px; }

/* ---------- Related guides ---------- */
.guide-links { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.4rem; }
.guide-links a {
  display: block; padding: 1rem 1.2rem;
  background: var(--bubble-grey); border-radius: var(--radius-bubble);
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.guide-links a span { display: block; color: var(--muted); font-weight: 600; font-size: .9rem; margin-top: .15rem; }
.guide-links a:hover { background: #e8f2ff; }

/* ---------- Footer ---------- */
.site-foot { background: #f6f9fd; padding: 3rem 0 2.6rem; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem; }
.foot-links a:hover { color: var(--grad-b); }
.foot-guides { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; }
.foot-guides a { color: var(--muted); font-weight: 600; }
.foot-note { margin-top: 1.4rem; color: var(--muted); font-size: .88rem; max-width: 640px; }
.foot-heart { margin-top: .9rem; color: var(--muted); font-size: .88rem; font-weight: 700; }

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