/* ==========================================================================
   PolicyAdvisor.in — main.css (site-wide)
   Google-style visual language: white surfaces, Google blue, pill buttons,
   large rounded cards, Google Sans–style type.

   Contents
   01. Design tokens
   02. Reset and base
   03. Typography
   04. Layout: container, sections, grids, stack
   05. Buttons
   06. Forms: fields, select, checkbox, validation, alerts
   07. Hero search bar (pill search)
   08. Chips, badges, tags
   09. Cards: product, feature, advisor, review, article, stat
   10. Icons and icon circles
   11. Header and main navigation
   12. Dropdown (mega menu)
   13. Page hero and breadcrumb
   14. Home sections: trust strip, steps, tool promo, insurers
   15. Accordion / FAQ
   16. Tables
   17. Prose (legal pages, articles) and table of contents
   18. Contact blocks
   19. CTA band and footer
   20. Mobile bottom bar
   21. Utilities
   22. Motion, print
   ========================================================================== */

/* 00. Fonts (self-hosted in /fonts/, weights 400 to 600) -------------------
   Two files from Google Fonts: Latin, and Latin Extended, which holds the rupee
   sign. The browser downloads the second one only on pages that use those characters. */
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../../fonts/google-sans-flex-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: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../../fonts/google-sans-flex-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;
}

/* 01. Design tokens ------------------------------------------------------- */
:root {
  /* Brand — Google blue family */
  --blue-50:  #e8f0fe;
  --blue-100: #d3e3fd;
  --blue-200: #a8c7fa;
  --blue-300: #7cacf8;
  --blue-500: #1a73e8;
  --blue-600: #0b57d0;
  --blue-700: #0842a0;
  --blue-900: #041e49;

  /* Supporting accents (used sparingly, Google palette) */
  --green-100: #c4eed0;  --green-600: #146c2e;  --green-900: #072711;
  --yellow-100:#ffdfa0;  --yellow-600:#7c5800;  --yellow-900:#3f2e00;
  --red-100:   #f9dedc;  --red-600:   #b3261e;  --red-900:   #410e0b;

  /* Neutrals */
  --grey-0:   #ffffff;
  --grey-25:  #f8fafd;
  --grey-50:  #f0f4f9;
  --grey-100: #e9eef6;
  --grey-200: #e3e3e3;
  --grey-300: #c4c7c5;
  --grey-500: #747775;
  --grey-700: #444746;
  --grey-900: #1f1f1f;

  /* Roles */
  --color-primary:       var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-primary-soft:  var(--blue-50);
  --color-on-primary:    #ffffff;
  --color-text:          var(--grey-900);
  --color-text-muted:    var(--grey-700);
  --color-text-subtle:   var(--grey-500);
  --color-border:        var(--grey-200);
  --color-border-strong: var(--grey-300);
  --color-bg:            var(--grey-0);
  --color-bg-alt:        var(--grey-25);
  --color-surface:       var(--grey-50);
  --color-success:       var(--green-600);
  --color-warning:       var(--yellow-600);
  --color-danger:        var(--red-600);
  --color-focus:         var(--blue-500);

  /* Type */
  --font-sans: "Google Sans Flex", "Google Sans", "Product Sans", Roboto, "Segoe UI", Arial, sans-serif;
  --font-body: "Google Sans Flex", "Google Sans", Roboto, "Segoe UI", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xs:   0.75rem;   /* 12 */
  --fs-sm:   0.875rem;  /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md:   1.125rem;  /* 18 */
  --fs-lg:   1.375rem;  /* 22 */
  --fs-xl:   1.75rem;   /* 28 */
  --fs-2xl:  clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);   /* 28 → 36 */
  --fs-3xl:  clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem);   /* 34 → 56 */

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    600;

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.6;

  /* Spacing (4px scale) */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  --section-y: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Elevation (Google-style soft shadows) */
  --shadow-1: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --shadow-2: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
  --shadow-3: 0 4px 8px 3px rgba(60,64,67,.15), 0 1px 3px rgba(60,64,67,.3);

  /* Layout */
  --container: 1200px;
  --container-narrow: 800px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --header-h: 68px;
  --mobile-bar-h: 64px;

  /* Motion */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;

  --z-header: 100;
  --z-dropdown: 110;
  --z-mobile-bar: 90;
}

