/* ==========================================================================
   Quick Invoice Generator PDF — site styles
   Single stylesheet, no external requests.
   ========================================================================== */

:root {
  --blue: #0a84ff;
  --blue-deep: #0060df;
  --blue-ink: #0a4fa8;

  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-sunk: #eef2f7;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #64748b;

  --green: #12894f;
  --green-bg: #e7f7ee;
  --amber: #a2620a;
  --amber-bg: #fdf3e2;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 12px 28px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 20px 50px -12px rgba(10, 79, 168, .25);

  --wrap: 1120px;
  --wrap-narrow: 760px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1829;
    --bg-sunk: #131e33;
    --surface: #15203450;
    --border: #24324a;
    --border-strong: #33455f;

    --text: #edf2f8;
    --text-soft: #b2c0d4;
    --text-mute: #8d9db5;

    --blue: #4da3ff;
    --green: #4ade80;
    --green-bg: #10281d;
    --amber: #fbbf24;
    --amber-bg: #2a2010;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, .4), 0 12px 28px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, .7);
  }
}

/* --------------------------------------------------------------------- base */

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

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .5em; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--bg-sunk);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .12em .4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--blue);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
/* For a section that follows .guide-hero directly — the hero already supplies
   the breathing room above it. */
.section-tight { padding-top: clamp(1.2rem, 3vw, 2.2rem); }

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}

.section-head { max-width: 660px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p {
  font-size: 1.12rem;
  color: var(--text-soft);
  margin-bottom: 0;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(10, 132, 255, .65);
}
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 10px 26px -8px rgba(10, 132, 255, .8); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-on-blue {
  background: #fff;
  color: var(--blue-ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
}
.btn-on-blue:hover { background: #f2f7ff; }

.btn-sm { padding: .65rem 1.15rem; font-size: .92rem; }

.btn .apple { width: 19px; height: 19px; flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}
.btn-note {
  font-size: .92rem;
  color: var(--text-mute);
  margin: .9rem 0 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { white-space: nowrap; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav .btn { color: #fff; }

/* Mobile menu. A <details> element rather than a script — the site ships no JS.
   Exactly one of the two link sets is ever in the accessibility tree, because
   the other is display:none at any given width. */
.nav-drawer { display: none; position: relative; }
.nav-drawer summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
}
.nav-drawer summary::-webkit-details-marker { display: none; }
.nav-drawer summary svg { width: 19px; height: 19px; }
.nav-drawer summary .close-icon { display: none; }
.nav-drawer[open] summary .open-icon { display: none; }
.nav-drawer[open] summary .close-icon { display: block; }
.nav-drawer-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nav-drawer-panel a {
  padding: .62rem .75rem;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: .97rem;
  font-weight: 500;
}
.nav-drawer-panel a:hover {
  text-decoration: none;
  color: var(--blue);
  background: var(--bg-alt);
}

@media (max-width: 860px) {
  .site-nav .nav-link { display: none; }
  .brand span { display: none; }
  .nav-drawer { display: block; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(1000px 520px at 78% -8%, rgba(10, 132, 255, .16), transparent 62%),
    radial-gradient(760px 420px at 4% 8%, rgba(10, 132, 255, .09), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: .55rem; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue), #2ec5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 1.6rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.8rem;
  padding: 0;
  list-style: none;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .42rem .85rem;
}
.badges svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* Hero rating strip. Every competitor puts a rating above the fold; the count
   travels with the score here because 10 ratings is the honest scale. */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .8rem;
  margin: -.5rem 0 1.5rem;
  font-size: .93rem;
  color: var(--text-mute);
}
.hero-proof .stars svg { width: 16px; height: 16px; }
.hero-proof strong { color: var(--text); font-weight: 700; }
.hero-proof a { color: var(--text-mute); text-decoration: underline; text-underline-offset: 2px; }
.hero-proof a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Keep the headline and download button above the fold — the screenshot follows. */
  .hero-visual { margin-top: 2.5rem; }
  .hero-visual .device { max-width: 260px; }
}

/* ------------------------------------------------------------ device frames */

.device {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 300px;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #3a4152, #1b1f28 42%, #0d1015);
  box-shadow: var(--shadow-lg);
}
.device::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 21px;
  background: #0a0c10;
  border-radius: 999px;
  z-index: 2;
}
.device img {
  border-radius: 34px;
  width: 100%;
  display: block;
  background: #fff;
}

.hero-visual { display: flex; justify-content: center; }
.hero-visual .device { max-width: 320px; }

/* ---------------------------------------------------------------- trust bar */

.trustbar {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.6rem 0;
}
.trustbar ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.trustbar li { margin: 0; }
.trustbar strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -.03em;
  color: var(--text);
}
.trustbar span {
  font-size: .84rem;
  color: var(--text-mute);
  line-height: 1.35;
  display: block;
}
@media (max-width: 700px) {
  .trustbar ul { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

/* ----------------------------------------------------------------- features */

.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: .45rem; }
.card p { margin-bottom: 0; color: var(--text-soft); font-size: .97rem; }

a.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  color: #fff;
  margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; }

/* -------------------------------------------------------------- screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.shot figcaption {
  text-align: center;
  margin-top: 1rem;
}
.shot figcaption strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.shot figcaption span {
  font-size: .89rem;
  color: var(--text-mute);
}
.shot .device { max-width: 100%; border-radius: 26px; padding: 6px; }
.shot .device img { border-radius: 21px; }
.shot .device::after { width: 34%; height: 13px; top: 11px; }

@media (max-width: 1080px) {
  .shots { grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
}
@media (max-width: 720px) {
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.2rem;
    padding-bottom: 1.2rem;
    margin-inline: -22px;
    padding-inline: 22px;
  }
  .shot { flex: 0 0 62%; scroll-snap-align: center; }
}

/* ------------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.6rem 1.6rem 1.6rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1.5rem;
  left: 1.6rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
}
.steps h3 { margin: .9rem 0 .35rem; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--text-soft); font-size: .96rem; }

/* ------------------------------------------------------------------- guides */

.guide-list {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
}
.guide-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.guide-card h3 {
  font-size: 1.09rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.guide-card p {
  font-size: .95rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  flex: 1;
}
.guide-card .more {
  font-weight: 600;
  font-size: .93rem;
  color: var(--blue);
}
.tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  border-radius: 999px;
  padding: .25rem .6rem;
  margin-bottom: .8rem;
}

/* ----------------------------------------------------------------- personas */

.persona-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.persona {
  display: flex;
  gap: .95rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.persona-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--blue) 13%, transparent);
  color: var(--blue);
}
.persona-icon svg { width: 19px; height: 19px; }
.persona h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.persona p { margin: 0; font-size: .94rem; color: var(--text-soft); }

