/* CTRLARQ · Layout: escenas que alternan papel claro y azul marino; el amarillo solo marca acciones y la palabra clave. */
:root {
  --navy: #0B3F6B;
  --navy-deep: #072C4C;
  --navy-ink: #0E2235;
  --sun: #FBBA18;
  --sun-soft: #FFF3D1;
  --leaf: #5BB543;
  --leaf-ink: #2F7A1F;
  --paper: #FAFAF7;
  --mist: #EDF2F6;
  --ink: #1E2A36;
  --muted: #586776;
  --line: #DCE3E9;
  --on-navy: #F4F7FA;
  --on-navy-muted: #B9CADB;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --radius: 18px;
  --wrap: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; display: block; }
[id] { scroll-margin-top: 84px; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.025em; margin: 0; text-wrap: balance; color: var(--navy); }
h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p.sub { color: var(--muted); max-width: 60ch; }

/* Marker highlight on the key word of each headline */
.hl { position: relative; white-space: nowrap; color: inherit; background: none; z-index: 0; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -0.08em; right: -0.08em; bottom: 0.06em; height: 0.42em;
  background: var(--sun); border-radius: 0.12em; transform-origin: left center;
}
.dark .hl::before { opacity: 0.95; height: 0.34em; }
.js .hl.draw::before { transform: scaleX(0); transition: transform 0.7s var(--ease-out) 0.35s; }
.js .hl.draw.in::before, .js .in .hl.draw::before { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--sun); color: var(--navy-ink); box-shadow: 0 4px 0 #C98F00; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #C98F00; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-light { background: var(--on-navy); color: var(--navy); box-shadow: 0 4px 0 #9FB4C8; }
.btn-light:active { transform: translateY(3px); box-shadow: 0 1px 0 #9FB4C8; }
.btn-outline-light { border-color: rgba(244, 247, 250, 0.55); color: var(--on-navy); }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #C98F00; }
  .btn-light:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #9FB4C8; }
  .btn-ghost:hover { background: var(--navy); color: var(--on-navy); }
  .btn-outline-light:hover { background: rgba(244, 247, 250, 0.1); }
}

/* Keycaps: the brand's signature element */
.key {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; line-height: 1; color: var(--navy);
  background: #FFFFFF; border: 2px solid var(--navy); border-radius: 14px;
  padding: 0.42em 0.72em 0.5em;
  box-shadow: 0 6px 0 var(--navy), 0 18px 28px -14px rgba(7, 44, 76, 0.55);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.key.is-word { background: var(--sun); }
.key.pressed { transform: translateY(5px); box-shadow: 0 1px 0 var(--navy), 0 8px 14px -10px rgba(7, 44, 76, 0.5); }
.plus { font-family: var(--font-display); font-weight: 700; color: var(--sun); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.site-header.solid { background: rgba(250, 250, 247, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.nav-logo img { width: clamp(132px, 14vw, 168px); height: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink); font-size: 0.98rem; }
.nav-links a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 0.98rem; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Hero */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 1.3rem + 4.2vw, 4.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: inline-block; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); color: var(--muted); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.92rem; color: var(--ink); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--leaf-ink); flex: none; }

.hero-visual { position: relative; display: grid; justify-items: end; min-width: 0; }
.hero-glow {
  position: absolute; inset: 8% -10% 6% 18%; border-radius: 40% 60% 55% 45%;
  background: radial-gradient(closest-side, rgba(251, 186, 24, 0.32), rgba(251, 186, 24, 0) 70%),
              radial-gradient(closest-side at 70% 70%, rgba(11, 63, 107, 0.14), rgba(11, 63, 107, 0) 75%);
  pointer-events: none;
}
.hero-keys {
  position: absolute; left: 0; bottom: 9%; z-index: 3;
  display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 0.9rem + 1.6vw, 2.2rem);
}
.key-word-wrap { position: relative; display: inline-grid; }
.key-word-wrap .key { min-width: 6.4em; }

