/* ==========================================================================
   TGFY Marketing — main stylesheet
   Palette taken from the logo: blue · yellow · orange · green
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --blue: #3D96F4;
  --yellow: #FDCD1D;
  --orange: #FF6D35;
  --green: #5CC97B;

  --paper: #F6F4EF;
  --paper-2: #EDEAE2;
  --surface: #FFFFFF;
  --ink: #0F1115;
  --ink-2: #2A2E37;
  --muted: #5B6170;
  --line: rgba(15, 17, 21, .12);
  --line-strong: rgba(15, 17, 21, .22);
  --link: #1C68C9;
  --focus: #1C68C9;
  --danger: #C53A0E;
  --success: #1E8A48;

  --dark-bg: #0F1115;
  --dark-surface: #1A1D24;
  --dark-text: #F3F1EC;
  --dark-muted: #A3A9B6;
  --dark-line: rgba(255, 255, 255, .12);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15,17,21,.04), 0 12px 32px -12px rgba(15,17,21,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1115;
    --paper-2: #151820;
    --surface: #1A1D24;
    --ink: #F3F1EC;
    --ink-2: #D7D9DE;
    --muted: #A3A9B6;
    --line: rgba(255, 255, 255, .11);
    --line-strong: rgba(255, 255, 255, .22);
    --link: #7DB8FF;
    --focus: #7DB8FF;
    --danger: #FF8A65;
    --success: #6FD697;
    --dark-bg: #07080B;
    --dark-surface: #13161C;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-weight: 750; letter-spacing: -.02em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: #0F1115; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

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

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.6rem, 5.8vw, 5.4rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: .98;
  letter-spacing: -.045em;
  margin-bottom: .35em;
  text-wrap: balance;
}
.display-sm { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 800; font-stretch: 108%; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 750; font-stretch: 106%; letter-spacing: -.03em; }
.h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 44ch; line-height: 1.55; }
.lead strong { color: var(--ink); font-weight: 650; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 650; font-stretch: 118%;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 1.2em;
}
.eyebrow .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--green); box-shadow: 14px 0 0 var(--yellow), 28px 0 0 var(--orange); margin-right: 30px; }

.hl {
  display: inline-block;
  padding: 0 .16em .04em;
  margin: 0 -.02em;
  border-radius: .16em;
  color: #0F1115;
  transform: rotate(-1.5deg);
  background: var(--yellow);
}
.hl-blue { background: var(--blue); }
.hl-orange { background: var(--orange); }
.hl-green { background: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.25em;
  font-weight: 650; font-size: 1rem; line-height: 1;
  color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn-primary:hover { --bg: var(--blue); --bd: var(--blue); --fg: #0F1115; }
.btn-ghost:hover { --bd: var(--ink); background: var(--surface); }
.btn-lg { min-height: 56px; padding: .9em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; text-decoration: none; }
.logo img, img.logo { height: 40px; width: auto; }
.logo--a img, .logo--b img, .logo--c img, .logo--d img { height: 44px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; list-style: none; }
.nav-list a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 550; font-size: .98rem; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav-list a:hover { background: var(--paper-2); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 2px; transform: translateX(-50%); background: var(--orange);
}
.nav-cta { min-height: 42px; padding: .6em 1.1em; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: var(--paper);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { font-size: 2rem; font-weight: 750; font-stretch: 110%; letter-spacing: -.03em; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .nav-list a[aria-current="page"]::after { left: auto; right: 0; top: 50%; bottom: auto; width: 12px; height: 12px; border-radius: 3px; transform: translateY(-50%); }
  .nav-cta { min-height: 56px; font-size: 1.1rem; }
  .brand { position: relative; z-index: 60; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-flush { padding-top: 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-intro { color: var(--muted); font-size: 1.12rem; max-width: 56ch; }

.band-dark { background: var(--dark-bg); color: var(--dark-text); }
.band-dark .eyebrow { color: var(--dark-muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-bottom: 1.6em; }

.hero-bento {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(104px, auto); gap: 12px;
}
.tile {
  position: relative; border-radius: var(--r-lg); padding: 20px 22px;
  color: #0F1115; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
}
.tile-blue { background: var(--blue); }
.tile-yellow { background: var(--yellow); }
.tile-orange { background: var(--orange); }
.tile-green { background: var(--green); }
.tile-label { position: absolute; top: 18px; left: 22px; font-size: .74rem; font-weight: 650; font-stretch: 118%; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.tile-big { font-size: clamp(3rem, 5.4vw, 4.8rem); font-weight: 850; font-stretch: 115%; letter-spacing: -.05em; line-height: .9; margin: 0 0 .15em; }
.tile-text { margin: 0; font-weight: 550; font-size: .98rem; line-height: 1.3; max-width: 22ch; }
.t-a { grid-column: span 4; grid-row: span 2; }
.t-b { grid-column: span 2; grid-row: span 2; }
.t-c { grid-column: span 2; grid-row: span 2; }
.t-d { grid-column: span 4; grid-row: span 2; }
.t-a::after, .t-d::after {
  content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 40px;
  border: 26px solid rgba(255,255,255,.18); transform: rotate(12deg);
}
.t-d::after { top: auto; bottom: -60px; right: -30px; transform: rotate(-10deg); }

.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; min-height: 120px; padding-top: 34px; }
.mini-bars span { flex: 1; height: var(--h); background: #0F1115; border-radius: 6px 6px 3px 3px; transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.mini-bars span:nth-child(2) { animation-delay: .08s; } .mini-bars span:nth-child(3) { animation-delay: .16s; }
.mini-bars span:nth-child(4) { animation-delay: .24s; } .mini-bars span:nth-child(5) { animation-delay: .32s; }
.mini-bars span:nth-child(6) { animation-delay: .4s; background: #fff; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.marquee { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; font-stretch: 115%; letter-spacing: -.02em; white-space: nowrap; padding: 0 28px; }
.marquee-track span::after { content: ""; width: 12px; height: 12px; border-radius: 3px; margin-left: 56px; background: var(--blue); }
.marquee-track span:nth-child(4n+2)::after { background: var(--yellow); }
.marquee-track span:nth-child(4n+3)::after { background: var(--orange); }
.marquee-track span:nth-child(4n+4)::after { background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  --accent: var(--blue);
  position: relative; display: flex; flex-direction: column;
  padding: 28px; min-height: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-yellow { --accent: var(--yellow); }
.card-orange { --accent: var(--orange); }
.card-green { --accent: var(--green); }
.card h3 { font-size: 1.3rem; font-stretch: 106%; padding-top: 28px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 1.2em; }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent); color: #0F1115;
}
.card-icon .icon { width: 26px; height: 26px; }
.card-icon-blue { background: var(--blue); } .card-icon-yellow { background: var(--yellow); }
.card-icon-orange { background: var(--orange); } .card-icon-green { background: var(--green); }
.card-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; font-size: .92rem; margin-top: auto; }
.card-more .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.card:hover .card-more .icon { transform: translate(2px, -2px); }
.card-feature { grid-column: span 2; grid-row: span 2; background: var(--accent); border-color: transparent; color: #0F1115; }
.card-feature p { color: #0F1115; opacity: .82; font-size: 1.08rem; max-width: 40ch; }
.card-feature h3 { margin-top: auto; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; font-weight: 800; }
.card-feature .card-icon { background: #0F1115; color: var(--accent); width: 64px; height: 64px; border-radius: 18px; }
.card-feature .card-icon .icon { width: 30px; height: 30px; }
.card-feature:hover { border-color: transparent; }
.card-wide { grid-column: span 2; }
.card-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0 0 1.4em; font-weight: 550; font-size: .95rem; }
.card-list li { display: flex; align-items: flex-start; gap: .5em; }
.card-list .icon { width: 1.1em; height: 1.1em; margin-top: .2em; }

/* ---------- Process ---------- */
.process-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sticky-head { position: sticky; top: calc(var(--header-h) + 32px); }
.steps { list-style: none; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.step h3 { font-size: 1.45rem; font-stretch: 108%; margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  font-weight: 800; font-stretch: 120%; font-size: 1.15rem; color: #0F1115;
}
.step-blue { background: var(--blue); } .step-yellow { background: var(--yellow); }
.step-orange { background: var(--orange); } .step-green { background: var(--green); }
.steps-row { grid-template-columns: repeat(4, 1fr); }
.steps-row .step { grid-template-columns: 1fr; }

/* ---------- Stats / why ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dark-line); }
.stat { padding: 32px 24px 8px 0; border-right: 1px solid var(--dark-line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat-value { font-size: clamp(3rem, 6.5vw, 5.6rem); font-weight: 850; font-stretch: 118%; letter-spacing: -.05em; line-height: 1; margin: 0 0 .2em; }
.stat:nth-child(1) .stat-value { color: var(--blue); }
.stat:nth-child(2) .stat-value { color: var(--yellow); }
.stat:nth-child(3) .stat-value { color: var(--orange); }
.stat:nth-child(4) .stat-value { color: var(--green); }
.stat-label { color: var(--dark-muted); max-width: 22ch; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.why { padding: 28px; background: var(--dark-surface); border: 1px solid var(--dark-line); border-radius: var(--r-lg); }
.why h3 { font-size: 1.25rem; font-stretch: 106%; }
.why p { color: var(--dark-muted); margin: 0; }

/* ---------- Tools ---------- */
.tools { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.tools .eyebrow { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 550; font-size: .95rem; background: var(--surface); }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-size: 1.12rem; }
.quote figcaption { display: grid; }
.quote figcaption span { color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-weight: 650; font-size: 1.1rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); flex: none; transition: transform .3s var(--ease), background-color .2s; }
.faq-icon .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--yellow); color: #0F1115; }
.faq-item p { padding: 0 24px 22px; margin: 0; color: var(--muted); max-width: 62ch; }

