/* ==========================================================================
   scard.app — design system
   Subject: paper business cards meeting a scanner. Two materials carry the
   whole look: cool card stock (paper, white, ink) and a cyan scan beam that
   only ever appears as light. Crop-mark corners — the app's own card
   detection frame — mark anything that has been "detected": images, the
   hero card, the download icon.
   No JavaScript (CSP script-src 'none'); motion is CSS only and is switched
   off under prefers-reduced-motion.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* palette */
  --ink: #0C2230;          /* deep navy — dark surfaces, headings */
  --ink-2: #133345;        /* raised dark surface */
  --ink-line: rgba(196, 232, 236, .14);
  --teal: #176B78;         /* brand — links, accents on light */
  --teal-strong: #0F5560;  /* hover / pressed */
  --beam: #3FE0D0;         /* scan light — on dark only */
  --beam-soft: rgba(63, 224, 208, .16);
  --paper: #F6F8F7;        /* page background, cool card stock */
  --white: #FFFFFF;
  --text: #1B2E3A;
  --muted: #4F6472;
  --on-dark: #E7F1F2;
  --on-dark-muted: #A8C0C6;
  --line: #DCE4E3;

  /* type */
  --font-display: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);

  /* layout */
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-strong); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
  font-weight: 700;
}
h3 { font-size: var(--step-1); letter-spacing: -.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--beam); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- crop marks
   Four L-shaped corners, drawn with gradients on a pseudo element so any
   element can carry them without extra markup. */
.crop { position: relative; --crop: var(--teal); --crop-len: 18px; --crop-gap: -10px; }
.crop::after {
  content: "";
  position: absolute;
  inset: var(--crop-gap);
  pointer-events: none;
  background:
    linear-gradient(var(--crop), var(--crop)) top left / var(--crop-len) 2px no-repeat,
    linear-gradient(var(--crop), var(--crop)) top left / 2px var(--crop-len) no-repeat,
    linear-gradient(var(--crop), var(--crop)) top right / var(--crop-len) 2px no-repeat,
    linear-gradient(var(--crop), var(--crop)) top right / 2px var(--crop-len) no-repeat,
    linear-gradient(var(--crop), var(--crop)) bottom left / var(--crop-len) 2px no-repeat,
    linear-gradient(var(--crop), var(--crop)) bottom left / 2px var(--crop-len) no-repeat,
    linear-gradient(var(--crop), var(--crop)) bottom right / var(--crop-len) 2px no-repeat,
    linear-gradient(var(--crop), var(--crop)) bottom right / 2px var(--crop-len) no-repeat;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 34, 48, .94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em;
}
.brand:hover { color: var(--white); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .07); }
.site-header .badge-btn img { height: 36px; width: auto; }
@media (max-width: 720px) {
  .site-header__inner { gap: 12px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 8px; font-size: .9rem; }
  .site-nav .site-nav__optional { display: none; }
}
@media (max-width: 460px) {
  .site-header .badge-btn { display: none; }
}

.badge-btn { display: inline-block; flex: none; border-radius: 10px; }
.badge-btn img { height: 54px; width: auto; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 520px at 78% 30%, rgba(23, 107, 120, .55), transparent 62%),
    radial-gradient(700px 400px at 10% 110%, rgba(23, 107, 120, .35), transparent 70%),
    var(--ink);
  color: var(--on-dark);
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
/* faint registration grid, like a cutting mat */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(196, 232, 236, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 232, 236, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title {
  color: var(--white);
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-bottom: .35em;
}
.hero__tagline { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--white); line-height: 1.35; max-width: 34ch; }
.hero__sub { color: var(--on-dark-muted); max-width: 52ch; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 28px; }
.hero__note { margin: 0; color: var(--on-dark-muted); font-size: var(--step--1); }

