/* KarasWorks — single stylesheet, no dependencies */

:root {
  --bg:        #f6f8fb;
  --bg-alt:    #ffffff;
  --surface:   #ffffff;
  --surface-2: #eef2f8;
  --line:      #dde4ee;
  --text:      #0d1626;
  --text-2:    #4a5a72;
  --text-3:    #5b6a82;   /* 4.5:1 on every light surface (WCAG AA) */
  --navy:      #0d1626;
  --frame:     #0d1626;
  --accent:    #0b7268;   /* 4.8:1 on --accent-soft, 5.8:1 under white text */
  --danger:    #c2361f;
  --danger-soft: rgba(194, 54, 31, .07);
  --accent-soft: rgba(13, 125, 114, .09);
  --shadow:    0 1px 2px rgba(13, 22, 38, .04);
  --shadow-lg: 0 2px 10px rgba(13, 22, 38, .07);
  --radius:    16px;
  --wrap:      1140px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0b1220;
    --bg-alt:    #0f1829;
    --surface:   #121c2e;
    --surface-2: #18243a;
    --line:      #22314b;
    --text:      #eaf0f8;
    --text-2:    #a9b8cd;
    --text-3:    #7f8fa8;
    --navy:      #eaf0f8;
    --frame:     #060b14;
    --accent:    #2dd4bf;
    --danger:    #ff8a75;
    --danger-soft: rgba(255, 138, 117, .10);
    --accent-soft: rgba(45, 212, 191, .12);
    --shadow:    0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 10px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg:        #0b1220;
  --bg-alt:    #0f1829;
  --surface:   #121c2e;
  --surface-2: #18243a;
  --line:      #22314b;
  --text:      #eaf0f8;
  --text-2:    #a9b8cd;
  --text-3:    #7f8fa8;
  --navy:      #eaf0f8;
  --frame:     #060b14;
  --accent:    #2dd4bf;
  --danger:    #ff8a75;
  --danger-soft: rgba(255, 138, 117, .10);
  --accent-soft: rgba(45, 212, 191, .12);
  --shadow:    0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 10px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; }

/* ---------- contact bar above the nav ---------- */
.topbar { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .84rem; }
.topbar-in { display: flex; align-items: center; gap: 22px; min-height: 38px; flex-wrap: wrap; }
.tb-item {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-2); text-decoration: none; font-weight: 600;
  padding: 7px 0; transition: color .15s;
}
.tb-item:hover { color: var(--accent); }
.tb-item svg { color: var(--accent); flex: none; }
.tb-note { margin-left: auto; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.tb-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--navy); color: var(--bg);
  display: grid; place-items: center; font-size: .95rem;
}
:root[data-theme="dark"] .brand-mark, :root:not([data-theme="light"]) .brand-mark { }
.brand .dim { color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--text-2); font-size: .93rem; font-weight: 500;
  padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-links .nav-cta, .nav-links .nav-cta.active {
  color: var(--accent); background: var(--accent-soft); font-weight: 600;
}
.nav-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text-2); cursor: pointer;
  font: 600 .78rem/1 var(--font); letter-spacing: .04em;
  transition: color .15s, border-color .15s, transform .1s;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-3); }