/* --------------------------------------------------------------- comparison */

.compare { margin-top: .5rem; }
.compare table { min-width: 620px; }
.compare th, .compare td { border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th {
  font-size: .8rem;
  background: transparent;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border-strong);
}
/* The app's column is tinted rather than boxed — border-radius does nothing on
   cells under `border-collapse: collapse`. */
.compare thead th.is-app {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, transparent);
}
.compare tbody td.is-app {
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  color: var(--text);
  font-weight: 600;
}
.compare th[scope="row"] {
  background: transparent;
  text-transform: none;
  letter-spacing: normal;
  font-size: .96rem;
  font-weight: 600;
  color: var(--text);
}
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--text-mute); font-weight: 700; }
.compare-note {
  font-size: .88rem;
  color: var(--text-mute);
  margin: 1rem 0 0;
}

/* ------------------------------------------------------------------ pricing */

.plans {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  max-width: 860px;
  margin-inline: auto;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.plan.is-featured {
  border-color: var(--blue);
  border-width: 2px;
  box-shadow: var(--shadow);
}
.plan-flag {
  position: absolute;
  top: -.75rem;
  left: 1.7rem;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: .28rem .7rem;
}
.plan h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin: .7rem 0 .2rem;
}
.plan-price b {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.plan-price span { font-size: .95rem; color: var(--text-mute); }
.plan-sub { font-size: .9rem; color: var(--text-mute); margin: 0 0 1.1rem; }
.plan-sub strong { color: var(--text); font-weight: 600; }

/* The yearly alternative, with the same savings figure the in-app paywall
   computes (1 − yearly ÷ weekly×52). Keep the two in step. */
.plan-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .7rem;
  margin-bottom: 1.4rem;
  padding: .75rem .9rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text-soft);
}
.plan-alt strong { color: var(--text); font-weight: 700; }
.plan-alt-save {
  flex: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 999px;
  padding: .24rem .6rem;
}
.plan-trial {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 .55rem;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.plan li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--text-soft);
  margin-bottom: .6rem;
}
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: .3rem; color: var(--green); }
.plan li.is-off { color: var(--text-mute); }
.plan li.is-off svg { color: var(--text-mute); }
.plan li strong { color: var(--text); font-weight: 600; }
.plan .btn { width: 100%; }
.plan-note { font-size: .84rem; color: var(--text-mute); margin: .8rem 0 0; text-align: center; }

/* ------------------------------------------------------- sticky mobile CTA */

.mobile-cta { display: none; }

@media (max-width: 760px) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border);
  }
  .mobile-cta .btn { width: 100%; padding: .85rem 1.2rem; }
  .mobile-cta p {
    margin: .45rem 0 0;
    text-align: center;
    font-size: .78rem;
    color: var(--text-mute);
  }
  /* Keep the sticky bar from covering the last of the footer. */
  body { padding-bottom: 6.5rem; }
}

