/* =========================================================
   AT Prime Digital Media — styles.css (final)
   AI at AT. Marketing Engineered.
   Bhagwa (saffron) + deep teal, contour texture, Z-pattern flow.
   Headings: Sora — light weight for connecting words, bold for keywords.
   ========================================================= */

:root {
  --saffron: #F28A21;
  --saffron-deep: #D9690B;
  --saffron-soft: #FCD9B4;
  --saffron-ink: #5E2604;
  --peach: #FFF6EE;
  --peach-2: #FDEBDA;
  --card: #FFFCF8;
  --ink: #16282C;
  --muted: #55605F;
  --teal: #0F3A40;
  --teal-2: #164B52;
  --teal-deep: #0B2D32;
  --on-dark: #FFF6EE;
  --on-dark-muted: #BFD0CB;
  --leaf: #1F7A4D;
  --line: rgba(22, 40, 44, .13);
  --line-dark: rgba(255, 246, 238, .16);

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(80px, 9vw, 124px);
  --header-h: 76px;
  --radius: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--peach); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -0.035em; line-height: 1.08; }
h1 b, h2 b { font-weight: 700; }
h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
p, dl, dd, figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--saffron-deep); outline-offset: 3px; border-radius: 4px; }
.calc :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--saffron); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.grain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: .08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared type ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.25rem); line-height: 1.6; }
.body-muted { color: var(--muted); }
.text-link { display: inline-block; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--saffron); padding-bottom: 2px; }
.text-link:hover { color: var(--saffron-deep); }
.eyebrow-tag {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: -0.01em;
  background: var(--saffron-soft); color: var(--saffron-ink);
}
.eyebrow-dark { background: rgba(242, 138, 33, .18); color: var(--saffron); }

