/* patchsized — site v2 (bright, editorial). Separate from /styles.css, which the
   privacy policy and hidden testimonials page still use. */
:root {
  --ink: #0B1210;
  --forest: #0E2A1C;
  --mist: #E9F5EE;
  --bg: #FAFAF9;
  --card: #FFFFFF;
  --muted: #55605A;
  --line: #E2E6E3;
  --signal: #16A14D;
  --signal-bright: #3ED16A;
  --amber: #B7791F;
  --radius: 18px;
  --max: 1160px;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--signal-bright); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); font-weight: 500; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--signal-bright); }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; line-height: 1.55; }
.hl { background: linear-gradient(transparent 62%, var(--signal-bright) 62% 92%, transparent 92%); padding: 0 .08em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,249,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand b { font-weight: 700; } .brand span { font-weight: 400; }
.brand svg { width: 28px; height: 28px; }
.mark .stem, .mark .bowl { fill: var(--ink); } .mark .patch { fill: var(--signal); }
.mark.on-dark .stem, .mark.on-dark .bowl { fill: #F4FAF6; } .mark.on-dark .patch { fill: var(--signal-bright); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--signal-bright); padding-bottom: 3px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; transition: transform .15s, background .15s, color .15s, border-color .15s; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-2px); background: var(--signal); border-color: var(--signal); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.sm { padding: 9px 18px; font-size: .9rem; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--signal-bright); border-color: var(--signal-bright); color: var(--ink); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn.ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { transition: transform .15s; } .btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.hero-meta span::before { content: "+ "; color: var(--signal); font-weight: 600; }

.diff-card { background: var(--forest); color: #D9EBE0; border-radius: 22px; padding: 22px 0 14px; box-shadow: 0 40px 80px -30px rgba(14,42,28,.55); font-family: var(--mono); font-size: .82rem; overflow: hidden; }
.diff-head { display: flex; align-items: center; gap: 8px; padding: 0 22px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #8FB5A0; font-size: .75rem; }
.diff-head i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.diff-head em { font-style: normal; margin-left: 8px; }
.dl { display: flex; gap: 14px; padding: 7px 22px; line-height: 1.5; }
.dl .s { width: 12px; flex-shrink: 0; opacity: .8; }
.dl.del { background: rgba(248,113,113,.10); color: #F4B8B8; }
.dl.add { background: rgba(62,209,106,.12); color: #A8F0BF; }
.dl.ctx { color: #7FA38F; }
.diff-foot { padding: 16px 22px 6px; color: #7FA38F; font-size: .72rem; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.band { background: var(--mist); }
.dark { background: var(--forest); color: #E9F5EE; }
.dark .lede { color: #A9C5B6; }
.dark .eyebrow { color: var(--signal-bright); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head h2 { margin-bottom: 18px; }

.stats { border-block: 1px solid var(--line); padding: 30px 0; }
.stats ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats li { font-size: .95rem; color: var(--muted); }
.stats li b { display: block; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 2px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card { text-decoration: none; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(11,18,16,.3); border-color: #cfd8d2; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; margin-bottom: 22px; color: var(--signal); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .tags { margin-top: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { font-family: var(--mono); font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--muted); background: var(--bg); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid rgba(255,255,255,.18); }
.step { padding: 32px 28px 8px 0; counter-increment: s; }
.step::before { content: "0" counter(s); font-family: var(--mono); color: var(--signal-bright); font-size: .85rem; display: block; margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; color: #fff; }
.step p { color: #A9C5B6; font-size: .96rem; }

.work-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; margin-bottom: 20px; }
.work-feature .copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.work-feature .copy h3 { font-size: 1.8rem; margin: 14px 0 14px; letter-spacing: -0.025em; }
.work-feature .copy p { color: var(--muted); margin-bottom: 24px; }
.work-feature .visual { background: var(--mist); min-height: 340px; display: grid; place-items: center; padding: 36px; }
.work-feature.flip .visual { order: -1; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--signal); font-weight: 500; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-bright); box-shadow: 0 0 0 4px rgba(62,209,106,.25); }
.status.amber { color: var(--amber); } .status.amber::before { background: #E0A43A; box-shadow: 0 0 0 4px rgba(224,164,58,.25); }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--signal-bright); padding-bottom: 2px; width: fit-content; }
.link-arrow:hover { color: var(--signal); }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.principle { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.principle .n { font-family: var(--mono); color: var(--signal); font-size: .85rem; padding-top: 4px; }
.principle h3 { margin-bottom: 8px; } .principle p { color: var(--muted); }

.cta { background: var(--forest); color: #fff; border-radius: 32px; padding: clamp(40px, 7vw, 88px); position: relative; overflow: hidden; }
.cta h2 { max-width: 14em; margin-bottom: 20px; }
.cta p { color: #A9C5B6; max-width: 34em; margin-bottom: 34px; font-size: 1.1rem; }
.cta .patch-deco { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .18; }

/* ---------- inner page hero ---------- */
.page-hero { padding: 80px 0 40px; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 15em; margin-bottom: 22px; }

/* ---------- lists ---------- */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 4px; background: var(--signal-bright); }
.checks li b { color: var(--ink); font-weight: 600; }

.svc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.svc .intro { color: var(--muted); }

.diff-case { background: var(--forest); border-radius: 18px; padding: 18px 0; font-family: var(--mono); font-size: .8rem; width: 100%; color: #D9EBE0; }
.diff-case .dl { padding: 6px 20px; }

/* ---------- people ---------- */
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.person-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 18px; background: var(--forest); color: var(--signal-bright); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 1.1rem; }
.person .role { font-family: var(--mono); font-size: .78rem; color: var(--signal); margin-top: 4px; }
.person p.bio { color: var(--muted); } .person .tags { margin-top: 18px; }
.person a.pl { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .92rem; }

/* ---------- app page ---------- */
.phone { width: 250px; background: var(--ink); border-radius: 38px; padding: 10px; box-shadow: 0 40px 70px -30px rgba(11,18,16,.6); }
.phone-screen { background: #F4FAF6; border-radius: 30px; padding: 22px 18px 24px; min-height: 440px; }
.phone-screen .top { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: .95rem; margin-bottom: 18px; }
.phone-screen .row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .85rem; font-weight: 600; }
.phone-screen .row small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.phone-screen .row .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--mist); flex-shrink: 0; display: grid; place-items: center; color: var(--signal); font-family: var(--mono); font-size: .7rem; }
.qr-big { background: #fff; border-radius: 16px; padding: 14px; margin: 6px auto 14px; width: 170px; }
.badge-play { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 11px 22px 11px 16px; border-radius: 14px; text-decoration: none; transition: transform .15s, background .15s; }
.badge-play:hover { transform: translateY(-2px); background: var(--signal); }
.badge-play svg { width: 26px; height: 26px; }
.badge-play small { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; line-height: 1.1; }
.badge-play b { font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- contact ---------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: inherit; transition: border-color .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(22,161,77,.14); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; }
.contact-side .item { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-side .item small { font-family: var(--mono); color: var(--signal); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.contact-side .item a { font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact-side .item a:hover { color: var(--signal); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9D6CE; padding: 72px 0 36px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer p.about { max-width: 24em; font-size: .95rem; color: #94A59B; }
.site-footer h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #6F8478; margin-bottom: 16px; font-weight: 500; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; font-size: .95rem; } .site-footer a:hover { color: var(--signal-bright); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: .85rem; color: #6F8478; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .mark-anim .patch { animation: drop .7s cubic-bezier(.3,1.5,.5,1) .4s both; transform-box: fill-box; transform-origin: center; }
@keyframes drop { from { transform: translate(8px,-14px) scale(.4) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; scroll-behavior: auto !important; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .work-feature, .svc, .contact-grid { grid-template-columns: 1fr; }
  .work-feature.flip .visual { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats ul { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .svc { gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .container { padding: 0 18px; }
  .menu-btn { display: inline-flex; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 18px 22px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; } .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-links .btn { margin-top: 14px; justify-content: center; width: 100%; border-bottom: 1.5px solid var(--ink); }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 64px; }
  .work-feature .copy { padding: 30px 24px; }
  .work-feature .visual { min-height: 260px; padding: 24px; }
  .cta { border-radius: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .step { padding-right: 0; }
}

/* header CTA: keep button colours (nav-link colour was overriding them) */
.nav-links a.btn { color: #fff; font-weight: 600; }
.nav-links a.btn:hover { color: #fff; }
.nav-links a.btn[aria-current] { box-shadow: none; padding-bottom: 9px; }

/* testimonials (hidden page) */
.testi { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 32px; max-width: 880px; }
.video-slot { aspect-ratio: 16/9; border: 1.5px dashed #c5d0c9; border-radius: 18px; display: grid; place-items: center; background: var(--mist); color: var(--muted); font-family: var(--mono); font-size: .82rem; text-align: center; padding: 24px; }
.testi blockquote { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; }
.testi .attrib { color: var(--muted); font-size: .95rem; }
.testi .attrib strong { color: var(--ink); font-weight: 600; }