.hero__facts {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--ink-line);
}
.hero__facts li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 24px 0 0; color: var(--on-dark-muted); font-size: .95rem; line-height: 1.5;
}
.hero__facts li + li { padding-left: 24px; border-left: 1px solid var(--ink-line); }
.hero__facts svg { width: 22px; height: 22px; flex: none; color: var(--beam); margin-top: 1px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li, .hero__facts li + li { padding: 16px 0 0; border-left: 0; }
}

/* ---- scan stage: the signature moment ---------------------------------- */
.stage { position: relative; padding: 24px 0 170px; max-width: 560px; justify-self: end; width: 100%; }
.bizcard {
  --crop: rgba(63, 224, 208, .35); --crop-gap: -14px; --crop-len: 24px;
  position: relative;
  aspect-ratio: 1.75;
  background:
    linear-gradient(135deg, #FFFFFF 0%, #F1F4F3 100%);
  border-radius: 6px;
  color: #1E2A30;
  padding: 7% 8%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
  transform: rotate(-4deg);
  transform-origin: 40% 60%;
}
.bizcard__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1.25fr; gap: 6%; overflow: hidden; }
.bizcard__mark { display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #D6DEDC; padding-right: 10%; }
.bizcard__logo { width: 42px; height: 42px; color: #1E5A63; }
.bizcard__co { font-family: var(--font-display); font-weight: 700; font-size: clamp(.7rem, 1.7vw, .95rem); letter-spacing: -.01em; line-height: 1.2; color: #1E2A30; }
.bizcard__name { font-family: var(--font-display); font-size: clamp(1rem, 3.1vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 0; color: #12202A; }
.bizcard__role { font-size: clamp(.62rem, 1.5vw, .82rem); color: #50626B; margin: .3em 0 0; }
.bizcard__lines { list-style: none; padding: 0; margin: 12% 0 0; font-size: clamp(.55rem, 1.35vw, .74rem); line-height: 1.65; color: #34454E; font-variant-numeric: tabular-nums; }
.bizcard__lines li { margin: 0; white-space: nowrap; }
.beam {
  position: absolute; top: -12%; bottom: -12%; left: 0; width: 3px;
  background: var(--beam);
  box-shadow: 0 0 12px 2px rgba(63, 224, 208, .9), 0 0 60px 18px rgba(63, 224, 208, .35);
  opacity: 0;
}
.beam::before { /* trailing wash: what the light has already read */
  content: ""; position: absolute; top: 0; bottom: 0; right: 3px; width: 140px;
  background: linear-gradient(90deg, transparent, rgba(63, 224, 208, .22));
}

.extract {
  position: absolute; right: -16px; bottom: 0; width: min(64%, 320px);
  background: rgba(19, 51, 69, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  list-style: none; margin: 0;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6);
}
.extract li {
  display: flex; align-items: center; gap: 12px;
  font-size: .86rem; color: var(--on-dark); line-height: 1.3;
  padding: 7px 0;
}
.extract li + li { border-top: 1px solid rgba(196, 232, 236, .08); }
.extract svg { width: 16px; height: 16px; flex: none; color: var(--beam); }
.extract .extract__tag span {
  background: var(--beam-soft); color: var(--beam); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .bizcard { animation: card-settle 900ms cubic-bezier(.2, .8, .2, 1) both; }
  .beam { animation: beam-sweep 1600ms 700ms cubic-bezier(.45, 0, .2, 1) both; }
  .bizcard.crop::after { animation: detect 500ms 2200ms ease-out both; }
  .extract { animation: sheet-in 600ms 1100ms cubic-bezier(.2, .8, .2, 1) both; }
  .extract li { animation: field-in 420ms cubic-bezier(.2, .8, .2, 1) both; }
  .extract li:nth-child(1) { animation-delay: 1300ms; }
  .extract li:nth-child(2) { animation-delay: 1450ms; }
  .extract li:nth-child(3) { animation-delay: 1600ms; }
  .extract li:nth-child(4) { animation-delay: 1750ms; }
  .extract li:nth-child(5) { animation-delay: 1900ms; }
  .extract li:nth-child(6) { animation-delay: 2050ms; }
}
@keyframes card-settle { from { opacity: 0; transform: rotate(-9deg) translateY(24px); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes beam-sweep {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes detect { from { --crop: rgba(63, 224, 208, .35); opacity: .4; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes field-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.bizcard.crop::after { --crop: rgba(63, 224, 208, .9); }

@media (max-width: 860px) {
  .stage { justify-self: stretch; max-width: 520px; margin: 8px auto 0; padding-bottom: 190px; }
  .extract { right: 0; width: min(86%, 330px); }
}

/* --------------------------------------------------------------- sections */
.section { padding: var(--section) 0; }
.section__title { font-size: var(--step-3); font-weight: 750; letter-spacing: -.025em; max-width: 24ch; }
.section__sub { color: var(--muted); max-width: 56ch; }
.section--white { background: var(--white); }

/* split: heading column + content column */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__head { position: sticky; top: 104px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
}

/* ---- device images ------------------------------------------------------
   Screens are composited into Apple's official device bezels at build time
   (tools/prepare-screenshots.py), so the frame is part of the image. */
.device { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 34px rgba(12, 34, 48, .22)) drop-shadow(0 4px 8px rgba(12, 34, 48, .12)); }

/* ---- screenshot rail ---------------------------------------------------- */
.section--shots { background: var(--white); padding-bottom: calc(var(--section) - 24px); }
.shots {
  display: flex; gap: clamp(20px, 3vw, 36px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding: 36px var(--rail-pad) 24px;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.shots:focus-visible { outline-offset: -3px; }
.shot { flex: none; width: clamp(200px, 22vw, 250px); scroll-snap-align: start; margin: 0; }
.shot--tablet { width: clamp(300px, 34vw, 390px); }
.shot figcaption { margin-top: 18px; font-size: .95rem; color: var(--muted); line-height: 1.45; max-width: 30ch; }
.shot figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 2px; font-weight: 650; }

/* ---- how it works: a real sequence, so it is numbered -------------------- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: clamp(48px, 7vw, 96px); counter-reset: step; }
.step {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.step:nth-child(even) .step__visual { order: -1; }
.step__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--teal); color: var(--teal);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 18px;
}
.step__title { font-size: var(--step-2); letter-spacing: -.02em; max-width: 22ch; }
.step__text { color: var(--muted); max-width: 46ch; margin: 0; }
.step__visual { display: flex; justify-content: center; }
.step__visual .device { width: min(240px, 62vw); }
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__visual { order: 0; }
}

/* export formats visual (no screenshot exists for export) */
.formats { position: relative; width: min(360px, 86vw); aspect-ratio: 1; display: grid; place-items: center; }
.formats__sheet {
  position: absolute; width: 58%; aspect-ratio: .78; background: var(--white); border-radius: 12px;
  border: 1px solid var(--line); box-shadow: 0 24px 44px -26px rgba(12, 34, 48, .45);
  padding: 18px; display: flex; flex-direction: column; gap: 9px;
}
.formats__sheet:nth-child(1) { transform: rotate(-10deg) translate(-44%, 6%); }
.formats__sheet:nth-child(2) { transform: rotate(8deg) translate(42%, -4%); }
.formats__sheet:nth-child(2) .formats__label { align-self: flex-end; }
.formats__sheet:nth-child(3) { width: 50%; z-index: 1; }
.formats__sheet:nth-child(3) { transform: translateY(10%); }
.formats__sheet i { display: block; height: 7px; border-radius: 4px; background: #E4EBEA; }
.formats__sheet i:nth-of-type(2) { width: 70%; }
.formats__sheet i:nth-of-type(3) { width: 84%; }
.formats__sheet i:nth-of-type(4) { width: 56%; }
.formats__label {
  margin-top: auto; align-self: flex-start;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; color: var(--white);
  background: var(--teal); padding: 4px 12px; border-radius: 8px;
}
.formats__sheet:nth-child(1) .formats__label { background: #2F7A4C; }
.formats__sheet:nth-child(2) .formats__label { background: #5B4BB5; }

/* ---- feature index (EN home + /features/) -------------------------------- */
.section--features { background: var(--white); }
.feature-index { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.feature-index li { border-top: 1px solid var(--line); }
.feature-index a { display: grid; grid-template-columns: 40px 1fr 20px; gap: 16px; padding: 22px 0; text-decoration: none; color: inherit; align-items: start; }
.feature-index a:hover .feature-index__title { color: var(--teal); }
.feature-index svg.feature-index__icon { width: 26px; height: 26px; color: var(--teal); margin-top: 2px; }
.feature-index__title { display: block; font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.feature-index__text { display: block; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.feature-index .arrow { width: 18px; height: 18px; color: var(--teal); margin-top: 4px; transition: transform .2s; }
.feature-index a:hover .arrow { transform: translateX(3px); }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; text-decoration: none; }
.more-link svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .feature-index { grid-template-columns: 1fr; } }

/* ---- download strip ------------------------------------------------------ */
.section--download { padding: clamp(48px, 6vw, 80px) 0; }
.download { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.download__icon { width: 112px; --crop-gap: -12px; }
.download__icon img { border-radius: 26px; width: 112px; height: 112px; box-shadow: 0 18px 36px -18px rgba(12, 34, 48, .5); }
.download__copy .section__title { font-size: var(--step-2); margin-bottom: .3em; }
.download__copy p { color: var(--muted); margin: 0; max-width: 60ch; }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; } }

/* ---- link list (guides, related) ----------------------------------------- */
.link-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: 1fr 22px; gap: 16px; padding: 22px 0; text-decoration: none; color: inherit; }
.link-list__title { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.link-list__text { display: block; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.link-list .arrow { width: 20px; height: 20px; color: var(--teal); margin-top: 4px; transition: transform .2s; }
.link-list a:hover .link-list__title { color: var(--teal); }
.link-list a:hover .arrow { transform: translateX(3px); }

/* ---- popular block -------------------------------------------------------- */
.section--popular { background: var(--white); padding: clamp(48px, 6vw, 80px) 0; }
.popular__title { font-size: var(--step-2); }
.popular { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.popular a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.3;
}
.popular a:hover { border-color: var(--teal); color: var(--teal); }
.popular a svg { width: 16px; height: 16px; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start;
  padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 3px; transition: transform .25s; }
.faq__item[open] .faq__q svg { transform: rotate(45deg); }
.faq__a { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(23, 107, 120, .55), transparent 65%),
    var(--ink);
  color: var(--on-dark);
  padding: clamp(56px, 8vw, 104px) 0;
  overflow: hidden;
}
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cta-band h2 { color: var(--white); font-size: var(--step-3); letter-spacing: -.025em; max-width: 20ch; }
.cta-band p { color: var(--on-dark-muted); max-width: 52ch; }
.cta-band__action { justify-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-band__note { font-size: var(--step--1); color: var(--on-dark-muted); margin: 0; }
@media (max-width: 760px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__action { justify-self: start; }
}

/* --------------------------------------------------------------- footer */
.site-footer { background: #081923; color: var(--on-dark-muted); padding: 64px 0 40px; font-size: .92rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--beam); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer__brand p { margin: 14px 0 0; max-width: 36ch; }
.footer__col h2 { color: var(--white); font-size: .95rem; font-weight: 650; letter-spacing: 0; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__langs { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--ink-line); }
.footer__langs h2 { color: var(--white); font-size: .95rem; font-weight: 650; margin-bottom: 12px; }
.footer__langs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__langs [aria-current] { color: var(--beam); }
.footer__legal { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .82rem; }
.footer__legal p { margin: 0; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ==========================================================================
   Content pages: guides, features, FAQ, blog
   ========================================================================== */
.page-head {
  background:
    radial-gradient(900px 380px at 90% 0%, rgba(23, 107, 120, .5), transparent 65%),
    var(--ink);
  color: var(--on-dark);
  padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 6vw, 72px);
}
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-head h1 { color: var(--white); font-size: var(--step-4); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; max-width: 22ch; }
.page-head__lede { color: var(--on-dark-muted); font-size: var(--step-1); line-height: 1.5; max-width: 58ch; margin: 0; }
.page-head__kicker { color: var(--beam); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.page-head__meta { color: var(--on-dark-muted); font-size: var(--step--1); margin: 20px 0 0; }
.page-head__visual .device { width: 220px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.page-head .hero__actions { margin-top: 24px; }
@media (max-width: 860px) {
  .page-head__grid { grid-template-columns: 1fr; }
  .page-head__visual { display: none; }
}

.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; font-size: var(--step--1); }
.breadcrumb li { color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px 0 4px; opacity: .5; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--beam); }

/* article grid: prose + aside */
.article { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.article__aside { position: sticky; top: 100px; display: grid; gap: 24px; }
@media (max-width: 960px) {
  .article__grid { grid-template-columns: 1fr; }
  .article__aside { position: static; }
}

.prose { max-width: 70ch; font-size: 1.075rem; line-height: 1.7; }
.prose h2 { font-size: var(--step-2); margin: 2em 0 .6em; letter-spacing: -.02em; }
.prose h3 { font-size: var(--step-1); margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-display); color: var(--ink); font-weight: 650; }
.prose code { font-size: .9em; background: #E9EFEE; padding: 1px 6px; border-radius: 5px; }
.prose img { border-radius: var(--radius-m); }

.answer {
  position: relative; background: var(--white); border-radius: var(--radius-m); padding: 22px 24px;
  margin: 0 0 40px; font-size: 1.1rem; line-height: 1.6; color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
}
.answer::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: var(--teal); }
.answer p { margin: 0; }

/* how-to steps inside articles */
.howto { margin: 3em 0 0; }
.howto ol { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: howto; display: grid; gap: 4px; }
.howto li { counter-increment: howto; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); margin: 0; }
.howto li::before {
  content: counter(howto); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--teal); color: var(--teal); font-family: var(--font-display); font-weight: 700;
}
.howto strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.08rem; margin: 4px 0 4px; }
.howto p { margin: 0; color: var(--muted); }

.note { background: #E8F3F2; border-radius: var(--radius-m); padding: 20px 22px; margin: 2em 0; }
.note strong { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: 4px; }
.note p { margin: 0; color: var(--text); }

.mini-faq { margin-top: 3em; }
.mini-faq h2 { font-size: var(--step-2); }

/* aside card: app promo */
.app-card {
  background: var(--ink); color: var(--on-dark); border-radius: var(--radius-l); padding: 24px; overflow: hidden; position: relative;
}
.app-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-card__head img { width: 52px; height: 52px; border-radius: 13px; }
.app-card__name { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.15rem; margin: 0; line-height: 1.2; }
.app-card__meta { font-size: .82rem; color: var(--on-dark-muted); margin: 2px 0 0; }
.app-card p { color: var(--on-dark-muted); font-size: .95rem; line-height: 1.5; }
.app-card .badge-btn img { height: 44px; }

.aside-links h2 { font-size: 1rem; margin-bottom: 8px; }
.aside-links ul { list-style: none; padding: 0; margin: 0; }
.aside-links li { border-top: 1px solid var(--line); }
.aside-links a { display: block; padding: 11px 0; text-decoration: none; color: var(--ink); font-size: .95rem; line-height: 1.4; }
.aside-links a:hover { color: var(--teal); }

/* inline CTA inside long-form text */
.inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin: 2em 0; padding: 18px 20px; border-radius: var(--radius-m);
  background: var(--white); box-shadow: 0 0 0 1px var(--line);
}
.inline-cta__text { display: flex; align-items: center; gap: 14px; }
.inline-cta__text img { width: 44px; height: 44px; border-radius: 11px; }
.inline-cta__name { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.2; }
.inline-cta__benefit { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.inline-cta .badge-btn img { height: 40px; }

/* related grids at the end of articles */
.related { padding: var(--section) 0; background: var(--white); }
.related h2 { font-size: var(--step-3); }
.related .link-list { margin-top: 28px; }
.related--split .link-list { margin-top: 0; }

/* guides / blog / features index */
.index-list { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.index-list .link-list { max-width: 860px; }

.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 64px); }
.post-list li { border-top: 1px solid var(--line); }
.post-list a { display: block; padding: 26px 0 28px; text-decoration: none; color: inherit; }
.post-list time { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.post-list__title { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.25; letter-spacing: -.015em; margin-bottom: 8px; }
.post-list__text { display: block; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.post-list a:hover .post-list__title { color: var(--teal); }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }

.sources { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: .92rem; }
.sources h2 { font-size: 1.05rem; margin: 0 0 .6em; }
.sources ul { padding-left: 1.2em; color: var(--muted); }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: var(--step-2); margin-bottom: 16px; }
.contact-box { margin-top: 56px; background: var(--white); border-radius: var(--radius-l); padding: 28px; box-shadow: 0 0 0 1px var(--line); }
.contact-box h2 { font-size: var(--step-2); }
.contact-box p:last-child { margin-bottom: 0; }

.aside-shot { width: 220px; margin: 8px auto 0; }
@media (max-width: 960px) { .aside-shot { display: none; } }

.legal { max-width: 72ch; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

/* feature images (gpt-image-2, 3:2) */
.feature-img { margin: 0 0 32px; }
.feature-img img { width: 100%; height: auto; border-radius: var(--radius-l); background: var(--ink); aspect-ratio: 3 / 2; object-fit: cover; }
.link-list li.has-thumb a { grid-template-columns: 132px 1fr 22px; align-items: center; }
.link-list .thumb { width: 132px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--ink); }
.post-list .thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-m); margin-bottom: 16px; background: var(--ink); }
@media (max-width: 560px) {
  .link-list li.has-thumb a { grid-template-columns: 88px 1fr 20px; }
  .link-list .thumb { width: 88px; height: 59px; }
}

/* 404 */
.notfound { padding: clamp(80px, 12vw, 160px) 0; }
.notfound h1 { font-size: var(--step-4); }

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

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

/* pricing */
.plans-section { padding: clamp(40px, 6vw, 72px) 0 0; }
.plans { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--white); border-radius: var(--radius-l); padding: 28px; box-shadow: 0 0 0 1px var(--line); }
.plan--featured { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.plan--featured .plan__name { color: var(--white); }
.plan--featured .plan__summary, .plan--featured .plan__points { color: var(--on-dark-muted); }
.plan__name { font-size: var(--step-1); margin-bottom: 6px; }
.plan__summary { color: var(--muted); margin-bottom: 16px; }
.plan__points { padding-left: 1.1em; margin: 0; color: var(--text); font-size: .95rem; }
.plan__points li { margin-bottom: 6px; }
.plan__points li::marker { color: var(--teal); }
.plan--featured .plan__points li::marker { color: var(--beam); }
.article--tight { padding-top: clamp(32px, 5vw, 56px); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* Devanagari: negative tracking breaks conjuncts and tight leading clips
   the matras, so Hindi pages get normal tracking and taller lines. The
   typeset hero card stays in English and keeps its own type. */
:lang(hi) :is(h1, h2, h3, h4, .hero__title, .hero__tagline, .section__title, .step__title,
  .page-head h1, .cta-band h2, .prose h2, .post-list__title) { letter-spacing: normal; line-height: 1.35; }
:lang(hi) body { line-height: 1.75; }
