/* ============================================================
   I FINANCIAL 聯誠財務 — Editorial Finance
   Design system v2 · ink / paper / seal red
   ============================================================ */

/* OD-LAYOUT-PRIMITIVES v1 — structure only */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }
  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

:root {
  color-scheme: light;
  /* palette */
  --brand-900:  #12295C;
  --brand-700:  #1B3878;
  --brand-500:  #2F63B4;
  --brand-200:  #9DB9EA;
  --brand-050:  #E7EDF8;
  --night:      var(--brand-900);
  --ink:        #101A2E;
  --ink-2:      #16233C;
  --ink-3:      #22314D;
  --paper:      #F3F4F1;
  --paper-2:    #F9FAF7;
  --line:       #D3D7DE;
  --line-2:     #B4BBC7;
  --muted:      #525C6B;
  --seal:       var(--brand-700);
  --seal-bright:var(--brand-500);
  --seal-on-dark:var(--brand-200);
  --seal-soft:  var(--brand-050);
  --danger:     #B3261E;
  --on-dark:    #EDF1F8;
  --on-dark-mut:#A9B7D3;

  /* type */
  --font-display: 'Noto Serif TC', 'Songti TC', 'STSong', 'SimSun', serif;
  --font-sans:    'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Heiti TC', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;

  /* metrics */
  --shell: 1360px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section-y: clamp(72px, 9vw, 144px);
  --header-h: 78px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);

  /* soft editorial geometry */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-soft: 0 22px 50px -34px rgba(18,41,92,.30), 0 2px 6px rgba(18,41,92,.04);
  --shadow-lift: 0 30px 70px -42px rgba(18,41,92,.38);
}

/* ---------- 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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
sup { font-size: .58em; font-weight: 600; color: var(--seal); vertical-align: super; line-height: 0; margin-inline-start: 1px; }
::selection { background: var(--seal); color: #fff; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}
.skip-link {
  position: fixed; inset-inline-start: 16px; top: -80px; z-index: 300;
  background: var(--night); color: var(--on-dark);
  padding: 12px 18px; font-size: 14px; letter-spacing: .02em;
  transition: top .2s var(--ease-soft);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible {
  outline-color: var(--seal-on-dark);
  outline-offset: 4px;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow-seal { color: var(--seal); }
.eyebrow-on-dark { color: var(--on-dark-mut); }

.section-no {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; color: var(--muted);
}

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { font-size: clamp(1.85rem, 3.9vw, 3.25rem); margin-top: 18px; max-width: 22ch; }
.section-head p { color: var(--muted); max-width: 44ch; font-size: 15.5px; }
.section-head-right { text-align: end; }
.section-head-stacked { display: block; }
.section-head-stacked h2 { margin-top: 0; max-width: 24ch; }
.section-head-stacked .eyebrow + h2 { margin-top: 18px; }
.section-head-stacked p { margin-top: 18px; max-width: 54ch; font-size: 16px; }

.lede { font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.9; color: var(--muted); max-width: 62ch; }
.serif { font-family: var(--font-display); }

/* ---------- Reveal (JS adds .is-in) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Masthead ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 120;
  color: var(--on-dark);
  transition: background-color .35s var(--ease-soft), color .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.site-header.is-stuck {
  background: var(--paper);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  backdrop-filter: saturate(1.1) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -34px rgba(18,41,92,.45);
}
.site-header.is-open { background: transparent; color: var(--on-dark); box-shadow: none; }
.site-header.is-stuck .nav-side .btn-on-dark {
  background: var(--brand-700); color: #fff; border-color: var(--brand-700);
}
.site-header.is-stuck .nav-side .btn-on-dark:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* inner pages keep a solid masthead at all scroll positions */
.page-inner .site-header {
  background: var(--paper);
  background: color-mix(in oklab, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  backdrop-filter: saturate(1.1) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.page-inner .site-header.is-open {
  background: transparent; color: var(--on-dark); box-shadow: none;
}

.masthead {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  height: var(--header-h);
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand { display: inline-flex; align-items: center; flex: none; background: var(--paper); padding: 6px 10px; border-radius: 12px; }
.brand-logo { display: block; width: auto; height: 40px; }
.brand-on-dark { padding: 9px 12px; border-radius: 14px; }
.footer-brand .brand-logo { height: 34px; }

.wordmark-seal {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  background: var(--seal); color: #fff;
  font-family: var(--font-display); font-size: 17px; line-height: 1;
  padding-bottom: 2px;
}
.wordmark-text { display: grid; gap: 1px; }
.wordmark-en {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
}
.wordmark-zh { font-size: 11px; letter-spacing: .3em; opacity: .72; line-height: 1.2; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); margin-inline-start: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  letter-spacing: .02em; color: inherit; opacity: .84;
  transition: opacity .2s var(--ease-soft), color .2s var(--ease-soft);
}
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; }
.nav-link[aria-current="page"]::after {
  content: ""; width: 5px; height: 5px; background: var(--seal-bright); border-radius: 50%;
  margin-inline-start: 7px;
}
.nav-caret { font-size: 9px; opacity: .6; transition: transform .25s var(--ease); }
.nav-item.is-open > .nav-link .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-start: -20px;
  min-width: 232px; padding: 10px;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease-soft), transform .22s var(--ease-soft), visibility .22s;
}
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 12px; font-size: 14px; color: var(--ink); border-radius: var(--r-xs);
  transition: background-color .18s var(--ease-soft), color .18s var(--ease-soft);
}
.dropdown a span { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--paper); color: var(--seal); }
.dropdown a:hover span, .dropdown a[aria-current="page"] span { color: var(--seal); }