.icon-btn:active { transform: scale(.94); }
.burger { display: none; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
  :root[data-theme="light"] .i-sun { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px; font-size: .95rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #052a26; } }
:root[data-theme="dark"] .btn-primary { color: #052a26; }
:root[data-theme="light"] .btn-primary { color: #ffffff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-disabled { border-color: var(--line); color: var(--text-3); background: transparent; cursor: default; font-weight: 500; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 5.5vw, 76px) 0 clamp(44px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }

.accent { color: var(--accent); }

/* headline lines slide up from behind their own edge */
.hero-h1 { margin-bottom: 0; }
.hero-h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h1 .line-in { display: block; transform: translateY(108%); animation: rise .8s cubic-bezier(.19, .84, .27, 1) forwards; }
.hero-h1 .line:nth-child(2) .line-in { animation-delay: .55s; }
@keyframes rise { to { transform: none; } }

/* first line rolls through the offer, one item at a time */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.roll-src { display: none; }
/* clip-path trims the top edge: descenders of the previous option ("pp" in "Apps")
   otherwise peek 1–2px into the window. Capitals start ~.38em down, so .12em is safe. */
.hero-h1 .roller { height: 1.34em; overflow: hidden; clip-path: inset(.12em 0 0 0); }
.roll-track { display: block; will-change: transform; }
.roll-item { display: block; height: 1.34em; line-height: 1.34em; white-space: nowrap; }

.hero-rule {
  height: 3px; width: 88px; border-radius: 2px; background: var(--accent);
  margin: 22px 0 24px; transform: scaleX(0); transform-origin: left;
  animation: draw .7s .5s cubic-bezier(.19, .84, .27, 1) forwards;
}
@keyframes draw { to { transform: none; } }

.fade-up { opacity: 0; transform: translateY(14px); animation: up .7s cubic-bezier(.19, .84, .27, 1) forwards; }
.fade-up.d1 { animation-delay: .42s; }
.fade-up.d2 { animation-delay: .52s; }
.fade-up.d3 { animation-delay: .62s; }
.fade-up.d4 { animation-delay: .72s; }
.fade-up.d5 { animation-delay: .82s; }
@keyframes up { to { opacity: 1; transform: none; } }
.lead { color: var(--text-2); font-size: 1.12rem; max-width: 58ch; font-weight: 600; }
.lead.sub { font-size: 1rem; font-weight: 400; margin-top: -4px; }

/* quality promises under the CTAs */
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0 0 30px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; color: var(--text-2); }
.trust svg { color: var(--accent); flex: none; stroke-width: 2.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.facts li { display: flex; flex-direction: column; max-width: 190px; }
.facts strong { font-size: 1.7rem; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts span { font-size: .84rem; color: var(--text-3); line-height: 1.4; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 8vw, 100px) 0; }
.sec.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.kicker { color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.sec-lead { color: var(--text-2); max-width: 62ch; margin-bottom: 36px; }
.sec h2 { margin-bottom: 12px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.services-grid { margin-top: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .2s;
}
.card:hover { border-color: var(--text-3); }
.card p { color: var(--text-2); font-size: .93rem; margin-bottom: 16px; }
.card-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}

.card-link { margin: 14px 0 0; font-size: .88rem; font-weight: 600; }
.card-link a { color: var(--accent); text-decoration: none; }
.card-link a:hover { text-decoration: underline; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tags li {
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  padding: 4px 9px; border-radius: 7px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.pill.sm { color: var(--text-3); background: var(--surface-2); }

/* feature project */
.feature {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(24px, 4vw, 52px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(26px, 3.5vw, 44px); align-items: center;
}
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 6px; }
.feature-sub { color: var(--text-2); max-width: 60ch; }
.bullets { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 26px; color: var(--text-2); font-size: .94rem; }
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}
.feature-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.feature-art { display: grid; place-items: center; gap: 18px; }

/* two real app screenshots, one tilted behind the other; sizes in % so it scales down on phones */
.phones { position: relative; width: min(300px, 100%); aspect-ratio: 300 / 440; }
.phone {
  position: absolute; margin: 0; width: 64%; aspect-ratio: 640 / 1305;
  box-sizing: content-box; padding: 6px; border-radius: 26px;
  background: var(--frame); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transition: transform .4s cubic-bezier(.19, .84, .27, 1);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }
.phone-back  { left: 0; top: 0; transform: rotate(-5deg); }
.phone-front { right: 0; bottom: 0; transform: rotate(2deg); }
.feature:hover .phone-back  { transform: rotate(-7deg) translateX(-6px); }
.feature:hover .phone-front { transform: rotate(0) translateY(-4px); }

/* client site in a minimal browser frame */
.feature-web { grid-template-columns: 1fr 1fr; }
.browser {
  display: block; border-radius: 14px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow-lg);
  transition: transform .3s ease, border-color .3s ease;
}
.browser:hover { transform: translateY(-3px); border-color: var(--text-3); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-url {
  margin-left: 10px; flex: 1; font-size: .74rem; color: var(--text-3);
  background: var(--surface); border-radius: 6px; padding: 3px 10px;
}
.browser img { display: block; width: 100%; height: auto; }
.feature + .feature { margin-top: 18px; }
.ci-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}
.ci-chip .ok { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }

/* stack */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.stack-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.stack-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.stack-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.stack-col li { font-size: .94rem; color: var(--text-2); padding-left: 18px; position: relative; }
.stack-col li::before {
  content: ""; position: absolute; left: 3px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* process */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.step-n { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 12px; }
.steps p { color: var(--text-2); font-size: .92rem; margin: 0; }

/* about */
.about-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.about-in p { color: var(--text-2); }
.about-side { display: grid; gap: 14px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.side-box h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 12px; }
.side-strong { margin: 0 0 6px; font-size: .94rem; font-weight: 600; }
.side-row {
  display: flex; align-items: baseline; gap: 8px;
  font-size: .9rem; color: var(--text-2); padding: 3px 0;
}
.side-row .dots { flex: 1 1 auto; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.side-row .sr-v { color: var(--text); font-weight: 600; white-space: nowrap; }

/* contact */
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.contact-who { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.contact-photo {
  width: 76px; height: 76px; flex: none; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.cw-name { margin: 0; font-weight: 700; font-size: 1.02rem; }
.cw-role { margin: 0; font-size: .88rem; color: var(--text-3); }

.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: .96rem; }
.contact-list a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .15s, color .15s; }
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }
.ci { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); border: 1px solid var(--line); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 2px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.field { position: relative; padding-bottom: 22px; }
.err-msg {
  display: none; position: absolute; left: 0; right: 0; bottom: 0;
  font-size: .81rem; font-weight: 500; line-height: 1.35; color: var(--danger);
}
.field.invalid .err-msg { display: flex; align-items: flex-start; gap: 6px; }
.field.invalid .err-msg::before { content: "!"; flex: none; width: 15px; height: 15px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.field.invalid > span:first-child { color: var(--danger); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); background: var(--danger-soft); }
.field.invalid input:focus, .field.invalid textarea:focus { box-shadow: 0 0 0 3px var(--danger-soft); border-color: var(--danger); }
.field.shake { animation: shake .38s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.form input, .form textarea {
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .btn { justify-content: center; margin-top: 4px; }
.form-note { font-size: .88rem; margin: 0; min-height: 1.2em; color: var(--accent); }
.form-note.err { color: #ef4444; }
.form-priv { font-size: .78rem; color: var(--text-3); margin: 0; }
.form-priv a { color: var(--text-2); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* the message leaves, then the panel confirms it */
.form { position: relative; }
.plane {
  position: absolute; left: 0; top: 0; color: var(--accent);
  opacity: 0; pointer-events: none; z-index: 3;
  transform: translate(var(--sx, 0), var(--sy, 0));
}
.form.sending .plane { animation: fly 1.15s cubic-bezier(.34, .07, .27, 1) forwards; }
@keyframes fly {
  0%   { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.6) rotate(-8deg); }
  12%  { opacity: 1; transform: translate(var(--sx), var(--sy)) scale(1) rotate(-8deg); }
  55%  { opacity: 1; transform: translate(var(--mx), var(--my)) scale(1.06) rotate(6deg); }
  88%  { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(.42) rotate(24deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3) rotate(28deg); }
}
.form.leaving { animation: shrink .35s ease forwards; }
@keyframes shrink { to { opacity: 0; transform: scale(.97); } }

[hidden] { display: none !important; }
.sent { display: none; }
.sent.show {
  display: grid; place-items: center; text-align: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 26px; transform-origin: 50% 85px;
  animation: panel .5s cubic-bezier(.19, .84, .27, 1) both;
}
@keyframes panel { from { opacity: 0; transform: scale(.9); } }
.sent-mark { width: 78px; height: 78px; margin-bottom: 10px; overflow: visible; }
.sent.show .sent-ring {
  fill: none; stroke: var(--accent); stroke-width: 2.4; opacity: .55;
  stroke-dasharray: 145; stroke-dashoffset: 145;
  animation: draw-ring .75s .1s cubic-bezier(.19, .84, .27, 1) forwards;
}
.sent.show .sent-tick {
  fill: none; stroke: var(--accent); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw-tick .35s .62s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
@keyframes draw-tick { to { stroke-dashoffset: 0; } }
.sent.show .sent-h {
  margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em;
  opacity: 0; animation: up .5s .78s cubic-bezier(.19, .84, .27, 1) forwards;
}
.sent.show .sent-p {
  margin: 0; max-width: 34ch; color: var(--text-2); font-size: .93rem;
  opacity: 0; animation: up .5s .88s cubic-bezier(.19, .84, .27, 1) forwards;
}
.sent.failed .sent-ring, .sent.failed .sent-tick, .sent.failed .sent-dot { stroke: var(--danger); }
.sent.show.failed .sent-tick { stroke-dasharray: 15; stroke-dashoffset: 15; }
.sent.failed .sent-dot { fill: none; stroke: var(--danger); stroke-width: 4; stroke-linecap: round; opacity: 0; animation: fade-in .2s .95s forwards; }
@keyframes fade-in { to { opacity: 1; } }
.fail-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; opacity: 0; animation: up .5s .95s cubic-bezier(.19, .84, .27, 1) forwards; }
.fail-links .btn { font-size: .9rem; padding: 10px 18px; }

.sent.show .sent-again {
  margin-top: 18px; background: none; border: 0; cursor: pointer;
  font: 600 .86rem var(--font); color: var(--accent);
  border-bottom: 1px solid transparent; padding: 2px 0;
  opacity: 0; animation: up .5s 1s cubic-bezier(.19, .84, .27, 1) forwards;
}
.sent-again:hover { border-bottom-color: var(--accent); }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 28px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .87rem; color: var(--text-3); }
.foot p { margin: 0; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--text-3); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* legal pages */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin-top: 34px; }
.legal p, .legal li { color: var(--text-2); font-size: .96rem; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--text-3); font-size: .85rem; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 24px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-h1 .line-in, .hero-rule, .fade-up { animation: none; opacity: 1; transform: none; }
  .plane, .field.shake { animation: none; }
  .roll-track { transition: none !important; }
  .sent.show, .sent.show .sent-h, .sent.show .sent-p, .sent.failed .sent-ring, .sent.failed .sent-tick, .sent.failed .sent-dot { stroke: var(--danger); }
.sent.show.failed .sent-tick { stroke-dasharray: 15; stroke-dashoffset: 15; }
.sent.failed .sent-dot { fill: none; stroke: var(--danger); stroke-width: 4; stroke-linecap: round; opacity: 0; animation: fade-in .2s .95s forwards; }
@keyframes fade-in { to { opacity: 1; } }
.fail-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; opacity: 0; animation: up .5s .95s cubic-bezier(.19, .84, .27, 1) forwards; }
.fail-links .btn { font-size: .9rem; padding: 10px 18px; }

.sent.show .sent-again { animation: none; opacity: 1; }
  .sent.show .sent-ring, .sent.show .sent-tick { animation: none; stroke-dashoffset: 0; }
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature, .feature-web { grid-template-columns: 1fr; }
  .feature-art { order: -1; }
  .feature-web .browser { order: -1; }
}

@media (max-width: 860px) {
  .badge-float { left: auto; right: -10px; bottom: 14px; }
  .about-in, .contact-in { grid-template-columns: 1fr; }
  .hero-in { grid-template-columns: 1fr; }
  .burger { display: grid; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 20px 18px;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 1rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .tb-note { display: none; }
  .topbar-in { gap: 14px; font-size: .8rem; }
  .grid-4, .stack-grid, .steps { grid-template-columns: 1fr; }
  .roll-item { white-space: normal; }
  .facts { gap: 18px; }
  .facts li { max-width: none; flex: 1 1 130px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- pricing ---------- */
.price-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.price { display: flex; flex-direction: column; }
.price h3 { font-size: 1.02rem; margin-bottom: 8px; }
.price .price-v { font-size: 1.4rem; white-space: nowrap; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin-bottom: 12px; }
.price .card-link { margin-top: auto; }
.price-hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.price-hl .price-v { color: var(--accent); }
.price-note { margin: 22px 0 0; font-size: .88rem; color: var(--text-3); }