/* 02. Reset and base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--sp-8) 0; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 999;
  background: var(--color-primary); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-pill);
}
.skip-link:focus { top: var(--sp-3); }

/* 03. Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin: 0 0 var(--sp-3);
  letter-spacing: -0.01em;
}
h1, .h1 { font-size: var(--fs-3xl); letter-spacing: -0.025em; }
h2, .h2 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
h3, .h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
h4, .h4 { font-size: var(--fs-md); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
h5, .h5 { font-size: var(--fs-base); font-weight: var(--fw-medium); }
h6, .h6 { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
p { margin: 0 0 var(--sp-4); }
small, .text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-md { font-size: var(--fs-md); }
.lead { font-size: var(--fs-md); color: var(--color-text-muted); line-height: var(--lh-body); }
.eyebrow {
  display: inline-block; font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--color-primary); margin-bottom: var(--sp-3); letter-spacing: 0.01em;
}
.text-muted { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.fw-medium { font-weight: var(--fw-medium); }
strong, b { font-weight: var(--fw-medium); }
.nowrap { white-space: nowrap; }

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

.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-bg-alt); }
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 680px; margin-bottom: var(--sp-10); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--color-text-muted); font-size: var(--fs-md); margin: 0; }
.section-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; max-width: none; }

.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--gap-lg { gap: var(--sp-6); }
.grid--gap-xl { gap: var(--sp-10); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.split--60-40 { grid-template-columns: 3fr 2fr; }
.split--40-60 { grid-template-columns: 2fr 3fr; }
.split--top { align-items: start; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-8); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.cluster--center { justify-content: center; }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--60-40, .split--40-60 { grid-template-columns: 1fr; gap: var(--sp-8); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 05. Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--color-primary); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-6);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-medium); letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn .ti { font-size: 1.15em; }
.btn--primary { --btn-bg: var(--color-primary); --btn-fg: var(--color-on-primary); }
.btn--primary:hover { --btn-bg: var(--color-primary-hover); box-shadow: var(--shadow-1); }
.btn--outline { --btn-border: var(--color-border-strong); --btn-bg: #fff; }
.btn--outline:hover { --btn-bg: var(--color-primary-soft); --btn-border: var(--blue-200); }
.btn--tonal { --btn-bg: var(--blue-100); --btn-fg: var(--blue-900); }
.btn--tonal:hover { box-shadow: var(--shadow-1); }
.btn--text { padding-inline: var(--sp-3); }
.btn--text:hover { --btn-bg: var(--color-primary-soft); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--color-primary); }
.btn--white:hover { --btn-bg: var(--blue-50); }
.btn--ghost-white { --btn-fg: #fff; --btn-border: rgba(255,255,255,.7); }
.btn--ghost-white:hover { --btn-bg: rgba(255,255,255,.12); }
.btn--sm { min-height: 36px; padding-inline: var(--sp-4); }
.btn--lg { min-height: 52px; padding-inline: var(--sp-8); font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: var(--fw-medium); color: var(--color-primary); }
.link-arrow .ti { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .ti { transform: translateX(3px); }

/* 06. Forms --------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: var(--sp-2); }
.field__label { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--color-text); }
.field__label .optional { font-weight: var(--fw-regular); color: var(--color-text-subtle); }
.field__hint { font-size: var(--fs-xs); color: var(--color-text-subtle); }
.field__error { font-size: var(--fs-xs); color: var(--color-danger); display: flex; gap: var(--sp-1); align-items: center; }

.input, .select, .textarea,
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; min-height: 52px; padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-base); color: var(--color-text); background: #fff;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
}
.field select, .select {
  padding-right: var(--sp-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23444746' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea, .textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey-700); }
.field input:focus, .field select:focus, .field textarea:focus,
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-color: var(--color-danger); box-shadow: inset 0 0 0 1px var(--color-danger);
}
.input-group { display: flex; align-items: stretch; }
.input-group__addon {
  display: flex; align-items: center; padding: 0 var(--sp-3); background: var(--color-surface);
  border: 1px solid var(--color-border-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--color-text-muted); font-size: var(--fs-sm);
}
.input-group input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

.check { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--color-text-muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-primary); flex: none; }
.radio-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.radio-pills input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pills label {
  padding: var(--sp-2) var(--sp-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill);
  font-size: var(--fs-sm); cursor: pointer; transition: all var(--dur-fast);
}
.radio-pills input:checked + label { background: var(--blue-100); border-color: var(--blue-100); color: var(--blue-900); }
.radio-pills input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

.alert { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-md); font-size: var(--fs-sm); }
.alert .ti { font-size: 1.25rem; flex: none; }
.alert--success { background: var(--green-100); color: var(--green-900); }
.alert--error   { background: var(--red-100);   color: var(--red-900); }
.alert--info    { background: var(--blue-50);   color: var(--blue-900); }
.alert--warning { background: var(--yellow-100); color: var(--yellow-900); }
.alert p:last-child { margin: 0; }

/* 07. Hero search bar ----------------------------------------------------- */
.hero { padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem); text-align: center; }
.hero__title { max-width: 820px; margin: 0 auto var(--sp-4); }
.hero__lead { max-width: 560px; margin: 0 auto var(--sp-8); font-size: var(--fs-md); color: var(--color-text-muted); }