.nav-side { display: flex; align-items: center; gap: 18px; flex: none; }
.nav-tel {
  display: inline-flex; flex-direction: column; line-height: 1.2;
  font-family: var(--font-display); font-size: 17px; letter-spacing: .01em;
}
.nav-tel small { font-family: var(--font-sans); font-size: 10px; letter-spacing: .18em; opacity: .62; font-weight: 600; }
.nav-tel:hover { color: var(--seal-on-dark); }
.site-header.is-stuck .nav-tel:hover { color: var(--seal); }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-inline-start: auto;
  background: none; border: 1px solid currentColor; border-radius: 12px;
  cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span { position: relative; width: 18px; height: 1px; background: currentColor; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* mobile overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  background: var(--night); color: var(--on-dark);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease-soft), transform .35s var(--ease-soft), visibility .35s;
  overflow-y: auto;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; transform: none; }
.menu-group-label {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-mut); margin: 26px 0 8px;
}
.menu-overlay a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid rgba(237,233,225,.12);
  font-family: var(--font-display); font-size: 22px; line-height: 1.3;
}
.menu-overlay a:hover { color: var(--seal-on-dark); }
.menu-overlay .menu-meta {
  margin-top: auto; padding-top: 32px; display: grid; gap: 6px;
  font-size: 13px; color: var(--on-dark-mut);
}
.menu-overlay .menu-meta a { font-family: var(--font-sans); font-size: 14px; padding: 0; border: 0; display: inline; }
.menu-overlay .menu-meta .btn-on-dark { color: var(--ink); }
.menu-overlay .menu-meta .btn-on-dark:hover { color: #fff; }
.menu-overlay .menu-meta .btn {
  display: inline-flex; margin-top: 18px; padding: 0 26px;
  border: 1px solid var(--paper); font-size: 14.5px;
}
body.menu-locked { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; text-align: center;
  transition: background-color .22s var(--ease-soft), color .22s var(--ease-soft), border-color .22s var(--ease-soft), transform .12s var(--ease-soft);
}
.btn:active { transform: translateY(1px); }
.btn .arr { font-family: var(--font-sans); transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.btn-primary:hover { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: transparent; }
.btn-on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-on-dark:hover { background: var(--seal-bright); border-color: var(--seal-bright); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--on-dark); border-color: rgba(237,233,225,.34); }
.btn-outline-dark:hover { border-color: var(--on-dark); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 13.5px; }
.link-underline {
  display: inline-flex; align-items: center; gap: 8px;
  padding-block: 4px; font-size: 14px; font-weight: 500; letter-spacing: .02em;
  border-bottom: 1px solid var(--line-2);
  transition: color .2s var(--ease-soft), border-color .2s var(--ease-soft);
}
.link-underline:hover { color: var(--seal); border-color: var(--seal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(460px, 62vh, 620px);
  display: flex; align-items: flex-end;
  padding-block: calc(var(--header-h) + 18px) clamp(36px, 4.5vw, 56px);
  background: var(--night); color: var(--on-dark);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,41,92,.95) 0%, rgba(18,41,92,.86) 34%, rgba(18,41,92,.48) 66%, rgba(18,41,92,.24) 100%),
    linear-gradient(0deg, rgba(18,41,92,.92) 0%, rgba(18,41,92,.30) 38%, rgba(18,41,92,.08) 70%);
}
.hero-inner {
  position: relative; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(32px, 4vw, 64px); align-items: end;
}
.hero-copy { max-width: 900px; }
.hero-eyebrow { margin-bottom: 26px; color: var(--on-dark-mut); }
.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  line-height: 1.12; letter-spacing: -0.022em; font-weight: 600;
  margin-bottom: 22px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; }
