:root {
  --bg:          #ffffff;
  --panel:       #f4f8f5;
  --panel-2:     #eef4f0;
  --line:        #dbe7df;
  --accent:      #17864a;
  --accent-2:    #0f6537;
  --accent-bright: #1f9d57;
  --ink:         #0f1c14;
  --muted:       #557165;
  --ink-on-gold: #ffffff;
  --gold:        #E6A417;
  --font-head:   "Sora", sans-serif;
  --font-body:   "Hanken Grotesk", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg); color: var(--ink);
  background-image: radial-gradient(95% 55% at 50% -12%, rgba(31,157,87,.07), transparent 60%);
  background-repeat: no-repeat; background-attachment: fixed;
  font-family: var(--font-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* film grain removed for the light theme — kept element for markup compatibility */
.grain { display: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1140px, 92%); margin: 0 auto; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .76rem; font-family: var(--font-body); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--ink-on-gold); padding: .7rem 1.1rem; border-radius: 0 0 8px 0; font-weight: 700; }
.skip:focus { left: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.7rem; border-radius: 10px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; font-family: var(--font-body); font-size: 1rem; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--ink-on-gold); box-shadow: 0 8px 22px rgba(31,157,87,.22); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,113,61,.3); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: none; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* header */
/* header scrolls away with the page; the .to-top button handles getting back up */
header { position: relative; z-index: 20; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .15rem; }
.logo .star { color: var(--gold); }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-phone { font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.7rem; cursor: pointer; }

/* hero */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 18% 30%, rgba(31,157,87,.10) 0%, transparent 60%),
              radial-gradient(50% 60% at 92% 10%, rgba(230,164,23,.07) 0%, transparent 60%);
}
.hero-center { position: relative; max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 1.4rem; }
.hero .pill .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); }
.hero .pill .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-bright); animation: pulse 2.4s infinite; }
/* composited pulse: transform + opacity only (no box-shadow) so it stays off the main thread */
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(3.2); opacity: 0; } 100% { transform: scale(3.2); opacity: 0; } }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.7rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero h1 .grad { background: linear-gradient(98deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero typewriter: sizer holds the height of the longest phrase so the h1 never jumps */
.type-line { display: grid; justify-items: center; }
.type-live, .type-sizer { grid-area: 1 / 1; }
.type-sizer { visibility: hidden; }
.type-caret { display: inline-block; width: .06em; min-width: 3px; height: .82em; background: var(--accent-bright); margin-left: .06em; vertical-align: baseline; transform: translateY(.08em); animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

.hero-center { z-index: 1; }
.hero p.sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 1.8rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-meta div { font-size: .88rem; color: var(--muted); }
.hero-meta b { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--ink); }

/* page hero (simple, for inner pages like /work) */
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1rem, 3vw, 2rem); text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); font-weight: 800; margin: .6rem 0 .8rem; }
.page-hero h1 span { background: linear-gradient(98deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin: 0 auto; }

/* trust */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding: 1.1rem 0; justify-content: center; }
.trust li { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 52ch; margin: 0 auto 2.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem; align-self: flex-start; text-align: left; }
.section-head .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* services — bento */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(15,28,20,.10), 0 0 0 1px rgba(31,157,87,.22); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(31,157,87,.1); border: 1px solid rgba(31,157,87,.22); display: inline-flex; align-items: center; justify-content: center; }
.card .ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.3rem; margin: .9rem 0 .5rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .96rem; }
.card ul { color: var(--muted); margin: .8rem 0 0 1.1rem; font-size: .92rem; display: grid; gap: .25rem; }
.card .price-note { color: var(--accent); font-weight: 700; font-size: .92rem; margin-top: 1rem; }
.card .coming-tag { display: inline-block; background: rgba(31,157,87,.1); color: var(--accent); border: 1px solid rgba(31,157,87,.3); border-radius: 999px; padding: .22rem .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 1rem; }
.card.c-wide { grid-column: span 2; }
.card.c-full { grid-column: span 3; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: flex-start; }
.card.c-wide .price-note { font-size: 1.05rem; }
.card-ai { border-style: dashed; border-color: rgba(31,157,87,.4); background: rgba(31,157,87,.03); }
.card-ai h3 { color: var(--accent); }
.card.c-full .ai-lead { flex: 1 1 320px; }
.card.c-full ul { flex: 1 1 280px; margin-left: 1.1rem; }