/* ------------------------------------------------------------------ reviews */

.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem 1.1rem;
  margin-bottom: 2.6rem;
}
.rating-score {
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f5a623;
}
.stars svg { width: 19px; height: 19px; }
.rating-count {
  font-size: .95rem;
  color: var(--text-mute);
}

.reviews {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  /* Cards size to their own content — a short review shouldn't stretch to match
     a long one and leave a gap in the middle. */
  align-items: start;
}
.review {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.review .stars { margin-bottom: .9rem; }
.review blockquote {
  margin: 0 0 .8rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}
.review .translation {
  font-size: .92rem;
  color: var(--text-mute);
  font-style: italic;
  margin: 0 0 1rem;
  padding-left: .85rem;
  border-left: 2px solid var(--border-strong);
}
.review figcaption {
  margin-top: auto;
  font-size: .87rem;
  color: var(--text-mute);
}
.review figcaption strong { color: var(--text-soft); font-weight: 600; }

/* ------------------------------------------------------------- author block */

.author-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.8rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 3rem;
}
.author-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, .5);
}
.author-block h3 { margin-bottom: .6rem; }
.author-block p {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: .9rem;
}
.author-block > div > :last-child { margin-bottom: 0; }
.author-sig {
  font-size: .9rem;
  color: var(--text-mute);
}

@media (max-width: 640px) {
  .author-block {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.3rem;
    padding: 1.8rem 1.4rem;
  }
  .author-photo { width: 116px; height: 116px; }
}

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

.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq details[open] { border-color: var(--blue); }
.faq summary {
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1.03rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 1.35rem 1.3rem; }
.faq .answer p { color: var(--text-soft); font-size: .99rem; }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------- cta */

.cta {
  background: linear-gradient(140deg, var(--blue), var(--blue-deep) 60%, #0048ad);
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.cta h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta p {
  color: rgba(255, 255, 255, .9);
  font-size: 1.12rem;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.cta .btn-row { justify-content: center; }
.cta .btn-note { color: rgba(255, 255, 255, .78); }
.cta .cta-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  margin: 0 auto 1.6rem;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .5);
}

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

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: .9rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-grid a { color: var(--text-soft); }
.footer-grid a:hover { color: var(--blue); }
.footer-about p {
  color: var(--text-mute);
  max-width: 34ch;
  font-size: .92rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .8rem;
}
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-mute);
  font-size: .87rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-about { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------- guide pages */

.guide-hero {
  padding: 2.5rem 0 1rem;
  background:
    radial-gradient(760px 320px at 20% -20%, rgba(10, 132, 255, .13), transparent 60%);
}
.crumbs {
  font-size: .87rem;
  color: var(--text-mute);
  margin-bottom: 1.4rem;
}
.crumbs a { color: var(--text-mute); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { padding: 0 .35rem; }

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  font-size: .87rem;
  color: var(--text-mute);
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}

.prose { font-size: 1.06rem; }
.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-top: 2.8rem;
}
.prose h3 {
  font-size: 1.18rem;
  margin-top: 2rem;
}
.prose ul, .prose ol { margin-bottom: 1.4rem; }
.prose li { color: var(--text-soft); }
.prose > p { color: var(--text-soft); }
.prose strong { color: var(--text); }

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 2rem 0;
}
.toc h2 {
  font-size: .78rem !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 .7rem !important;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .35em; font-size: .97rem; }

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0 !important; font-size: 1.02rem; }
.callout.warn { border-left-color: var(--amber); background: var(--amber-bg); }
.callout.warn h3 { color: var(--amber); }
.callout.tip { border-left-color: var(--green); background: var(--green-bg); }
.callout.tip h3 { color: var(--green); }

.in-app {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}
.in-app > h3 {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.in-app > h3 img { width: 26px; height: 26px; border-radius: 7px; }
.in-app ol { margin-bottom: 1.2rem; }
.in-app ol li { color: var(--text-soft); }
.in-app ol li strong { color: var(--text); }
.in-app > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
  min-width: 460px;
}
th, td {
  text-align: left;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--border);
}
th {
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--bg-alt);
}
td { color: var(--text-soft); }

.related {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2.5rem;
}
.related h2 { font-size: 1.35rem; margin-bottom: 1.3rem; }

.inline-cta {
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.inline-cta h3 { color: #fff; margin-top: 0 !important; }
.inline-cta p {
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
  margin-bottom: 1.4rem;
}
.inline-cta .btn-row { justify-content: center; }
.inline-cta .btn-note { color: rgba(255, 255, 255, .78); margin-top: .8rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