.hero-title em {
  font-style: normal; color: var(--seal-on-dark);
  position: relative;
}
.hero-lede { max-width: 46ch; color: rgba(237,242,250,.86); font-size: clamp(15px, 1.2vw, 16.5px); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-calc-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding-bottom: 3px;
  border-bottom: 1px solid rgba(237,242,250,.34);
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  color: rgba(237,242,250,.82);
  transition: color .2s var(--ease-soft), border-color .2s var(--ease-soft);
}
.hero-calc-link:hover { color: var(--on-dark); border-color: var(--on-dark); }
/* right-side orbit graphic */
.hero-graphic {
  position: relative; width: 430px; height: 440px;
  justify-self: end; align-self: center;
  opacity: 0; animation: rise-in .9s var(--ease) .55s both;
}
.hero-graphic::before {
  content: ""; position: absolute; inset: -26px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(10,26,58,.52) 0%, rgba(10,26,58,.26) 48%, rgba(10,26,58,0) 72%);
}
.hero-graphic::after {
  content: ""; position: absolute; inset: 8px; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(237,242,250,.18) 1px, transparent 1.4px);
  background-size: 18px 18px; opacity: .42;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 8%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 8%, transparent 72%);
}
.hero-graphic > * { z-index: 1; }
.hg-orbit {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hg-orbit-outer { width: 310px; height: 310px; border: 1px dashed rgba(237,242,250,.34); }
.hg-orbit-inner { width: 216px; height: 216px; border: 1px solid rgba(237,242,250,.18); }
.hg-spin {
  position: absolute; inset: 0; transform-origin: 50% 50%;
  animation: hg-rotate 36s linear infinite; will-change: transform;
}
@keyframes hg-rotate { to { transform: rotate(360deg); } }
.hg-spin i {
  position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; margin: -2.5px;
  border-radius: 50%; background: var(--brand-200);
  transform: rotate(var(--a)) translateY(-155px);
}
.hg-spin i:nth-child(1) { --a: 18deg; }
.hg-spin i:nth-child(2) { --a: 102deg; opacity: .65; }
.hg-spin i:nth-child(3) { --a: 208deg; }
.hg-spin i:nth-child(4) { --a: 300deg; opacity: .65; }
.hg-core {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 252px; min-height: 286px; padding: 18px;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center;
  /*border: 1px solid rgba(237,242,250,.38);*/ border-radius: 24px;
  background: linear-gradient(160deg, rgba(249,250,247,.18), rgba(249,250,247,.07));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 28px 60px -34px rgba(4,12,30,.8), inset 0 1px 0 rgba(255,255,255,.16);
}
.hg-core-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 5px;
  border: 1px solid rgba(237,242,250,.24); border-radius: 13px;
  background: rgba(237,242,250,.13); color: var(--brand-200);
}
.hg-core-icon svg { width: 22px; height: 22px; }
.hg-core-label {
  font-size: 9.5px; line-height: 1.2; letter-spacing: .16em;
  color: rgba(237,242,250,.68);
}
.hg-core-value {
  display: flex; align-items: baseline; gap: 5px;
  font-family: var(--font-display); font-size: 46px; font-weight: 600;
  line-height: 1; letter-spacing: -.02em; color: #fff;
}
.hg-core-value small {
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: .06em; color: var(--brand-200);
}
.hg-core-note {
  font-size: 9px; line-height: 1.3; letter-spacing: .04em;
  color: rgba(237,242,250,.6);
}
.hg-card {
  position: absolute; z-index: 2;
  display: grid; gap: 3px; padding: 13px 14px;
  border-radius: 16px; box-shadow: 0 18px 40px -26px rgba(4,12,30,.72);
}
.hg-card-icon { display: grid; place-items: center; width: 20px; height: 20px; margin-bottom: 2px; opacity: .82; }
.hg-card-icon svg { width: 19px; height: 19px; }
.hg-card-label { font-size: 9px; line-height: 1.2; letter-spacing: .14em; opacity: .68; }
.hg-card-value { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.2; }
.hg-card-sub { font-size: 10px; line-height: 1.5; opacity: .72; }
.hg-card-a {
  left: 0; top: 0;
  background: var(--paper-2); color: var(--ink); border: 1px solid rgba(18,41,92,.08);
}
.hg-card-b {
  right: 0; top: 6px;
  background: var(--brand-500); color: #fff; border: 1px solid rgba(255,255,255,.16);
}
.hg-card-b .hg-card-icon, .hg-card-b .hg-card-label { opacity: .9; }
.hg-card-b .hg-card-sub { opacity: .86; }
.hg-card-c {
  left: 10px; bottom: 2px;
  background: rgba(249,250,247,.11); color: var(--on-dark);
  border: 1px solid rgba(237,242,250,.26);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hg-card-d {
  right: 0; bottom: 0;
  background: var(--paper-2); color: var(--ink); border: 1px solid rgba(18,41,92,.08);
}

/* hero load animation */
.hero-title .line > span {
  animation: line-up 1.05s var(--ease) both;
}
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-eyebrow, .hero-lede, .hero-actions {
  animation: rise-in .9s var(--ease) both;
}
.hero-eyebrow { animation-delay: .05s; }
.hero-lede { animation-delay: .42s; }
.hero-actions { animation-delay: .52s; }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Trust strip ---------- */
.proof { position: relative; z-index: 2; margin-top: -32px; background: transparent; }
.proof-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: calc(100% - var(--gutter) - var(--gutter));
  max-width: var(--shell);
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--shell));
  padding-inline: clamp(18px, 2.5vw, 30px);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.proof-item {
  padding: clamp(22px, 2.6vw, 34px) 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.proof-item + .proof-item { border-inline-start: 1px solid var(--line); }
.proof-item svg { width: 22px; height: 22px; flex: none; color: var(--brand-500); }
.proof-label { font-size: 13.5px; font-weight: 500; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }

/* ---------- Why / advantages ---------- */
.advantages-grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.advantages-head h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.18; letter-spacing: -.02em; margin: 16px 0 20px;
}
.advantages-head p { max-width: 34ch; font-size: 15.5px; line-height: 1.9; color: var(--muted); }
.advantages-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.advantage { padding: clamp(22px, 2.8vw, 32px) 0 clamp(26px, 3.2vw, 36px); border-bottom: 1px solid var(--line); }
.advantage:nth-child(odd) { padding-inline-end: clamp(20px, 2.4vw, 32px); }
.advantage:nth-child(even) { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(20px, 2.4vw, 32px); }
.advantage-icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--brand-050); color: var(--brand-500);
}
.advantage-icon svg { width: 22px; height: 22px; }
.advantage h3 { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.4; margin-bottom: 8px; }
.advantage p { max-width: 34ch; font-size: 13.8px; line-height: 1.85; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.section-dark { background: var(--night); color: var(--on-dark); }
.section-dark .lede, .section-dark .section-head p { color: var(--on-dark-mut); }
.section-dark .eyebrow { color: var(--on-dark-mut); }
.section-rule { border-top: 1px solid var(--line); }
.section-dark .section-rule { border-color: rgba(237,233,225,.14); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-note { position: sticky; top: calc(var(--header-h) + 40px); }
.about-note h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 22px; }
.about-facts { margin-top: 34px; border-top: 1px solid var(--line); }
.about-fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.about-fact dt { color: var(--muted); letter-spacing: .04em; }
.about-fact dd { margin: 0; }
.about-body { padding-top: 6px; }
.about-body .big {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.72; letter-spacing: -.005em; margin-bottom: 30px;
}
.about-body .big .mark { color: var(--seal); }
.about-body p + p { margin-top: 18px; }
.about-body p.body-copy { color: var(--muted); font-size: 16px; line-height: 1.95; }
.pull-quote {
  margin: 44px 0 0; padding: 26px 0 26px 26px;
  border-inline-start: 2px solid var(--seal);
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.85; color: var(--ink);
}
.pull-quote cite { display: block; margin-top: 14px; font-family: var(--font-sans); font-size: 12px; font-style: normal; letter-spacing: .12em; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.principle { padding: 22px 22px 0 0; }
.principle + .principle { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.principle-no { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--seal); }
.principle h3 { font-size: 16.5px; margin: 8px 0 6px; }
.principle p { font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ---------- About image band ---------- */
.image-band { margin-top: clamp(56px, 7vw, 96px); }
.ib-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 18px); align-items: start; }
.ib-main, .ib-side figure { margin: 0; }
.ib-side { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.ib-media {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.ib-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) contrast(1.02);
}
.ib-main .ib-media img { object-position: 42% 50%; }
.image-band figcaption {
  display: flex; align-items: baseline; gap: 10px;
  padding-top: 10px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ib-no { color: var(--seal); }
.ib-note { margin-top: 14px; font-size: 11px; letter-spacing: .04em; color: var(--muted); }

/* ---------- Product index ---------- */
.index-list { border-top: 1px solid var(--line-2); }
.index-row { border-bottom: 1px solid var(--line); }
.index-row > a {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1.05fr) minmax(0, 1fr) 34px;
  align-items: center; gap: clamp(12px, 2vw, 28px);
  padding: clamp(22px, 2.8vw, 34px) 14px;
  margin-inline: -14px; border-radius: var(--r-sm);
  transition: background-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft);
}
.index-thumb {
  display: block; grid-column: 2; width: 86px; aspect-ratio: 4 / 3;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--paper-2);
}
.index-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); transition: transform .5s var(--ease); }
.index-row > a:hover .index-thumb img,
.index-row > a:focus-visible .index-thumb img { transform: scale(1.03); }
.index-row > a:hover, .index-row > a:focus-visible {
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.index-no { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.index-main { display: grid; gap: 9px; min-width: 0; }
.index-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.index-tags span {
  padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 11px; line-height: 1.5; letter-spacing: .04em; color: var(--muted);
}
.index-name {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.2; letter-spacing: -.02em;
  transition: color .25s var(--ease-soft), transform .35s var(--ease);
}
.index-desc { font-size: 14.5px; line-height: 1.75; color: var(--muted); max-width: 40ch; }
.index-arrow { font-size: 20px; color: var(--muted); justify-self: end; transition: transform .3s var(--ease), color .25s var(--ease-soft); }
.index-row > a:hover .index-name,
.index-row > a:focus-visible .index-name { color: var(--seal); transform: translateX(6px); }
.index-row > a:hover .index-arrow,
.index-row > a:focus-visible .index-arrow { transform: translateX(5px); color: var(--seal); }
.index-meta { display: none; }

.preview {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 320px; height: 290px; pointer-events: none;
  opacity: 0; transform: translate3d(22px, -50%, 0) scale(.96);
  transition: opacity .3s var(--ease-soft), transform .45s var(--ease);
  overflow: hidden; background: var(--ink-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview.is-on { opacity: 1; transform: translate3d(22px, -50%, 0) scale(1); }
.preview-caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 12px 14px; font-size: 11px; letter-spacing: .14em;
  color: var(--on-dark); background: linear-gradient(0deg, rgba(18,41,92,.82), transparent);
  text-transform: uppercase;
}

/* ---------- Repayment estimate ---------- */
.estimate {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(20px, 2.8vw, 36px);
  align-items: stretch; margin-top: clamp(32px, 4vw, 48px);
}
.estimate-form {
  display: grid; gap: clamp(22px, 2.6vw, 30px);
  padding: clamp(24px, 3.2vw, 38px);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
}
.estimate-field { display: grid; gap: 10px; }
.estimate-field > label, .estimate-label label {
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
}
.estimate-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.estimate-label output {
  font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--seal); white-space: nowrap;
}
.estimate-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin: 2px 0 0; padding: 0;
  border: 0; background: transparent; cursor: pointer;
}
.estimate-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--seal) var(--fill, 33%), var(--line) var(--fill, 33%));
}
.estimate-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--seal);
  box-shadow: 0 3px 10px -3px rgba(18,41,92,.38);
}
.estimate-range::-moz-range-track {
  height: 4px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--seal) var(--fill, 33%), var(--line) var(--fill, 33%));
}
.estimate-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--seal);
  box-shadow: 0 3px 10px -3px rgba(18,41,92,.38);
}
.estimate-range:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 5px; }
.estimate-scale { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; letter-spacing: .04em; color: var(--muted); }
.estimate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.estimate-input {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 0 14px;
  transition: border-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft);
}
.estimate-input:hover { border-color: var(--brand-200); }
.estimate-input:focus-within { border-color: var(--brand-700); box-shadow: 0 0 0 4px var(--brand-050); }
.estimate-input input, .estimate-input select {
  width: 100%; min-width: 0; padding: 13px 0;
  border: 0; background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
}
.estimate-input input:focus, .estimate-input select:focus { outline: none; }
.estimate-input > span { flex: none; font-size: 13px; color: var(--muted); }
.estimate-input select { cursor: pointer; }
.estimate-hint { font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.estimate-result {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(26px, 3.4vw, 42px);
  background: var(--night); color: var(--on-dark);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lift);
}
.estimate-result::before {
  content: ""; position: absolute; right: -84px; top: -110px;
  width: 250px; height: 250px; border-radius: 50%;
  border: 1px solid rgba(157,185,234,.20); pointer-events: none;
}
.estimate-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-mut); }
.estimate-monthly {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.7rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -.02em;
  margin-top: 6px;
}
.estimate-lines { display: grid; margin-top: 14px; border-top: 1px solid rgba(237,242,250,.18); }
.estimate-lines div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 11px 0; border-bottom: 1px solid rgba(237,242,250,.16);
  font-size: 13px; color: var(--on-dark-mut);
}
.estimate-lines strong { font-weight: 500; color: var(--on-dark); }
.estimate-note { margin-top: auto; padding-top: 26px; font-size: 11.5px; line-height: 1.8; color: var(--on-dark-mut); }
.estimate-licence { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--brand-200); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.step { padding: 26px 26px 0 0; position: relative; }
.step + .step { border-inline-start: 1px solid var(--line); padding-inline-start: 26px; }
.step-no {
  font-family: var(--font-display); font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  line-height: 1; color: var(--seal); opacity: .9; display: block; margin-bottom: 22px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 14.2px; line-height: 1.85; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  width: calc(100% - var(--gutter) - var(--gutter));
  max-width: var(--shell);
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--shell));
  margin-inline: auto; padding-block: clamp(48px, 6vw, 88px);
  background: var(--night); color: var(--on-dark);
  border-radius: var(--r-xl); box-shadow: var(--shadow-soft);
}
.cta-band .shell { max-width: none; padding-inline: clamp(24px, 4vw, 56px); }
.page-inner .cta-band { margin-block-end: clamp(40px, 6vw, 72px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.cta-band h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.22; letter-spacing: -.02em; max-width: 20ch; }
.cta-band p { color: var(--on-dark-mut); margin-top: 18px; max-width: 46ch; font-size: 15.5px; }
.cta-side { display: grid; gap: 14px; justify-items: start; }
.cta-tel { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: .01em; }
.cta-tel small { display: block; font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .2em; color: var(--on-dark-mut); margin-bottom: 4px; }
.cta-licence { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--on-dark-mut); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 84px); align-items: start; }
.contact-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 18px 0 16px; }
.contact-list { margin-top: 34px; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-key { font-size: 12px; letter-spacing: .12em; color: var(--muted); padding-top: 3px; }
.contact-val { font-size: 15px; line-height: 1.75; }
.contact-val a { border-bottom: 1px solid transparent; transition: color .2s var(--ease-soft), border-color .2s var(--ease-soft); }
.contact-val a:hover { color: var(--seal); border-color: var(--seal); }
.contact-val .sub { display: block; font-size: 12.5px; color: var(--muted); }
.location {
  margin-top: 30px; padding: 24px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-soft);
}
.location-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.location-district { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: .06em; }
.location-note { font-size: 13px; color: var(--muted); line-height: 1.8; }
.location-link { margin-top: 16px; }