/* packages — three tiers */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: stretch; }
.pkg { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.9rem 1.7rem; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pkg:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(15,28,20,.10), 0 0 0 1px rgba(31,157,87,.22); }
.pkg.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(31,157,87,.4), 0 14px 34px rgba(31,157,87,.10); }
.pkg-tag { align-self: flex-start; background: var(--accent); color: var(--ink-on-gold); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.pkg-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin-bottom: .3rem; }
.pkg-price { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--accent); margin-bottom: .8rem; }
.pkg-lead { color: var(--muted); font-size: .96rem; margin-bottom: 1.1rem; }
.pkg ul { list-style: none; display: grid; gap: .6rem; margin: 0 0 1.4rem; }
.pkg ul li { display: flex; align-items: flex-start; gap: .55rem; color: var(--ink); font-size: .95rem; }
.pkg ul li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; margin-top: .2rem; background-repeat: no-repeat; background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.pkg ul li.muted { color: var(--muted); font-size: .9rem; }
.pkg ul li.muted::before { opacity: .5; }
.pkg .btn { margin-top: auto; justify-content: center; }
.pkgs-note { color: var(--muted); font-size: .9rem; margin: 1.1rem auto 0; max-width: 72ch; text-align: center; }

/* care plan + one-offs band */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.1rem; }
.extra-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.7rem; }
.extra-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.extra-card h3 b { color: var(--accent); }
.extra-card p { color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) {
  .pkgs { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .extras { grid-template-columns: 1fr; }
}

/* process */
.process-bg { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; position: relative; overflow: hidden; transition: border-color .18s ease, transform .18s ease; }
.step:hover { border-color: var(--accent); transform: translateY(-3px); }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 75%); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; line-height: 1; background: linear-gradient(180deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.4rem; margin: .6rem 0 .5rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* signature pillars — build it / keep it working / grow it */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.9rem 1.7rem; position: relative; overflow: hidden; transition: border-color .18s ease, transform .18s ease; }
.pillar:hover { border-color: var(--accent); transform: translateY(-3px); }
.pillar-num { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: .1em; color: var(--accent); margin-bottom: .5rem; }
.pillar h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.pillar p { color: var(--muted); font-size: .97rem; }

/* one point of contact — range row */
.range-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2rem; }
.range-row li { font-weight: 600; font-size: .95rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.2rem; }

/* portfolio */
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.demo-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .18s ease, border-color .18s ease; text-decoration: none; color: inherit; display: block; }
.demo-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 22px 48px rgba(15,28,20,.12), 0 0 0 1px rgba(31,157,87,.18); }
.demo-card.no-link { opacity: .92; }

.demo-preview { height: 158px; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--panel-2); }
/* browser-window frame */
.demo-chrome { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; flex-shrink: 0; background: rgba(8,12,14,.92); border-bottom: 1px solid rgba(255,255,255,.07); }
.demo-chrome .cdot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); flex-shrink: 0; }
.demo-chrome .cbar { height: 7px; width: 44%; border-radius: 999px; margin-left: 10px; opacity: .9; }
.demo-shot { flex: 1; min-height: 0; overflow: hidden; }
.demo-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.demo-badge { position: absolute; top: .65rem; right: .65rem; background: var(--accent); color: var(--ink-on-gold); font-size: .65rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; z-index: 2; }
.demo-badge.wip { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }

/* Barber — Rook & Razor: cream / oxblood / brass */
.barber-accent { background: #8a2b2b; }
/* Café — The Corner Cup: cream / terracotta / sage */
.cafe-accent { background: #c1684a; }
/* Security — Zentinel: navy + electric blue */
.sec-accent { background: #1e73e8; }
/* Plumber — Swift Flow: white / blue / safety-orange */
.plumb-accent { background: #1565c0; }
/* Vape — London Vape: neon dark */
.vape-cta { background: #22d3ee; }
/* Landscaper — Fern & Field: forest / sage / cream */
.land-accent { background: #b6852f; }
/* Electrician — BrightSpark: charcoal / amber */
.elec-accent { background: #ffb020; }

.demo-body { padding: 1.2rem 1.4rem 1.5rem; }
.demo-type { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; }
.demo-body h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.demo-body .demo-h { font-family: var(--font-head); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; font-size: 1.3rem; margin-bottom: .4rem; }
.demo-body p { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.demo-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-weight: 700; font-size: .88rem; }
.demo-link.dim { color: var(--muted); }
.work-more { text-align: center; margin-top: 2.4rem; }

/* why / about */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.why-grid p { color: var(--muted); margin-bottom: 1rem; }
.why-grid h2 span { color: var(--accent); }
.stat-row { display: flex; gap: 2.5rem; margin-top: 1.8rem; flex-wrap: wrap; }
.stat b { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--accent); display: block; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }
.promise-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; }
.promise-card h3 { font-size: 1.3rem; margin-bottom: 1.3rem; color: var(--accent); }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1rem; }
.promise-item { display: flex; flex-direction: column; gap: .55rem; }
.promise-item svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.promise-item span { color: var(--ink); font-size: .92rem; line-height: 1.4; }
@media (max-width: 480px) { .promise-grid { grid-template-columns: 1fr; } }

/* contact */
.contact-head { max-width: 60ch; margin: 0 auto 2.4rem; text-align: center; }
.contact-head .eyebrow { display: inline-block; margin-bottom: .8rem; }
.contact-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: .8rem; }
.contact-speed { display: inline-block; color: var(--ink); font-weight: 600; font-size: 1rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; }

/* three channels */
.contact-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.4rem; }
.channel { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem 1.5rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: flex-start; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.channel:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(15,28,20,.10), 0 0 0 1px rgba(31,157,87,.18); }
.channel-ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(31,157,87,.1); border: 1px solid rgba(31,157,87,.22);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.channel-ico svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.channel h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.channel p { color: var(--muted); font-size: .92rem; }
.channel-wa { border-color: rgba(37,211,102,.35); }
.channel-wa .channel-ico { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.3); }
.channel-wa .channel-ico svg { stroke: #1faa51; }

/* form panel (the "rather type it out" fallback) */
.contact-form-panel { max-width: 640px; margin: 0 auto; background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.2rem); }
.form-intro { color: var(--muted); font-size: .96rem; margin-bottom: 1.4rem; text-align: center; }
.form-email-fallback { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.1rem; }
.form-email-fallback a { color: var(--accent); font-weight: 600; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .78rem; color: var(--muted); margin-bottom: .4rem; letter-spacing: .05em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1rem; color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  transition: border-color .15s ease; outline: none; appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(85,113,101,.55); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; justify-content: center; margin-top: .4rem; }
.form-success-msg { padding: 2rem; background: rgba(31,157,87,.08); border: 1px solid var(--accent); border-radius: 12px; color: var(--accent-2); font-size: 1.1rem; font-weight: 600; text-align: center; }

/* footer */
footer { padding: 2.6rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.legal { max-width: 60ch; line-height: 1.55; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s ease forwards; }
.reveal:nth-child(2) { animation-delay: .09s; } .reveal:nth-child(3) { animation-delay: .18s; } .reveal:nth-child(4) { animation-delay: .27s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.scroll-reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.scroll-reveal.is-visible { opacity: 1; transform: none; }
.cards .card.scroll-reveal:nth-child(2) { transition-delay: .07s; } .cards .card.scroll-reveal:nth-child(3) { transition-delay: .14s; } .cards .card.scroll-reveal:nth-child(4) { transition-delay: .21s; } .cards .card.scroll-reveal:nth-child(5) { transition-delay: .28s; }
.demo-cards .demo-card.scroll-reveal:nth-child(2) { transition-delay: .08s; } .demo-cards .demo-card.scroll-reveal:nth-child(3) { transition-delay: .16s; } .demo-cards .demo-card.scroll-reveal:nth-child(4) { transition-delay: .24s; } .demo-cards .demo-card.scroll-reveal:nth-child(5) { transition-delay: .32s; } .demo-cards .demo-card.scroll-reveal:nth-child(6) { transition-delay: .4s; } .demo-cards .demo-card.scroll-reveal:nth-child(7) { transition-delay: .48s; }

/* responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card.c-wide, .card.c-full { grid-column: span 2; }
  .demo-cards { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .4rem 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9rem 4%; width: 100%; }
  .nav-phone { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card.c-wide, .card.c-full { grid-column: auto; }
  .demo-cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  .hero .pill .dot::after { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
  .type-caret { animation: none; display: none; }
  .to-top { transition: none; }
}

/* inline text-style button */
.text-link { border: none; background: none; padding: 0; color: var(--accent); font-weight: 700; font-family: inherit; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--accent-2); }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); margin-bottom: .7rem; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; font-family: var(--font-head); font-size: .98rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.25rem; line-height: 1; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.2rem 1.05rem; color: var(--muted); font-size: .93rem; }

