/* DeltaSync landing pages. Visual spec: docs/deltasync-design-preview.html.
   Fonts are self-hosted (assets/fonts). Third-party requests: Umami analytics (cookieless, every page) and the Tally form
   (homepages). No cookies, no pixels. */
@font-face{font-family:Manrope;font-weight:400;font-display:swap;src:url(/assets/fonts/manrope-400.woff2) format("woff2")}
@font-face{font-family:Manrope;font-weight:600;font-display:swap;src:url(/assets/fonts/manrope-600.woff2) format("woff2")}
@font-face{font-family:Manrope;font-weight:700;font-display:swap;src:url(/assets/fonts/manrope-700.woff2) format("woff2")}
@font-face{font-family:Manrope;font-weight:800;font-display:swap;src:url(/assets/fonts/manrope-800.woff2) format("woff2")}

:root{
  --bg:#0A1430; --bg-2:#0E1A3D; --surface:#14224A; --surface-2:#1C2D5E;
  --line:rgba(255,255,255,.09); --text:#F3F6FC; --muted:#97A3C2; --soft:#C9D4F2;
  --accent:#4D7CFF; --ok:#37D39A; --sheet:#FFFFFF; --sheet-ink:#0A1430;
  --font:"Manrope",system-ui,sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
  --ds-bg:var(--bg); /* the logo's S halo is painted in the colour it sits on */
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 17px/1.6 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ---------- sticky header: wordmark + language switch ----------
   site.js writes two custom properties on .site-head while scrolling:
   --logo-p  0 = expanded wordmark, 1 = collapsed monogram (eased scroll progress)
   --head-p  0 = transparent bar,   1 = navy bar with blur and hairline */
:root{--head-h:64px}
@media(min-width:560px){:root{--head-h:68px}}
.site-head{position:sticky;top:0;z-index:40;--logo-p:0;--head-p:0}
.site-head.intro{--logo-p:1} /* home pages start collapsed; site.js plays the expand once */
.site-head:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:rgba(10,20,48,.85);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.08);opacity:var(--head-p)}
.top{display:flex;justify-content:space-between;align-items:center;gap:16px;height:var(--head-h)}
/* The wordmark box includes the script descender; the D is the top 62% (200 of 323 units).
   D = 26px on phones, 30px from 560px. translateY centres the D, not the box, on the bar. */
.brand{display:block;position:relative;color:#fff;text-decoration:none;flex:none;border-radius:6px;transform:translateY(18.5%)}
.brand svg{display:block;height:42px;width:auto;overflow:visible;fill:currentColor}
@media(min-width:560px){.brand svg{height:48.5px}}
/* Collapsed (site.js adds .is-collapsed past the halfway point): only the monogram is clickable.
   The link box itself stops taking pointer events; a 48px target centred on the monogram
   (14.6% across, 31.5% down the wordmark box) takes them instead. Keyboard focus is unaffected. */
.site-head.is-collapsed .brand{pointer-events:none}
.site-head.is-collapsed .brand:after{content:"";position:absolute;left:14.6%;top:31.5%;width:48px;height:48px;transform:translate(-50%,-50%);border-radius:10px;pointer-events:auto;cursor:pointer}
.site-head.is-collapsed .brand:focus-visible{outline:0}
.site-head.is-collapsed .brand:focus-visible:after{outline:3px solid var(--accent)}
[id]{scroll-margin-top:calc(var(--head-h) + 12px)} /* anchor targets clear the sticky header */
.lang{display:flex;background:var(--surface);border-radius:999px;padding:3px;font-size:13px;font-weight:600;flex:none}
.lang a{padding:6px 12px;border-radius:999px;text-decoration:none;color:var(--muted)}
.lang a[aria-current]{background:var(--text);color:var(--bg)}

/* scroll-linked logo: every piece derives its transform/opacity from --logo-p (no timers, no layout).
   .mv = the D and the S: each moves to its monogram position by its own --dx/--dy/--r/--k.
   .lt = the letters e l t a y n c (--i 0..6): each fades over its own slice of the range, last letter first. */
.logo .mv{transform-box:view-box;transform-origin:var(--ox) var(--oy);will-change:transform;
  transform:translate(calc(var(--logo-p)*var(--dx)),calc(var(--logo-p)*var(--dy))) rotate(calc(var(--logo-p)*var(--r))) scale(calc(1 + var(--logo-p)*var(--k)))}
.logo .lt{--t:clamp(0,calc((var(--logo-p) - (6 - var(--i))*.06)/.28),1);opacity:calc(1 - var(--t));transform:translateY(calc(var(--t)*14px))}
.logo .halo{stroke:var(--ds-bg);stroke-linejoin:round;paint-order:stroke}
.logo .rm-mono{display:none}
/* reduced motion: nothing moves; site.js flips --logo-p between 0 and 1 and the two states cross-fade */
@media(prefers-reduced-motion:reduce){
  .logo .mv,.logo .lt{transform:none}
  .logo .lt{opacity:1}
  .logo .main{opacity:calc(1 - var(--logo-p));transition:opacity .2s}
  .logo .rm-mono{display:inline;opacity:var(--logo-p);transition:opacity .2s}
}
/* too narrow for wordmark + SV/EN (below 300px; at 360px they fit): monogram only, no scroll animation */
@media(max-width:299px){
  .site-head{--logo-p:1!important}
  .site-head .brand{width:44px;pointer-events:none}
  .site-head .brand:after{content:"";position:absolute;left:20px;top:31.5%;width:48px;height:48px;transform:translate(-50%,-50%);border-radius:10px;pointer-events:auto;cursor:pointer}
  .site-head .brand:focus-visible{outline:0}
  .site-head .brand:focus-visible:after{outline:3px solid var(--accent)}
}

/* ---------- hero ---------- */
.hero{display:grid;gap:40px;padding:28px 0 56px;align-items:center}
.hero>*{min-width:0}
@media(min-width:900px){.hero.has-card{grid-template-columns:1.05fr .95fr;padding:56px 0 88px}}
.eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#AFC3FF;margin:0 0 14px}
h1{font-weight:800;font-size:clamp(36px,8vw,58px);line-height:1.04;letter-spacing:-.035em;margin:0 0 20px}
h1 .alt{display:block;color:var(--muted);margin-top:.15em} /* 404 page: the headline in the other language */
.lead{color:var(--muted);font-size:19px;margin:0 0 28px;max-width:34em}
.hero .price{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.hero .price span{background:var(--surface);border-radius:999px;padding:7px 14px;font-size:15px;color:var(--soft)}
.hero .price b{color:var(--text);font-weight:700}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--text);color:var(--bg);font-weight:700;font-size:17px;padding:16px 28px;border-radius:999px;text-decoration:none;width:100%;border:0;cursor:pointer}
@media(min-width:560px){.btn{width:auto}}
.note{font-size:14px;color:var(--muted);margin:14px 0 0}