.enquiry {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
}
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.form-head h3 { font-size: 1.3rem; }
.form-head span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }
.field label .req { color: var(--seal); }
.field label .optional { font-weight: 400; color: var(--muted); letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px;
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  transition: border-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft), background-color .2s var(--ease-soft);
}
.field select { padding-right: 38px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-200); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-700); box-shadow: 0 0 0 4px var(--brand-050); background: #fff;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--danger); box-shadow: 0 0 0 4px #FBEEEC;
}
.hint { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.field-error { font-size: 11.5px; color: var(--danger); line-height: 1.6; min-height: 0; }
.field-error:empty { display: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.75; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--seal); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-status {
  margin-bottom: 18px; padding: 12px 14px;
  border: 1px solid var(--danger); color: var(--danger); background: #FBEEEC;
  border-radius: 12px; font-size: 13px; line-height: 1.7;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-actions .form-note { margin: 0; max-width: 34ch; }
.form-success {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
}
.form-success .success-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--seal); color: var(--seal); margin-bottom: 20px;
  border-radius: var(--r-sm);
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { font-size: 14px; color: var(--muted); }
.form-success p + p { margin-top: 8px; }

/* ---------- Legal ---------- */
.legal-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.legal-head .lede { margin-top: 14px; }
.legal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); margin-top: 40px; }
.legal-item { padding: 26px 30px 0 0; }
.legal-item + .legal-item { border-inline-start: 1px solid var(--line); padding-inline-start: 30px; }
.legal-item h3 { font-size: 15.5px; margin-bottom: 10px; }
.legal-item p { font-size: 14px; line-height: 1.85; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark); padding-top: clamp(56px, 7vw, 96px); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .7fr)); gap: clamp(28px, 4vw, 56px); }
.footer-brand p { color: var(--on-dark-mut); font-size: 13.5px; line-height: 1.9; max-width: 34ch; margin-top: 18px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-mut); margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { font-size: 13.5px; color: rgba(237,242,250,.82); transition: color .2s var(--ease-soft); }
.footer-col a:hover { color: var(--seal-on-dark); }
.footer-mark {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.2rem, 12vw, 11rem); line-height: .95; letter-spacing: -.02em;
  color: rgba(237,242,250,.10);
  margin-top: clamp(44px, 6vw, 84px); user-select: none;
}
.footer-bottom { border-top: 1px solid rgba(237,242,250,.16); margin-top: 28px; padding-block: 22px 30px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; justify-content: space-between; font-size: 12px; color: var(--on-dark-mut); }
.footer-legal-links { margin-top: 12px; }
.footer-legal .advice { max-width: none; line-height: 1.8; }
.footer-legal a { border-bottom: 1px solid rgba(237,242,250,.28); }
.footer-legal a:hover { color: var(--seal-on-dark); border-color: var(--seal-on-dark); }
.footer-credit { margin-top: 12px; font-size: 11px; color: rgba(169,183,211,.9); line-height: 1.7; }