/* Device: phone */
.phone {
  position: relative; width: min(300px, 64vw); aspect-ratio: 9 / 18.5;
  background: #101D29; border-radius: 42px; padding: 11px;
  box-shadow: 0 40px 70px -30px rgba(7, 44, 76, 0.55), inset 0 0 0 2px #2A3B4B;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); background: #101D29; border-radius: 12px; z-index: 4; }
.screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #FFFFFF; isolation: isolate; }
.hero-phone { z-index: 2; margin-right: clamp(0px, 3vw, 36px); will-change: transform; }
.scr { position: absolute; inset: 0; padding: 44px 14px 16px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: scale(1.03); transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out); }
.scr.active { opacity: 1; transform: none; }

/* Mini UI kit for illustrative screens */
.ui-bar { height: 8px; border-radius: 6px; background: var(--line); }
.ui-bar.dark { background: var(--navy); }
.ui-bar.sun { background: var(--sun); }
.ui-nav { display: flex; justify-content: space-between; align-items: center; }
.ui-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--navy); }
.ui-burger { width: 18px; display: grid; gap: 3px; }
.ui-burger i { height: 3px; border-radius: 2px; background: var(--ink); display: block; }
.ui-hero { border-radius: 14px; padding: 16px 12px; display: grid; gap: 8px; background: linear-gradient(140deg, var(--navy) 0%, #1D5C8F 100%); }
.ui-hero .ui-bar { background: rgba(255, 255, 255, 0.85); }
.ui-hero .ui-bar.faint { background: rgba(255, 255, 255, 0.4); }
.ui-btn { height: 22px; width: 58%; border-radius: 8px; background: var(--sun); }
.ui-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-card { border-radius: 10px; background: var(--mist); padding: 8px; display: grid; gap: 6px; }
.ui-thumb { aspect-ratio: 4 / 3; border-radius: 7px; background: #C9D7E3; }
.ui-fab { position: absolute; right: 14px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--leaf); display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(47, 122, 31, 0.6); }
.ui-fab svg { width: 20px; height: 20px; color: #FFFFFF; }
.ui-label { font-family: var(--font-display); font-weight: 600; font-size: 11px; color: var(--navy); letter-spacing: 0.02em; }
.ui-small { font-size: 10px; color: var(--muted); line-height: 1.3; }

/* chat screen */
.chat-top { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); flex: none; display: grid; place-items: center; color: var(--sun); font: 700 11px var(--font-display); }
.bubble { max-width: 84%; padding: 7px 10px; border-radius: 14px; font-size: 11.5px; line-height: 1.35; }
.bubble.in { background: var(--mist); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.out { background: #DCF2D2; color: #173A10; border-bottom-right-radius: 4px; align-self: flex-end; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-mini { font-size: 10.5px; padding: 4px 9px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 600; }

/* store screen */
.cart { position: relative; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--navy); }
.cart b { position: absolute; top: -8px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); color: var(--navy-ink); font: 700 10px/16px var(--font-display); text-align: center; }
.ui-add { height: 16px; border-radius: 6px; background: var(--navy); }

/* dashboard screen */
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; padding: 10px; border-radius: 12px; background: var(--mist); }
.dash-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--navy); display: block; }
.dash-bars i.over { background: #D9534F; }
.alert { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #FDECEC; color: #8A1F1C; font-size: 10.5px; font-weight: 600; }
.alert::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D9534F; flex: none; }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex: none; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; justify-items: start; min-height: 0; }
  .hero-phone, .hero-glow { display: none; }
  .hero-keys { position: static; font-size: clamp(1.25rem, 5.4vw, 1.6rem); padding-top: 8px; }
}

/* Dark scenes */
.dark { background: var(--navy); color: var(--on-navy); }
.dark h2, .dark h3 { color: var(--on-navy); }
.dark .eyebrow { color: var(--on-navy-muted); }
.dark .section-head p.sub { color: var(--on-navy-muted); }
.curve-bottom { position: relative; }
.curve { display: block; width: 100%; height: clamp(40px, 6vw, 90px); color: var(--navy); }
.curve.to-paper { margin-bottom: -1px; }