/* legal / terms page */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 1.6rem; }
.legal-toc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.5rem; margin-bottom: 1rem; font-size: .9rem; }
.legal-toc ul { list-style: none; margin-top: .6rem; columns: 2; column-gap: 2rem; }
.legal-toc li { margin-bottom: .35rem; break-inside: avoid; }
.legal-toc a { color: var(--accent); text-decoration: none; font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-doc h2 { font-size: 1.3rem; margin: 2.3rem 0 .6rem; scroll-margin-top: 1.5rem; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: .96rem; }
.legal-doc p { margin-bottom: .8rem; }
.legal-doc ul { margin: .3rem 0 .9rem 1.3rem; }
.legal-doc a { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) { .legal-toc ul { columns: 1; } }

/* back-to-top button: appears after roughly two screens of scrolling */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--accent); color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 10px 26px rgba(15,101,55,.35); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, background .15s ease; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent-2); }

/* ---------- modals (package scope + demo previews) ---------- */
.modal { border: none; border-radius: 18px; padding: 0; margin: auto; background: var(--bg); color: var(--ink); width: min(720px, 94vw); max-height: 88vh; box-shadow: 0 32px 80px rgba(15,28,20,.35); display: none; flex-direction: column; }
.modal[open] { display: flex; }
.modal::backdrop { background: rgba(15,28,20,.55); }
html.modal-open, html.modal-open body { overflow: hidden; }
.modal-close { flex-shrink: 0; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.6rem 1.8rem 0; }
.modal-head h3 { font-size: 1.5rem; margin-top: .3rem; }
.modal-body { padding: 1rem 1.8rem 1.8rem; overflow-y: auto; }