/* ---------- Mobile quick actions ---------- */
.mobile-dock { display: none; }

/* ---------- Inner pages ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(34px, 5vw, 64px)); padding-bottom: clamp(32px, 4vw, 56px); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--seal); border-color: var(--seal); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.08; letter-spacing: -.025em; margin: 16px 0 20px; }
.page-head .lede { font-size: clamp(15px, 1.3vw, 16.5px); }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-meta { display: grid; gap: 14px; padding-bottom: 6px; }
.page-meta div { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.page-meta dt { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.page-meta dd { margin: 0; font-family: var(--font-display); font-size: 15.5px; }

.plate-wrap { padding-bottom: clamp(36px, 5vw, 60px); }
.plate {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.plate figure { margin: 0; }
.plate-media { padding: clamp(18px, 2.2vw, 28px); }
.plate-media img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.plate-media figcaption { margin-top: 12px; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.plate-copy { padding: clamp(24px, 3vw, 44px); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.plate-copy .kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--seal); text-transform: uppercase; }
.plate-copy p { font-size: 14.5px; line-height: 1.9; color: var(--muted); }
.plate-copy .link-underline { align-self: flex-start; }
.plate-copy .plate-title { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.55; color: var(--ink); }

.calc {
  margin-top: 34px; max-width: 520px; padding: 22px 24px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.calc h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; margin-bottom: 12px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.calc-row strong { font-family: var(--font-display); font-size: 15px; color: var(--ink); white-space: nowrap; }
.calc-row.total { border-bottom: 0; padding-top: 14px; color: var(--ink); }
.calc-row.total strong { color: var(--seal); font-size: 20px; }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); border-top: 1px solid var(--line-2); margin-top: 36px; }
.spec { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.spec-no { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--seal); padding-top: 5px; }
.spec h3 { font-size: 16px; margin-bottom: 6px; }
.spec p { font-size: 13.8px; line-height: 1.85; color: var(--muted); }

.notice {
  margin-top: 34px; padding: 20px 22px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-inline-start: 2px solid var(--seal);
  border-radius: var(--r-md);
  font-size: 13px; line-height: 1.9; color: var(--muted);
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  column-gap: 28px; row-gap: 6px; align-items: baseline;
}
.notice strong { color: var(--ink); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; }

.terms { border-top: 1px solid var(--line-2); margin-top: 32px; }
.terms ol { counter-reset: term; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.terms li {
  counter-increment: term; position: relative;
  padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line);
  font-size: 13.2px; line-height: 1.85; color: var(--muted);
}
.terms li::before {
  content: counter(term, decimal-leading-zero);
  position: absolute; left: 0; top: 16px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--seal);
}

.related { border-top: 1px solid var(--line-2); margin-top: 30px; }
.related a {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: baseline; gap: 16px; padding: 18px 12px;
  margin-inline: -12px; border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease-soft), background-color .2s var(--ease-soft);
}
.related .r-no { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.related .r-name { font-family: var(--font-display); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.related .r-arrow { font-size: 16px; color: var(--muted); transition: transform .3s var(--ease); }
.related a:hover { color: var(--seal); background: var(--paper-2); }
.related a:hover .r-arrow { transform: translateX(4px); color: var(--seal); }

/* ============================================================
   V3 MODERN NAVY-EDITORIAL ENHANCEMENTS (Home + 14 Inner Pages)
   ============================================================ */