/* Z-pattern section heads: alternate left / right */
.z-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.z-head p { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.z-head-right { margin-left: auto; text-align: right; }
.z-head-right p { margin-left: auto; }

/* Z rows: two columns, alternate sides */
.z-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.z-row > * { min-width: 0; }
.z-row-rev > :first-child { order: 2; }
.z-copy .lead { margin-top: 22px; }
.z-copy .btn { margin-top: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; }
.btn.full { width: 100%; }
.btn-dark { background: var(--teal); color: var(--on-dark); }
.btn-dark:hover { background: var(--teal-2); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(15, 58, 64, .6); }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #F79A3C; transform: translateY(-1px); }
.btn-outline { border-color: rgba(22, 40, 44, .55); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: rgba(22, 40, 44, .06); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: rgba(255, 246, 238, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.03em; }
.brand-sub { font-size: .78rem; opacity: .75; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a { text-decoration: none; font-weight: 600; font-size: .96rem; }
.main-nav ul a:hover { text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-header.scrolled .main-nav ul a:hover { text-decoration-color: var(--saffron); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: 10px; background: transparent; position: relative; cursor: pointer; color: inherit; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Contours ---------- */
.hero-contours, .section-contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-contours path { fill: none; stroke: rgba(94, 38, 4, .17); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-contours path.major { stroke: rgba(94, 38, 4, .3); }
.section-contours path { fill: none; stroke: rgba(242, 138, 33, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .hero-contours path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 60ms); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- HERO (Z: H1 across the top → growth plan game right → motto bottom-left → CTA bottom-right) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: radial-gradient(120% 90% at 78% 35%, #F59A3E 0%, var(--saffron) 45%, #E97B16 100%);
  padding: calc(var(--header-h) + clamp(22px, 3vw, 40px)) 0 clamp(40px, 5vw, 56px);
}
.hero-head { position: relative; }
.hero-tag { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--teal); letter-spacing: -0.02em; }
.hero h1 { margin-top: 10px; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.05; letter-spacing: -0.045em; }
@media (min-width: 761px) { .hero h1 { white-space: nowrap; } }
.hero-top { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; margin-top: clamp(16px, 2vw, 24px); }
.hero-tagline { font-family: var(--display); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.9rem); letter-spacing: -0.04em; line-height: 1.1; color: var(--saffron-ink); }
.hero-lede { margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: #3B2210; max-width: 50ch; }

/* ---------- GROWTH PLAN GAME (hero) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.growth {
  position: relative; width: 100%; max-width: 470px; justify-self: end; display: flex; flex-direction: column; min-height: 514px;
  background: var(--teal); color: var(--on-dark); border-radius: 22px; padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 40px 70px -30px rgba(60, 24, 2, .55);
}
.growth::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(70% 40% at 100% 0%, rgba(242, 138, 33, .25), transparent 70%); pointer-events: none; }
.growth > * { position: relative; }
.gp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gp-title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.gp-step { font-size: .85rem; font-weight: 600; color: var(--saffron); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.gp-dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.gp-dots span { height: 5px; border-radius: 999px; background: rgba(255, 246, 238, .18); transition: background-color .3s ease; }
.gp-dots span.on { background: var(--saffron); }
.gp-stage, .gp-result { margin-top: 18px; flex: 1; display: flex; flex-direction: column; }
.gp-stage[hidden], .gp-result[hidden] { display: none !important; }
.gp-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gp-foot .gp-back { margin-top: 0; }
.gp-hint { margin-left: auto; font-size: .82rem; color: var(--on-dark-muted); }
.gp-q { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.02em; outline: none; }
.gp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.gp-opts button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 10px 14px; text-align: left;
  border-radius: 12px; border: 1.5px solid rgba(255, 246, 238, .2); background: rgba(255, 246, 238, .06); color: var(--on-dark);
  font-weight: 600; font-size: .95rem; line-height: 1.25; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.gp-opts-list { grid-template-columns: 1fr; }
.gp-opts-list button { min-height: 56px; }
.gp-opts button::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .5; }
.gp-opts button:hover { border-color: var(--saffron); background: rgba(242, 138, 33, .12); }
.gp-opts button:hover::after { opacity: 1; }
.gp-opts button.picked { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.gp-back { margin-top: 14px; padding: 6px 0; background: none; border: 0; color: var(--on-dark-muted); font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.gp-back:hover { color: var(--on-dark); }
@media (prefers-reduced-motion: no-preference) { .gp-stage.enter, .gp-result.enter { animation: slideIn .3s ease; } }

.gp-for { margin-top: 4px; font-size: .92rem; color: var(--on-dark-muted); }
.gp-plan { display: grid; gap: 6px; margin-top: 12px; counter-reset: plan; }
.gp-plan li { counter-increment: plan; position: relative; padding: 9px 14px 9px 48px; border-radius: 12px; background: var(--card); color: var(--ink); }
.gp-plan li::before { content: counter(plan); position: absolute; left: 14px; top: 50%; margin-top: -12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); font-weight: 700; font-size: .82rem; }
.gp-plan b { display: block; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.gp-plan span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.gp-tip { margin: 10px 0 12px; font-size: .88rem; color: var(--on-dark-muted); }
.gp-tip b { color: var(--saffron); }
.gp-restart { display: block; margin: 6px auto 0; }

.hero-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; margin-top: clamp(20px, 2.4vw, 28px); padding-top: clamp(18px, 2.4vw, 24px); background: linear-gradient(rgba(22, 40, 44, .22), rgba(22, 40, 44, .22)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.hero-motto { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.02em; color: var(--teal); }
.hero-motto span { margin: 0 .4em; opacity: .45; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-outline:hover { background: rgba(255, 246, 238, .22); }

/* ---------- AUTOMATION ---------- */
.automation h2 { max-width: 16ch; }
.auto-wins { margin-top: 26px; display: grid; gap: 12px; }
.auto-wins li { position: relative; padding-left: 32px; }
.auto-wins li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23F28A21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.auto-wins b { font-weight: 700; }

.flow { background: var(--teal); color: var(--on-dark); border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 34px 60px -36px rgba(15, 58, 64, .8); position: relative; overflow: hidden; }
.flow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 100% 0%, rgba(242, 138, 33, .22), transparent 70%); pointer-events: none; }
.flow-list { position: relative; display: grid; gap: 12px; }
.flow-list li {
  position: relative; display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px; background: rgba(255, 246, 238, .06); border: 1px solid var(--line-dark);
}
.flow-list li + li::before { content: ""; position: absolute; left: 36px; top: -13px; width: 2px; height: 12px; background: var(--saffron); }
.f-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--saffron); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: .9rem; }
.flow-list b { display: block; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.flow-list div span { display: block; font-size: .92rem; color: var(--on-dark-muted); line-height: 1.4; }
.flow-list em { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--saffron); white-space: nowrap; }
.flow figcaption { position: relative; margin-top: 16px; font-size: .85rem; color: var(--on-dark-muted); }
@media (prefers-reduced-motion: no-preference) {
  .flow.in .flow-list li { animation: stepIn .5s cubic-bezier(.2, .8, .2, 1) backwards; }
  .flow.in .flow-list li:nth-child(2) { animation-delay: .12s; }
  .flow.in .flow-list li:nth-child(3) { animation-delay: .24s; }
  .flow.in .flow-list li:nth-child(4) { animation-delay: .36s; }
  .flow.in .flow-list li:nth-child(5) { animation-delay: .48s; }
}
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }

/* ---------- SERVICES ---------- */
.services { background: var(--card); border-block: 1px solid var(--line); }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 16px; }
.funnel li {
  position: relative; padding: 12px 18px 12px 26px; font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  background: var(--saffron); color: var(--ink); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}