.search-bar {
  display: flex; align-items: center; max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill);
  padding: 6px 6px 6px var(--sp-6); text-align: left;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.search-bar:hover, .search-bar:focus-within { box-shadow: var(--shadow-2); border-color: transparent; }
.search-bar__field { flex: 1; min-width: 0; padding: var(--sp-1) var(--sp-4) var(--sp-1) 0; position: relative; }
.search-bar__field + .search-bar__field { padding-left: var(--sp-4); border-left: 1px solid var(--color-border); }
.search-bar__field--product { flex: 1.25; }
.search-bar__label { display: block; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-text-muted); margin-bottom: 2px; }
.search-bar select, .search-bar input {
  width: 100%; border: 0; background: transparent; padding: 0; min-height: 28px;
  font-size: var(--fs-base); color: var(--color-text); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23444746' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; padding-right: 24px;
}
.search-bar input { background-image: none; cursor: text; padding-right: 0; }
.search-bar select:focus, .search-bar input:focus { outline: none; }
.search-bar__submit { min-height: 56px; padding-inline: var(--sp-6); font-size: var(--fs-base); flex: none; }
.search-bar__error { min-height: 22px; margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--color-danger); }
.search-bar.is-invalid { border-color: var(--color-danger); }

.hero__chips { margin-top: var(--sp-2); margin-bottom:20px;justify-content: center; }
.hero__trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-8);
  margin-top: var(--sp-8); font-size: var(--fs-sm); color: var(--color-text-muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero__trust .ti { color: var(--color-primary); font-size: 1.15rem; }

@media (max-width: 720px) {
  .search-bar { flex-direction: column; align-items: stretch; border-radius: var(--radius-lg); padding: var(--sp-2); gap: 0; }
  .search-bar__field, .search-bar__field + .search-bar__field { padding: var(--sp-3) var(--sp-4); border-left: 0; }
  .search-bar__field + .search-bar__field { border-top: 1px solid var(--color-border); }
  .search-bar__submit { width: 100%; margin-top: var(--sp-2); }
  .search-bar select, .search-bar input { min-height: 32px; font-size: var(--fs-md); }
}

/* 08. Chips, badges, tags ------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 32px; padding: 0 var(--sp-4);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill);
  font-size: var(--fs-sm); color: var(--color-text-muted); background: #fff;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
a.chip:hover { background: var(--color-surface); text-decoration: none; }
.chip--lg { min-height: 44px; padding-inline: var(--sp-5); font-size: var(--fs-base); color: var(--color-text); }
.chip.is-selected { background: var(--blue-100); border-color: var(--blue-100); color: var(--blue-900); }

.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1); padding: 2px var(--sp-3);
  border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: var(--fw-medium);
  background: var(--blue-50); color: var(--blue-700);
}
.badge--green  { background: var(--green-100);  color: var(--green-900); }
.badge--yellow { background: var(--yellow-100); color: var(--yellow-900); }
.badge--red    { background: var(--red-100);    color: var(--red-900); }
.badge--grey   { background: var(--color-surface); color: var(--color-text-muted); }

/* 09. Cards --------------------------------------------------------------- */
.card {
  background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2); position: relative;
}
.card--white { background: #fff; }
.card--outline { background: #fff; border: 1px solid var(--color-border); }
.card--blue { background: var(--blue-100); color: var(--blue-900); }
.card--blue h2, .card--blue h3 { color: var(--blue-900); }
.card--lg { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-xl); }
.card--link { transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); color: inherit; }
.card--link:hover { box-shadow: var(--shadow-2); text-decoration: none; }
.card--link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__title { font-size: var(--fs-md); font-weight: var(--fw-regular); margin: var(--sp-3) 0 0; color: var(--color-text); }
.card__title a { color: inherit; }
.card__text { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }
.card__footer { margin-top: auto; padding-top: var(--sp-4); }

