/* Marea — site styles. Three palettes share one system (data-palette on <html>). */
@font-face { font-family: "Sora"; src: url("/fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root, [data-palette="medianoche"] {
  --bg: oklch(0.145 0.018 285);         /* near-black with a violet cast */
  --bg-2: oklch(0.185 0.024 285);
  --surface: oklch(0.215 0.028 285);
  --line: oklch(0.32 0.03 285 / 0.6);
  --ink: oklch(0.95 0.01 285);
  --ink-2: oklch(0.80 0.02 285);
  --ink-3: oklch(0.68 0.025 285);       /* ≥4.5:1 on --bg */
  --accent: oklch(0.54 0.23 285);       /* violet, ≥4.5:1 with white */
  --accent-ink: oklch(0.80 0.13 285);   /* violet as text on dark */
  --on-accent: #fff;
  --accent-2: oklch(0.83 0.13 175);     /* turquoise */
  --glow: oklch(0.62 0.21 285 / 0.35);
  --sheen: radial-gradient(1200px 600px at 75% -10%, oklch(0.45 0.18 285 / 0.35), transparent 60%), radial-gradient(900px 500px at 0% 30%, oklch(0.6 0.12 175 / 0.12), transparent 60%);
}
[data-palette="grafito"] {
  --bg: oklch(0.19 0.008 255);          /* graphite */
  --bg-2: oklch(0.225 0.01 255);
  --surface: oklch(0.255 0.012 255);
  --line: oklch(0.38 0.015 255 / 0.6);
  --ink: oklch(0.96 0.005 255);
  --ink-2: oklch(0.83 0.01 255);
  --ink-3: oklch(0.71 0.012 255);
  --accent: oklch(0.52 0.19 262);       /* deep blue */
  --accent-ink: oklch(0.78 0.11 262);
  --on-accent: #fff;
  --accent-2: oklch(0.86 0.04 255);     /* silver */
  --glow: oklch(0.52 0.19 262 / 0.35);
  --sheen: linear-gradient(115deg, transparent 30%, oklch(1 0 0 / 0.04) 45%, transparent 60%), radial-gradient(1000px 520px at 80% -10%, oklch(0.42 0.14 262 / 0.4), transparent 60%);
}
[data-palette="ambar"] {
  /* Claude's dark gray + Claude orange (#D97757) */
  --bg: #262624;
  --bg-2: #2B2A27;
  --surface: #30302E;
  --line: rgb(222 220 209 / 0.14);
  --ink: #FAF9F5;
  --ink-2: #DEDCD1;
  --ink-3: #A8A69D;
  --accent: #D97757;
  --accent-ink: #E08A6D;
  --on-accent: #1F1E1D;
  --accent-2: #EBDBBC;
  --glow: rgb(217 119 87 / 0.30);
  --sheen: radial-gradient(1000px 520px at 85% -10%, rgb(217 119 87 / 0.16), transparent 60%);
}

:root {
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "Onest", ui-sans-serif, system-ui, sans-serif;
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-progress: 60; --z-nav: 50; --z-menu: 55; --z-toast: 70;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(88px, 12vw, 168px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background .5s var(--ease), color .5s var(--ease); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
.muted { color: var(--ink-2); }
.accent { color: var(--accent-ink); }

/* progress + nav ---------------------------------------------------------- */
#progress { position: fixed; inset: 0 0 auto 0; height: 2px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: var(--z-progress); }
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s; }
.nav.scrolled { background: color-mix(in oklch, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; position: relative; padding: 10px 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { padding: 8px 12px; min-height: 40px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: 74px 0 0 0; background: var(--bg); z-index: var(--z-menu); padding: 24px var(--pad); display: none; flex-direction: column; gap: 6px; }
.menu.open { display: flex; }
.menu a { font-family: var(--display); font-size: 30px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); animation: menuIn .5s var(--ease) both; }
.menu a:nth-child(2) { animation-delay: .05s } .menu a:nth-child(3) { animation-delay: .1s } .menu a:nth-child(4) { animation-delay: .15s } .menu a:nth-child(5) { animation-delay: .2s }
@keyframes menuIn { from { opacity: 0; transform: translateX(-14px); } }

/* buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 40px -10px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px var(--glow); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: color-mix(in oklch, var(--surface) 40%, transparent); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* hero --------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; padding: 120px 0 72px; display: flex; align-items: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--sheen); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); margin-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 56ch; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent-2) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* phone with a live-typed chat */
.phone { position: relative; width: min(360px, 100%); margin-left: auto; aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px; background: linear-gradient(160deg, oklch(0.35 0.02 285), oklch(0.18 0.02 285)); box-shadow: 0 40px 120px -30px var(--glow), inset 0 0 0 1px oklch(1 0 0 / .08); }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; background: color-mix(in oklch, var(--surface) 80%, transparent); border-bottom: 1px solid var(--line); }
.phone-top .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.phone-top .av svg { width: 22px; height: 22px; }
.phone-top b { font-size: 14px; display: block; } .phone-top small { font-size: 11.5px; color: var(--accent-2); }
.chat { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.bubble { max-width: 84%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.42; animation: bubbleIn .45s var(--ease) both; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 5px; }
.bubble.sys { align-self: center; background: none; font-size: 11.5px; color: var(--accent-2); padding: 2px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s } .bubble.typing i:nth-child(3) { animation-delay: .3s }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none } 30% { opacity: 1; transform: translateY(-2px) } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.98); filter: blur(4px); } }
.chip-tag { position: absolute; padding: 10px 14px; border-radius: 14px; background: color-mix(in oklch, var(--surface) 92%, transparent); border: 1px solid var(--line); font-size: 13px; box-shadow: 0 20px 50px -20px oklch(0 0 0 / .6); display: flex; gap: 8px; align-items: center; }
.chip-tag b { color: var(--accent-2); font-weight: 700; }
.chip-tag.t1 { left: -40px; top: 22%; } .chip-tag.t2 { right: -26px; bottom: 18%; }