/* S2 Problems */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.prob {
  position: relative; padding: 28px 24px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid; gap: 12px; align-content: start;
}
.prob-q { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.2; }
.prob-q span { background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 58% / 0% 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prob-sub { color: var(--on-navy-muted); font-size: 0.98rem; }
.prob-a { display: flex; gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-weight: 600; color: #FFFFFF; }
.check { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--leaf); display: grid; place-items: center; }
.check svg { width: 16px; height: 16px; }
.check path { stroke: #FFFFFF; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.js .prob .prob-a { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.js .prob .check path { stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s var(--ease-out); }
.js .prob .prob-q span { transition: background-size 0.6s var(--ease-out); }
.js .prob.solved .prob-q span { background-size: 100% 3px; }
.js .prob.solved .prob-q { color: var(--on-navy-muted); }
.js .prob.solved .prob-a { opacity: 1; transform: none; }
.js .prob.solved .check path { stroke-dashoffset: 0; transition-delay: 0.25s; }
.prob-close { margin-top: 40px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); color: #FFFFFF; }
@media (max-width: 860px) { .problems { grid-template-columns: 1fr; } }

/* S3 Services */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.svc {
  grid-column: span 2; position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: #FFFFFF; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.svc.star { grid-column: span 3; padding: 34px 30px; }
.svc .shortcut { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 8px; }
.svc.star .shortcut { font-size: 1.25rem; }
.svc .shortcut .key { border-radius: 11px; }
.svc .benefit { color: var(--muted); }
.svc ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.svc li { display: flex; gap: 10px; align-items: flex-start; }
.svc li svg { width: 18px; height: 18px; margin-top: 4px; flex: none; color: var(--leaf-ink); }
.svc .tag { justify-self: start; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; background: var(--sun-soft); color: var(--navy-ink); }
.svc-star-badge { position: absolute; top: 18px; right: 18px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--mist); padding: 5px 10px; border-radius: 999px; }
@media (hover: hover) {
  .svc:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(7, 44, 76, 0.45); }
  .svc:hover .key { transform: translateY(3px); box-shadow: 0 3px 0 var(--navy), 0 10px 18px -12px rgba(7, 44, 76, 0.5); }
}
.services-note { margin-top: 26px; color: var(--muted); }
.services-note strong { color: var(--ink); }
@media (max-width: 900px) { .svc, .svc.star { grid-column: span 6; } .svc.star { padding: 28px 24px; } }
@media (max-width: 560px) { .svc-star-badge { position: static; justify-self: start; order: -1; } }
@media (min-width: 901px) and (max-width: 1080px) { .svc { grid-column: span 3; } }

/* S4 Demo */
.demo { background: var(--mist); }
.demo-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); justify-items: center; }
.demo-col { display: grid; gap: 16px; justify-items: center; min-width: 0; width: 100%; }
.demo-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: 8px 16px; border-radius: 999px; }
.demo-label.bad { background: #FFFFFF; color: #8A1F1C; border: 1.5px solid #E7B7B5; }
.demo-label.good { background: var(--navy); color: var(--on-navy); }
.demo .phone { width: min(330px, 86vw); aspect-ratio: 9 / 19.5; }
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 40px 16px 12px; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.chat-head .who { display: grid; line-height: 1.2; }
.chat-head .who b { font: 600 14px var(--font-display); color: var(--ink); }
.chat-head .who span { font-size: 11.5px; color: var(--muted); }
.chat-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: #F3F6F8; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 86%; padding: 7px 11px; border-radius: 16px; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 0 rgba(14, 34, 53, 0.06); }
.msg.client { align-self: flex-end; background: #DCF2D2; color: #173A10; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: #FFFFFF; color: var(--ink); border-bottom-left-radius: 5px; }
.msg .meta { display: block; text-align: right; font-size: 10.5px; color: #5E7A55; margin-top: 2px; }
.msg-chips { align-self: flex-start; display: flex; gap: 6px; flex-wrap: wrap; }
.msg-chips span { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #FFFFFF; border: 1.5px solid var(--navy); color: var(--navy); }
.seen { align-self: flex-end; font-size: 11px; color: var(--muted); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 16px; background: #FFFFFF; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA9B6; animation: blink 1s infinite; display: block; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.js .chat-body > .step { display: none; }
.js .chat-body > .step.shown { display: flex; animation: pop 0.35s var(--ease-spring) both; }
.js .chat-body > .msg.step.shown, .js .chat-body > .seen.step.shown { display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
.demo-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: var(--radius); background: #FFFFFF; border: 1px solid var(--line); }
.demo-foot p { max-width: 56ch; font-size: 1.08rem; }
.demo-foot .actions { gap: 12px; }
.demo-toggle { display: none; gap: 6px; padding: 5px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); justify-self: center; margin-bottom: 18px; }
.demo-toggle button { font: 600 0.95rem var(--font-display); border: 0; background: transparent; color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.demo-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
.replay { font: 600 0.95rem var(--font-display); color: var(--navy); background: none; border: 0; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; padding: 10px 6px; min-height: 44px; }
.replay svg { width: 18px; height: 18px; }
.example-note { text-align: center; font-size: 0.88rem; color: var(--muted); margin-top: 16px; }
@media (max-width: 760px) {
  .demo-toggle { display: inline-flex; }
  .demo-label { display: none; }
  .demo-stage { grid-template-columns: 1fr; }
  .js .demo-stage[data-show="good"] .demo-col.bad-col, .js .demo-stage[data-show="bad"] .demo-col.good-col { display: none; }
}
.demo-center { display: grid; }

/* S5 Work */
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.work-head .section-head { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(244, 247, 250, 0.5);
  background: transparent; color: var(--on-navy); cursor: pointer; display: grid; place-items: center;
  transition: background-color 0.15s, transform 0.15s var(--ease-out);
}
.carousel-nav button:active { transform: scale(0.95); }
.carousel-nav button:hover { background: rgba(255, 255, 255, 0.1); }
.carousel-nav svg { width: 22px; height: 22px; }
.track {
  --gx: max(20px, calc((100vw - var(--wrap)) / 2 + 20px));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 86%); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gx);
  padding-left: var(--gx); padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  overscroll-behavior-x: contain;
}
.project { scroll-snap-align: start; display: grid; gap: 18px; align-content: start; min-width: 0; }
.mock {
  position: relative; border-radius: 22px; padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 34px) clamp(30px, 3vw, 40px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.js .project .mock { clip-path: inset(0 100% 0 0 round 22px); transition: clip-path 0.9s var(--ease-out); }
.js .project.in .mock { clip-path: inset(0 0 0 0 round 22px); }
.laptop { position: relative; width: 86%; }
.laptop .lid { aspect-ratio: 16 / 10; border: 9px solid #0F1C28; border-bottom-width: 12px; border-radius: 14px 14px 4px 4px; background: #FFFFFF; overflow: hidden; position: relative; }
.laptop .base { height: 12px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#C7D2DC, #95A4B2); }
.mini-phone { position: absolute; right: clamp(16px, 3vw, 30px); bottom: clamp(18px, 2.5vw, 28px); width: 26%; aspect-ratio: 9 / 18.5; background: #0F1C28; border-radius: 18px; padding: 5px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.mini-phone .mscreen { height: 100%; border-radius: 13px; overflow: hidden; background: #FFFFFF; position: relative; }
.scroller { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.js .project.in .scroller.long { animation: pagescroll 9s ease-in-out 1s infinite alternate; }
@keyframes pagescroll { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(-38%); } }
.project-meta { display: grid; gap: 8px; }
.project-tag { font-size: 0.86rem; color: var(--on-navy-muted); font-weight: 500; }
.project-meta p { color: var(--on-navy-muted); }
.project-link { justify-self: start; display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-display); font-weight: 600; color: var(--sun); text-decoration: none; padding: 8px 0; min-height: 44px; }
.project-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-link svg { width: 16px; height: 16px; }
.project-private { font-size: 0.9rem; color: var(--on-navy-muted); padding: 8px 0; }
.work-note { margin-top: 18px; font-size: 0.88rem; color: var(--on-navy-muted); }

/* tiny site pieces inside mockups */
.p-bar { height: 6px; border-radius: 4px; background: #D8E0E7; flex: none; }
.p-head { height: 14px; display: flex; justify-content: space-between; align-items: center; flex: none; }
.p-logo { width: 34px; height: 8px; border-radius: 3px; }
.p-menu { display: flex; gap: 4px; }
.p-menu i { width: 14px; height: 4px; border-radius: 2px; background: #C2CCD6; display: block; }
.p-hero { border-radius: 8px; padding: 12px 10px; display: grid; gap: 5px; flex: none; }
.p-hero .p-bar { background: rgba(255, 255, 255, 0.85); }
.p-cta { height: 12px; width: 40%; border-radius: 4px; }
.p-grid { display: grid; gap: 5px; flex: none; }
.p-tile { border-radius: 5px; aspect-ratio: 4 / 3; }
.p-card { border-radius: 6px; padding: 6px; display: grid; gap: 4px; flex: none; }
.slider { display: grid; gap: 4px; }
.slider .rail { height: 5px; border-radius: 3px; background: #E3E8EC; position: relative; }
.slider .rail::after { content: ""; position: absolute; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--k, #F07F1E); left: var(--x, 50%); }
.slider .rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--x, 50%); border-radius: 3px; background: var(--k, #F07F1E); }

/* S6 Process */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps-line { position: absolute; left: 33px; right: calc((100% - 56px) / 3 - 33px); top: 31px; height: 4px; border-radius: 2px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; border-radius: 2px; background: var(--sun); transform-origin: left; display: block; }
.js .steps-line i { transform: scaleX(0); transition: transform 1.6s var(--ease-out) 0.2s; }
.js .steps.in .steps-line i { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step-num {
  width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy);
  background: var(--sun); border: 2px solid var(--navy); box-shadow: 0 5px 0 var(--navy);
}
.js .step-num { background: #FFFFFF; transition: background-color 0.3s, transform 0.3s var(--ease-spring); }
.js .steps.in .step-num { background: var(--sun); }
.js .steps.in .step:nth-child(2) .step-num { transition-delay: 0.2s; }
.js .steps.in .step:nth-child(3) .step-num { transition-delay: 0.85s; }
.js .steps.in .step:nth-child(4) .step-num { transition-delay: 1.5s; }
.step p { color: var(--muted); max-width: 32ch; }
.process-note { margin-top: 40px; display: inline-flex; gap: 12px; align-items: center; padding: 14px 20px; border-radius: 14px; background: var(--sun-soft); font-weight: 600; color: var(--navy-ink); }
.process-note svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 30px; padding-left: 0; }
  .steps-line { left: 31px; right: auto; top: 33px; bottom: 33px; width: 4px; height: auto; }
  .steps-line i { transform-origin: top; }
  .js .steps-line i { transform: scaleY(0); }
  .js .steps.in .steps-line i { transform: scaleY(1); }
  .step { grid-template-columns: 66px minmax(0, 1fr); column-gap: 18px; }
  .step h3 { align-self: center; }
  .step p { grid-column: 2; }
}

/* S7 Includes + price */
.includes { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.inc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.inc-list li { display: flex; gap: 12px; align-items: center; font-weight: 500; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); }
.js .inc-list .check path { stroke-dashoffset: 24; }
.js .includes.in .inc-list .check path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.45s var(--ease-out); transition-delay: calc(var(--i) * 110ms + 0.2s); }
.extras { margin-top: 30px; display: grid; gap: 12px; }
.extras .chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 600; font-size: 0.95rem; background: transparent; }
.price-card {
  position: relative; padding: clamp(28px, 3vw, 40px); border-radius: 24px; background: var(--navy); color: var(--on-navy);
  display: grid; gap: 14px; overflow: hidden;
}
.price-card .eyebrow { color: var(--on-navy-muted); }
.price { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.32em; letter-spacing: 0; font-weight: 600; color: var(--sun); margin-left: 6px; }
.price-card p { color: var(--on-navy-muted); }
.price-card .btn { margin-top: 10px; justify-self: start; }
.price-card .deco { position: absolute; right: -18px; top: -16px; font-size: 2.6rem; opacity: 0.12; transform: rotate(-8deg); pointer-events: none; }
.price-card .deco .key { color: var(--navy); }
@media (max-width: 900px) { .includes { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .inc-list { grid-template-columns: 1fr; } }

/* S8 Quote wizard */
.quote { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.quote-intro { display: grid; gap: 18px; position: sticky; top: 110px; }
.quote-intro p { color: var(--on-navy-muted); }
.quote-intro ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; color: var(--on-navy); }
.quote-intro li { display: flex; gap: 10px; align-items: center; }
.quote-intro li svg { width: 18px; height: 18px; color: var(--leaf); flex: none; }
.wizard { background: #FFFFFF; color: var(--ink); border-radius: 26px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); min-width: 0; }
.progress { display: grid; gap: 10px; margin-bottom: 26px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.progress-track { height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: 4px; background: var(--sun); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.q-pane { display: grid; gap: 18px; }
.q-pane.enter { animation: slidein 0.38s var(--ease-out) both; }
.q-pane.enter-back { animation: slideback 0.38s var(--ease-out) both; }
@keyframes slidein { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slideback { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.q-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); color: var(--navy); letter-spacing: -0.02em; line-height: 1.12; }
.q-hint { color: var(--muted); font-size: 0.95rem; margin-top: -8px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 58px; padding: 12px 16px;
  border-radius: 14px; border: 2px solid var(--line); background: #FFFFFF; color: var(--ink);
  font: 500 1rem var(--font-body); cursor: pointer; transition: border-color 0.15s, background-color 0.15s, transform 0.12s var(--ease-out);
}
.opt:hover { border-color: var(--navy); }
.opt:active { transform: scale(0.98); }
.opt .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #A9B7C4; flex: none; display: grid; place-items: center; transition: background-color 0.15s, border-color 0.15s; }
.opt.single .box { border-radius: 50%; }
.opt .box svg { width: 13px; height: 13px; opacity: 0; }
.opt[aria-pressed="true"] { border-color: var(--navy); background: #F1F6FA; }
.opt[aria-pressed="true"] .box { background: var(--navy); border-color: var(--navy); }
.opt[aria-pressed="true"] .box svg { opacity: 1; }
.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input {
  font: 500 1.05rem var(--font-body); min-height: 54px; padding: 0 16px; border-radius: 12px;
  border: 2px solid var(--line); background: #FFFFFF; color: var(--ink); width: 100%;
}
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(251, 186, 24, 0.45); }
.field input[aria-invalid="true"] { border-color: #C2413D; }
.field .err { color: #A52A26; font-size: 0.88rem; min-height: 1.2em; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.q-back { font: 600 1rem var(--font-display); color: var(--navy); background: none; border: 0; cursor: pointer; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.q-back[hidden] { display: none !important; }
.q-back svg { width: 18px; height: 18px; }
.summary { list-style: none; margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--mist); display: grid; gap: 8px; font-size: 0.97rem; }
.summary li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.summary b { color: var(--muted); font-weight: 600; }
.done-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--leaf-ink); }
.done-badge .check { width: 34px; height: 34px; }
.send-row { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-note { font-size: 0.9rem; color: var(--leaf-ink); min-height: 1.3em; }
.restart { font: 600 0.95rem var(--font-display); color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; min-height: 44px; justify-self: start; }
.noscript-box { display: grid; gap: 14px; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } .quote-intro { position: static; } }
@media (max-width: 520px) { .options { grid-template-columns: 1fr; } .summary li { grid-template-columns: 1fr; gap: 0; } }

/* S9 FAQ + closing */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 9px; background: var(--mist); position: relative; flex: none; transition: background-color 0.2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; border-radius: 2px; background: var(--navy); transform: translate(-50%, -50%); transition: transform 0.25s var(--ease-out); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm { background: var(--sun); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); max-width: 62ch; }
.faq details[open] .answer { animation: fadein 0.3s var(--ease-out); }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

.closing { position: relative; overflow: hidden; text-align: left; }
.closing-inner { position: relative; z-index: 1; display: grid; gap: 26px; justify-items: start; padding-block: clamp(80px, 11vw, 150px); }
.closing h2 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5rem); letter-spacing: -0.035em; max-width: 14ch; }
.closing p { color: var(--on-navy-muted); max-width: 48ch; font-size: 1.1rem; }
.closing-keys { position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: clamp(4rem, 2rem + 6vw, 8.5rem); opacity: 0.12; pointer-events: none; z-index: 0; }
@media (max-width: 960px) { .closing-keys { display: none; } }
.closing-keys .key { background: transparent; color: var(--on-navy); border-color: var(--on-navy); border-width: 3px; box-shadow: 0 12px 0 var(--on-navy); }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--on-navy-muted); font-size: 0.98rem; }
.contact-line b { color: var(--on-navy); font-weight: 600; user-select: all; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: start; }
.foot img { width: 150px; height: auto; }
.foot h4 { margin: 0 0 12px; font: 600 0.82rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--on-navy-muted); text-decoration: none; }
.foot a:hover { color: #FFFFFF; text-decoration: underline; }
.foot-tag { margin-top: 16px; max-width: 30ch; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* Floating contact + mobile bar */
.fab {
  position: fixed; right: calc(22px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--leaf); color: #FFFFFF; text-decoration: none; font: 600 1rem var(--font-display);
  box-shadow: 0 14px 30px -12px rgba(47, 122, 31, 0.75); transition: transform 0.2s var(--ease-out);
}
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 24px; height: 24px; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .fab { display: none; }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    background: rgba(250, 250, 247, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 0.35s var(--ease-out);
  }
  .mobile-bar.show, .no-js .mobile-bar { transform: none; }
  .in-quote .mobile-bar.show { transform: translateY(110%); }
  .mobile-bar .btn { flex: 1; min-height: 52px; }
  .mobile-bar .wa { flex: none; width: 58px; padding: 0; background: var(--leaf); color: #FFFFFF; box-shadow: 0 4px 0 var(--leaf-ink); }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* Generic reveal: content is visible without JS; JS hides only what is still below the fold */
.js [data-reveal].pending { opacity: 0; transform: translateY(26px); }
.js [data-reveal] { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }

/* Hero load sequence */
.js .hero h1 .line > span { animation: rise 0.8s var(--ease-out) both; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: 0.08s; }
.js .hero h1 .line:nth-child(3) > span { animation-delay: 0.16s; }
.js .hero .eyebrow { animation: fade 0.6s var(--ease-out) both; }
.js .hero .lead { animation: fade 0.7s var(--ease-out) 0.3s both; }
.js .hero .actions { animation: fade 0.7s var(--ease-out) 0.4s both; }
.js .hero .trust { animation: fade 0.7s var(--ease-out) 0.5s both; }
.js .hero-phone { animation: phonein 1s var(--ease-out) 0.25s both; }
.js .hero-keys .key, .js .hero-keys .plus { animation: drop 0.7s var(--ease-spring) both; }
.js .hero-keys .key-word-wrap .key { animation-delay: 0.75s; }
.js .hero-keys .plus { animation-delay: 0.68s; }
.js .hero-keys > .key { animation-delay: 0.6s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes phonein { from { opacity: 0; transform: translateY(40px) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
.kw { display: inline-block; }
.kw.swap { animation: kwswap 0.42s var(--ease-out); }
@keyframes kwswap { 0% { opacity: 0; transform: translateY(40%); } 100% { opacity: 1; transform: none; } }

/* Privacy page */
.legal-page { padding-block: 48px 96px; }
.legal-page article { max-width: 720px; display: grid; gap: 18px; }
.legal-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.legal-page h2 { font-size: 1.35rem; margin-top: 14px; }
.legal-page p, .legal-page li { color: var(--ink); }
.legal-page ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal].pending { opacity: 1; transform: none; }
  .js .project .mock { clip-path: none; }
}