/* ---------- Hero Multi-Slide & Interactive Controls ---------- */
.hero {
  min-height: clamp(540px, 72vh, 720px);
  padding-block: calc(var(--header-h) + 32px) clamp(56px, 6vw, 84px);
}
.hero-bg-slides { position: absolute; inset: 0; z-index: -2; }
.hero-bg-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s var(--ease-soft), transform 7s ease-out;
  transform: scale(1.06);
}
.hero-bg-slide.is-active { opacity: 1; transform: scale(1); }
.hero-bg-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.hero-bg-slides::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(14,32,74,.96) 0%, rgba(18,41,92,.88) 40%, rgba(18,41,92,.56) 72%, rgba(18,41,92,.36) 100%),
    linear-gradient(0deg, rgba(14,32,74,.94) 0%, rgba(18,41,92,.32) 45%, rgba(18,41,92,.15) 80%);
}
.hero-slides-text { position: relative; }
.hero-text-pane { display: none; animation: rise-in .65s var(--ease) both; }
.hero-text-pane.is-active { display: block; }
.hero-highlights {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(237,242,250,.11); border: 1px solid rgba(237,242,250,.22);
  font-size: 12.5px; font-weight: 500; color: var(--on-dark);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-pill svg { width: 14px; height: 14px; color: var(--brand-200); flex: none; }

.hero-switcher {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid rgba(237,242,250,.16);
}
.hero-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: rgba(237,242,250,.07); border: 1px solid rgba(237,242,250,.16);
  color: rgba(237,242,250,.72); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all .25s var(--ease-soft);
}
.hero-tab span { font-family: var(--font-mono); font-size: 10.5px; opacity: .7; }
.hero-tab:hover { background: rgba(237,242,250,.14); color: #fff; }
.hero-tab.is-active {
  background: var(--paper); color: var(--brand-900);
  border-color: var(--paper); font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.35);
}
.hero-tab.is-active span { color: var(--brand-500); opacity: 1; }

/* Interactive links on hero right graphic cards */
a.hg-card {
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
a.hg-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 48px -20px rgba(4,12,30,.85);
}

/* ---------- Enhanced Trust & Metrics Strip ---------- */
.proof-item {
  padding: clamp(20px, 2.4vw, 30px) 16px;
  display: flex; align-items: center; justify-content: flex-start; gap: 14px;
}
.proof-icon-box {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--brand-050); color: var(--brand-700);
}
.proof-icon-box svg { width: 22px; height: 22px; color: var(--brand-700); }
.proof-text { display: grid; gap: 2px; min-width: 0; }
.proof-label { font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: normal; }
.proof-sub { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------- Bento Product Card Grid ---------- */
.products-bento {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}
.product-card {
  group: card;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
}
.product-card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
  opacity: 0; transition: opacity .3s var(--ease-soft); z-index: 3;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand-200);
}
.product-card:hover::before { opacity: 1; }
.pc-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--ink-2);
}
.pc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .65s var(--ease);
}
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,41,92,.05) 30%, rgba(18,41,92,.62) 100%);
}
.pc-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 4px 11px; border-radius: var(--r-pill);
  background: rgba(18,41,92,.82); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pc-QuickTag {
  position: absolute; bottom: 12px; left: 14px; z-index: 2;
  font-size: 12px; font-weight: 600; color: #fff;
  letter-spacing: .04em;
}
.pc-body {
  padding: clamp(20px, 2.4vw, 28px);
  display: flex; flex-direction: column; flex: 1; gap: 12px;
}
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span {
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--brand-050); color: var(--brand-700);
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}
.pc-title {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: var(--ink); line-height: 1.25;
  transition: color .2s var(--ease-soft);
}
.product-card:hover .pc-title { color: var(--brand-700); }
.pc-desc { font-size: 14.2px; line-height: 1.78; color: var(--muted); flex: 1; }
.pc-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--brand-700);
}
.pc-foot .arr { transition: transform .25s var(--ease); }
.product-card:hover .pc-foot .arr { transform: translateX(5px); }