/* the one bold element: an app-style statement card */
.phone{background:var(--bg-2);border:1px solid var(--line);border-radius:32px;padding:22px;max-width:400px;width:100%;justify-self:center;box-shadow:0 30px 80px -30px rgba(40,90,255,.45)}
.ph-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}
.ph-head span{font-size:13px;color:var(--muted)}
.ph-head .chip{font-size:12px;font-weight:700;color:var(--ok);background:rgba(55,211,154,.12);padding:5px 10px;border-radius:999px;white-space:nowrap}
.ph-head .chip.ex-chip{color:#AFC3FF;background:rgba(77,124,255,.16)}
.total{font-weight:800;font-size:40px;letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin:2px 0 4px}
.total small{font-size:22px;color:var(--muted);font-weight:700;margin-left:4px}
.cap{color:var(--muted);font-size:14px;margin:0 0 18px}
.rows{background:var(--surface);border-radius:20px;padding:6px 16px}
.rows .row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.rows .row:last-child{border-bottom:0}
.ic{width:36px;height:36px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;font-size:13px;font-weight:800;color:#AFC3FF;flex:none}
.rows .row div{flex:1;min-width:0;overflow-wrap:break-word}
.rows .row b{display:block;font-size:15px;font-weight:600}
.rows .row i{display:block;font-style:normal;font-size:13px;color:var(--muted)}
.rows .row em{font-style:normal;font-weight:700;font-variant-numeric:tabular-nums;font-size:15px;white-space:nowrap}
.rows .fix{color:#AFC3FF}
.rows .ok{color:var(--ok)}
.ph-btn{margin-top:16px;background:var(--accent);color:#fff;text-align:center;border-radius:16px;padding:14px;font-weight:700;font-size:15px}
.ex{font-size:12px;color:var(--muted);text-align:center;margin:12px 0 0}

/* ---------- sections ---------- */
section{padding:44px 0;border-top:1px solid var(--line)}
h2{font-weight:800;font-size:30px;letter-spacing:-.025em;line-height:1.15;margin:0 0 24px}
.steps{display:grid;gap:14px;list-style:none;padding:0;margin:0;counter-reset:s}
@media(min-width:800px){.steps{grid-template-columns:repeat(3,1fr)}}
.steps li{counter-increment:s;background:var(--surface);border-radius:22px;padding:22px;color:var(--muted);font-size:15px}
.steps li:before{content:counter(s);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;font-weight:800;font-size:15px;margin-bottom:14px}
.steps b{display:block;font-size:18px;margin-bottom:6px;color:var(--text)}

.plans{display:grid;gap:14px}
@media(min-width:800px){.plans{grid-template-columns:1fr 1fr}}
.plan{border-radius:24px;padding:24px;background:var(--surface)}
.plan.pro{background:linear-gradient(160deg,#2A4BC7 0%,#16255A 70%)}
.plan h3{margin:0;font-size:16px;font-weight:600;color:var(--soft)}
.plan .amt{font-size:36px;font-weight:800;letter-spacing:-.03em;margin:6px 0 12px}
.plan p{margin:0;font-size:15px;color:var(--soft)}

.fit{list-style:none;margin:0;padding:0;display:grid;gap:10px}
@media(min-width:800px){.fit{grid-template-columns:1fr 1fr}}
.fit li{background:var(--surface);border-radius:18px;padding:15px 18px 15px 50px;position:relative;font-size:16px}
.fit li:before{content:"";position:absolute;left:20px;top:22px;width:12px;height:7px;border:solid var(--ok);border-width:0 0 2.5px 2.5px;transform:rotate(-45deg)}

.callout{background:var(--surface);border-radius:22px;padding:20px 22px;font-size:16px;color:var(--soft);border-left:4px solid var(--accent)}
.callout p{margin:0}
.callout b{color:var(--text)}
table.rates{width:100%;border-collapse:collapse;background:var(--surface);border-radius:20px;overflow:hidden;font-size:16px;font-variant-numeric:tabular-nums}
.rates th,.rates td{padding:13px 16px;text-align:left;border-bottom:1px solid var(--line)}
.rates th{font-weight:600;color:var(--muted);font-size:14px}
.rates tr:last-child td{border-bottom:0}
.rates+p{color:var(--soft);margin:18px 0 0}
.src{font-size:13px;color:var(--muted);margin:8px 0 0}

/* root chooser: each choice is a card; the bold link stretches over the whole card */
.choices{list-style:none;margin:0 0 64px;padding:0;display:grid;gap:12px;max-width:640px}
.choices li{position:relative;background:var(--surface);border-radius:22px;padding:20px 52px 20px 22px;color:var(--muted)}
.choices li:after{content:"→";position:absolute;right:22px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:700}
.choices a{text-decoration:none;color:var(--text);font-size:18px}
.choices a:after{content:"";position:absolute;inset:0;border-radius:22px}
.choices li:hover{background:var(--surface-2)}
.choices a:focus-visible{outline:0}
.choices li:focus-within{outline:3px solid var(--accent);outline-offset:3px}

/* white sheet with the form */
#anmal{border-top:0;padding-top:12px}
.sheet{background:var(--sheet);color:var(--sheet-ink);border-radius:28px;padding:28px 22px;max-width:640px}
@media(min-width:560px){.sheet{padding:34px 32px}}
.sheet h2{margin-bottom:8px}
.sheet .sub{color:#4A5674;margin:0 0 20px;font-size:16px}
.sheet a{color:#2A4BC7}
.sheet iframe{width:100%;border:0;min-height:520px;display:block}
.form-fallback{display:none;margin:0;color:#4A5674}
.no-form .form-fallback{display:block}

details{border-bottom:1px solid var(--line);padding:18px 0}
summary{cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:16px}
summary::-webkit-details-marker{display:none}
summary:after{content:"+";color:var(--muted)}
details[open] summary:after{content:"–"}
details p{color:var(--muted);margin:10px 0 0;max-width:40em}

footer{padding:40px 0 120px;color:var(--muted);font-size:14px;border-top:1px solid var(--line)}
footer p{margin:4px 0}
footer a{color:var(--muted)}


/* prose pages (privacy policy) */
.prose{max-width:720px;padding-bottom:40px}
.prose .hero{padding:28px 0 12px;display:block}
.prose h1{font-size:clamp(34px,7vw,46px)}
.prose h2{font-size:22px;margin:36px 0 10px}
.prose p,.prose li{color:var(--soft)}
.prose ul{padding-left:22px}
.prose code{background:var(--surface);border-radius:6px;padding:1px 6px;font-size:.9em}

/* ---------- campaign-profit homepage (2026-11) ---------- */
.hero .actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px}
.textlink{color:var(--text);font-weight:700;font-size:17px;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px;padding:6px 0}
.textlink:hover{color:#fff}
p.body{color:var(--soft);font-size:18px;margin:0;max-width:40em}
/* four steps: 1 column on phones, 2 x 2 on tablets, 4 across on wide screens */
@media(min-width:800px){.steps.four{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1040px){.steps.four{grid-template-columns:repeat(4,1fr)}}
/* step numbers: white on #2F5BEA = 5.5:1 (the brighter accent #4D7CFF gave white text only 3.7:1) */
.steps li:before{background:#2F5BEA}
.plans.one{margin-top:22px;max-width:520px}
.plans.one .amt{font-size:30px;margin:0 0 8px}
#form{border-top:0;padding-top:12px}
/* notice on the archived K4 pages under /archive/ */
.archived{background:var(--surface-2);border-radius:18px;padding:14px 18px;margin:8px 0 0;color:var(--soft);font-size:15px}
.archived p{margin:0}
.archived a{color:var(--text)}