/* Product card */
.product-card { background: #fff; border: 1px solid var(--color-border); }
@media (max-width: 600px) {
  .product-card { padding: var(--sp-4); border-radius: var(--radius-md); }
  .product-card .card__title { font-size: var(--fs-base); }
  .product-card .card__text { font-size: var(--fs-xs); }
}
.product-card .link-arrow { font-size: var(--fs-sm); margin-top: var(--sp-3); }

/* Feature (icon + text, no box) */
.feature { display: flex; flex-direction: column; gap: var(--sp-2); }
.feature__title { font-size: var(--fs-md); margin: var(--sp-2) 0 0; }
.feature__text { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }
.feature--row { flex-direction: row; gap: var(--sp-4); align-items: flex-start; }

/* Stat */
.stat { padding: var(--sp-6); border-radius: var(--radius-lg); background: var(--color-surface); }
.stat__value { font-family: var(--font-sans); font-size: var(--fs-2xl); color: var(--color-primary); line-height: 1; margin: 0 0 var(--sp-2); }
.stat__label { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

/* Advisor */
.advisor-card { background: #fff; text-align: center; align-items: center; }
.advisor-card__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--blue-100); }
.advisor-card__name { font-size: var(--fs-md); margin: var(--sp-3) 0 0; }
.advisor-card__meta { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

/* Review */
.review-card { gap: var(--sp-4); }
.review-card__stars { color: #f9ab00; display: flex; gap: 2px; }
.review-card__text { font-size: var(--fs-base); margin: 0; }
.review-card__author { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

/* Article */
.article-card { background: #fff; border: 1px solid var(--color-border); }
.article-card__tag { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-primary); }
.article-card__title { font-size: var(--fs-md); line-height: var(--lh-snug); margin: 0; color: var(--color-text); }

/* Step */
.step__num {
  font-family: var(--font-sans); font-size: var(--fs-2xl); color: var(--color-primary); line-height: 1;
}

/* 10. Icons -------------------------------------------------------------- */
.ti { line-height: 1; vertical-align: -0.125em; }
.icon-circle {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--color-primary); font-size: 24px;
}
.icon-circle--sm { width: 36px; height: 36px; font-size: 18px; }
.icon-circle--lg { width: 64px; height: 64px; font-size: 30px; }
.icon-circle--green  { background: var(--green-100);  color: var(--green-600); }
.icon-circle--yellow { background: var(--yellow-100); color: var(--yellow-600); }
.icon-circle--white  { background: #fff; }

/* 11. Header and navigation --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur);
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-6); height: var(--header-h); }
.site-header__actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }

.logo { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--color-text-muted); flex: none; }
.logo:hover { text-decoration: none; }
.logo__mark { font-size: 28px; color: var(--color-primary); }
.logo__text { font-family: var(--font-sans); font-size: 1.375rem; letter-spacing: -0.01em; color: var(--grey-700); }
.logo__text span { color: var(--color-primary); }

.main-nav__list { display: flex; align-items: center; gap: var(--sp-1); }
.main-nav__item { position: relative; }
.main-nav__link {
  display: inline-flex; align-items: center; gap: var(--sp-1); height: 40px; padding: 0 var(--sp-4);
  border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--color-text-muted); transition: background var(--dur-fast), color var(--dur-fast);
}
.main-nav__link:hover { background: var(--color-surface); color: var(--color-text); text-decoration: none; }
.main-nav__link.is-active { color: var(--color-primary); background: var(--blue-50); }
.main-nav__caret { transition: transform var(--dur); }
.has-dropdown.is-open .main-nav__caret { transform: rotate(180deg); }
.main-nav__mobile-cta { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.nav-toggle:hover { background: var(--color-surface); }
.nav-toggle__bar { width: 20px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--dur), opacity var(--dur); }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: var(--sp-4) var(--gutter) var(--sp-8);
    overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow);
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease); }
  .nav-open { overflow: hidden; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__link { width: 100%; height: 56px; justify-content: space-between; font-size: var(--fs-md); border-radius: var(--radius-sm); padding: 0 var(--sp-2); }
  .main-nav__item { border-bottom: 1px solid var(--color-border); }
  .main-nav__mobile-cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
}

/* 12. Dropdown ----------------------------------------------------------- */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  width: min(620px, 90vw); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  padding: var(--sp-4); z-index: var(--z-dropdown);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1); }
.dropdown__link { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3); border-radius: var(--radius-md); color: var(--color-text); }
.dropdown__link:hover { background: var(--color-surface); text-decoration: none; }
.dropdown__link strong { display: block; font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.dropdown__link small { display: block; color: var(--color-text-muted); font-size: var(--fs-xs); }
.dropdown__footer {
  display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  background: var(--blue-50); color: var(--blue-900); border-radius: var(--radius-md); font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.dropdown__footer .ti-arrow-right { margin-left: auto; }
@media (max-width: 960px) {
  .dropdown { position: static; transform: none; width: auto; box-shadow: none; padding: 0 0 var(--sp-4); display: none; opacity: 1; visibility: visible; transition: none; }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .dropdown__grid { grid-template-columns: 1fr; }
}

/* 13. Page hero and breadcrumb ------------------------------------------ */
.page-hero { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 clamp(2rem, 1rem + 3vw, 3.5rem); background: var(--color-bg-alt); }
.page-hero--plain { background: #fff; }
.page-hero__title { max-width: 760px; }
.page-hero__lead { max-width: 640px; font-size: var(--fs-md); color: var(--color-text-muted); margin: 0; }
.page-hero__meta { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--color-text-subtle); }

.breadcrumb { margin-bottom: var(--sp-5); font-size: var(--fs-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--color-text-subtle); }
.breadcrumb li + li::before { content: "/"; color: var(--color-border-strong); }
.breadcrumb a { color: var(--color-text-muted); }

/* 14. Home sections ----------------------------------------------------- */
.trust-strip { border-block: 1px solid var(--color-border); padding-block: var(--sp-8); }
.trust-strip .grid { text-align: center; }

.steps { counter-reset: step; }
.steps .feature { padding-right: var(--sp-4); }

.tool-promo { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-10); align-items: center; }
.tool-promo__preview { background: #fff; border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-1); color: var(--color-text); }
.tool-promo__value { font-family: var(--font-sans); font-size: var(--fs-2xl); color: var(--color-primary); margin: 0 0 var(--sp-3); line-height: 1.1; }
.meter { height: 8px; background: var(--grey-200); border-radius: var(--radius-pill); overflow: hidden; }
.meter__fill { height: 100%; background: var(--color-primary); border-radius: inherit; }
@media (max-width: 860px) { .tool-promo { grid-template-columns: 1fr; } }

.logo-strip { display: flex; flex-wrap: wrap; gap: var(--sp-3);margin-bottom:15px; }
.logo-strip__item {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 var(--sp-6);
  border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: #fff;
  color: var(--color-text-muted); font-weight: var(--fw-medium); font-size: var(--fs-sm);
}
.logo-strip__item img { max-height: 28px; width: auto; }

.media-placeholder {
  aspect-ratio: 4 / 3; border-radius: var(--radius-xl); background: var(--blue-100);
  display: flex; align-items: center; justify-content: center; color: var(--blue-700); font-size: 64px;
}

/* 15. Accordion ---------------------------------------------------------- */
.accordion { border-top: 1px solid var(--color-border); }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) 0; text-align: left; font-size: var(--fs-md); font-family: var(--font-sans); color: var(--color-text);
}
.accordion__trigger:hover { color: var(--color-primary); }
.accordion__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: transform var(--dur), background var(--dur); }
.accordion__trigger:hover .accordion__icon { background: var(--color-surface); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); }
.accordion__panel { overflow: hidden; height: 0; transition: height var(--dur-slow) var(--ease); }
.accordion__panel-inner { padding: 0 var(--sp-12) var(--sp-5) 0; color: var(--color-text-muted); }
.accordion__panel-inner p:last-child { margin: 0; }
.no-js .accordion__panel { height: auto; }

