/* KarryBiz — shared styles. Page layout lives inline in the markup (mirrors the approved design);
   this file holds globals, components with states, and small-screen adjustments. */

:root {
  --orange: #FF9F43;
  --orange-text: #B45309;
  --orange-hover: #92400E;
  --ink: #15171F;
  --surface-dark: #262935;
  --app-grey: #F5F5F5;
  --body: #4A4E5A;
  --muted: #5B5F6B;
  --on-dark: #C9CBD3;
  --success: #1F7A45;
  --tint: #FFF1E3;
  --nav-h: 88px; /* sticky header height; site.js keeps it in sync with the real header */
  --line: #ECEDF0;
  --peach: #FFF8F1; /* illustration panel background */
  --sand: #F4EFE9;  /* warm sand card surface */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
picture { display: contents; }
section { box-sizing: border-box; }

a { color: var(--orange-text); text-decoration: none; }
a:hover { color: var(--orange-hover); }
main p a { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #8A8D97; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #FFFFFF;
  padding: 12px 18px; border-radius: 10px; font: 700 15px 'Plus Jakarta Sans', system-ui, sans-serif;
}
.skip-link:focus { top: 16px; color: #FFFFFF; }

/* ---------- header / nav ---------- */
.site-header { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: #FFFFFF; width: 100%; position: sticky; top: 0; z-index: 50; transition: box-shadow .2s ease; }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(21,23,31,0.25); }
.nav { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--orange-text); }
.nav-logo { display: flex; align-items: center; padding: 4px 0; }
.nav-menu { display: contents; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 26px; flex: 1 1 400px; justify-content: center; font-size: 15px; font-weight: 500; }
.nav-links a { padding: 12px 0; }
.nav-links a[aria-current="page"] { color: var(--orange-text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--orange); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-support { font-size: 15px; font-weight: 600; padding: 12px 6px; }
.nav .nav-dl, .nav .nav-dl-mobile { background: var(--ink); color: #FFFFFF; padding: 13px 20px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.nav .nav-dl:hover, .nav .nav-dl-mobile:hover { color: #FFFFFF; background: #2C2F3B; }
.nav-dl-mobile, .nav-toggle { display: none; }
.nav-toggle { margin-left: 8px; border: 0; background: var(--app-grey); color: var(--ink); width: 46px; height: 46px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }

@media (max-width: 900px) {
  :root { --nav-h: 74px; }
  .js .nav { flex-wrap: nowrap; gap: 0; padding: 14px 16px; }
  .js .nav-logo { margin-right: auto; }
  .js .nav-logo img { height: 38px !important; }
  .js .nav-dl-mobile { display: block; padding: 11px 14px; font-size: 14px; white-space: nowrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #FFFFFF;
    padding: 8px 16px 24px; box-shadow: 0 24px 40px -24px rgba(21,23,31,0.35);
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
    flex-direction: column; gap: 12px;
  }
  .js .nav-menu.is-open { display: flex; }
  .js .nav-links { flex-direction: column; flex: none; gap: 0; font-size: 17px; }
  .js .nav-links a { padding: 14px 0; box-shadow: inset 0 -1px 0 #ECEDF0; }
  .js .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange), inset 0 -1px 0 #ECEDF0; padding-left: 14px; }
  .js .nav-cta { flex-direction: column; align-items: stretch; }
  .js .nav-cta a { text-align: center; padding: 14px; }
  .js .nav-cta .nav-support { background: var(--app-grey); border-radius: 10px; }
}

@media (max-width: 360px) {
  .js .nav-logo img { height: 32px !important; }
  .js .nav-dl-mobile { padding: 10px 11px; font-size: 13px; }
  .js .nav-toggle { width: 42px; height: 42px; margin-left: 6px; }
}

/* ---------- footer ---------- */
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--orange); }
.site-footer a[style*="background"]:hover { color: #FFFFFF; background: #30333F !important; }

/* ---------- buttons (anchors styled inline as buttons) ---------- */
main a[style*="border-radius: 12px"], main a[style*="border-radius: 999px"], main button { transition: filter .15s ease, transform .15s ease; }
main a[style*="border-radius: 12px"]:hover, main a[style*="border-radius: 999px"]:hover, main button:hover { filter: brightness(1.08); }
main a[style*="background: #15171F"]:hover, main button[style*="background: #15171F"]:hover { filter: none; background: #2C2F3B !important; }

/* ---------- store buttons (App Store / Google Play) ---------- */
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: flex; align-items: center; gap: var(--sb-gap); padding: var(--sb-pad); border-radius: var(--sb-r);
  background: var(--sb-bg, #15171F); color: #FFFFFF; transition: background .15s ease;
}
main .store-btn:hover, main .store-btn:focus-visible { color: #FFFFFF; background: #2C2F3B; }
.site-footer .store-btn:hover { color: #FFFFFF; background: #30333F; }
.store-btn svg { flex: none; width: var(--sb-icon); height: var(--sb-icon); }
.store-btn-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; text-align: left; }
.store-btn-top { font-size: var(--sb-small); color: #C9CBD3; white-space: nowrap; }
.store-btn-name { font-size: var(--sb-big); font-weight: 700; white-space: nowrap; }
.store-btns--sm { --sb-icon: 22px; --sb-small: 11px; --sb-big: 15px; --sb-pad: 10px 16px; --sb-gap: 10px; --sb-r: 10px; }
.store-btns--md { --sb-icon: 24px; --sb-small: 12px; --sb-big: 17px; --sb-pad: 14px 22px; --sb-gap: 12px; --sb-r: 12px; }
.store-btns--lg { --sb-icon: 24px; --sb-small: 12px; --sb-big: 18px; --sb-pad: 15px 24px; --sb-gap: 12px; --sb-r: 12px; }
/* Phones: a pair shares one row, each button taking half and scaling down to fit. */
@media (max-width: 600px) {
  .store-btns--pair { flex-wrap: nowrap; gap: 10px; width: 100%; max-width: 400px; }
  .store-btns--pair .store-btn { flex: 1 1 0; min-width: 0; justify-content: center; --sb-pad: 11px 10px; --sb-gap: 8px; --sb-icon: 20px; --sb-small: 10.5px; --sb-big: 15px; }
}
@media (max-width: 360px) {
  .store-btns--pair { gap: 8px; }
  .store-btns--pair .store-btn { --sb-pad: 10px 8px; --sb-gap: 6px; --sb-icon: 18px; --sb-small: 10px; --sb-big: 14px; }
}

/* ---------- phone mockup ---------- */
/* The screen is pinned to the frame's inner edge (inset: 10px) rather than sized with height: 100%.
   Safari resolves a percentage height against an aspect-ratio height incorrectly, which pushed the
   screenshot out past the bottom of the frame. */
.phone {
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 620; padding: 10px; flex: none;
  background: #101114; border-radius: 48px;
  box-shadow: 0 40px 80px -30px rgba(21,23,31,0.45), inset 0 0 0 2px #2A2C33;
}
.phone-screen { position: absolute; inset: 10px; border-radius: 38px; overflow: hidden; background: var(--app-grey); }
.phone-screen img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-screen img.fit-width { height: auto; }
/* Browsers without aspect-ratio (Safari before 15): give the frame its height from a spacer. */
@supports not (aspect-ratio: 1 / 1) {
  .phone::before { content: ''; display: block; padding-top: calc(600 / 280 * 100%); }
}
.phone-notch { position: absolute; top: 9px; left: 50%; margin-left: -38px; width: 76px; height: 22px; border-radius: 12px; background: #101114; }

/* ---------- calculator ---------- */
.kb-calc { font-family: inherit; }
.kb-preset, .kb-seg { border: 0; cursor: pointer; font-family: inherit; font-weight: 700; color: var(--ink); }
.kb-preset { font-size: 13px; padding: 10px 14px; border-radius: 999px; background: var(--app-grey); }
.kb-preset[aria-pressed="true"] { background: var(--orange); }
.kb-seg { font-size: 14px; padding: 12px; border-radius: 9px; background: transparent; }
.kb-seg[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
main .kb-preset:hover, main .kb-seg:hover { filter: none; }
.kb-preset[aria-pressed="false"]:hover { background: #ECEDF0; }
.kb-seg[aria-pressed="false"]:hover { background: #ECEDF0; }
.kb-in:focus { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- FAQ accordions ---------- */
details.faq > summary { list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin-top: 6px; margin-right: 4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg);
  transition: transform .2s ease;
}
details.faq[open] > summary::after { transform: rotate(-135deg); margin-top: 12px; }
details.faq > summary:hover { color: var(--orange-text); }

/* ---------- forms ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form[data-form] { position: relative; }
form[data-form] button[type="submit"][disabled] { opacity: .6; cursor: progress; }
.form-error { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.5; color: #B42318; font-weight: 600; }
.on-dark .form-error { color: #FFB4A8; }
.on-dark .form-error a { color: #FFB36B; }
.form-success { display: flex; flex-direction: column; gap: 10px; }
.form-success h2, .form-success h3 { margin: 0; font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.form-success p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.on-dark .form-success p { color: var(--on-dark); }
.form-success-inline { flex-basis: 100%; background: #262935; border-radius: 12px; padding: 18px 20px; }

/* ---------- home hero animation ----------
   Layers: pulse + circle (back), orbit ring with feature chips, phone, order card, notification (front).
   Entrance plays once; then the phone and order card float, the ring turns, and the notification
   re-arrives every 8s with a pulse from the circle. Pointer parallax moves layers via --px / --py
   (set in site.js) using the individual `translate` property so it composes with the keyframe transforms. */
.hero-art { --px: 0; --py: 0; }
.hero-art > * { position: absolute; }
.ha-circle, .ha-pulse { left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: var(--orange); }
.ha-circle { z-index: 0; translate: calc(var(--px) * 8px) calc(var(--py) * 8px); animation: ha-grow .9s cubic-bezier(.2,.8,.2,1) both; }
.ha-pulse { z-index: 0; opacity: 0; translate: calc(var(--px) * 8px) calc(var(--py) * 8px); animation: ha-pulse 8s ease-out 1.5s infinite; }
.ha-orbit { z-index: 1; left: 50%; top: 50%; width: 600px; height: 600px; margin: -300px 0 0 -300px; translate: calc(var(--px) * 14px) calc(var(--py) * 14px); animation: ha-fade .8s ease .3s both, ha-spin 70s linear infinite; }
.ha-orbit > svg { position: absolute; inset: 0; }
.ha-arm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(292px) rotate(calc(-1 * var(--a))); }
.ha-counter { position: absolute; animation: ha-spin 70s linear infinite reverse; }
.ha-chip {
  position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #FFFFFF; color: var(--ink); padding: 7px 14px 7px 7px; border-radius: 999px; font-size: 13px; font-weight: 700;
  box-shadow: 0 14px 28px -14px rgba(21,23,31,0.45);
  animation: ha-pop .6s cubic-bezier(.3,1.5,.5,1) var(--d, 1s) both;
}
.ha-chip-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.ha-phone { z-index: 2; left: 50%; top: 20px; margin-left: -150px; translate: calc(var(--px) * 18px) calc(var(--py) * 18px); animation: ha-rise 1s cubic-bezier(.2,.8,.2,1) .15s both, ha-float 6s ease-in-out 1.15s infinite; }
.ha-order { z-index: 3; right: -60px; top: 330px; width: 280px; translate: calc(var(--px) * 30px) calc(var(--py) * 30px); animation: ha-slide .8s cubic-bezier(.2,.8,.2,1) .8s both, ha-float 5s ease-in-out 1.6s infinite reverse; }
.ha-notif { z-index: 4; left: -70px; top: 96px; width: 340px; translate: calc(var(--px) * 38px) calc(var(--py) * 38px); animation: ha-notify 8s cubic-bezier(.2,.8,.2,1) 1.5s infinite both; }
.ha-circle, .ha-orbit, .ha-phone, .ha-order, .ha-notif { will-change: transform; }
.hero-art.is-paused *, .hero-art.is-paused { animation-play-state: paused !important; }

@keyframes ha-grow { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ha-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ha-spin { to { rotate: 360deg; } }
@keyframes ha-pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes ha-rise { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes ha-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ha-slide { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@keyframes ha-notify {
  0%   { opacity: 0; transform: translateY(-44px) scale(.94); }
  7%   { opacity: 1; transform: translateY(6px) scale(1.02); }
  11%  { transform: translateY(0) scale(1); }
  84%  { opacity: 1; transform: translateY(0) scale(1); }
  92%  { opacity: 0; transform: translateY(-28px) scale(.97); }
  100% { opacity: 0; transform: translateY(-44px) scale(.94); }
}
@keyframes ha-pulse {
  0%   { opacity: 0; transform: scale(1); }
  4%   { opacity: .45; }
  32%  { opacity: 0; transform: scale(1.32); }
  100% { opacity: 0; transform: scale(1.32); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art *, .hero-art { animation: none !important; translate: none !important; }
}

/* ---------- features page: z-pattern sections ---------- */
.feat-row { max-width: 1200px; margin: 0 auto; padding: 88px 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feat-row.flip .feat-visual { order: -1; }
.feat-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feat-items { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 28px 28px; }
.feat-visual { position: relative; border-radius: 24px; padding: 40px 32px; display: flex; justify-content: flex-start; overflow: hidden; }
.feat-row.flip .feat-visual { justify-content: flex-end; }
.feat-visual .phone { width: 250px; }
.feat-visual.compact .phone { width: 210px; } /* sections with fewer items get a shorter visual */
.feat-float { position: absolute; right: 28px; width: 58%; max-width: 330px; height: auto; border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(21,23,31,0.45); }
.feat-row.flip .feat-float { right: auto; left: 28px; }
.feat-float.at-top { top: 96px; }
.feat-float.at-bottom { bottom: 40px; }
@media (max-width: 1100px) {
  .feat-row { gap: 40px; }
  .feat-items { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 24px; }
}
@media (max-width: 900px) {
  .feat-row { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 72px 24px; }
  .feat-row.flip .feat-visual { order: 0; }
  .feat-visual { justify-content: center !important; max-width: 520px; width: 100%; margin: 0 auto; }
  .feat-visual .phone { margin-right: 22%; }
  .feat-row.flip .feat-visual .phone { margin-right: 0; margin-left: 22%; }
}
@media (max-width: 600px) {
  .feat-row { padding: 64px 16px; }
  .feat-visual { padding: 28px 20px; }
  .feat-visual .phone { width: 210px; }
  .feat-float { width: 64%; right: 16px; }
  .feat-row.flip .feat-float { left: 16px; }
  .feat-float.at-top { top: 72px; }
  .feat-float.at-bottom { bottom: 28px; }
}

/* ---------- legal pages (terms, privacy) ---------- */
.legal-hero { max-width: 1200px; margin: 0 auto; padding: 80px 24px 56px; display: flex; flex-direction: column; gap: 20px; }
.legal-hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.legal-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--body); max-width: 640px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.legal-meta span { background: #FFFFFF; padding: 7px 12px; border-radius: 999px; }
.legal-switch { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 4px; background: #FFFFFF; padding: 5px; border-radius: 12px; margin-top: 8px; }
.legal-switch a { color: var(--ink); font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 9px; }
.legal-switch a:hover { background: var(--app-grey); color: var(--ink); }
.legal-switch a[aria-current="page"] { background: var(--ink); color: #FFFFFF; }

.legal-body { max-width: 1200px; margin: 0 auto; padding: 72px 24px 96px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; align-items: start; }
.legal-aside { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
.legal-toc > summary { display: none; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; box-shadow: inset 2px 0 0 var(--line); }
.legal-toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; font-size: 14px; line-height: 1.35; color: var(--muted); box-shadow: inset 2px 0 0 transparent; transition: color .2s, box-shadow .2s; }
.legal-toc a span { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; color: #9A9DA7; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a[aria-current="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 2px 0 0 var(--orange); }
.legal-toc a[aria-current="true"] span { color: var(--orange-text); }

.legal-doc { max-width: 720px; min-width: 0; }
.legal-sec { scroll-margin-top: 24px; padding-bottom: 48px; }
.legal-sec + .legal-sec { padding-top: 48px; box-shadow: inset 0 1px 0 var(--line); }
.legal-sec h2 { margin: 0 0 20px; display: flex; align-items: baseline; gap: 14px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.legal-num { flex: none; font-size: 15px; font-weight: 800; color: var(--orange-text); background: var(--tint); padding: 4px 9px; border-radius: 8px; letter-spacing: 0; position: relative; top: -3px; }
.legal-sec h3 { margin: 32px 0 12px; font-size: 19px; line-height: 1.3; font-weight: 700; scroll-margin-top: 24px; }
.legal-subnum { color: var(--orange-text); margin-right: 4px; }
.legal-sec p { margin: 0 0 16px; font-size: 17px; line-height: 1.75; color: #33363F; }
.legal-list { list-style: none; margin: 4px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-list li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.7; color: #33363F; }
.legal-list li::before { content: ''; position: absolute; left: 4px; top: 0.82em; width: 12px; height: 2.5px; border-radius: 2px; background: var(--orange); }
.legal-defs { list-style: none; margin: 4px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-defs li { background: var(--app-grey); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-defs strong { font-size: 16px; font-weight: 700; color: var(--ink); }
.legal-defs span { font-size: 16px; line-height: 1.7; color: #33363F; }
.legal-top { margin: 8px 0 0 !important; font-size: 15px !important; }
.legal-top a { font-weight: 700; text-decoration: none !important; }

@media (max-width: 960px) {
  .legal-body { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .legal-aside { position: static; max-height: none; overflow: visible; }
  .legal-toc { background: var(--app-grey); border-radius: 14px; }
  .legal-toc > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: 16px 20px; font-size: 16px; font-weight: 700; }
  .legal-toc > summary::-webkit-details-marker { display: none; }
  .legal-toc > summary::after { content: ''; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
  .legal-toc[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .legal-toc nav { padding: 0 20px 18px; }
  .legal-doc { max-width: none; }
}
@media (max-width: 600px) {
  .legal-hero { padding: 56px 16px 40px; }
  .legal-body { padding: 24px 16px 72px; }
  .legal-sec { padding-bottom: 36px; }
  .legal-sec + .legal-sec { padding-top: 36px; }
  .legal-sec p, .legal-list li { font-size: 16px; }
  .legal-defs li { padding: 16px; }
}
@media print {
  .site-header { position: static; box-shadow: none; }
  .site-header, .site-footer, .skip-link, .legal-switch, .legal-aside, .legal-top, main > section:last-child { display: none !important; }
  .legal-body { display: block; padding: 0; }
  .legal-hero { padding: 0 0 16px; }
  .legal-sec { break-inside: auto; }
  .legal-defs li { background: none; padding: 0 0 0 12px; box-shadow: inset 2px 0 0 #999; }
}

/* ---------- delete-account help page ---------- */
.da-hero { max-width: 1200px; margin: 0 auto; padding: 72px 24px 80px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.da-hero-text { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.da-hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.da-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--body); }
.da-warn { display: flex; gap: 16px; align-items: flex-start; background: #FDECEC; border-radius: 16px; padding: 22px 24px; box-shadow: inset 0 0 0 1px #F6C9C5; }
.da-warn p { margin: 0; font-size: 16px; line-height: 1.6; color: #5A3B39; }
.da-warn .da-warn-title { margin-bottom: 6px; font-size: 17px; font-weight: 800; color: #B42318; }
.da-hero-phone .phone { width: 280px; }

.da-wrap { max-width: 1200px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 40px; }
.da-h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.da-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; counter-reset: none; }
.da-steps li { background: var(--app-grey); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.da-num { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.da-steps h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.da-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }

.da-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.da-shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.da-shots .phone { width: 260px; }
.da-shots figcaption { display: flex; gap: 10px; align-items: flex-start; max-width: 280px; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.da-shots figcaption b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #FFFFFF; font-size: 13px; display: flex; align-items: center; justify-content: center; }

.da-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.da-split-text { display: flex; flex-direction: column; gap: 16px; }
.da-split-text p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.da-deleted { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.da-deleted li { display: flex; align-items: center; gap: 14px; background: #FFFFFF; border-radius: 14px; padding: 16px 18px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; font-weight: 500; }
.da-deleted li span { flex: 1; }
.da-deleted .da-x { flex: none; }

@media (max-width: 900px) {
  .da-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 56px 24px 64px; }
  .da-hero-phone { justify-self: center; }
  .da-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .da-shots { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 600px) {
  .da-hero { padding: 48px 16px 56px; }
  .da-wrap { padding: 64px 16px; gap: 28px; }
  .da-hero-phone .phone, .da-shots .phone { width: 240px; }
  .da-warn { padding: 18px; gap: 12px; }
}

/* ---------- blog (PHP-rendered from WordPress: src/static/blog) ---------- */
.blog-eyebrow { font-size: 14px; font-weight: 700; color: var(--orange-text); letter-spacing: 0.08em; text-transform: uppercase; }
.blog-hero { max-width: 1200px; margin: 0 auto; padding: 80px 24px 56px; display: flex; flex-direction: column; gap: 20px; }
.blog-hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.blog-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--body); max-width: 620px; }
.blog-search { display: flex; align-items: center; gap: 10px; max-width: 560px; background: #FFFFFF; border-radius: 14px; padding: 6px 6px 6px 16px; margin-top: 4px; }
.blog-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 0; }
.blog-search input:focus { outline: none; }
.blog-search:focus-within { box-shadow: 0 0 0 3px var(--orange); }
.blog-search button { border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 10px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-cats a { background: #FFFFFF; color: var(--ink); padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.blog-cats a[aria-current="page"] { background: var(--ink); color: #FFFFFF; }

.blog-wrap { max-width: 1200px; margin: 0 auto; padding: 72px 24px 96px; }
.blog-section-title { margin: 0 0 28px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; font-weight: 800; }
.blog-featured { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 80px; }
.blog-featured-img img, .blog-featured-img .blog-card-noimg { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 22px; background: var(--app-grey); }
.blog-featured-body { display: flex; flex-direction: column; gap: 16px; }
.blog-featured h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
.blog-featured-excerpt { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.blog-featured-cta { font-weight: 700; color: var(--orange-text); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 40px 28px; }
.blog-card { position: relative; display: flex; flex-direction: column; gap: 18px; }
.blog-card-img img, .blog-card-noimg { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 18px; background: var(--app-grey); transition: transform .3s ease; }
.blog-card-noimg { background: var(--tint) url(/assets/logo-mark.png) no-repeat center / 40px auto; }
.blog-card-img { border-radius: 18px; overflow: hidden; }
.blog-card:hover .blog-card-img img { transform: scale(1.03); }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; }
.blog-card h2, .blog-card h3 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.blog-card h2 a, .blog-card h3 a, .blog-featured h2 a { color: var(--ink); }
.blog-card h2 a::after, .blog-card h3 a::after, .blog-featured h2 a::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.blog-card:hover h2 a, .blog-card:hover h3 a, .blog-featured:hover h2 a { color: var(--orange-text); }
.blog-card a:focus-visible::after, .blog-featured a:focus-visible::after { outline: 3px solid var(--orange); outline-offset: 4px; }
.blog-card a:focus-visible, .blog-featured a:focus-visible { outline: none; }
.blog-card-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.blog-tag { background: var(--tint); color: var(--orange-text); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.blog-tag-new { background: var(--ink); color: #FFFFFF; }
.blog-card-excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-read { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }

.blog-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 64px; }
.blog-pages a { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--app-grey); color: var(--ink); font-weight: 700; font-size: 15px; }
.blog-pages a:hover { background: #ECEDF0; color: var(--ink); }
.blog-pages a[aria-current="page"] { background: var(--ink); color: #FFFFFF; }
.blog-pages-gap { padding: 0 4px; color: var(--muted); }
.blog-empty { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.blog-empty h2 { margin: 0; font-size: 26px; font-weight: 800; }
.blog-empty p { margin: 0; color: var(--body); font-size: 17px; }
.blog-empty-page { max-width: 760px; margin: 0 auto; padding: 120px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.blog-empty-page h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; font-weight: 800; }
.blog-empty-page p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body); }
.blog-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.blog-btn { display: inline-block; background: var(--ink); color: #FFFFFF !important; padding: 15px 24px; border-radius: 12px; font-weight: 700; font-size: 16px; }
.blog-btn:hover { background: #2C2F3B; }
.blog-btn-alt { background: var(--app-grey); color: var(--ink) !important; }
.blog-btn-alt:hover { background: #ECEDF0; }
.blog-btn-orange { background: var(--orange); color: var(--ink) !important; font-weight: 800; }
.blog-btn-orange:hover { background: #FFAE5E; }

.blog-cta { background: #15171F; color: #FFFFFF; }
.blog-cta-in { max-width: 1200px; margin: 0 auto; padding: 80px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.blog-cta h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; font-weight: 800; }
.blog-cta p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-dark); max-width: 520px; }
.blog-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.blog-cta .blog-btn:not(.blog-btn-orange) { background: #262935; }

/* single article */
.post-head { max-width: 860px; margin: 0 auto; padding: 64px 24px 32px; display: flex; flex-direction: column; gap: 18px; }
.post-crumbs { display: flex; gap: 10px; font-size: 14px; font-weight: 700; }
.post-crumbs span { color: #9A9DA7; }
.post-head h1 { margin: 0; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.post-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.post-cover { max-width: 1108px; margin: 0 auto; padding: 0 24px; }
/* WordPress covers are 16:9 graphics with text on them: shown whole, never cropped. */
.post-cover img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--app-grey); }
.post-layout { max-width: 768px; margin: 0 auto; padding: 48px 24px 88px; }
.post-toc { background: var(--app-grey); border-radius: 16px; margin-bottom: 40px; }
.post-toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-weight: 800; font-size: 16px; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary::after { content: ''; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
.post-toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.post-toc ol { margin: 0; padding: 0 22px 20px 44px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; }
.post-toc a { color: var(--ink); }
.post-toc a:hover { color: var(--orange-text); }

.post-body { font-size: 18px; line-height: 1.75; color: #33363F; overflow-wrap: break-word; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 22px; }
.post-body h2 { margin: 52px 0 16px; font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); scroll-margin-top: calc(var(--nav-h) + 20px); }
.post-body h3 { margin: 40px 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; color: var(--ink); }
.post-body h4 { margin: 32px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--orange-hover); }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 26px; }
.post-body li { margin: 6px 0; }
.post-body blockquote { margin: 32px 0; padding: 4px 0 4px 22px; box-shadow: inset 3px 0 0 var(--orange); font-size: 20px; color: var(--ink); }
.post-body figure { margin: 36px 0; }
.post-body img { display: block; max-width: 100%; width: auto; height: auto; max-height: 640px; border-radius: 16px; margin: 0 auto; } /* tall app screenshots stay readable */
.post-body figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.post-body .wp-block-gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; }
.post-body .wp-block-gallery figure { margin: 0; flex: 0 1 auto; }
.post-body .wp-block-gallery img { max-height: 520px; } /* galleries are app screenshots: shown whole, never cropped */
.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: 10px 12px; text-align: left; box-shadow: inset 0 -1px 0 var(--line); }
.post-body pre { background: var(--ink); color: #FFFFFF; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.post-body hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }

.post-share { margin-top: 48px; padding-top: 28px; box-shadow: inset 0 1px 0 var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.post-share > span { font-weight: 800; font-size: 16px; }
.post-share > div { display: flex; flex-wrap: wrap; gap: 8px; }
.post-share a, .post-share button { height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--app-grey); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
.post-share a:hover, .post-share button:hover { background: #ECEDF0; color: var(--ink); }

@media (max-width: 900px) {
  .blog-featured { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 64px; }
}
@media (max-width: 600px) {
  .blog-hero { padding: 56px 16px 40px; }
  .blog-wrap { padding: 48px 16px 72px; }
  .blog-search button { padding: 12px 14px; }
  .post-head { padding: 40px 16px 24px; }
  .post-cover { padding: 0 16px; }
  .post-cover img { border-radius: 18px; }
  .post-layout { padding: 32px 16px 64px; }
  .post-body { font-size: 17px; }
  .blog-cta-in { padding: 64px 16px; }
}

/* ---------- feature deck (home "Everything in one app") ----------
   12 sticky cards that pile up while scrolling, under a sticky progress bar. site.js finds the top card,
   scales/dims the ones beneath it and updates the bar. Section-scoped tokens (the rest of the site is
   light-only): page roles for the bar and illustrations, plus four cycled card surfaces. */
.fd {
  --bg: #FFFFFF; --fg: var(--ink); --muted: #5B5F6B; --line: #ECEDF0;
  --accent: var(--orange-text); --accent-soft: var(--tint); --card: #FFFFFF; --tile: var(--peach); --ok: var(--success);
  --k1: var(--ink); --k1fg: #FFFFFF; --k1mu: var(--on-dark); --k1t: rgba(255,255,255,.1);
  --k2: var(--orange); --k2fg: var(--ink); --k2mu: #2A1A08; --k2t: rgba(21,23,31,.1);
  --k3: var(--tint); --k3fg: var(--ink); --k3mu: var(--body); --k3t: rgba(180,83,9,.14);
  --k4: var(--sand); --k4fg: var(--ink); --k4mu: var(--body); --k4t: rgba(180,83,9,.12);
  background: var(--bg); color: var(--fg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fd {
    --bg: #121317; --fg: #F2EFEC; --muted: #A6A3A0; --line: #2A2B31;
    --accent: #E9874A; --accent-soft: #3A2518; --card: #1B1C21; --tile: #1F1814; --ok: #5CC28A;
    --k1: #0B0B0D; --k1fg: #F7EFE8; --k1mu: #A99A8D; --k1t: rgba(255,255,255,.1);
    --k2: #9A4614; --k2fg: #FFFFFF; --k2mu: #F6D2BA; --k2t: rgba(255,255,255,.18);
    --k3: #2C1F16; --k3fg: #FBE6D6; --k3mu: #C9A98F; --k3t: rgba(233,135,74,.16);
    --k4: #1C1D22; --k4fg: #F2EFEC; --k4mu: #A6A3A0; --k4t: rgba(233,135,74,.14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .fd {
    --bg: #121317; --fg: #F2EFEC; --muted: #A6A3A0; --line: #2A2B31;
    --accent: #E9874A; --accent-soft: #3A2518; --card: #1B1C21; --tile: #1F1814; --ok: #5CC28A;
    --k1: #0B0B0D; --k1fg: #F7EFE8; --k1mu: #A99A8D; --k1t: rgba(255,255,255,.1);
    --k2: #9A4614; --k2fg: #FFFFFF; --k2mu: #F6D2BA; --k2t: rgba(255,255,255,.18);
    --k3: #2C1F16; --k3fg: #FBE6D6; --k3mu: #C9A98F; --k3t: rgba(233,135,74,.16);
    --k4: #1C1D22; --k4fg: #F2EFEC; --k4mu: #A6A3A0; --k4t: rgba(233,135,74,.14);
    color-scheme: dark;
}

.fd-wrap { max-width: 1200px; margin: 0 auto; padding: 72px 24px 0; }
.fd-intro { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.fd-intro > span { color: var(--accent) !important; }
.fd-intro h2 { margin: 0; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; max-width: 16ch; text-wrap: balance; }

.fd-bar { position: sticky; top: var(--nav-h); z-index: 40; background: var(--bg); display: flex; align-items: center; gap: 16px; padding-block: 18px; }
.fd-count { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fd-now { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-ticks { display: flex; gap: 4px; }
.fd-ticks i { width: 14px; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.fd-ticks i.on { background: var(--accent); }
.fd .fd-see { color: var(--accent); font-size: 15px; font-weight: 700; white-space: nowrap; }
.fd .fd-see:hover { text-decoration: underline; }

.fd-deck {
  /* card height; also reserves room for the stack offset so the last card still fits once it lands */
  --h: min(560px, calc(100svh - 96px - var(--nav-h) - (var(--n) - 1) * 9px)); display: flex; flex-direction: column; gap: 22vh; }
/* Empty last flex item: sticky cards can't use the deck's padding, so this gives card 12 room to land and hold. */
.fd-deck::after { content: ''; flex: none; height: 0; }
.fd-card {
  position: sticky; top: calc(var(--nav-h) + 72px + var(--i) * 9px); height: var(--h);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 4vw, 56px); border-radius: 32px; overflow: hidden;
  background: var(--kb); color: var(--kf); box-shadow: 0 -10px 30px -18px rgba(0,0,0,.35);
  transform-origin: 50% 0; transform: scale(var(--sc, 1)); transition: transform .3s ease;
}
.fd-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: var(--dim, 0); pointer-events: none; transition: opacity .2s; }
.fd-k1 { --kb: var(--k1); --kf: var(--k1fg); --km: var(--k1mu); --kt: var(--k1t); }
.fd-k2 { --kb: var(--k2); --kf: var(--k2fg); --km: var(--k2mu); --kt: var(--k2t); }
.fd-k3 { --kb: var(--k3); --kf: var(--k3fg); --km: var(--k3mu); --kt: var(--k3t); }
.fd-k4 { --kb: var(--k4); --kf: var(--k4fg); --km: var(--k4mu); --kt: var(--k4t); }

.fd-txt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fd-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--kt); color: currentColor; display: flex; align-items: center; justify-content: center; }
.fd-tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--kt); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fd-card h3 { margin: 0; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.fd-card p { margin: 0; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.55; color: var(--km); max-width: 36ch; }

.fd-pic { height: 100%; min-height: 0; background: var(--tile); border-radius: 22px; display: grid; place-items: center; overflow: hidden; }
.fd-pic svg { display: block; width: 100%; height: 100%; max-height: 100%; }

/* illustration roles */
.fd-pic text { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.fd-pic .c { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.fd-pic .a { fill: var(--accent); }
.fd-pic .s { fill: var(--accent-soft); }
.fd-pic .l { fill: var(--line); }
.fd-pic .ok { fill: var(--ok); }
.fd-pic .as { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fd-pic .ls { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.fd-pic .t { fill: var(--fg); font-weight: 700; }
.fd-pic .m { fill: var(--muted); font-weight: 500; }
.fd-pic .w { fill: var(--card); font-weight: 700; }
.fd-pic .pop { transform-box: fill-box; transform-origin: center; }
.fd-card.in .pop { animation: fd-pop .6s cubic-bezier(.3,1.6,.5,1) .15s both; }
@keyframes fd-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* Short desktop screens (e.g. 1280×650 laptops): tighter cards so the text still fits under the pinned header. */
@media (min-width: 861px) and (max-height: 760px) {
  .fd-card { padding: 28px 36px; gap: 32px; }
  .fd-icon { display: none; }
  .fd-txt { gap: 12px; }
  .fd-card h3 { font-size: clamp(26px, 5.4vh, 40px); }
  .fd-card p { font-size: 16px; line-height: 1.5; }
}
@media (max-width: 860px) {
  .fd-wrap { padding-inline: 16px; }
  .fd-deck { --h: calc(100svh - 120px - var(--nav-h) - (var(--n) - 1) * 6px); gap: 18vh; }
  .fd-card {
    top: calc(var(--nav-h) + 62px + var(--i) * 6px);
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: stretch;
    gap: 18px; padding: 18px; border-radius: 24px;
  }
  .fd-pic { order: -1; }
  .fd-icon, .fd-ticks, .fd .fd-see { display: none; }
  .fd-bar { padding-block: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-card { transform: none !important; transition: none; }
  .fd-card.in .pop { animation: none; }
}


/* ---------- small screens ---------- */
@media (max-width: 600px) {
  .hero-art { zoom: 0.6; max-width: none !important; }
  .partner-strip { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px !important; }
  .partner-strip img { max-width: 100%; }
  .card-pad { padding: 28px 22px !important; }
  .phone-stage { padding: 32px 20px 140px !important; }
  .dl-side { display: none; }
  .dl-phones { height: 440px !important; }
  .kb-calc { padding: 24px 20px !important; }
  .about-card { min-height: 460px !important; padding: 28px !important; }
  .about-card .about-circle { width: 300px !important; height: 300px !important; right: -90px !important; top: -70px !important; }
  .about-card .about-wallet { right: 20px !important; top: 28px !important; max-width: 70% !important; }
  .about-card .about-notif { right: 40px !important; top: 170px !important; max-width: 72% !important; }
}
@media (max-width: 400px) {
  .hero-art { zoom: 0.55; }
}