/* marquee ---------------------------------------------------------------- */
.marquee { border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; display: grid; gap: 12px; }
.track { display: flex; width: max-content; gap: 0; will-change: transform; }
.track span { display: inline-flex; align-items: center; gap: 14px; padding: 0 28px; font-family: var(--display); font-size: clamp(18px, 2.2vw, 26px); color: var(--ink-3); white-space: nowrap; }
.track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 28px; }

/* sections --------------------------------------------------------------- */
.sec { padding: var(--sec) 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); margin-bottom: 18px; }
.sec-head p { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.kicker { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--accent-2); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* mission: words light up while scrolling */
.mission { padding: var(--sec) 0; }
.mission p.big { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4.2vw, 3.5rem); line-height: 1.18; letter-spacing: -0.025em; max-width: 20ch; }
.mission p.big .w { opacity: .2; transition: opacity .2s; }
.mission .sign { margin-top: 36px; display: flex; gap: 16px; align-items: center; color: var(--ink-2); max-width: 60ch; }
.no-js .mission p.big .w, .reduce .mission p.big .w { opacity: 1; }

/* services: alternating story rows */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.story + .story { margin-top: clamp(80px, 11vw, 150px); }
.story:nth-child(even) .story-art { order: 2; }
.story-copy h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 16px; }
.story-copy p { color: var(--ink-2); margin-bottom: 22px; max-width: 52ch; }
.ticks { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.ticks li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent-2); }
.price-hint { font-size: 14px; color: var(--ink-3); }
.price-hint b { color: var(--ink); font-weight: 600; }
.story-art { position: relative; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); padding: clamp(20px, 3vw, 34px); min-height: 360px; overflow: hidden; isolation: isolate; }
.story-art::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--glow); filter: blur(60px); z-index: -1; opacity: .7; }
/* vignettes */
.v-chat { display: grid; gap: 10px; }
.v-chat .bubble { animation: none; font-size: 14.5px; }
.v-score { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--surface); }
.v-score .pill { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in oklch, var(--accent-2) 22%, transparent); color: var(--accent-2); }
.v-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.v-cal div { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 13px; background: var(--surface); color: var(--ink-2); }
.v-cal .off { opacity: .35; text-decoration: line-through; }
.v-cal .sel { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.v-cal .rng { background: color-mix(in oklch, var(--accent) 35%, var(--surface)); color: var(--ink); }
.v-pay { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); }
.v-site { border-radius: 16px; background: var(--surface); overflow: hidden; }
.v-site .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.v-site .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.v-site .body { padding: 22px; display: grid; gap: 12px; }
.v-site .h { height: 22px; width: 70%; border-radius: 6px; background: var(--ink-3); opacity: .5; }
.v-site .t { height: 10px; border-radius: 4px; background: var(--line); }
.v-site .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 6px; }
.v-site .row div { height: 70px; border-radius: 10px; background: var(--bg-2); }
.story-art .fab { position: absolute; right: 26px; bottom: 26px; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px -6px var(--glow); color: var(--on-accent); }
.story-art .fab svg { width: 24px; height: 24px; }
.v-sheet { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.v-sheet th, .v-sheet td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.v-sheet th { color: var(--ink-3); font-weight: 500; }
.v-sheet td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.v-sheet .ok { color: var(--accent-2); }
.v-ad { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.v-ad .card { border-radius: 16px; background: var(--surface); padding: 14px; }
.v-ad .img { aspect-ratio: 4/3; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 10px; opacity: .85; }
.v-ad .cta { margin-top: 10px; font-size: 12.5px; font-weight: 700; padding: 8px; border-radius: 8px; text-align: center; background: color-mix(in oklch, var(--accent-2) 22%, transparent); color: var(--accent-2); }
.v-ad .arrow { display: grid; gap: 10px; }

/* steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; padding-top: 36px; }
.steps::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps .fill { position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(var(--p, 1)); }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -36px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-2); }
.step .n { font-family: var(--display); font-size: 14px; color: var(--accent-2); font-weight: 600; }
.step h3 { font-size: 1.35rem; margin: 8px 0 10px; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .time { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* demo bento */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.tile { position: relative; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), border-color .3s; display: flex; flex-direction: column; gap: 10px; }
.tile:hover { transform: translateY(-4px); border-color: var(--ink-3); }
.tile.big { grid-row: span 2; background: radial-gradient(600px 300px at 100% 0%, var(--glow), transparent 70%), var(--bg-2); }
.tile h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.tile p { color: var(--ink-2); max-width: 46ch; }
.tile .go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-ink); }
.tile .go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.tile:hover .go svg { transform: translateX(4px); }
.quote { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--surface); font-size: 15px; color: var(--ink); }
.quote small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }

