/* ==========================================================================
   Flukko website — common styles (every page)
   Tokens · base · layout · buttons · header · footer · shared sections
   Page-only sections live in their own file (e.g. home.css).
   ========================================================================== */

/* ---------- Fonts (Inter, self-hosted, variable weight) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-var.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+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-ext-var.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;
}

/* ---------- Design tokens ---------- */
:root {
  --brand: #016bfc;
  --brand-600: #0058d6;
  --brand-700: #0047ad;
  --brand-50: #eef5ff;
  --brand-100: #dbe9ff;
  --ink: #0a1830;
  --ink-2: #1c2b45;
  --text: #33445e;
  --muted: #64748b;
  --line: #e3e9f2;
  --line-2: #edf1f7;
  --bg: #ffffff;
  --bg-soft: #f6f9fd;
  --bg-dark: #0a1830;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --wa-bubble: #dcf8c6;
  --amber: #f59e0b;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(10, 24, 48, 0.06);
  --shadow: 0 4px 12px -2px rgba(10, 24, 48, 0.08), 0 2px 4px -2px rgba(10, 24, 48, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(10, 24, 48, 0.18), 0 8px 16px -8px rgba(10, 24, 48, 0.08);
  --shadow-brand: 0 10px 24px -8px rgba(1, 107, 252, 0.55);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
p { margin: 0; }
ul,
ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(1, 107, 252, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--brand-100); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 112px; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: 72px; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head--left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.text-gradient {
  background: linear-gradient(100deg, var(--brand) 10%, #3d8bff 55%, #00b2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { color: var(--ink); border-color: #c9d4e3; background: var(--bg-soft); }

.btn--text { height: auto; padding: 0; color: var(--ink); }
.btn--text:hover { color: var(--brand); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--brand-50); color: var(--ink); transform: translateY(-1px); }

.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--outline-light:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }

.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(10, 24, 48, 0.35); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 118px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-actions .login { font-size: 15px; font-weight: 600; color: var(--ink); padding: 8px 10px; }
.header-actions .login:hover { color: var(--brand); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.mobile-nav {
  /* Positioned from the header: its backdrop-filter makes it the containing block, so "fixed" would
     shrink the menu to the header's height. Full screen height below the header instead. */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--gutter) 32px;
  background: #fff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a:not(.btn) {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-2);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav .btn { margin-top: 16px; height: 52px; }
.nav-open { overflow: hidden; }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.pill__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- Icon tile ---------- */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--green { background: #e8f9ef; color: var(--wa-dark); }
.icon-tile--amber { background: #fff4e0; color: #c27500; }
.icon-tile--violet { background: #f1edff; color: #6a4cf0; }
.icon-tile--rose { background: #ffecef; color: #e0435e; }
.icon-tile--cyan { background: #e4f8fc; color: #0891b2; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.card:hover { border-color: #cfdbec; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card h3 { margin-top: 20px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Check list ---------- */
.check-list { display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23016bfc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Tabs (data-tabs) ---------- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 48px;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.tabs__tab svg { width: 18px; height: 18px; }
.tabs__tab:hover { color: var(--ink); background: var(--bg-soft); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-entering { animation: panel-in 0.45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Browser frame (product screenshots) ---------- */
.frame {
  overflow: hidden;
  border: 1px solid rgba(10, 24, 48, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-2);
  background: #f8fafc;
}
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: #dfe5ee; }
.frame__url {
  flex: 1;
  max-width: 320px;
  height: 22px;
  margin-inline: auto;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 22px;
  text-align: center;
}
.frame img { width: 100%; }

/* Keep emails and URLs exactly as written inside capitalized text */
.no-cap { text-transform: none; }

/* ---------- Title Case: every title and subtitle capitalizes each word ---------- */
h1, h2, h3, h4,
.hero__lead,
.hero__trust li,
.plans__foot li,
.page-hero__lead,
.section-head p,
.cta-band h2 + p,
.faq summary,
.tabs__tab,
.btn,
.nav a,
.mobile-nav a,
.header-actions .login,
.footer-col a,
.pill,
.value-item strong,
.sync-row strong,
.split-bill strong,
.charge-row strong,
.charge-tag,
.trial-strip strong,
.step__time,
.breadcrumb li,
.plan__badge,
.segmented button,
.field__label,
.link-arrow:not([href^="mailto:"]),
.choice span,
.toc a,
.toc summary,
.legal-summary li strong,
.legal-meta span,
.form-success h3 + p { text-transform: capitalize; }

/* ---------- FAQ (details/summary) ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: #cfdbec; box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1830' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brand-50); }
.faq summary { transition: color 0.2s; }
.faq summary:hover { color: var(--brand); }
.faq .faq__body { overflow: hidden; padding: 0 24px 22px; color: var(--muted); }
.faq .faq__body p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 64px;
  border-radius: var(--radius-xl);
  background: var(--bg-dark);
  color: #c6d2e4;
  text-align: center;
  isolation: isolate;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
}
.cta-band::before { width: 520px; height: 520px; right: -140px; top: -260px; background: rgba(1, 107, 252, 0.55); }
.cta-band::after { width: 380px; height: 380px; left: -120px; bottom: -240px; background: rgba(37, 211, 102, 0.25); }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 600px; margin: 18px auto 0; font-size: 18px; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.cta-band__note { margin-top: 20px !important; font-size: 14px !important; color: #8fa1bb; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 80px 0 32px;
  background: var(--bg-dark);
  color: #9fb0c8;
  font-size: 15px;
}
.site-footer a { color: #c6d2e4; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
}
.footer-brand img { width: 128px; }
.footer-brand p { max-width: 320px; margin-top: 20px; line-height: 1.7; }
.footer-contact { display: grid; gap: 10px; margin-top: 24px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; color: #6f86a6; }

.footer-col__title {
  margin-bottom: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-col ul { display: grid; gap: 12px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.6;
  color: #7f92ad;
}
.footer-bottom__copy { display: flex; flex-wrap: wrap; gap: 4px 16px; text-transform: capitalize; }
.footer-bottom__copy a { color: #c6d2e4; font-weight: 600; }
.footer-bottom__copy a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field__label { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.field__label .req { color: #e0435e; margin-left: 2px; }
.field__label .opt { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 4px; }
.input,
.textarea {
  width: 100%;
  border: 1px solid #d5deea;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input { height: 50px; padding: 0 16px; }
.textarea { min-height: 150px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.input::placeholder,
.textarea::placeholder { color: #98a6b8; }
.input:hover,
.textarea:hover { border-color: #b9c6d8; }
.input:focus,
.textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(1, 107, 252, 0.14); }
.field.has-error .input,
.field.has-error .textarea { border-color: #e0435e; box-shadow: 0 0 0 4px rgba(224, 67, 94, 0.1); }
.field__error { display: none; color: #d0334f; font-size: 13.5px; font-weight: 500; }
.field.has-error .field__error { display: block; }
.field__hint { color: var(--muted); font-size: 13px; }

/* Choice pills (radio group, no native look) */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.choice span:hover { border-color: #b9c6d8; color: var(--ink); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(1, 107, 252, 0.18); }
.field.has-error .choice span { border-color: #f0a3b0; }

.form__foot { display: grid; justify-items: start; gap: 18px; }
.form__note { color: var(--muted); font-size: 13.5px; }
.form__alert {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #fff1f3;
  color: #b4243e;
  font-size: 14px;
  font-weight: 500;
}
.form__alert.is-shown { display: block; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }

/* ---------- Legal pages (Privacy, Terms, Refund, Shipping, Data Deletion) ---------- */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}
.legal-meta svg { width: 16px; height: 16px; color: var(--brand); }

.legal { padding: 8px 0 96px; }
.legal__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* Contents */
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc summary {
  display: none;
  list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc__title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol { display: grid; gap: 2px; border-left: 2px solid var(--line); counter-reset: toc; }
.toc a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-color: var(--brand); color: var(--brand); font-weight: 600; }

/* Readable legal text */
.prose { max-width: 760px; color: var(--text); font-size: 16.5px; line-height: 1.75; }
.prose > section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line-2); }
.prose h2 { font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -0.015em; }
.prose h2 .num { color: var(--brand); margin-right: 6px; }
.prose h3 { margin-top: 28px; font-size: 18px; }
.prose p { margin-top: 14px; }
.prose ul { margin-top: 14px; padding-left: 4px; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-color: rgba(1, 107, 252, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }

.prose .table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-size: 13.5px; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.prose tr + tr td { border-top: 1px solid var(--line-2); }
.prose td:first-child { color: var(--ink); font-weight: 600; }

.legal-summary {
  margin-bottom: 48px;
  padding: 28px 32px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-50), #f4fbf7);
}
.legal-summary h2 { font-size: 20px; }
.prose .legal-summary ul { margin-top: 16px; padding-left: 0; display: grid; gap: 12px; }
.prose .legal-summary li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.6; }
.prose .legal-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23016bfc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.legal-summary li strong { display: block; color: var(--ink); }

.prose .step-list { margin-top: 16px; display: grid; gap: 12px; counter-reset: step; }
.prose .step-list li {
  position: relative;
  padding: 14px 18px 14px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: step;
}
.prose .step-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}
.prose .btn { margin-top: 20px; text-decoration: none; }
.prose .btn--primary,
.prose .btn--primary:hover { color: #fff; }
.path { color: var(--ink); font-weight: 600; }

.prose .related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.prose .related h2 { font-size: 20px; }
.prose .related ul { margin-top: 18px; padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .related li { padding-left: 0; }
.prose .related li::before { display: none; }
.prose .related li a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.prose .related li a:hover { border-color: #cfdbec; box-shadow: var(--shadow); transform: translateY(-2px); }
.prose .related li a strong { display: block; color: var(--ink); font-size: 15.5px; text-transform: capitalize; }
.prose .related li a span { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.prose .related > p { font-size: 15px; color: var(--muted); }

.callout {
  margin-top: 18px;
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
  font-size: 15.5px;
}
.callout p:first-child { margin-top: 0; }

/* ---------- Breadcrumb (inner pages) ---------- */
.breadcrumb { margin-bottom: 18px; }
.breadcrumb ol { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 13.5px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.6px solid #9aa8bb;
  border-right: 1.6px solid #9aa8bb;
  transform: rotate(45deg);
  margin-right: 4px;
}
.breadcrumb a { color: var(--text); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Text link at the end of a card */
.card__link { margin-top: 16px; font-size: 15px; }

/* ---------- WhatsApp chat widget (every page) ---------- */
.wa-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.wa-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(18, 140, 75, 0.55), 0 4px 10px rgba(10, 24, 48, 0.12);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.wa-fab:hover { background: #1ebe5b; transform: translateY(-2px) scale(1.04); }
.wa-fab svg { width: 32px; height: 32px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.wa-fab .wa-fab__close { position: absolute; width: 26px; height: 26px; opacity: 0; transform: rotate(-90deg); }
.wa-widget.is-open .wa-fab__logo { opacity: 0; transform: rotate(90deg); }
.wa-widget.is-open .wa-fab__close { opacity: 1; transform: none; }
.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: wa-ping 2.4s var(--ease) infinite;
}
.wa-widget.is-open .wa-fab::before { display: none; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

.wa-panel {
  width: 360px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px -12px rgba(10, 24, 48, 0.35), 0 8px 20px -8px rgba(10, 24, 48, 0.2);
  transform-origin: bottom right;
  animation: wa-in 0.3s var(--ease);
}
.wa-panel[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }

.wa-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: #008069;
  color: #fff;
}
.wa-panel__avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--brand); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.wa-panel__avatar img { width: 100%; height: 100%; }
.wa-panel__title { color: #fff; font-size: 16px; font-weight: 600; line-height: 1.25; }
.wa-panel__status { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: #d9fdd3; font-size: 12.5px; }
.wa-panel__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5ff28e; }
.wa-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.wa-panel__close:hover { background: rgba(255, 255, 255, 0.14); }
.wa-panel__close svg { width: 20px; height: 20px; }

.wa-panel__body {
  min-height: 150px;
  padding: 18px 16px 20px;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-panel__date {
  display: table;
  margin: 0 auto 14px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff;
  color: #54656f;
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.wa-bubble {
  position: relative;
  max-width: 88%;
  margin-left: 8px;
  padding: 8px 12px 20px;
  border-radius: 0 10px 10px 10px;
  background: #fff;
  color: #111b21;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.wa-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 10px solid #fff;
  border-left: 8px solid transparent;
}
.wa-bubble__name { display: block; margin-bottom: 2px; color: #008069; font-size: 13px; font-weight: 600; }
.wa-bubble__time { position: absolute; right: 10px; bottom: 4px; color: #667781; font-size: 11px; }

.wa-panel__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 10px 8px;
  background: #f0f2f5;
}
.wa-panel__form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 14px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: #111b21;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.45;
  resize: none;
}
.wa-panel__form textarea:focus { outline: 2px solid rgba(0, 128, 105, 0.35); outline-offset: 0; }
.wa-send {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.wa-send:hover { background: #008069; transform: scale(1.05); }
.wa-send:disabled { background: #b4bcc2; transform: none; cursor: not-allowed; }
.wa-send svg { width: 20px; height: 20px; margin-left: 2px; }
.wa-panel__note { padding: 0 14px 10px; background: #f0f2f5; color: #667781; font-size: 11.5px; text-align: center; }

.nav-open .wa-widget { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
  text-align: center;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(1, 107, 252, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.page-hero h1 {
  max-width: 860px;
  margin-inline: auto;
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.page-hero__lead {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
}

/* ---------- Segmented control ---------- */
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.segmented button:hover { color: var(--ink); background: var(--bg-soft); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.segmented__save {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f9ef;
  color: var(--wa-dark);
  font-size: 11.5px;
  font-weight: 700;
}
.segmented button[aria-pressed="true"] .segmented__save { background: rgba(37, 211, 102, 0.22); color: #8ff0b5; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .section { padding-block: 80px; }
  .legal__grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
  .toc summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; color: var(--ink); font-weight: 600; cursor: pointer;
  }
  .toc summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
  .toc[open] summary::after { content: "2"; }
  .toc__title { display: none; }
  .toc ol { margin: 0 18px 14px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { padding: 56px 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 16.5px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .pill { font-size: 13px; text-align: left; }
  .tabs__list { border-radius: var(--radius); justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__tab { flex: none; padding: 9px 14px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .cta-band__actions .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .wa-widget { right: 16px; bottom: 16px; }
  .wa-fab { width: 56px; height: 56px; }
  .legal { padding-bottom: 64px; }
  .prose { font-size: 16px; }
  .prose .related ul { grid-template-columns: 1fr; }
  .prose > section + section { margin-top: 36px; padding-top: 36px; }
  .legal-summary { padding: 22px 20px; }
  .form__foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