.funnel li:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 18px; }
.funnel li:nth-child(2) { background: #F49B45; }
.funnel li:nth-child(3) { background: #F6AC69; }
.funnel li:nth-child(4) { background: var(--teal); color: var(--on-dark); }
.svc-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-cols > * { min-width: 0; }
.svc-col { border-radius: var(--radius); padding: clamp(20px, 2.2vw, 26px); background: var(--peach); border: 1px solid var(--line); }
.svc-col-core { background: var(--teal); color: var(--on-dark); border-color: var(--teal); }
.svc-col h3 { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--saffron); }
.svc-stage { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--saffron-deep); letter-spacing: 0; }
.svc-col-core .svc-stage { color: var(--saffron); }
.svc-goal { font-size: 1.3rem; letter-spacing: -0.03em; }
.svc-col li { padding: 13px 0; border-top: 1px solid var(--line); }
.svc-col-core li { border-color: var(--line-dark); }
.svc-col li:first-child { border-top: 0; padding-top: 0; }
.svc-col h4 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.svc-col p { margin-top: 3px; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.svc-col-core p { color: var(--on-dark-muted); }

.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 22px 28px; border-radius: var(--radius); background: var(--teal); color: var(--on-dark); }
.cta-strip p { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -0.02em; }
.cta-strip-light { background: var(--saffron-soft); color: var(--ink); }