/* scope modal */
.scope-cta { text-align: center; margin-top: 1.8rem; color: var(--muted); font-size: .95rem; }
.scope-cta .btn { margin-top: .7rem; }
.scope-intro { color: var(--muted); font-size: .95rem; margin-bottom: 1.3rem; }
.scope-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 1.3rem; }
.scope-cols h4 { font-family: var(--font-head); font-size: .98rem; margin-bottom: .6rem; }
.scope-list { list-style: none; }
.scope-list li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--muted); margin-bottom: .45rem; }
.scope-list li::before { position: absolute; left: 0; font-weight: 800; }
.scope-list.yes li::before { content: "\2713"; color: var(--accent); }
.scope-list.extra li::before { content: "+"; color: var(--gold); }
.scope-fine { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.scope-fine p { font-size: .88rem; color: var(--muted); margin-bottom: .7rem; }
.scope-fine b { color: var(--ink); }
.scope-actions { text-align: center; margin-top: 1.2rem; }

/* demo preview modal */
.demo-modal { width: min(1180px, 96vw); max-height: 92vh; }
.demo-modal-top { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem .6rem 0; background: rgba(8,12,14,.94); border-radius: 18px 18px 0 0; }
.demo-modal-top .demo-chrome { background: none; border: none; flex: 1; min-width: 0; }
.demo-modal-top .modal-title { color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 600; margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-modal-top .modal-close { background: none; border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.75); }
.demo-modal-top .modal-close:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.demo-modal-body { background: var(--panel-2); overflow-y: auto; flex: 1; min-height: 0; }
.demo-modal-body img { width: 100%; height: auto; display: block; }
.demo-modal-body iframe { width: 100%; height: min(74vh, 820px); border: none; display: block; background: #fff; }
/* mobile-width preview: shrink the iframe to phone size, keep it centred */
.demo-modal-body.mobile-width { padding: 0 1rem; }
.demo-modal-body.mobile-width iframe { width: 375px; max-width: 100%; margin: 0 auto; box-shadow: 0 0 0 1px var(--line); }
.view-toggle { display: flex; gap: .4rem; flex-shrink: 0; }
.vt-btn { border: 1px solid rgba(255,255,255,.25); background: none; color: rgba(255,255,255,.75); border-radius: 999px; padding: .32rem .85rem; font-family: var(--font-body); font-size: .78rem; font-weight: 700; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.vt-btn:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.vt-btn.is-active { border-color: var(--accent-bright); color: var(--accent-bright); }
.demo-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); }
.demo-modal-foot .demo-modal-meta { min-width: 0; }
.demo-modal-foot .demo-type { margin-bottom: .1rem; }
.demo-modal-foot p.demo-desc { color: var(--muted); font-size: .9rem; max-width: 52ch; }
.demo-modal-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.demo-card[role="button"] { cursor: pointer; }

/* package customizer */
.customizer { width: min(760px, 94vw); }
.cz-group { font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 1.2rem 0 .6rem; }
.cz-group:first-child { margin-top: 0; }
.cz-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.cz-card { position: relative; display: flex; gap: .7rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.cz-card:hover { border-color: var(--accent); }
.cz-card:has(input:checked) { border-color: var(--accent); background: var(--panel); }
.cz-card input { margin-top: .3rem; accent-color: var(--accent); flex-shrink: 0; }
.cz-card .cz-info { min-width: 0; }
.cz-card .cz-name { font-weight: 700; font-size: .95rem; display: flex; justify-content: space-between; gap: .6rem; }
.cz-card .cz-price { color: var(--accent); white-space: nowrap; font-weight: 800; }
.cz-card .cz-desc { color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.cz-card.is-included { border-style: dashed; cursor: default; }
.cz-card.is-included .cz-price { color: var(--muted); }
.cz-card.is-included .cz-price::after { content: " · included"; color: var(--accent); font-weight: 700; }
.cz-qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: .45rem; }
.cz-qty button { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 800; cursor: pointer; line-height: 1; }
.cz-qty button:hover { border-color: var(--accent); color: var(--accent); }
.cz-qty output { font-weight: 700; min-width: 1.4ch; text-align: center; }
.cz-included-strip { display: flex; flex-wrap: wrap; gap: .45rem; }
.cz-included-strip span { background: var(--panel); border: 1px dashed var(--line); border-radius: 999px; padding: .3rem .75rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.cz-included-note { color: var(--muted); font-size: .78rem; margin-top: .55rem; }
.cz-foot { border-top: 1px solid var(--line); padding: 1rem 1.8rem 1.4rem; }
.cz-totals { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.cz-totals div b { font-family: var(--font-head); font-size: 1.3rem; }
.cz-totals div span { display: block; color: var(--muted); font-size: .8rem; }
.cz-discount-note { background: var(--panel); border: 1px dashed var(--line); border-radius: 10px; color: var(--accent-2); font-size: .82rem; font-weight: 600; padding: .6rem .8rem; margin-bottom: .9rem; }
.cz-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cz-note { color: var(--muted); font-size: .78rem; margin-top: .7rem; }

@media (max-width: 760px) {
  .scope-cols { grid-template-columns: 1fr; }
  .modal-head, .modal-body { padding-left: 1.2rem; padding-right: 1.2rem; }
  .demo-modal-foot { flex-direction: column; align-items: flex-start; }
  .view-toggle { display: none; }
  .cz-options { grid-template-columns: 1fr; }
  .cz-foot { padding-left: 1.2rem; padding-right: 1.2rem; }
}