/* Special dark accent card for Free Property Valuation / Calculator CTA in Bento */
.product-card-accent {
  background: linear-gradient(155deg, var(--brand-900) 0%, var(--brand-700) 100%);
  color: var(--on-dark); border-color: var(--brand-900);
  justify-content: space-between;
}
.product-card-accent .pc-body { padding: clamp(24px, 2.8vw, 32px); }
.product-card-accent .pc-title { color: #fff; }
.product-card-accent:hover .pc-title { color: var(--brand-200); }
.product-card-accent .pc-desc { color: var(--on-dark-mut); }
.product-card-accent .pc-tags span {
  background: rgba(237,242,250,.14); color: var(--brand-200);
  border: 1px solid rgba(237,242,250,.2);
}
.product-card-accent .pc-foot {
  border-top-color: rgba(237,242,250,.16); color: #fff;
}
.pc-accent-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(237,242,250,.12); border: 1px solid rgba(237,242,250,.22);
  display: grid; place-items: center; color: var(--brand-200); margin-bottom: 8px;
}
.pc-accent-icon svg { width: 26px; height: 26px; }

/* ---------- 8 Advantages Card Grid ---------- */
.adv-8-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px); margin-top: 36px;
}
.adv-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(20px, 2.2vw, 26px);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.adv-card:hover {
  transform: translateY(-4px); border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}
.adv-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adv-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--brand-050); color: var(--brand-700);
  letter-spacing: .08em;
}
.adv-card-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--paper); color: var(--brand-500);
  display: grid; place-items: center;
}
.adv-card-icon svg { width: 20px; height: 20px; }
.adv-card h3 { font-size: 1.08rem; line-height: 1.38; color: var(--ink); margin-top: 4px; }
.adv-card p { font-size: 13.5px; line-height: 1.75; color: var(--muted); }

/* ---------- Real Success Cases Section ---------- */
.cases-showcase {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}
.case-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.case-item:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--brand-200);
}
.case-thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2);
}
.case-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.case-item:hover .case-thumb img { transform: scale(1.05); }
.case-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(18,41,92,.86); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.case-content {
  padding: clamp(20px, 2.4vw, 26px);
  display: flex; flex-direction: column; flex: 1; gap: 10px;
}
.case-content h3 { font-size: 1.22rem; color: var(--ink); }
.case-content p { font-size: 13.8px; line-height: 1.8; color: var(--muted); flex: 1; }
.case-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line);
}
.case-stat { display: grid; gap: 2px; }
.case-stat span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.case-stat strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--brand-700); }

/* Horizontal full case cards for successful_case.html */
.cases-list-full { display: grid; gap: 24px; }
.case-row-card {
  display: grid; grid-template-columns: 360px minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.case-row-media { position: relative; min-height: 240px; background: var(--ink-2); }
.case-row-media img { width: 100%; height: 100%; object-fit: cover; }
.case-row-body {
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.case-row-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.case-row-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.case-row-body p { font-size: 15px; line-height: 1.88; color: var(--muted); }
.case-row-highlights {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line);
}

/* ---------- Calculator Mode Tabs & Breakdown Bar ---------- */
.calc-tabs {
  display: inline-flex; gap: 6px; padding: 5px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-pill); margin-bottom: 6px;
}
.calc-tab {
  padding: 8px 18px; border-radius: var(--r-pill);
  border: 0; background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all .2s var(--ease-soft);
}
.calc-tab.is-active {
  background: var(--brand-700); color: #fff;
  box-shadow: 0 4px 12px -2px rgba(27,56,120,.35);
}
.calc-ratio-bar {
  height: 8px; border-radius: var(--r-pill);
  background: rgba(237,242,250,.16); overflow: hidden;
  display: flex; margin-top: 10px;
}
.calc-ratio-principal { background: var(--brand-200); height: 100%; transition: width .3s var(--ease-soft); }
.calc-ratio-interest { background: var(--brand-500); height: 100%; transition: width .3s var(--ease-soft); }
.calc-legend {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11.5px; color: var(--on-dark-mut); margin-top: 6px;
}
.calc-legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px;
}

/* ---------- Partner Referral & Recommendation Dual Banner ---------- */
.partner-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.partner-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.partner-card:hover { transform: translateY(-4px); border-color: var(--brand-200); }
.partner-reward {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600; color: var(--brand-700); line-height: 1.1;
}
.partner-reward small { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- Inner Pages: Tables, Accordions, Multi-section Forms ---------- */
.data-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-soft);
}
.styled-table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
}
.styled-table th, .styled-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line);
}
.styled-table th {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); background: var(--paper);
}
.styled-table tr:last-child td { border-bottom: 0; }
.styled-table td strong { font-family: var(--font-display); color: var(--brand-700); font-size: 16px; }

.accordion-list { display: grid; gap: 12px; }
.accordion-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.accordion-item summary {
  padding: 18px 22px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink);
  transition: background-color .2s var(--ease-soft);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { background: var(--paper-2); }
.accordion-item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--brand-700);
  transition: transform .25s var(--ease);
}
.accordion-item[open] summary::after { content: "−"; }
.accordion-item[open] summary { border-bottom: 1px solid var(--line); background: var(--brand-050); color: var(--brand-900); }
.accordion-body {
  padding: 20px 24px; font-size: 14.5px; line-height: 1.85; color: var(--muted);
  display: grid; gap: 12px;
}
.accordion-body h4 { font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.accordion-body ul { display: grid; gap: 6px; padding-left: 16px; }
.accordion-body li { list-style: disc; }

.legal-subnav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.legal-subnav a {
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: all .2s var(--ease-soft);
}
.legal-subnav a:hover { border-color: var(--brand-500); color: var(--brand-700); }
.legal-subnav a[aria-current="page"] {
  background: var(--brand-700); color: #fff; border-color: var(--brand-700);
}

.prose-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
  display: grid; gap: 18px;
}
.prose-card h2, .prose-card h3 { color: var(--ink); margin-top: 10px; }
.prose-card p { font-size: 15px; line-height: 1.9; color: var(--muted); }