/* ---------- INDUSTRIES (tabs left, panel right) ---------- */
.ind-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.ind-grid > * { min-width: 0; }
.ind-tabs { display: grid; gap: 6px; }
.ind-tabs button {
  text-align: left; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ind-tabs button:hover { border-color: var(--saffron); }
.ind-tabs button[aria-selected="true"] { background: var(--teal); color: var(--on-dark); border-color: var(--teal); box-shadow: inset 4px 0 0 var(--saffron); }
.ind-panel { padding: clamp(26px, 3.5vw, 44px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(94, 38, 4, .45); }
.ind-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.ind-panel > p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.ind-points { margin-top: 22px; display: grid; gap: 10px; }
.ind-points li { position: relative; padding: 12px 16px 12px 44px; border-radius: 12px; background: var(--peach); font-weight: 500; }
.ind-points li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 2px; background: var(--saffron); }
.ind-panel .btn { margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) { .ind-panel { animation: slideIn .3s ease; } }
.ind-areas { margin-top: 28px; color: var(--muted); font-size: .98rem; }
.ind-areas b { color: var(--ink); }

/* ---------- ROI CALCULATOR ---------- */
.calc { background: var(--teal); color: var(--on-dark); overflow: hidden; }
.calc .container { position: relative; }
.calc .z-head p { color: var(--on-dark-muted); }
.calc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.calc-grid > * { min-width: 0; }
.calc-inputs { display: grid; gap: 28px; align-content: start; padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 246, 238, .04); }
.cfield { display: grid; gap: 10px; }
.cfield label { font-weight: 600; }
.cfield-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cfield output { font-family: var(--display); font-weight: 600; font-size: 1.45rem; color: var(--saffron); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cfield select, .cfield input[type="number"] { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 10px; font-size: 1rem; background: var(--teal-deep); color: var(--on-dark); border: 1px solid rgba(255, 246, 238, .28); }
.cfield select:focus, .cfield input[type="number"]:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(242, 138, 33, .25); }
.range-scale { display: flex; justify-content: space-between; font-size: .82rem; color: var(--on-dark-muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--saffron) var(--fill), rgba(255, 246, 238, .18) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 246, 238, .18); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--saffron); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--on-dark); border: 4px solid var(--saffron); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--on-dark); border: 4px solid var(--saffron); }
.calc-results { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.roas-card { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.roas-label { font-weight: 600; color: var(--muted); }
.roas-value { font-family: var(--display); font-weight: 700; font-size: clamp(3.2rem, 6.5vw, 4.4rem); line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: -0.04em; }
.roas-value small { font-size: .42em; margin-left: 4px; color: var(--muted); font-weight: 400; }
.roas-meter { position: relative; height: 10px; border-radius: 999px; background: var(--peach-2); margin-top: 16px; }
.roas-meter span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--saffron), var(--leaf)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.roas-meter i { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); opacity: .35; }
.roas-hint { margin-top: 12px; color: var(--muted); font-size: .98rem; }
.calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-stats > div { padding: 14px 16px; border-radius: 12px; background: var(--peach); }
.calc-stats > div.wide { grid-column: 1 / -1; background: var(--saffron-soft); }
.calc-stats dt { font-size: .9rem; color: var(--muted); }
.calc-stats dd { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.calc-stats .wide dd { font-size: 2rem; }
.range-note { display: block; font-size: .82rem; color: var(--muted); }
.calc-disclaimer { font-size: .84rem; color: var(--muted); }

/* ---------- HEALTH CHECK ---------- */
.health { background: var(--peach-2); }
.quiz { position: relative; background: var(--card); border-radius: 20px; padding: clamp(26px, 4vw, 44px); box-shadow: 0 30px 60px -36px rgba(94, 38, 4, .45); border: 1px solid var(--line); min-height: 420px; display: flex; flex-direction: column; }
.quiz-progress { height: 6px; border-radius: 999px; background: var(--peach-2); overflow: hidden; margin-bottom: 26px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--saffron); border-radius: 999px; transition: width .35s ease; }
.quiz-stage { display: flex; flex-direction: column; flex: 1; }
.q-count { font-weight: 700; color: var(--saffron-deep); font-size: .95rem; }
.q-text { margin-top: 10px; font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; outline: none; }
.q-options { display: grid; gap: 10px; margin-top: 26px; }
.q-options button { text-align: left; padding: 16px 20px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--peach); font-weight: 600; font-size: 1.02rem; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.q-options button:hover { border-color: var(--saffron); background: #FFF0E0; transform: translateX(3px); }
.q-options button.picked { border-color: var(--teal); background: var(--teal); color: var(--on-dark); }
.q-back { align-self: flex-start; margin-top: auto; padding: 14px 0 0; background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) { .quiz-stage.enter, .quiz-result.enter { animation: slideIn .35s ease; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-result { text-align: center; }
.gauge { position: relative; width: min(260px, 100%); margin: 0 auto; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.g-track, .g-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.g-track { stroke: var(--peach-2); }
.g-fill { stroke: var(--saffron); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1), stroke .3s ease; }
.g-score { position: absolute; left: 0; right: 0; bottom: 0; font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.g-score small { font-size: .36em; color: var(--muted); font-weight: 400; }
.g-grade { margin-top: 14px; font-size: 1.6rem; outline: none; }
.g-summary { margin: 8px auto 0; color: var(--muted); max-width: 46ch; }
.quiz-result h4 { margin-top: 22px; font-weight: 700; font-size: .95rem; color: var(--saffron-deep); text-align: left; }
.g-fixes { counter-reset: fix; display: grid; gap: 10px; margin-top: 10px; text-align: left; }
.g-fixes li { counter-increment: fix; position: relative; padding: 12px 14px 12px 50px; border-radius: 12px; background: var(--peach); }
.g-fixes li::before { content: counter(fix); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; background: var(--teal); color: var(--on-dark); }
.g-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- HOW TO CHOOSE ---------- */
.choose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: q; }
.choose-grid li { counter-increment: q; position: relative; padding: 26px 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.choose-grid li::before { content: counter(q); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: .95rem; background: var(--saffron-soft); color: var(--saffron-ink); }
.choose-grid h3 { font-size: 1.18rem; }
.choose-grid p { margin-top: 8px; color: var(--muted); }

/* ---------- PROCESS (horizontal) ---------- */
.process { background: var(--card); border-block: 1px solid var(--line); }
.process .cta-strip { margin-top: clamp(36px, 4vw, 48px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 36px); --fill: 0; }
.steps::before, .steps::after { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; }
.steps::before { background: var(--peach-2); }
.steps::after { background: var(--saffron); transform-origin: left; transform: scaleX(var(--fill)); }
.steps li { position: relative; }
.s-num { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-family: var(--display); font-weight: 700; background: var(--card); border: 1.5px solid var(--ink); transition: background-color .3s ease, border-color .3s ease; }
.steps li.reached .s-num { background: var(--saffron); border-color: var(--saffron); }
.s-when { margin-top: 18px; font-weight: 700; font-size: .88rem; color: var(--saffron-deep); }
.steps h3 { margin-top: 4px; font-size: 1.3rem; }
.steps li > p:last-child { margin-top: 6px; color: var(--muted); font-size: .98rem; }

/* ---------- FOUNDER ---------- */
.signature { margin-block: 22px 14px; font-family: var(--display); font-weight: 600; color: var(--saffron-deep); }
.founder-quote { position: relative; margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--teal); color: var(--on-dark); }
.founder-quote::before { content: "\201C"; display: block; height: 44px; margin-bottom: 8px; font-family: Georgia, serif; font-size: 5.5rem; line-height: 1; color: var(--saffron); }
.founder-quote p { font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.4; letter-spacing: -0.025em; }
.founder-quote footer { margin-top: 20px; font-weight: 700; color: var(--saffron); }

/* ---------- AREAS (compact band) ---------- */
.areas { background: var(--teal); color: var(--on-dark); padding-block: clamp(48px, 6vw, 72px); }
.areas-inner { display: grid; grid-template-columns: .8fr 2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.areas h2 { font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.15; }
.areas-lists { display: grid; gap: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 7px 14px; border-radius: 999px; font-size: .93rem; background: rgba(255, 246, 238, .08); border: 1px solid var(--line-dark); }
.tag-list-loc li { background: rgba(242, 138, 33, .16); border-color: rgba(242, 138, 33, .4); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro p { margin-block: 18px 8px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.35; }
.faq-list summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 12px no-repeat;
  transition: transform .25s ease, background-color .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--saffron-soft); }
.faq-list details p { padding: 0 58px 22px 0; color: var(--muted); max-width: 68ch; }

/* ---------- CONTACT ---------- */
.contact { background: var(--teal); color: var(--on-dark); overflow: hidden; }
.contact .container { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact .lead { color: var(--on-dark-muted); margin-top: 22px; max-width: 48ch; }
.contact-details { margin-top: 34px; border-top: 1px solid var(--line-dark); }
.contact-details > div { display: grid; grid-template-columns: 7rem 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
.contact-details dt { color: var(--on-dark-muted); }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--saffron); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--card); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); border-top: 5px solid var(--saffron); }
.field { display: grid; gap: 6px; }
.field.full, .lead-form .full, .form-note, .form-status { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font-size: 1rem; background: #fff; border: 1px solid rgba(22, 40, 44, .28); border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--saffron-deep); box-shadow: 0 0 0 3px rgba(242, 138, 33, .22); }
.field.invalid input, .field.invalid select { border-color: #B42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .9rem; color: var(--muted); text-align: center; }
.form-status { font-weight: 500; min-height: 1.4em; text-align: center; }
.form-status.ok { color: var(--leaf); }
.form-status.err { color: #B42318; }
.lead-form.highlight { animation: glow 1.6s ease; }
@keyframes glow { 0%, 100% { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); } 30% { box-shadow: 0 0 0 6px rgba(242, 138, 33, .55), 0 30px 60px -30px rgba(0, 0, 0, .5); } }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--teal-deep); color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 88px); font-size: .98rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(40px, 5vw, 56px); margin-bottom: clamp(40px, 5vw, 56px); background: linear-gradient(var(--line-dark), var(--line-dark)) bottom center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer-motto { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.1; color: var(--on-dark); }
.footer-motto span { display: block; margin-top: 8px; font-weight: 300; font-size: .55em; letter-spacing: -0.02em; color: var(--saffron); }
.site-footer .brand { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { margin-top: 20px; max-width: 40ch; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--on-dark); margin-bottom: 14px; letter-spacing: 0; }
.site-footer h2.footer-sub { margin-top: 28px; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 4px; }
.socials { display: flex !important; gap: 10px !important; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); }
.socials a:hover { border-color: var(--saffron); color: var(--saffron); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-block: 24px 30px; background: linear-gradient(var(--line-dark), var(--line-dark)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: .9rem; }

/* ---------- WhatsApp + mobile bar ---------- */
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #1FAF5A; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); transition: transform .2s ease; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }
.mobile-bar { display: none; }

/* ---------- Inner pages ---------- */
.page { padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(64px, 8vw, 112px); }
.page h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; font-weight: 600; }
.prose p, .prose li { margin-top: 12px; color: var(--muted); }
.prose ul { list-style: disc; padding-left: 22px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav ul { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 22px;
    padding: 8px var(--gutter) 28px; background: var(--peach); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-header.menu-open { background: var(--peach); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 15px 0; font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }

  .hero-top, .z-row, .calc-grid, .contact-grid, .faq-grid, .areas-inner { grid-template-columns: 1fr; }
  .growth { justify-self: stretch; max-width: none; }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .z-row-rev > :first-child { order: 0; }
  .z-head-right { margin-left: 0; text-align: left; }
  .z-head-right p { margin-left: 0; }
  .svc-cols, .choose-grid { grid-template-columns: 1fr 1fr; }
  .funnel { display: none; }
  .ind-grid { grid-template-columns: 1fr; }
  .ind-tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .ind-tabs::-webkit-scrollbar { display: none; }
  .ind-tabs button { flex: none; padding: 10px 16px; border-radius: 999px; font-size: .95rem; }
  .ind-tabs button[aria-selected="true"] { box-shadow: none; }
  .faq-intro { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; padding-bottom: 64px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .gp-opts button { font-size: .9rem; min-height: 52px; padding: 10px 12px; }
  .growth { min-height: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .svc-cols, .choose-grid { grid-template-columns: 1fr; }
  .flow-list li { grid-template-columns: 36px 1fr; padding: 12px 14px; }
  .flow-list li + li::before { left: 31px; }
  .f-ico { width: 36px; height: 36px; font-size: .8rem; }
  .flow-list em { grid-column: 2; }
  .cta-strip { padding: 20px; }
  .cta-strip .btn { width: 100%; }
  .calc-stats dd { font-size: 1.35rem; }
  .calc-stats .wide dd { font-size: 1.6rem; }
  .quiz { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .s-num { width: 42px; height: 42px; }
  .faq-list details p { padding-right: 0; }
  .lead-form { grid-template-columns: 1fr; }
  .contact-details > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top .btn { width: 100%; }
  .wa-float { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 95; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; background: var(--card); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .25); }
  .mobile-bar a { display: grid; place-items: center; min-height: 48px; border-radius: 10px; font-weight: 700; text-decoration: none; }
  .mb-call { background: var(--teal); color: var(--on-dark); }
  .mb-wa { background: #1FAF5A; color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-contours path { stroke-dasharray: none; stroke-dashoffset: 0; }
}
