/* =========================================================
   Studio Pro — prostudio.my
   Design system: clean, light, editorial-professional
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink:       #0b1220;
  --text:      #333f4f;
  --muted:     #5a6a7a;
  --faint:     #64748b;
  --line:      #e0e6ed;
  --line-2:    #cbd5e1;
  --bg:        var(--surface-2);  /* page base — a hair off-white so white cards read as raised */
  --soft:      #f4f7fb;
  --soft-2:    #eaeff6;
  --primary:   #0f3460;      /* dark blue - main brand */
  --primary-hi: #164a8a;     /* hover */
  --primary-deep: #0a2444;   /* active/pressed */
  --primary-bg: #e8eff8;     /* light backgrounds */
  --accent:    #0d9488;      /* teal green - secondary actions */
  --accent-hi:  #0f766e;     /* hover */
  --accent-deep: #0a5f56;    /* active */
  --accent-bg: #e6f4f3;      /* light backgrounds */
  --grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--primary-hi) 58%, var(--accent) 132%);
  --grad-ink:   linear-gradient(135deg, #0b1220 0%, #16233c 100%);
  --grad-amber: linear-gradient(150deg, #ffe9a3 0%, #ffd166 100%);
  --grad-teal:  linear-gradient(150deg, #7fd8cf 0%, #0d9488 100%);
  --grad-blue:  linear-gradient(150deg, #a9c6ff 0%, #1657c0 100%);
  --grad-plum:  linear-gradient(150deg, #d3bcff 0%, #6d4bd8 100%);
  --good:      #059669;      /* success green */
  --bad:       #d0433a;      /* error red */

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-xs: 0 1px 2px rgba(11,18,32,.04);
  --shadow-sm: 0 1px 2px rgba(11,18,32,.05), 0 8px 24px rgba(11,18,32,.05);
  --shadow-md: 0 20px 46px rgba(11,18,32,.10);
  --shadow-lg: 0 36px 84px rgba(11,18,32,.16);

  /* ---- Elevation system (light theme) ----
     Three consistent depth levels shared by every card on the site, so
     nothing sits flat and nothing floats. Change them here and the whole
     site follows. */
  --surface:    #ffffff;            /* raised card surface */
  --surface-2:  #fbfcfe;            /* page base */
  --border-soft:#e6ebf2;            /* hairline on cards */
  --border-lift:#d5dde8;            /* hairline on hover */
  --elev-1: 0 1px 2px rgba(11,18,32,.04), 0 2px 6px rgba(11,18,32,.035);
  --elev-2: 0 2px 4px rgba(11,18,32,.04), 0 10px 24px rgba(11,18,32,.07);
  --elev-3: 0 8px 18px rgba(11,18,32,.07), 0 26px 60px rgba(11,18,32,.13);
  --lift:      -5px;                /* how far a card rises on hover */

  --max: 1180px;
  --gutter: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0;
}
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Inline links inside body copy must be distinguishable without relying on colour alone */
.section-sub a, .prose a, .faq-answer a, .field-check label a, .newsletter-copy a, .notice a { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: rgba(255,200,0,.35); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 0; top: -100px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 0 0 10px 0; transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,252,254,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11,18,32,.05);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #fff; }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 9px; flex: none; }
/* 1.2rem bold = 19.2px, which clears the WCAG large-text threshold (18.66px
   bold). That lets ONE accent colour be used in both the header and the
   footer: teal measures 3.65:1 on the light header and 5.0:1 on the dark
   footer, so the wordmark is identical in both places and still accessible.
   No single colour can do this at normal-text weight — 4.5:1 is impossible on
   a light and a dark background at the same time. */
.brand-name { font-size: 1.2rem; letter-spacing: -.02em; }
.brand-name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
.nav > a {
  color: var(--ink); font-size: .95rem; font-weight: 500;
  text-decoration: none; position: relative; padding: 4px 0;
  /* Never let a link wrap: a wrapped pill loses its shape and the 999px
     radius turns it into a blob. */
  white-space: nowrap; flex: none;
}
.nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--primary); border-radius: 2px;
  transition: right .25s var(--ease);
}
.nav > a:not(.nav-cta):hover::after { right: 0; }
/* The CTA is also a `.nav > a`, and `.nav > a` (0-1-1) outranks `.nav-cta`
   (0-1-0). Scope it as `.nav > a.nav-cta` so the pill keeps its padding and
   weight instead of inheriting the flat link styling. */
.nav > a.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(11,18,32,.22);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav > a.nav-cta:hover { background: #1b2740; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11,18,32,.28); }

/* ---------- Language toggle ---------- */
.lang { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .03em; }
.lang-btn {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  padding: 5px 7px; border-radius: 8px;
  transition: color .18s ease, background-color .18s ease;
}
.lang-btn:hover { color: var(--accent-deep); background: var(--soft); }
.lang-btn.is-active { color: var(--accent-deep); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-sep { color: var(--line-2); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 44px; padding: 0 11px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 11px; cursor: pointer;
}
/* width:100% is required — the toggle is a column flex with align-items:center,
   so these empty spans would otherwise collapse to zero width and the button
   would render blank. */
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-size: .96rem; font-weight: 600;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(15,52,96,.34); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hi) 58%, var(--accent) 132%); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hi) 0%, var(--accent-hi) 120%); box-shadow: 0 14px 30px rgba(15,52,96,.44); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { border-color: var(--primary-deep); background: var(--primary-bg); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible, .nav-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 74px);
  background:
    radial-gradient(780px 420px at 94% -18%, rgba(13,148,136,.20) 0%, rgba(13,148,136,0) 60%),
    radial-gradient(900px 470px at 86% -6%, rgba(255,200,0,.24) 0%, rgba(255,200,0,0) 62%),
    radial-gradient(720px 460px at -10% 6%, rgba(31,95,208,.16) 0%, rgba(31,95,208,0) 60%),
    linear-gradient(180deg, #eef4fb 0%, #f7fafd 52%, #fbfcfe 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15,52,96,.16) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(720px 420px at 82% 4%, #000 0%, transparent 72%);
  mask-image: radial-gradient(720px 420px at 82% 4%, #000 0%, transparent 72%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  /* the copy column gets more room: at an even split the headline broke into
     four ragged lines and the mockup sat in a wide empty margin */
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(36px, 5vw, 60px); align-items: center;
}
/* text column: allowed to shrink below its content width so the hero never
   overflows on narrow screens (the visual column keeps its own min-width) */
.hero-copy { min-width: 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: .13em;
  font-size: .74rem; font-weight: 700; color: var(--primary);
  margin-bottom: 16px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(15,52,96,.22); }
/* 3.45rem caps the headline so it sets in three lines on a wide screen
   instead of four ragged ones */
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.45rem); margin-bottom: 22px; text-wrap: balance; }
.lead { font-size: 1.13rem; color: var(--text); max-width: 33em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: grid; gap: 11px; }
.hero-points li { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero-points svg { width: 18px; height: 18px; flex: none; color: var(--good); }

/* --- Hero visual: browser mockup --- */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -6% -5% -10% 4%; z-index: 0;
  background: linear-gradient(135deg, rgba(15,52,96,.25) 0%, rgba(13,148,136,.22) 55%, rgba(255,209,102,.30) 100%);
  filter: blur(52px); opacity: .5; border-radius: 42px;
}
.browser {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; background: var(--soft-2); border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.dot:nth-child(1) { background: #ff8b7a; }
.dot:nth-child(2) { background: #ffd166; }
.dot:nth-child(3) { background: #8fd9a8; }
.browser-url {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 4px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .76rem; color: var(--muted);
}
.browser-url svg { width: 12px; height: 12px; }

.browser-body { padding: 22px 22px 24px; }
.mini-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.mini-logo { width: 34px; height: 12px; border-radius: 4px; background: var(--ink); }
.mini-links { display: flex; gap: 10px; margin-left: auto; }
.mini-links i { width: 34px; height: 8px; border-radius: 4px; background: var(--line-2); }
.mini-btn { width: 62px; height: 20px; border-radius: 999px; background: var(--primary); }
.mini-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center; margin-bottom: 20px; }
.mini-copy { display: grid; gap: 9px; }
.mini-line { height: 11px; border-radius: 5px; background: #e9edf4; }
.mini-line.w90 { width: 90%; background: #dfe6f0; height: 15px; }
.mini-line.w70 { width: 70%; background: #dfe6f0; height: 15px; }
.mini-line.w100 { width: 100%; }
.mini-line.soft { background: #eef2f7; }
.mini-line.w60 { width: 60%; }
.mini-cta { width: 108px; height: 30px; border-radius: 999px; background: var(--ink); margin-top: 6px; }
.mini-art {
  height: 128px; border-radius: 14px;
  background: linear-gradient(140deg, #ffe9a3 0%, #ffd24d 40%, #8fb8ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-cards span { height: 52px; border-radius: 11px; background: var(--soft-2); border: 1px solid var(--line); }

.float-card {
  position: absolute; z-index: 3;   /* must sit above the browser mockup (z-index 1) */
  background: #fff; border: 1px solid var(--line);
  border-radius: 15px; box-shadow: var(--shadow-md); padding: 13px 16px;
  animation: floaty 5s ease-in-out infinite;
}
.float-speed { left: -26px; bottom: 34px; }
.float-speed .float-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.float-speed strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.float-speed strong span { font-size: .85rem; color: var(--faint); }
.float-rank {
  right: -20px; top: 36px; display: flex; align-items: center; gap: 10px;
  animation-delay: 1.4s;
}
.float-rank svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.float-rank span { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.float-rank strong { color: var(--ink); font-size: .88rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* --- Trust bar --- */
.trust-bar {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap;
}
.trust-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 9px; }
.trust-logos .trust-logo {
  font-family: var(--font-sans); font-size: .8rem; font-weight: 600;
  color: var(--muted); background: #fff; border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.trust-logos .trust-logo:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(72px, 8.5vw, 116px) 0; background: #fff; }
.section-soft { background: linear-gradient(180deg, #f2f6fb 0%, #e8eef7 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 58px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.section-sub { font-size: 1.08rem; color: var(--text); }
.section-head.center .section-sub { max-width: 40rem; margin: 0 auto; }
.section-head.center .eyebrow {
  background: linear-gradient(135deg, var(--primary-bg), var(--accent-bg));
  border: 1px solid rgba(15,52,96,.10);
  padding: 7px 15px; border-radius: 999px;
}

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease;
}
.feature::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.feature:hover::after { transform: scaleX(1); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-amber); color: #8a6b00; margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.feature:nth-child(1) .feature-icon { background: var(--grad-blue); color: #10357e; }
.feature:nth-child(2) .feature-icon { background: var(--grad-teal); color: #0b5f57; }
.feature:nth-child(4) .feature-icon { background: var(--grad-plum); color: #4c2fa0; }
.feature:nth-child(1)::after { background: var(--grad-blue); }
.feature:nth-child(2)::after { background: var(--grad-teal); }
.feature:nth-child(4)::after { background: var(--grad-plum); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 9px; }
.feature p { font-size: .93rem; color: var(--muted); }

.standards {
  margin-top: clamp(36px, 4vw, 48px);
  padding: 18px 22px;
  background: linear-gradient(135deg, #fff, #f7fafc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  text-align: center;
}
.standards-note { font-size: .96rem; color: var(--text); }
.standards-note strong { color: var(--ink); }

/* ---------- Pricing / tier grid ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier-featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #fffdf4 0%, #ffffff 40%) padding-box,
    linear-gradient(140deg, #f2c94c 0%, var(--primary) 55%, var(--accent) 100%) border-box;
  box-shadow: 0 24px 54px rgba(15,52,96,.15);
}
.tier-featured:hover { box-shadow: 0 30px 64px rgba(15,52,96,.22); }
.tier-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 8px 18px rgba(15,52,96,.30);
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.tier-head { margin-bottom: 18px; }
.tier h3 { font-size: 1.34rem; margin-bottom: 6px; }
.tier-desc { font-size: .92rem; color: var(--muted); }
.tier-price { font-family: var(--font-display); font-size: 2.7rem; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.tier-price .cur { font-family: var(--font-sans); font-size: .92rem; font-weight: 600; color: var(--muted); vertical-align: super; margin-right: 3px; letter-spacing: 0; }
.tier-price em { font-family: var(--font-sans); font-size: .92rem; font-style: normal; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tier-meta { font-size: .82rem; color: var(--faint); margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tier-list { display: grid; gap: 12px; margin-bottom: 28px; }
.tier-list li { position: relative; padding-left: 30px; font-size: .93rem; color: var(--text); }
.tier-list li::before {
  content: ""; position: absolute; left: 0; top: .12em;
  width: 19px; height: 19px; border-radius: 50%;
  background-color: var(--primary-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6 9 17l-5-5' stroke='%230f3460' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.tier-featured .tier-list li::before {
  background-color: rgba(15,52,96,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6 9 17l-5-5' stroke='%230f3460' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tier .btn { margin-top: auto; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 30px; padding: 20px 22px;
  background: linear-gradient(135deg, #f0f4fa, #eef4fb);
  border: 1px solid #c8d8ec; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}
.notice-ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem;
}
.notice p { font-size: .92rem; color: var(--text); }
.notice strong { color: var(--ink); }

.addons {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  margin-top: 30px; padding: 18px 22px;
  background: var(--soft); border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--muted);
}
.addons strong { color: var(--ink); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; }
.addons span { padding: 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }

.notice + .addons { margin-top: 14px; }

/* ---------- Pricing in context ---------- */
.compare-band {
  background: linear-gradient(180deg, #fdf9ea, #f6f0dd);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.compare {
  max-width: 62rem; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden;
}
.compare-row {
  display: grid; grid-template-columns: 1.05fr .85fr 1.6fr; gap: 18px;
  align-items: center; padding: 18px 26px;
  border-top: 1px solid var(--line);
}
.compare-row:first-child { border-top: 0; }
.compare-head {
  padding: 13px 26px; background: var(--soft);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.compare-name { font-weight: 600; color: var(--ink); }
.compare-price { font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.compare-price em { font-family: var(--font-sans); font-size: .78rem; font-style: normal; font-weight: 600; color: var(--muted); }
.compare-what { font-size: .92rem; color: var(--muted); }
.compare-us { background: #eef4fb; box-shadow: inset 3px 0 0 var(--primary); }
.compare-us .compare-name { color: var(--ink); }
.compare-us .compare-what { color: var(--text); }
.compare-note { max-width: 46rem; margin: 22px auto 0; text-align: center; font-size: .86rem; color: var(--faint); }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s ease;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-shot {
  position: relative; display: block; width: 100%; margin: 0; padding: 0;
  border: 0; border-bottom: 1px solid var(--line); background: var(--soft-2);
  cursor: pointer; overflow: hidden; aspect-ratio: 16 / 10;
}
.work-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .5s var(--ease);
}
.work-shot:hover img { transform: scale(1.045); }
.work-shot:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.work-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0) 55%, rgba(11,18,32,.28));
  opacity: 0; transition: opacity .25s ease;
}
.work-shot:hover::after { opacity: 1; }
.work-open {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px);
  z-index: 2; opacity: 0; transition: opacity .25s ease, transform .25s var(--ease);
  background: #fff; color: var(--ink); font-size: .78rem; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.work-shot:hover .work-open, .work-shot:focus-visible .work-open { opacity: 1; transform: translate(-50%, 0); }
/* Touch devices have no hover — keep the "View site" affordance visible */
@media (hover: none) {
  .work-shot .work-open { opacity: 1; transform: translate(-50%, 0); }
}
.work-body { padding: 22px 22px 24px; }
.work-body h3 { font-size: 1.12rem; margin-bottom: 7px; }
.work-body p { font-size: .91rem; color: var(--muted); margin-bottom: 15px; }
.work-tag {
  display: inline-block; font-family: var(--font-sans);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-deep); background: var(--accent-bg); padding: 5px 12px; border-radius: 999px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s ease;
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 20px rgba(15,52,96,.24);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  margin-bottom: 18px;
}
.steps h3 { font-size: 1.12rem; margin-bottom: 9px; }
.steps p { font-size: .91rem; color: var(--muted); }

/* ---------- Quotes ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  position: relative; overflow: hidden;
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
}
.quote::before {
  content: "\201C"; position: absolute; top: -26px; right: 14px;
  font-family: var(--font-display); font-size: 8rem; line-height: 1;
  color: var(--primary); opacity: .07; pointer-events: none;
}
.quote > * { position: relative; }
.stars { color: #e0a400; letter-spacing: 3px; font-size: .95rem; margin-bottom: 14px; }
.quote blockquote { margin: 0 0 22px; font-size: 1.02rem; line-height: 1.65; color: var(--ink); }
.quote figcaption { margin-top: auto; font-size: .88rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.quote figcaption span { font-size: .8rem; color: var(--muted); }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter { background: linear-gradient(180deg, #ffffff, #fbfcfe); }
.newsletter-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 60px);
  align-items: center;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(15,52,96,.30), rgba(13,148,136,.28) 55%, rgba(255,209,102,.45)) border-box;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4.5vw, 60px);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.newsletter-card::before {
  content: ""; position: absolute; top: -140px; right: -120px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(15,52,96,.12), rgba(15,52,96,0) 68%);
  pointer-events: none;
}
.newsletter-copy { position: relative; }
.newsletter-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 18px; }
.newsletter-copy > p { font-size: 1.05rem; color: var(--text); margin-bottom: 24px; }
.newsletter-points { display: grid; gap: 11px; }
.newsletter-points li { display: flex; align-items: center; gap: 11px; font-size: .95rem; color: var(--text); font-weight: 500; }
.newsletter-points svg { width: 18px; height: 18px; flex: none; color: var(--good); }

.subscribe-card {
  position: relative;
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px;
}
.subscribe-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.subscribe-sub { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }

/* =========================================================
   FORMS
   ========================================================= */
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.optional { font-weight: 400; color: var(--faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: .96rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,52,96,.13);
}
/* keyboard focus must stay visible even when the mouse focus style is on */
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.field input.invalid, .field textarea.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(208,67,58,.11); }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.field-check label { font-size: .84rem; font-weight: 400; color: var(--muted); margin: 0; line-height: 1.5; }
.field-check label a { font-weight: 600; }

.form-msg { margin-top: 14px; font-size: .88rem; min-height: 1.25em; color: var(--muted); }
.form-msg.error { color: var(--bad); }
.form-msg.success { color: var(--good); font-weight: 600; }
.form-trust { margin-top: 12px; font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* =========================================================
   TRUST BAR (hero) — styles live with the hero block above
   ========================================================= */

/* =========================================================
   FAQ (light grey background)
   ========================================================= */
.faq-grid {
  display: grid;
  gap: 10px;
  max-width: 52rem;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  background: var(--primary-bg);
  border-radius: 50%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  line-height: 1.7;
  animation: faqIn .18s var(--ease);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   COMPONENT ELEVATION SYSTEM
   One shared treatment for every card on the site. The base rules above
   are fine individually, but they were not built as a set: some cards had
   a hairline and no shadow, some a shadow and no border, and they all
   lifted a different distance. These rules put them on one level so the
   page reads as a single system.
   ========================================================= */
.feature,
.tier,
.steps li,
.work-card,
.quote {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--elev-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
}
.feature:hover,
.tier:hover,
.steps li:hover,
.work-card:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--elev-3);
  border-color: var(--border-lift);
}
.quote:hover { border-color: var(--border-lift); box-shadow: var(--elev-2); }

/* --- Feature cards: icon with a soft coloured glow --- */
.feature { padding: 30px 26px 32px; }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 10px 22px rgba(11,18,32,.10);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.feature:hover .feature-icon { transform: translateY(-2px) scale(1.04); }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.14rem; margin-bottom: 10px; }
.feature p { font-size: .93rem; color: var(--muted); line-height: 1.62; }

/* --- Care Plan tiers: give the featured plan real presence --- */
.tier { padding: 34px 30px; }
.tier-featured {
  border-width: 1.5px;
  box-shadow: 0 26px 60px rgba(15,52,96,.16), 0 4px 12px rgba(15,52,96,.06);
}
.tier-featured:hover { box-shadow: 0 34px 76px rgba(15,52,96,.22), 0 6px 16px rgba(15,52,96,.08); }
.tier-price { font-size: 2.95rem; }
.tier-badge {
  top: -15px;
  padding: 7px 16px;
  box-shadow: 0 10px 22px rgba(15,52,96,.34);
}

/* --- Work cards: image zoom, gradient scrim, sliding action --- */
.work-shot { border-bottom: 1px solid var(--border-soft); background: var(--soft-2); }
.work-shot img { transition: transform .6s var(--ease); }
.work-shot:hover img { transform: scale(1.06); }
.work-shot::after {
  background: linear-gradient(180deg, rgba(11,18,32,0) 42%, rgba(11,18,32,.45));
}
.work-open {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--elev-2);
  border: 1px solid var(--border-soft);
}
.work-body { padding: 24px 24px 26px; }
.work-body h3 { font-size: 1.15rem; }
.work-tag { background: var(--accent-bg); color: var(--accent-deep); }

/* --- Process steps: a connected timeline --- */
.steps { gap: 22px; }
.steps li { padding: 30px 24px 32px; }
.steps li::before {
  content: ""; position: absolute; top: 53px; left: 100%; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--line-2), var(--line-2));
  opacity: .9;
}
.steps li:last-child::before { display: none; }
.step-num {
  width: 48px; height: 48px; border-radius: 15px;
  box-shadow: 0 12px 24px rgba(15,52,96,.26), inset 0 0 0 1px rgba(255,255,255,.18);
  font-size: 1.06rem;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.steps li:hover .step-num { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 30px rgba(15,52,96,.32); }

/* --- Testimonials: larger mark, warmer stars --- */
.quote { padding: 32px 30px; }
.quote::before { top: -30px; right: 10px; font-size: 9rem; opacity: .06; }
.stars { color: #d99b00; margin-bottom: 16px; }
.quote blockquote { font-size: 1.04rem; line-height: 1.68; }

/* --- Pricing comparison: readable rows --- */
.compare-row { transition: background-color .18s ease; }
.compare-row:not(.compare-head):not(:first-child):hover { background: #f7fafd; }
.compare-us { background: #eaf1fa; box-shadow: inset 3px 0 0 var(--primary); }

/* --- FAQ: an open item reads as active --- */
.faq-item {
  background: var(--surface); border: 1px solid var(--border-soft);
  box-shadow: var(--elev-1);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: var(--border-lift); box-shadow: var(--elev-2); }
.faq-item[open] { background: var(--surface); border-color: var(--border-lift); box-shadow: var(--elev-2); }
.faq-item summary { transition: color .18s ease; }
.faq-item summary:hover { color: var(--primary); }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 100px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 13px;
  /* Dark ink on WhatsApp green measures ~7:1 — the brand's white-on-green
     fails WCAG AA (2.33:1). The shadow is gone with it: it only existed to
     fake contrast under white text. */
  color: var(--ink);
  background: #25D366;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(11,18,32,.18), 0 12px 28px rgba(11,18,32,.24);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  animation: wppIn .3s var(--ease) .5s both;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, bottom .25s var(--ease);
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #1EBE5A;
  box-shadow: 0 3px 8px rgba(11,18,32,.20), 0 16px 34px rgba(11,18,32,.30);
  text-decoration: none;
}
.whatsapp-float:active { transform: translateY(0); background: #17A34E; }
.whatsapp-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* ink disc + white glyph: pairs with the dark label text and keeps the mark
   legible against the green pill */
.whatsapp-float svg {
  width: 26px; height: 26px; flex: none;
  padding: 5px; border-radius: 50%;
  background: var(--ink); color: #fff; fill: currentColor;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
.whatsapp-float:hover svg { color: #1EBE5A; background: #fff; }
.whatsapp-float span { white-space: nowrap; }
@keyframes wppIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   STICKY CTA
   ========================================================= */
.sticky-cta {
  position: fixed;
  z-index: 100;
  left: 0; right: 0; bottom: 0;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform .25s var(--ease);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta[hidden] { display: none; }
.sticky-cta .btn { flex: 1; max-width: 280px; text-align: center; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.contact-copy .section-sub { margin-bottom: 30px; }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: #fff; border: 1px solid var(--line); color: var(--primary);
  box-shadow: var(--shadow-xs);
}
.contact-ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 1px; }
.contact-list a, .contact-plain { font-size: 1.06rem; color: var(--ink); font-weight: 500; }
.contact-plain { display: inline-block; }
/* location row: place name + a quiet "view on Google Maps" affordance */
.contact-maplink {
  display: block; margin-top: 3px;
  font-size: .8rem; font-weight: 600; color: var(--accent-deep);
}
.contact-list a:hover .contact-maplink { text-decoration: underline; }
.contact-list a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-md);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--grad-ink);
  border-top: 0; padding: 64px 0 30px;
  color: rgba(224,232,244,.74);
  /* keep the floating WhatsApp / AI controls clear of the footer links */
  padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-brand);
}
.site-footer::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(13,148,136,.30), rgba(13,148,136,0) 68%);
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.site-footer .brand { color: #fff; }
/* No wordmark override: the header and footer share the exact same wordmark
   (ink/white base + teal accent), so the two logos read consistently. */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 16px; color: rgba(224,232,244,.72); font-size: .93rem; }
.footer-note { margin-top: 10px !important; font-family: var(--font-display); font-size: 1rem !important; color: #fff !important; }
.footer-nav { display: grid; gap: 11px; align-content: start; }
.footer-nav h3 { font-family: var(--font-sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: rgba(224,232,244,.5); margin-bottom: 3px; }
.footer-nav a { color: rgba(224,232,244,.84); font-size: .93rem; text-decoration: none; transition: color .18s ease; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.13);
  font-size: .85rem; color: rgba(224,232,244,.6);
}

/* =========================================================
   WORK LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(9,14,26,.82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__frame {
  position: relative; width: 100%; max-width: min(1040px, 94vw);
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.lightbox__frame img { width: 100%; max-height: 74vh; object-fit: contain; background: var(--soft-2); }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-top: 1px solid var(--line);
}
.lightbox__bar strong { font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.lightbox__bar a { font-weight: 600; font-size: .9rem; }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: rgba(11,18,32,.6); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer; transition: background .18s ease;
}
.lightbox__close:hover { background: rgba(11,18,32,.85); }

/* =========================================================
   STUDIO PRO AI — floating chat box (reused widget)
   ========================================================= */
.aiw {
  position: fixed; z-index: 120; right: 22px; bottom: 22px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  transition: bottom .25s var(--ease);
}
.aiw-row { display: flex; align-items: center; gap: 10px; }
.aiw-label {
  font-size: .78rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 13px; box-shadow: var(--shadow-sm);
}
.aiw-fab {
  width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.6);
  background: linear-gradient(135deg, var(--primary), var(--primary-hi)); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(15,52,96,.42);
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.aiw-fab:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--primary-hi), var(--accent)); box-shadow: 0 16px 34px rgba(15,52,96,.52); }
.aiw-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.aiw-fab svg { width: 26px; height: 26px; }
.aiw-panel {
  position: relative;
  display: flex; flex-direction: column; overflow: hidden;
  width: min(380px, calc(100vw - 20px));
  height: calc(100dvh - 120px);
  max-height: calc(100dvh - 120px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: aiwIn .18s var(--ease);
}
.aiw-panel[hidden] { display: none; }
@keyframes aiwIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.aiw-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,200,0,.18), rgba(255,200,0,.04));
}
.aiw-title { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.aiw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(28,138,79,.18); }
.aiw-close {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-size: 13px; line-height: 1; cursor: pointer;
  transition: border-color .18s ease;
}
.aiw-close:hover { border-color: var(--ink); }
.aiw-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.aiw-loading { position: absolute; inset: 44px 0 0; z-index: 2; display: grid; place-items: center; background: #fff; }
.aiw-loading[hidden] { display: none; }
.aiw-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--primary); animation: aiwSpin .8s linear infinite; }
@keyframes aiwSpin { to { transform: rotate(360deg); } }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.page-head { padding: clamp(56px, 7vw, 84px) 0 28px; background: linear-gradient(180deg, #fbfcfe, #fff); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 6px; }
.prose { max-width: 46rem; padding: 52px 0 96px; }
.prose h2 { font-size: 1.32rem; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--text); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { font-weight: 600; }
/* 404 page: centred message with room to breathe between header and footer */
.section-nf { padding: clamp(72px, 12vh, 140px) 0 clamp(80px, 14vh, 160px); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .btn:hover, .feature:hover, .tier:hover, .work-card:hover, .steps li:hover { transform: none; }
  .sticky-cta, .whatsapp-float, .aiw { transition: none; }
  .aiw-panel, .faq-answer { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .tier-grid, .work-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* Two-up steps: the connector must only join 1→2 and 3→4. On the second
   item of each row it would point into empty space, so it is hidden there.
   (Below 760px the steps stack and use a vertical spine instead.) */
@media (min-width: 761px) and (max-width: 1040px) {
  .steps li:nth-child(2n)::before { display: none; }
}
@media (max-width: 940px) {
  .hero-grid, .newsletter-card, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; margin: 0 auto; }
  .float-speed { left: -12px; }
  .float-rank { right: -8px; }
  .newsletter-card::before { top: -180px; right: -160px; }
}
/* =========================================================
   HEADER — medium screens
   The full nav needs ~899px of viewport in English and ~1005px in Malay
   (Malay labels are longer), once the brand (137) + nav + language switch
   (76) + gaps are added. Below that the nav links were being squeezed by
   flex-shrink, which wrapped "Get a quote" onto three lines inside a
   999px-radius pill — a black blob — and in Malay the row overflowed the
   screen entirely. The drawer therefore takes over at 1080px, comfortably
   above the point where the longest translation stops fitting.
   ========================================================= */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 10px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 15px 10px; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .nav > a:not(.nav-cta)::after { display: none; }
  .nav > a:last-child { border-bottom: none; }
  /* justify-content, not text-align: the drawer link is a flex container, so
     text-align would not centre the label within the full-width bar */
  .nav > a.nav-cta {
    text-align: center;
    justify-content: center;
    margin-top: 12px;
    white-space: nowrap;
    align-self: stretch;
    width: 100%;
    flex-shrink: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Narrow phones: the brand, language switch and menu button must all fit in
   280px of content. The logo mark shrinks a little and the language switch is
   grouped with the menu button on the right, which frees the space the
   wordmark now needs. */
@media (max-width: 420px) {
  .header-inner { gap: 6px; }
  .brand { margin-right: auto; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .lang { margin-left: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  /* Mobile touch fixes — everything interactive clears 44×44 CSS px (WCAG 2.5.5) */
  .field input, .field textarea { font-size: 16px; } /* prevents iOS Safari auto-zoom on focus */
  .faq-item summary { padding: 12px 0; min-height: 44px; }
  .footer-nav a { padding: 9px 0; display: inline-block; min-height: 44px; }
  .lang-btn { padding: 8px 9px; min-height: 44px; min-width: 44px; }
  .contact-list a, .contact-plain { display: inline-block; padding: 5px 0; min-height: 44px; }
  .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

  .compare-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 16px 20px; }
  .compare-head { display: none; }
  .compare-name { grid-column: 1; }
  .compare-price { grid-column: 2; text-align: right; font-size: 1.1rem; }
  .compare-what { grid-column: 1 / -1; }
  .field-check input { width: 26px; height: 26px; margin-top: 1px; flex: none; }
  .field-check label { padding: 9px 0; min-height: 44px; }
  /* inline links in body copy need a comfortable tap area too */
  .section-sub a, .newsletter-copy a, .prose a, .faq-answer a, .footer-brand a, .footer-bottom a, .footer-nav a, .field-check label a {
    display: inline-block; padding: 7px 0; min-height: 44px; line-height: 30px;
  }
  .field-check label a { padding: 9px 2px; min-height: 44px; line-height: 26px; vertical-align: middle; }

  .feature-grid, .tier-grid, .work-grid, .quote-grid, .steps, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .tier-featured { order: -1; }
  /* the process timeline is horizontal on desktop; stacked, the connector
     line would point at nothing, so it is replaced by a vertical spine */
  .steps { gap: 16px; }
  .steps li { padding: 26px 24px 28px 68px; }
  .step-num { position: absolute; left: 24px; top: 26px; margin-bottom: 0; }
  .steps li::before {
    top: 74px; bottom: -16px; left: 47px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--line-2), var(--line-2));
  }
  .steps li:last-child::before { display: none; }
  /* tighter cards on a phone */
  .feature { padding: 26px 22px 28px; }
  .tier { padding: 28px 24px; }
  .quote { padding: 28px 24px; }
  .work-body { padding: 20px 20px 22px; }
  .tier-price { font-size: 2.6rem; }
  .trust-bar { gap: 16px; }
  .footer-bottom { flex-direction: column; }
  .subscribe-card, .contact-form { padding: 26px 22px; }
  /* long button labels ("Subscribe to the newsletter") must be allowed to wrap on
     phones — otherwise the nowrap label forces a min-width that overflows the card */
  .subscribe-card .btn, .contact-form .btn, .sticky-cta .btn { white-space: normal; }
  .btn { white-space: normal; }
  /* narrow phones: the newsletter/contact cards were overflowing their padding box */
  .newsletter-card { padding: 26px 22px; }
  .newsletter-copy h2 { font-size: 1.6rem; }
  .newsletter-copy > p { font-size: 1rem; }
  .float-card { display: none; }
  .aiw { right: 14px; bottom: 14px; }
  .aiw-label { display: none; }
  .aiw-panel { width: calc(100vw - 12px); height: calc(100dvh - 96px); max-height: calc(100dvh - 96px); right: 6px; bottom: 84px; }
  .lightbox { padding: 12px; }

  /* When the sticky CTA bar is showing, lift the floating buttons above it */
  body.sticky-on .aiw { bottom: 98px; }
  body.sticky-on .whatsapp-float { bottom: 168px; }
}

/* =========================================================
   SUBTLE PULSE GLOW for CTA elements
   Respects prefers-reduced-motion — disabled if the user
   has requested reduced motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* The header CTA deliberately does NOT pulse. A looping halo around a button
     in the sticky header draws the eye constantly and reads as an ad. The pulse
     is kept for the in-page primary buttons where it signals the main action. */
  .sticky-cta a,
  .btn-primary {
    animation: ctaPulse 4s ease-in-out infinite;
  }
}
/* The pulse must keep each button's own drop shadow. Replacing box-shadow
   outright swapped the soft shadow for a hard flat ring that read like a
   stuck focus outline, so the shadow is carried through the keyframes. */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(15,52,96,.34), 0 0 0 2px rgba(15,52,96,.16); }
  50%      { box-shadow: 0 14px 30px rgba(15,52,96,.42), 0 0 0 7px rgba(15,52,96,.05); }
}