/* ---------- CTA ---------- */
.cta-section { padding-top: 0; }
.section-alt + .cta-section, .band-dark + .cta-section { padding-top: clamp(72px, 10vw, 128px); }
.cta-card {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px);
  background: var(--ink); color: var(--paper);
  border-radius: calc(var(--r-lg) + 8px);
}
.cta-card .eyebrow { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.cta-title { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.045em; line-height: 1; max-width: 14ch; position: relative; z-index: 1; }
.cta-text { max-width: 48ch; color: color-mix(in srgb, var(--paper) 75%, transparent); font-size: 1.12rem; position: relative; }
.cta-card .btn-primary { --bg: var(--yellow); --bd: var(--yellow); --fg: #0F1115; }
.cta-card .btn-primary:hover { --bg: var(--paper); --bd: var(--paper); }
.cta-card .btn-ghost { --fg: var(--paper); --bd: color-mix(in srgb, var(--paper) 35%, transparent); }
.cta-card .btn-ghost:hover { background: transparent; --bd: var(--paper); }
.cta-card .btn-row { position: relative; }
.cta-blocks { position: absolute; right: -64px; top: 50%; transform: translateY(-50%) rotate(-8deg); display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: min(26vw, 320px); opacity: .95; }
.cta-blocks span { aspect-ratio: 1; border-radius: 26%; }
.cta-blocks span:nth-child(1) { background: var(--blue); } .cta-blocks span:nth-child(2) { background: var(--yellow); }
.cta-blocks span:nth-child(3) { background: var(--orange); } .cta-blocks span:nth-child(4) { background: var(--green); }
@media (prefers-color-scheme: dark) {
  .cta-card { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
  .cta-card .eyebrow { color: var(--muted); }
  .cta-text { color: var(--muted); }
  .cta-card .btn-ghost { --fg: var(--ink); --bd: var(--line-strong); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.page-hero .lead { max-width: 58ch; }
.page-hero-legal { padding-bottom: 40px; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 550; font-size: .95rem; background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.jump a::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--blue); }
.jump a:hover { border-color: var(--ink); transform: translateY(-2px); }
.jump-yellow::before { background: var(--yellow) !important; } .jump-orange::before { background: var(--orange) !important; } .jump-green::before { background: var(--green) !important; }

/* ---------- Services detail ---------- */
.svc {
  display: grid; grid-template-columns: 140px 1.3fr 1fr; gap: clamp(20px, 4vw, 56px);
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-head { display: flex; flex-direction: column; gap: 14px; }
.svc-num { font-size: 1rem; font-weight: 750; font-stretch: 120%; letter-spacing: .05em; color: var(--muted); }
.svc-body p { color: var(--muted); max-width: 58ch; }
.svc-body .svc-short { color: var(--ink); font-size: 1.15rem; font-weight: 550; }
.svc-list { list-style: none; display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.svc-list li, .plan-list li { display: flex; gap: .6em; align-items: flex-start; font-weight: 550; }
.svc-list .icon, .plan-list .icon { width: 1.15em; height: 1.15em; margin-top: .22em; color: var(--success); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-copy p { color: var(--ink-2); font-size: 1.1rem; }
.about-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ab { aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; font-stretch: 125%; color: #0F1115; transition: transform .4s var(--ease); }
.ab-blue { background: var(--blue); color: #fff; } .ab-yellow { background: var(--yellow); } .ab-orange { background: var(--orange); color: #fff; } .ab-green { background: var(--green); }
.about-blocks:hover .ab:nth-child(1) { transform: translate(-6px,-6px) rotate(-4deg); }
.about-blocks:hover .ab:nth-child(2) { transform: translate(6px,-6px) rotate(4deg); }
.about-blocks:hover .ab:nth-child(3) { transform: translate(-6px,6px) rotate(3deg); }
.about-blocks:hover .ab:nth-child(4) { transform: translate(6px,6px) rotate(-3deg); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-top: 8px solid var(--blue); }
.value-yellow { border-top-color: var(--yellow); } .value-orange { border-top-color: var(--orange); } .value-green { border-top-color: var(--green); }
.value h3 { font-size: 1.4rem; font-stretch: 110%; }
.value p { color: var(--muted); margin: 0; }

/* ---------- Packages ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan::before { content: ""; display: block; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); margin-bottom: 24px; }
.plan-orange::before { background: var(--orange); } .plan-green::before { background: var(--green); }
.plan-featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: 28px; right: 28px; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: #0F1115; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan-tag { font-size: .8rem; font-weight: 650; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.plan-text { color: var(--muted); }
.plan-list { list-style: none; display: grid; gap: 10px; margin: 8px 0 32px; }
.plan .btn { margin-top: auto; }
.note { margin-top: 28px; color: var(--muted); text-align: center; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; align-items: start; }
.form-card { padding: clamp(24px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.form { display: grid; gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 650; font-size: .95rem; padding: 0; }
.field legend { margin-bottom: 10px; }
.req { color: var(--orange); }
.opt { color: var(--muted); font-weight: 450; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  font-size: 1rem;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 25%, transparent); background: var(--surface); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field-error { margin: 0; color: var(--danger); font-size: .9rem; font-weight: 550; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
.checks .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks .check span { display: inline-block; padding: 9px 15px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: .93rem; transition: background-color .2s, border-color .2s, color .2s; user-select: none; }
.checks .check:hover span { border-color: var(--ink); }
.checks .check input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.checks .check input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check-consent { font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.check-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 18px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 600; }
.btn-submit { justify-self: start; position: relative; }
.btn-submit .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-submit.is-loading { pointer-events: none; opacity: .85; }
.btn-submit.is-loading .icon { display: none; }
.btn-submit.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: left; padding: 12px 0; }
.form-success:focus { outline: none; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--green); color: #0F1115; margin-bottom: 20px; }
.success-icon .icon { width: 32px; height: 32px; }
.form-success p { color: var(--muted); }
.form-success a { color: var(--link); }

.contact-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--muted); }
.contact-list a { color: var(--link); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.mini-steps { list-style: none; display: grid; gap: 18px; }
.mini-steps li { display: flex; gap: 14px; }
.mini-steps p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.ms { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 800; color: #0F1115; flex: none; }
.ms-blue { background: var(--blue); } .ms-yellow { background: var(--yellow); } .ms-green { background: var(--green); }

/* ---------- Legal prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; font-stretch: 106%; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; display: grid; gap: .5em; margin-bottom: 1em; }
.prose a { color: var(--link); }

/* ---------- 404 ---------- */
.notfound { text-align: left; }
.nf-blocks { display: flex; gap: 12px; margin-bottom: 32px; }
.nf-blocks span { display: grid; place-items: center; width: clamp(72px, 12vw, 120px); aspect-ratio: 1; border-radius: 22%; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; font-stretch: 125%; color: #0F1115; background: var(--blue); }
.nf-blocks span:nth-child(2) { background: var(--yellow); transform: rotate(-8deg); }
.nf-blocks span:nth-child(3) { background: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); color: var(--dark-text); padding: clamp(56px, 8vw, 96px) 0 28px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer-brand p { color: var(--dark-muted); max-width: 34ch; margin-top: 20px; }
.logo-footer { height: 46px !important; width: auto; }
.footer-col h2 { font-size: .8rem; font-weight: 650; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--dark-text); text-decoration: none; opacity: .88; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--yellow); }
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-email { font-weight: 650; }
.footer-address { color: var(--dark-muted); display: inline-block; margin-top: 10px; }
.social { list-style: none; display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--dark-line); color: var(--dark-text); transition: background-color .2s, color .2s; }
.social a:hover { background: var(--dark-text); color: var(--dark-bg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; color: var(--dark-muted); font-size: .92rem; }
.footer-bottom p { margin: 0; }
.footer-blocks { display: flex; gap: 6px; }
.footer-blocks span { width: 14px; height: 14px; border-radius: 4px; background: var(--blue); }
.footer-blocks span:nth-child(2) { background: var(--yellow); } .footer-blocks span:nth-child(3) { background: var(--orange); } .footer-blocks span:nth-child(4) { background: var(--green); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 2; grid-row: auto; }
  .card-wide { grid-column: span 2; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc-head { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}
@media (max-width: 900px) {
  .hero-inner, .process-layout, .faq-layout, .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .sticky-head, .contact-aside { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--dark-line); padding: 28px 0 !important; }
  .why-grid, .plans, .quotes { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .about-blocks { max-width: 420px; }
  .cta-blocks { opacity: .18; }
}
@media (max-width: 1100px) {
  .cta-blocks { opacity: .35; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .logo img, img.logo { height: 34px; }
  .logo--a img, .logo--b img, .logo--c img, .logo--d img { height: 36px; }
  .bento { grid-template-columns: 1fr; }
  .card-feature, .card-wide { grid-column: auto; }
  .card { min-height: 0; }
  .card-list { grid-template-columns: 1fr; }
  .hero-bento { gap: 10px; }
  .t-a, .t-d { grid-column: span 6; }
  .t-b, .t-c { grid-column: span 3; }
  .tile { padding: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .steps-row, .values { grid-template-columns: 1fr; }
  .step { padding: 22px; gap: 16px; }
  .step-num { width: 48px; height: 48px; font-size: 1rem; border-radius: 13px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .btn-row .btn { flex: 1 1 100%; }
  .btn-submit { justify-self: stretch; }
}