.radio-group { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 14.5px; font-weight: 500; cursor: pointer;
}
.radio-pill input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand-700); }
.form-section-title {
  grid-column: 1 / -1;
  font-family: var(--font-display); font-size: 1.18rem; color: var(--brand-700);
  padding-bottom: 8px; margin-top: 8px; border-bottom: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .products-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv-8-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .case-row-card { grid-template-columns: 1fr; }
  .case-row-media { aspect-ratio: 16 / 9; min-height: auto; }
  .partner-grid { grid-template-columns: 1fr; }
  body.page-inner .footer-bottom { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .products-bento, .adv-8-grid, .cases-showcase { grid-template-columns: 1fr; }
  .hero-switcher { gap: 6px; }
  .hero-tab { font-size: 11.5px; padding: 6px 11px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
}

@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav-tel { display: none; }
  .footer-top { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .8fr)); }
}

@media (max-width: 960px) {
  .nav, .nav-side .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { color: var(--on-dark); }
  .site-header.is-stuck, .site-header.is-open { color: var(--ink); }
  .site-header.is-open { color: var(--on-dark); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
  .hero { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .cta-band { border-radius: var(--r-lg); }
  .site-footer { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .plate { border-radius: var(--r-lg); }
  .about-grid, .contact-grid, .cta-inner, .page-head-grid { grid-template-columns: 1fr; }
  .about-note { position: static; }
  .ib-grid { grid-template-columns: 1fr; }
  .ib-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .principle { padding: 20px 0; }
  .principle + .principle { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .step:nth-child(4) { border-top: 1px solid var(--line); }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-item { padding: 20px 0; }
  .legal-item + .legal-item { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .plate { grid-template-columns: 1fr; }
  .plate-copy { border-inline-start: 0; border-top: 1px solid var(--line); }
  .spec-grid { grid-template-columns: 1fr; }
  .terms ol { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(3) { border-inline-start: 0; }
  .proof-item { border-top: 1px solid var(--line); }
  .proof-item:nth-child(-n+2) { border-top: 0; }
  .estimate { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; align-items: start; gap: clamp(28px, 5vw, 44px); }
  .advantages-head { max-width: 56ch; }
  .mobile-dock {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 6px; align-items: center;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    background: rgba(249,250,247,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px -24px rgba(18,41,92,.45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .mobile-dock a {
    min-height: 44px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    padding: 5px 8px; border-radius: var(--r-xs);
    font-size: 10.5px; letter-spacing: .04em; color: var(--muted);
    transition: color .2s var(--ease-soft), background-color .2s var(--ease-soft);
  }
  .mobile-dock a:hover, .mobile-dock a:active { color: var(--seal); background: var(--brand-050); }
  .mobile-dock svg { width: 19px; height: 19px; }
  .mobile-dock .dock-primary {
    flex-direction: row; gap: 8px;
    background: var(--seal); color: #fff;
    border-radius: var(--r-pill); padding: 0 14px;
    font-size: 13px; font-weight: 600;
  }
  .mobile-dock .dock-primary:hover, .mobile-dock .dock-primary:active { background: var(--brand-900); color: #fff; }
  body.home .footer-bottom { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .hero { min-height: min(78svh, 560px); padding-block: calc(var(--header-h) + 24px) 36px; border-radius: 0 0 20px 20px; }
  .proof { margin-top: -20px; }
  .proof-grid { padding-inline: 16px; border-radius: 20px; }
  .cta-band { border-radius: 20px; }
  .site-footer { border-radius: 20px 20px 0 0; }
  .plate { border-radius: 20px; }
  .enquiry { border-radius: 20px; }
  .hero-title { font-size: clamp(1.9rem, 8.6vw, 2.4rem); line-height: 1.14; }
  .brand-logo { height: 30px; }
  .hero-lede { font-size: 15.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .image-band { margin-top: 48px; }
  .ib-side { grid-template-columns: 1fr; }
  .index-row > a { grid-template-columns: 30px 54px minmax(0, 1fr) 20px; column-gap: 12px; row-gap: 8px; padding: 20px 0; margin-inline: 0; }
  .index-thumb { width: 54px; aspect-ratio: 1; grid-row: 1 / span 2; align-self: start; }
  .index-main { grid-column: 3; grid-row: 1; gap: 7px; }
  .index-desc { grid-column: 3 / 5; grid-row: 2; font-size: 13.5px; }
  .index-name { font-size: 1.5rem; }
  .index-tags span { padding: 2px 7px; font-size: 10px; }
  .index-arrow { grid-column: 4; grid-row: 1; }
  .index-no { padding-top: 6px; }
  .estimate-form { padding: 22px 18px; }
  .estimate-row { grid-template-columns: 1fr; }
  .estimate-result { padding: 26px 22px; }
  .estimate-monthly { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .advantages-list { grid-template-columns: 1fr; }
  .advantage, .advantage:nth-child(odd), .advantage:nth-child(even) {
    padding-inline: 0; border-inline-start: 0;
  }
  .advantage { padding-block: 20px 24px; }
  .preview { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .step { padding: 22px 0; }
  .step + .step, .step:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .step-no { font-size: 2rem; margin-bottom: 12px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column; gap: 8px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head-right { text-align: start; }
  .page-head h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .enquiry { padding: 22px 18px; }
  .notice { grid-template-columns: 1fr; column-gap: 0; }
  .cta-band h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.15rem; }
  .proof-item { padding-block: 18px; gap: 8px; }
  .proof-item svg { width: 20px; height: 20px; }
  .proof-label { font-size: 12.5px; }
}

/* ---------- Motion / transitions ---------- */
@media (max-width: 960px) {
  .page-inner .site-header { color: var(--ink); }
  .page-inner .site-header.is-open { color: var(--on-dark); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-title .line > span { animation: none !important; transform: none !important; }
  .preview { display: none !important; }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-soft) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* print */
@media print {
  .site-header, .menu-overlay, .hero-media, .preview, .cta-band, .mobile-dock { display: none !important; }
  body { background: #fff; color: #000; }
  body.home .footer-bottom { padding-bottom: 0; }
}