/* 16. Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.table th { background: var(--color-surface); font-weight: var(--fw-medium); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }

/* 17. Prose and table of contents --------------------------------------- */
.prose { max-width: 72ch; font-size: var(--fs-base); }
.prose h2 { font-size: var(--fs-xl); margin: var(--sp-12) 0 var(--sp-4); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: var(--fs-md); font-weight: var(--fw-medium); margin: var(--sp-8) 0 var(--sp-3); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--grey-700); }
.prose ul, .prose ol { padding-left: var(--sp-6); margin: 0 0 var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose li::marker { color: var(--color-primary); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .table-wrap { margin: var(--sp-6) 0; }

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-12); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-sm); }
.toc__title { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-text-subtle); text-transform: none; margin-bottom: var(--sp-3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--color-border); }
.toc a { display: block; padding: var(--sp-2) var(--sp-4); margin-left: -2px; border-left: 2px solid transparent; color: var(--color-text-muted); }
.toc a:hover { color: var(--color-text); text-decoration: none; }
.toc a.is-active { color: var(--color-primary); border-left-color: var(--color-primary); }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .toc { position: static; background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--sp-5); }
  .toc ol { columns: 2; border: 0; }
  .toc a { border: 0; padding: var(--sp-1) 0; margin: 0; }
}
@media (max-width: 600px) { .toc ol { columns: 1; } }