/* pricing teaser + pricing page */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.plan { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.plan.feat { background: radial-gradient(500px 260px at 100% 0%, var(--glow), transparent 70%), var(--surface); border-color: color-mix(in oklch, var(--accent) 60%, var(--line)); }
.plan h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.plan .who { color: var(--ink-2); font-size: 15px; min-height: 3em; }
.plan .amt { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.6rem); white-space: nowrap; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .amt small, .plan .amt .c { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .setup { font-size: 14px; color: var(--ink-3); }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 6px 0 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.badge { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.cur { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.cur button { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); min-height: 40px; }
.cur button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pricing-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.fx-note { font-size: 13.5px; color: var(--ink-3); }
.extras { width: 100%; border-collapse: collapse; margin-top: 12px; }
.extras th, .extras td { padding: 18px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.extras th { font-weight: 500; color: var(--ink-3); font-size: 14px; }
.extras td:nth-child(2), .extras td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.extras td b { display: block; font-weight: 600; }
.extras td span { color: var(--ink-2); font-size: 15px; }
.conv { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; max-width: 620px; padding: 26px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.conv label { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.conv input { font: 600 1.5rem/1 var(--display); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; width: 100%; font-variant-numeric: tabular-nums; }
.conv input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.conv .eq { padding-bottom: 16px; color: var(--ink-3); font-size: 22px; }

/* faq */
.faq { display: grid; gap: 0; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .ans { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* final CTA */
.final { padding: var(--sec) 0; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 20% 10% auto; height: 70%; background: var(--glow); filter: blur(120px); z-index: -1; border-radius: 50%; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 16ch; margin: 0 auto 20px; }
.final p { color: var(--ink-2); max-width: 54ch; margin: 0 auto 36px; font-size: 1.15rem; }
.final .hero-ctas { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--ink-3); font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
footer h2 { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
footer nav, footer .wrap > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
footer .f-brand p { max-width: 34ch; margin-top: 6px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }
footer .f-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* palette switcher (preview tool) */
.palette { position: fixed; left: 18px; bottom: 18px; z-index: var(--z-toast); display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 999px; background: color-mix(in oklch, var(--surface) 92%, transparent); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); box-shadow: 0 10px 30px -10px oklch(0 0 0 / .6); }
.palette button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; }
.palette button[aria-pressed="true"] { border-color: var(--ink); }
.palette [data-p="medianoche"] { background: conic-gradient(#7C5CFF 0 50%, #0B0B12 0); }
.palette [data-p="grafito"] { background: conic-gradient(#2F5BFF 0 50%, #22262D 0); }
.palette [data-p="ambar"] { background: conic-gradient(#D97757 0 50%, #262624 0); }

/* reveal (enhances an already-visible default) */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* page hero (pricing) */
.page-hero { padding: 160px 0 40px; position: relative; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--sheen); z-index: -1; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); max-width: 14ch; margin-bottom: 20px; }
.page-hero p { font-size: 1.2rem; color: var(--ink-2); max-width: 58ch; }

/* ---------- services dropdown */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-links .caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.has-sub .sub { position: absolute; top: 100%; left: -24px; padding-top: 12px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }
.sub-in { width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); }
.nav-links .sub-in a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; }
.nav-links .sub-in a::after { display: none; }
.nav-links .sub-in a:hover, .nav-links .sub-in a:focus-visible { background: var(--bg-2); }
.sub-in b { font-weight: 600; color: var(--ink); font-size: 15px; }
.sub-in small { color: var(--ink-3); font-size: 13px; }
.nav-links .sub-in a.all { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.sub-in a.all svg { width: 16px; height: 16px; }
.menu .m-subs { display: flex; flex-direction: column; padding: 4px 0 10px 14px; border-bottom: 1px solid var(--line); }
.menu a.m-sub { font-family: var(--body); font-size: 17px; color: var(--ink-2); border: 0; padding: 7px 0; }
.menu { overflow-y: auto; }

/* ---------- shared page bits */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.more:hover svg { transform: translateX(4px); }
.all-svcs { margin-top: clamp(64px, 8vw, 110px); text-align: center; }

/* ---------- service page */
.svc-hero { padding: 140px 0 20px; position: relative; isolation: isolate; }
.svc-hero::before { content: ""; position: absolute; inset: 0; background: var(--sheen); z-index: -1; }
.svc-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.svc-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); margin-bottom: 22px; max-width: 18ch; }
.svc-hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 32px; }
.incl { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 56px; }
.incl li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.incl li > svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.incl h3 { font-size: 1.2rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.incl p { color: var(--ink-2); font-size: 15.5px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-box, .fit { border-radius: var(--r-lg); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px); }
.price-box { background: radial-gradient(600px 260px at 0% 0%, var(--glow), transparent 70%), var(--bg-2); }
.price-box h2, .fit h2 { font-size: 1.5rem; margin-bottom: 14px; }
.amt-line { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 24px; max-width: 40ch; }
.amt-line b { color: var(--ink); font-family: var(--display); font-size: 1.6rem; display: block; margin-bottom: 4px; }
.fit-list { display: flex; flex-wrap: wrap; gap: 10px; }
.fit-list a { text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; transition: border-color .2s, color .2s; }
.fit-list a:hover { border-color: var(--accent); color: var(--ink); }
.rels { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.rel { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 48px 26px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.rel + .rel { padding-left: 28px; border-left: 1px solid var(--line); }
.rel b { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.rel span { color: var(--ink-3); font-size: 14.5px; }
.rel svg { position: absolute; right: 18px; top: 30px; width: 20px; height: 20px; color: var(--accent-ink); transition: transform .3s var(--ease); }
.rel:hover svg { transform: translateX(5px); }

/* ---------- implementation vignette */
.v-flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 340px; margin: 10px auto 0; }
.v-flow .node { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.v-flow .node svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); }
.v-flow .node.ai { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 600; }
.v-flow .node.ai svg { color: var(--on-accent); width: 26px; height: 26px; }
.v-flow i { width: 2px; height: 26px; margin: 0 auto; background: linear-gradient(var(--line), var(--accent)); }

/* ---------- journey (services hub) */
.journey { position: relative; }
.journey ol { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; position: relative; }
.journey::before, .journey .fill { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.journey .fill { background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(var(--p, 1)); }
.journey a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding-top: 36px; position: relative; }
.journey .dot { position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transition: background .25s, transform .3s var(--ease); }
.journey a:hover .dot { background: var(--accent); transform: scale(1.2); }
.journey b { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.journey span:not(.dot) { font-size: 13.5px; color: var(--ink-3); }

/* ---------- industries */
.ind-wrap { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.ind-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.ind-toc a { text-decoration: none; color: var(--ink-3); padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; transition: color .2s, border-color .2s; }
.ind-toc a:hover, .ind-toc a.on { color: var(--ink); border-left-color: var(--accent); }
.ind { position: relative; padding: 0 0 clamp(56px, 7vw, 88px); scroll-margin-top: 100px; }
.ind + .ind { padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.ind-n { font-family: var(--display); font-size: 14px; color: var(--accent-ink); font-weight: 600; display: block; margin-bottom: 10px; }
.ind h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 14px; max-width: 22ch; }
.ind .pain { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; margin-bottom: 24px; }
.ind-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }

/* ---------- about */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.prose p { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 1.2em; max-width: 62ch; text-wrap: pretty; }
.prose p:first-child { font-size: 1.35rem; color: var(--ink); }
.about-card { position: sticky; top: 110px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); background: radial-gradient(500px 260px at 100% 0%, var(--glow), transparent 70%), var(--bg-2); border: 1px solid var(--line); }
.big-q { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; letter-spacing: -0.015em; }
.values { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.values li { padding: 28px 0; border-top: 1px solid var(--line); }
.values h3 { font-size: 1.35rem; margin-bottom: 8px; }
.values p { color: var(--ink-2); max-width: 46ch; }
.security h2, .prep h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 24px; }

/* ---------- contact */
.contact-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-opt { display: grid; grid-template-columns: 48px 1fr 24px; gap: 18px; align-items: center; text-align: left; padding: 26px 26px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font: inherit; cursor: pointer; transition: transform .35s var(--ease), border-color .3s; }
.c-opt:hover { transform: translateY(-3px); border-color: var(--accent); }
.c-opt > svg:first-child { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--accent); color: var(--on-accent); }
.c-opt > span { display: flex; flex-direction: column; gap: 4px; }
.c-opt b { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.c-opt span span { color: var(--ink-3); font-size: 14.5px; }
.c-opt .go { width: 22px; height: 22px; color: var(--accent-ink); transition: transform .3s var(--ease); }
.c-opt:hover .go { transform: translateX(4px); }

@media (max-width: 1100px) { .nav-links { gap: 20px; } .nav-links a { font-size: 14.5px; } }
@media (max-width: 1000px) {
  .svc-hero .wrap, .about-grid, .price-row { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .journey ol { grid-template-columns: repeat(4, 1fr); row-gap: 36px; }
  .journey::before, .journey .fill { display: none; }
  .rels { grid-template-columns: 1fr; }
  .rel + .rel { padding-left: 0; border-left: 0; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ind-wrap { grid-template-columns: 1fr; }
  .ind-toc { position: static; flex-direction: row; flex-wrap: wrap; border: 0; gap: 8px; }
  .ind-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; margin: 0; }
  .contact-opts, .values { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .journey ol { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .svc-hero { padding-top: 112px; }
}

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { margin: 10px auto 0; width: min(330px, 86vw); }
  .chip-tag.t1 { left: -6px; } .chip-tag.t2 { right: -6px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .steps::before, .steps .fill { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile.big { grid-row: auto; }
}
@media (max-width: 860px) {
  .nav-links, .nav .lang, .nav .btn { display: none; }
  .burger { display: block; }
  .story { grid-template-columns: 1fr; }
  .story:nth-child(even) .story-art { order: 0; }
  .story-art { min-height: 0; }
  .conv { grid-template-columns: 1fr; } .conv .eq { display: none; }
  .extras thead { display: none; }
  .extras tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .extras td { border: 0; padding: 6px 0; min-width: 0; }
  .extras td:nth-child(2), .extras td:nth-child(3) { white-space: normal; }
  .extras td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
  .extras td:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .v-ad { grid-template-columns: 1fr; }
  .palette span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* chaos -> order (signature scroll scene) */
.sort { position: relative; }
.sort-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 60px; }
.sort-head h2 { font-size: clamp(1.8rem, 3.8vw, 3.1rem); max-width: 24ch; }
.sort-head h2 span { display: block; }
.js .sort-b { opacity: 0; }
.sort-pin > .wrap { width: 100%; }
.sort-stage { position: relative; height: clamp(420px, 56vh, 560px); margin-top: 40px; }
.col-label { position: absolute; top: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 15px; opacity: 0; }
.col-label i { width: 10px; height: 10px; border-radius: 50%; }
.c1 i { background: oklch(0.72 0.19 35); } .c2 i { background: oklch(0.82 0.15 85); } .c3 i { background: oklch(0.7 0.06 250); }
.no-js .col-label, .reduce .col-label { opacity: 1; }
.note { position: absolute; width: min(300px, 28%); padding: 14px 16px 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px oklch(0 0 0 / .7); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; will-change: transform; }
.note b { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.note span { grid-column: 1; color: var(--ink); line-height: 1.35; }
.note em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 15px; padding: 6px 9px; border-radius: 10px; background: var(--bg-2); color: var(--ink-3); transition: color .4s, background .4s; }
.note.scored[data-col="1"] em { background: oklch(0.72 0.19 35 / .2); color: oklch(0.82 0.14 40); }
.note.scored[data-col="2"] em { background: oklch(0.82 0.15 85 / .18); color: oklch(0.88 0.12 85); }
.note.scored[data-col="3"] em { background: oklch(0.7 0.06 250 / .2); color: oklch(0.82 0.05 250); }
@media (max-width: 760px) {
  .note { width: 30%; padding: 10px; font-size: 12px; grid-template-columns: 1fr; }
  .note em { grid-row: auto; grid-column: 1; justify-self: start; font-size: 12px; padding: 3px 7px; }
  .note b { font-size: 11px; }
  .sort-stage { height: 520px; }
}

/* WhatsApp: nav icon + floating button (sits above the chat bubble) */
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .25s var(--ease), color .2s; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--ink-3); color: #25D366; transform: translateY(-2px); }
.wa-fab { position: fixed; right: 26px; bottom: 96px; z-index: var(--z-toast); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: 0 12px 30px -8px oklch(0 0 0 / .6); transition: transform .25s var(--ease); }
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab:hover { transform: translateY(-3px) scale(1.04); }
@media (max-width: 860px) { .nav .icon-btn { display: none; } .wa-fab { right: 22px; bottom: 92px; } }
@media (max-width: 480px) { .wa-fab { bottom: 90px; } }

.btn-wrap { white-space: normal; text-align: left; height: auto; padding-block: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .palette { display: none; } }
