/* ===== v3: Apple-inspired surfaces, conversion blocks, build story ===== */
:root {
  --apple-bg: #f5f5f7;
  --apple-ink: #1d1d1f;
  --apple-sub: #6e6e73;
  --apple-line: #d2d2d7;
}
.light { background: var(--apple-bg); color: var(--apple-ink); }
.light .section-sub, .light .feat p { color: var(--apple-sub); }
.apple { background: #fff; color: var(--apple-ink); }
.hero-cover { background: var(--apple-bg); }
.hero-ast { color: var(--apple-bg); }
.section-head h2 { letter-spacing: -.045em; }
.btn-dark { background: var(--apple-ink); color: #fff; border-color: var(--apple-ink); }
.btn-dark::before { background: #fff; }
.btn-dark:hover { color: var(--apple-ink); }

/* Hero trust row */
.hero-left { display: grid; gap: 18px; }
.hero-sub b { color: #fff; font-weight: 600; }
.trust-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #a1a1a6; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2L11.5 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; flex: none; }

/* ---------- Calculator ---------- */
.calc { padding: clamp(100px, 14vw, 170px) var(--pad); }
.calc-card {
  position: relative; max-width: 1080px; margin: 0 auto; border-radius: 32px; background: var(--apple-bg);
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
}
.calc-inputs { padding: clamp(28px, 4vw, 56px); display: grid; gap: 34px; align-content: center; }
.slider { display: grid; gap: 14px; cursor: pointer; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 16px; color: var(--apple-sub); }
.slider-top b { font-family: var(--display); font-size: 28px; letter-spacing: -.03em; color: var(--apple-ink); }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--apple-ink) var(--fill, 30%), var(--apple-line) var(--fill, 30%)); outline: none; cursor: pointer; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 0 .5px rgba(0,0,0,.08); }
.slider input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.calc-note { font-size: 13px; color: var(--apple-sub); }
.calc-result { padding: clamp(28px, 4vw, 56px); background: var(--apple-ink); color: #fff; display: grid; gap: 14px; align-content: center; }
.calc-label { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #a1a1a6; }
.calc-big { font-family: var(--display); font-size: clamp(56px, 7vw, 104px); font-weight: 700; letter-spacing: -.06em; line-height: 1; background: linear-gradient(90deg, #61bb46, #fdb827 40%, #f5821f 70%, #e03a3e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-pay { color: #d2d2d7; font-size: 17px; max-width: 360px; }
.calc-pay b { color: #fff; }
.calc-result .btn { justify-self: start; margin-top: 10px; background: #fff; color: var(--apple-ink); border-color: #fff; }
.calc-result .btn::before { background: var(--apple-bg); }
@media (max-width: 860px) { .calc-card { grid-template-columns: 1fr; } }

/* ---------- Bento features ---------- */
.bento { grid-template-columns: repeat(4, 1fr); gap: 16px; background: none; border: 0; border-radius: 0; overflow: visible; }
.bento .feat { background: #fff; border-radius: 28px; min-height: 240px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.bento .b-wide { grid-column: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento .b-wide { grid-column: auto; } }

/* ---------- Comparison ---------- */
.compare { padding: clamp(100px, 14vw, 170px) var(--pad); }
.cmp { position: relative; max-width: 1080px; margin: 0 auto; border-radius: 28px; background: var(--apple-bg); padding: 10px 0; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr 1fr; align-items: center; gap: 12px; padding: 20px clamp(18px, 3vw, 36px); border-top: 1px solid var(--apple-line); font-size: 16px; color: var(--apple-sub); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > span:first-child { color: var(--apple-ink); font-weight: 600; }
.cmp-head { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--apple-ink); }
.cmp-us { color: var(--apple-ink); font-weight: 600; position: relative; }
.cmp-head .cmp-us { display: inline-flex; align-items: center; gap: 8px; }
.cmp-head .cmp-us::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-green); }
.yes::before { content: "✓ "; color: var(--c-green); font-weight: 700; }
.no { color: #aeaeb2; }
.no::before { content: "— "; }
@media (max-width: 760px) {
  .cmp-row { grid-template-columns: 1fr 1fr; font-size: 14px; }
  .cmp-row > span:nth-child(4) { display: none; }
  .cmp-row > span:first-child { grid-column: 1 / -1; font-size: 13px; color: var(--apple-sub); font-weight: 500; }
  .cmp-head > span:first-child { display: none; }
}

/* ---------- Promise ---------- */
.promise { padding: clamp(80px, 10vw, 140px) var(--pad); }
.promise-card { position: relative; max-width: 980px; margin: 0 auto; text-align: center; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px); border-radius: 36px; background: var(--apple-bg); display: grid; justify-items: center; gap: 22px; overflow: hidden; }
.promise-card h2 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -.05em; }
.promise-card p:not(.eyebrow) { color: var(--apple-sub); font-size: clamp(17px, 1.5vw, 21px); max-width: 620px; }
.promise-ast { width: 64px; height: 64px; color: var(--apple-ink); }

/* Form: honeypot + success state */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.is-sent { display: block; }
.form-done { display: grid; gap: 16px; max-width: 640px; padding: 40px; border-radius: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); animation: doneIn .8s var(--ease) both; }
.form-done h3 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.form-done p { color: #c7c7cc; font-size: 18px; }
.form-done b { color: #fff; }
.done-check { width: 56px; height: 56px; border-radius: 50%; background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2L11.5 6' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; box-shadow: 0 0 0 8px rgba(97,187,70,.18); }
@keyframes doneIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.form button:disabled { opacity: .7; pointer-events: none; }

/* Contact additions */
.live-eyebrow { color: var(--c-green); }
.live-eyebrow::before { background: var(--c-green); box-shadow: 0 0 0 4px rgba(97,187,70,.2); }
.form .trust-row { margin-top: 4px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: grid; justify-items: center; gap: 2px;
    padding: 12px 18px; border-radius: 18px; background: rgba(255,255,255,.92); color: #000;
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translateY(140%); transition: transform .5s var(--ease);
    font-family: var(--display); font-weight: 700; font-size: 17px;
  }
  .sticky-cta small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--apple-sub); }
  .sticky-cta.show { transform: none; }
}

/* ---------- Build HUD ---------- */
.build-hud {
  position: fixed; left: 20px; bottom: 20px; z-index: 75; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 12px; border-radius: 16px; background: rgba(28,28,30,.72); color: #fff;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 13px; opacity: 0; transform: translateY(20px);
  transition: opacity .5s, transform .6s var(--ease); pointer-events: none;
}
.build-hud.on { opacity: 1; transform: none; }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-orange); animation: pulse 1s ease-in-out infinite; }
.build-hud.done .hud-dot { background: var(--c-green); animation: none; box-shadow: 0 0 0 4px rgba(97,187,70,.25); }
.hud-text { display: grid; line-height: 1.25; min-width: 150px; }
.hud-text b { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.hud-text small { color: #a1a1a6; font-size: 12px; }
.hud-bar { width: 70px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 0; background: var(--rainbow); transition: width .3s; }
@media (max-width: 860px) { .build-hud { display: none; } }

/* ---------- Collaborator cursors ---------- */
.build-layer { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 60; pointer-events: none; }
.bcur { position: absolute; left: 0; top: 0; will-change: transform; opacity: 0; }
.bcur svg { width: 22px; height: 22px; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.bcur .tag { position: absolute; left: 16px; top: 20px; white-space: nowrap; padding: 5px 10px; border-radius: 8px 8px 8px 2px; color: #fff; font: 600 12px/1.2 var(--body); display: grid; gap: 1px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.bcur .tag small { font-weight: 500; opacity: .85; font-size: 11px; }
.bcur.click svg { animation: cclick .35s ease; }
@keyframes cclick { 50% { transform: scale(.82); } }
@media (max-width: 860px), (hover: none) { .build-layer { display: none; } }

/* Selection box drawn around the element being "worked on" */
.sel { position: absolute; inset: -10px; border: 1.5px solid var(--sel, #009ddc); border-radius: 6px; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .3s; }
.sel.on { opacity: 1; }
.sel i { position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid var(--sel, #009ddc); border-radius: 2px; }
.sel i:nth-child(1) { left: -5px; top: -5px; } .sel i:nth-child(2) { right: -5px; top: -5px; }
.sel i:nth-child(3) { left: -5px; bottom: -5px; } .sel i:nth-child(4) { right: -5px; bottom: -5px; }
.sel b { position: absolute; left: -1.5px; top: -26px; padding: 3px 8px; border-radius: 4px; background: var(--sel, #009ddc); color: #fff; font: 600 11px/1.3 var(--body); white-space: nowrap; letter-spacing: 0; }

/* Wireframe flash: text becomes skeleton bars, then "types in" */
.sk { color: transparent !important; -webkit-text-stroke: 0 !important; }
.sk .word, .sk span { color: transparent !important; -webkit-text-stroke: 0 !important; background: rgba(140,140,140,.28); border-radius: 6px; }
.sk-fade { transition: color .5s; }

/* Blueprint grid that sweeps over a section when it is being built */
.bp { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background-image: linear-gradient(rgba(0,122,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(0,122,255,.10) 1px, transparent 1px);
  background-size: 32px 32px; transition: opacity .6s; }
.bp.on { opacity: 1; }
[data-build-target] { position: relative; }