.callout { padding: var(--sp-5) var(--sp-6); border-radius: var(--radius-lg); background: var(--blue-50); color: var(--blue-900); margin: var(--sp-6) 0; }
.callout p { color: inherit; }
.callout p:last-child { margin: 0; }

/* 18. Contact ------------------------------------------------------------ */
.contact-method { background: #fff; border: 1px solid var(--color-border); }
.contact-method__value { font-size: var(--fs-md); color: var(--color-text); margin: 0; word-break: break-word; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-10); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.info-list { display: grid; gap: var(--sp-5); }
.info-list__item { display: flex; gap: var(--sp-4); }
.info-list__item h3 { font-size: var(--fs-base); font-weight: var(--fw-medium); margin: 0 0 var(--sp-1); }
.info-list__item p { margin: 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* 19. CTA band and footer ----------------------------------------------- */
.cta-band { background: var(--color-primary); color: #fff; padding-block: var(--sp-12); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: var(--fs-2xl); margin: 0 0 var(--sp-2); }
.cta-band__text { margin: 0; color: var(--blue-100); font-size: var(--fs-md); }
.cta-band__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.site-footer { background: var(--color-surface); padding: var(--sp-16) 0 var(--sp-8); font-size: var(--fs-sm); color: var(--color-text-muted); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-10); }
.site-footer__brand p { margin: var(--sp-4) 0; max-width: 320px; }
.site-footer__heading { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--color-text); margin: 0 0 var(--sp-4); }
.site-footer__links li + li { margin-top: var(--sp-3); }
.site-footer__links a, .site-footer__contact a { color: var(--color-text-muted); }
.site-footer__links a:hover { color: var(--color-primary); }
.site-footer__contact li { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-2); }
.site-footer__contact .ti { color: var(--color-primary); }
.site-footer__legal { margin-top: var(--sp-12); padding-top: var(--sp-8); border-top: 1px solid var(--color-border-strong); font-size: var(--fs-xs); line-height: 1.7; }
.site-footer__legal p { margin: 0 0 var(--sp-2); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); font-size: var(--fs-xs); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.site-footer__bottom a { color: var(--color-text-muted); }
.social { display: flex; gap: var(--sp-2); }
.social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--color-text-muted); font-size: 20px; }
.social a:hover { color: var(--color-primary); text-decoration: none; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 20. Mobile bottom bar ------------------------------------------------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: var(--mobile-bar-h); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: var(--sp-2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobile-bar);
    height: var(--mobile-bar-h); padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -2px 8px rgba(60,64,67,.08);
  }
  .mobile-bar__item {
    display: flex; align-items: center; justify-content: center; /*gap: var(--sp-2);*/ margin:2px 8%;min-width:300px;
    border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--color-text);
  }
  .mobile-bar__item:hover { text-decoration: none; background: var(--color-surface); }
  .mobile-bar__item .ti { font-size: 20px; color: var(--color-primary); }
  .mobile-bar__item--primary { background: var(--color-primary); color: #fff; }
  .mobile-bar__item--primary .ti { color: #fff; }
  .mobile-bar__item--primary:hover { background: var(--color-primary-hover); }
}

/* 21. Utilities --------------------------------------------------------- */
.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; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-inline: auto; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); } .mt-12 { margin-top: var(--sp-12); }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--sp-2); } .mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); } .mb-8 { margin-bottom: var(--sp-8); }
.p-0 { padding: 0 !important; }
.w-100 { width: 100%; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); } .gap-4 { gap: var(--sp-4); }
.rounded { border-radius: var(--radius-md); } .rounded-lg { border-radius: var(--radius-lg); } .rounded-pill { border-radius: var(--radius-pill); }
.bg-surface { background: var(--color-surface); } .bg-alt { background: var(--color-bg-alt); } .bg-blue { background: var(--blue-100); }
@media (max-width: 960px) { .hide-md-down { display: none !important; } }
@media (max-width: 600px) { .hide-sm-down { display: none !important; } }
@media (min-width: 961px) { .hide-lg-up { display: none !important; } }

/* 22. Motion and print -------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

@media print {
  .site-header, .mobile-bar, .cta-band, .toc, .site-footer__grid, .nav-toggle { display: none !important; }
  body { padding: 0; color: #000; }
  .prose { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
