/* ==========================================================================
   TzFlow — "Loop" design system
   1. Tokens   2. Base   3. Layout & type   4. Components   5. Sections
   6. Motion   7. Responsive
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --navy: #0D1B3D;
  --navy-2: #111D40;
  --navy-3: #1B2A57;
  --navy-deep: #070E22;
  --green: #2ED39C;          /* signal on dark: done / sent / solved */
  --green-bright: #5BE0B3;   /* hover on dark */
  --green-light: #0F9D6C;    /* green graphics (not text) on light backgrounds */
  --green-ink: #08744F;      /* green text on light backgrounds (AA) */
  --paper: #F5F3EE;
  --paper-2: #ECE8DF;
  --white: #FFFFFF;
  --amber: #F2C14E;          /* only for "concept" / placeholder notices */

  /* Roles */
  --text: var(--navy);
  --text-muted: #4A5573;
  --text-on-dark: #F5F3EE;
  --muted-on-dark: #AEB7CE;
  --line: rgba(13, 27, 61, .14);
  --line-dark: rgba(255, 255, 255, .14);
  --focus: var(--navy);

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(2.5rem, 1.4rem + 4.8vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 3.2vw, 3.9rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-mono: .75rem;

  /* Space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 8.5rem);
  --gutter: 16px;
  --container: 1240px;

  /* Shape & motion */
  --r-sm: 6px; --r-md: 12px; --r-lg: 22px; --r-pill: 999px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 160ms; --dur: 320ms; --dur-slow: 700ms;
  --header-h: 64px;
}
@media (min-width: 760px) { :root { --gutter: 32px; --header-h: 72px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--green); color: var(--navy); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero, .work, .why, .contact, .site-footer, .site-header, .plan--featured { --focus: var(--green); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--green); color: var(--navy); padding: .7rem 1rem; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- 3. Layout & type ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.display, .h2, .h3, .step-title, .svc-name, .plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.02;
  font-variation-settings: "opsz" 96;
}
.display { font-size: var(--fs-display); font-weight: 720; letter-spacing: -.022em; line-height: 1; }
.display em { font-style: normal; color: var(--green); }
.h2 { font-size: var(--fs-h2); max-width: 18ch; letter-spacing: -.02em; }
.h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -.015em; }
.lead, .body-lg { font-size: var(--fs-lead); line-height: 1.55; max-width: 58ch; }
.body-lg { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--s-5);
}
.eyebrow--light { color: var(--muted-on-dark); }
.eyebrow-k {
  display: inline-grid; place-items: center; min-width: 2.1em; height: 2.1em; padding-inline: .3em;
  border: 1px solid currentColor; border-radius: var(--r-sm); color: var(--green-ink);
}
.eyebrow--light .eyebrow-k { color: var(--green); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46, 211, 156, .18); }

.section-head { margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head .body-lg { margin-top: var(--s-5); }
.section-head--split { display: grid; gap: var(--s-6); align-items: end; }

/* ---------- 4. Components ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--xl { width: 2.25rem; height: 2.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.35em;
  border: 1.5px solid transparent; border-radius: var(--r-md);
  font-weight: 650; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 1em 1.6em; font-size: 1.05rem; }
.btn--signal { background: var(--green); color: var(--navy); }
.btn--signal:hover { background: var(--green-bright); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: var(--white); background: transparent; }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.link-btn { background: none; border: 0; padding: .25rem; color: inherit; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .3em; }

.tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .35em .7em; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-muted);
}
.tag--concept { border: 1px dashed var(--amber); color: var(--amber); }
.tag--concept::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* Editable placeholder: impossible to miss before launch */
.ph {
  font-family: var(--font-mono); font-size: .8em; font-weight: 600; letter-spacing: .02em;
  background: rgba(242, 193, 78, .18); border: 1px dashed var(--amber); border-radius: 4px; padding: .05em .35em;
}

.ticks { display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem;
  background: var(--green-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Brand-piece glyphs (website = navy piece, automation = green piece) */
[class*="svc-glyph"] { width: 44px; height: 44px; flex: none; background: center / contain no-repeat; }
.svc-glyph--a  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 104 104'%3E%3Cpath d='M24.3 47A38 38 0 0 1 92.9 41' fill='none' stroke='%230D1B3D' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M104.2 34.5L81.6 47.5L99.9 53.1Z' fill='%230D1B3D' stroke='%230D1B3D' stroke-width='2' stroke-linejoin='round'/%3E%3Cg fill='none' stroke='%230D1B3D' stroke-opacity='.3' stroke-width='3' stroke-dasharray='4 4'%3E%3Cpath d='M95.7 73A38 38 0 0 1 27.1 79'/%3E%3Cpath d='M15.8 85.5L38.4 72.5L20.1 66.9Z'/%3E%3C/g%3E%3C/svg%3E"); }
.svc-glyph--b  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 104 104'%3E%3Cg fill='none' stroke='%230D1B3D' stroke-opacity='.3' stroke-width='3' stroke-dasharray='4 4'%3E%3Cpath d='M24.3 47A38 38 0 0 1 92.9 41'/%3E%3Cpath d='M104.2 34.5L81.6 47.5L99.9 53.1Z'/%3E%3C/g%3E%3Cpath d='M95.7 73A38 38 0 0 1 27.1 79' fill='none' stroke='%230F9D6C' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M15.8 85.5L38.4 72.5L20.1 66.9Z' fill='%230F9D6C' stroke='%230F9D6C' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.svc-glyph--ab { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 104 104'%3E%3Cpath d='M24.3 47A38 38 0 0 1 92.9 41' fill='none' stroke='%230D1B3D' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M104.2 34.5L81.6 47.5L99.9 53.1Z' fill='%230D1B3D' stroke='%230D1B3D' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M95.7 73A38 38 0 0 1 27.1 79' fill='none' stroke='%230F9D6C' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M15.8 85.5L38.4 72.5L20.1 66.9Z' fill='%230F9D6C' stroke='%230F9D6C' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.svc-glyph--c  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 104 104'%3E%3Cg fill='none' stroke='%230D1B3D' stroke-width='4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M24.3 47A38 38 0 0 1 92.9 41'/%3E%3Cpath d='M104.2 34.5L81.6 47.5L99.9 53.1Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%230D1B3D' stroke-width='4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M95.7 73A38 38 0 0 1 27.1 79'/%3E%3Cpath d='M15.8 85.5L38.4 72.5L20.1 66.9Z'/%3E%3C/g%3E%3C/svg%3E"); }
.svc-glyph--d  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='1.5' y='1.5' width='45' height='45' rx='12' fill='none' stroke='%230D1B3D' stroke-width='3'/%3E%3Cpath d='M12 25l7.5 7.5L36 14' fill='none' stroke='%230F9D6C' stroke-width='6'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; padding-block: .25rem; }
/* Logo files: assets/logo/svg — tzflow-logo.svg on light, tzflow-logo-white.svg on navy */
.brand-logo { height: 32px; width: auto; }
.footer-logo { height: 44px; width: auto; }
@media (min-width: 760px) { .brand-logo { height: 38px; } }

.site-nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 550; font-size: .95rem; color: var(--muted-on-dark); transition: color var(--dur-fast); padding-block: .5rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="true"] { color: var(--white); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.nav-cta { min-height: 40px; padding: .55em 1em; font-size: .9rem; }

.header-tools { display: flex; align-items: center; gap: .5rem; }
.lang { display: inline-flex; border: 1px solid var(--line-dark); border-radius: var(--r-pill); padding: 3px; }
.lang-btn {
  background: none; border: 0; color: var(--muted-on-dark); min-width: 40px; min-height: 32px;
  border-radius: var(--r-pill); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
}
.lang-btn[aria-pressed="true"] { background: var(--white); color: var(--navy); }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-dark); border-radius: var(--r-md); place-items: center; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--white); position: relative; transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast); }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Sections ---------- */

/* Hero */
.hero {
  background: var(--navy);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-top: clamp(2rem, 1rem + 4vw, 4.5rem);
  padding-bottom: var(--s-6);
  position: relative;
  isolation: isolate;
}
.hero::before { /* faint construction grid: the "blueprint" behind the build */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .28;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 75% 40%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 75% 40%, #000 10%, transparent 75%);
}
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero .display { margin-bottom: var(--s-5); max-width: 13ch; }
.hero .lead { color: var(--muted-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); padding-top: var(--s-5); border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small); color: var(--muted-on-dark); line-height: 1.35;
}
.hero-facts strong { display: block; color: var(--white); font-family: var(--font-display); font-size: clamp(1rem, .9rem + .5vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: .2rem; }
.hero-foot { margin-top: var(--s-7); color: var(--muted-on-dark); }

/* Loop (the brand mark, animated in CSS — see Motion) */
.loop {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.loop-rig { position: absolute; inset: 9%; }
.loop-spin { position: absolute; inset: 0; transform-origin: 50% 50%; } /* holds only the two arrows; the labels stay outside it, upright */
.loop-piece { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 50%; }
.loop-piece path { stroke: currentColor; }
.loop-piece path + path { fill: currentColor; }
.loop-piece--a { color: var(--white); }   /* website */
.loop-piece--b { color: var(--green); }   /* automation */
.piece-label {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: clamp(.65rem, .6rem + .3vw, .8rem); letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); background: rgba(13, 27, 61, .88); border: 1px solid var(--line-dark);
  padding: .5em .8em; border-radius: var(--r-pill);
  white-space: nowrap;
}
.piece-label__k { color: var(--green); }
.piece-label--a { top: 0; right: -4%; }
.piece-label--b { bottom: 0; left: -4%; }

/* System / automation demo */
.system-grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); align-items: start; }
.system .h2 { max-width: 20ch; margin-bottom: var(--s-5); }
.pieces-explain { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
.pe { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s-4); row-gap: .25rem; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.pe h3 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; }
.pe p { grid-column: 2; color: var(--text-muted); }
.pe-mark { grid-row: span 2; width: 44px; height: 44px; background: center / contain no-repeat; }
.pe-mark--a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 104 104'%3E%3Cpath d='M24.3 47A38 38 0 0 1 92.9 41' fill='none' stroke='%230D1B3D' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M104.2 34.5L81.6 47.5L99.9 53.1Z' fill='%230D1B3D' stroke='%230D1B3D' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pe-mark--b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 104 104'%3E%3Cpath d='M95.7 73A38 38 0 0 1 27.1 79' fill='none' stroke='%230F9D6C' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M15.8 85.5L38.4 72.5L20.1 66.9Z' fill='%230F9D6C' stroke='%230F9D6C' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.demo { width: 100%; max-width: 400px; margin-inline: auto; }
.demo-phone {
  background: var(--navy); border-radius: 34px; padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(13, 27, 61, .55), 0 0 0 1px rgba(13, 27, 61, .08);
}
.demo-head { display: flex; align-items: center; gap: .75rem; color: var(--white); padding: .75rem .9rem 1rem; line-height: 1.25; }
.demo-head strong { display: block; font-size: .95rem; }
.demo-sub { font-size: .75rem; color: var(--green); }
.demo-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--paper-2); color: var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.demo-feed {
  background: var(--paper-2);
  background-image: radial-gradient(rgba(13, 27, 61, .06) 1px, transparent 1px);
  background-size: 14px 14px;
  border-radius: 26px; padding: 1rem .8rem 1.2rem;
  display: flex; flex-direction: column; gap: .55rem;
  font-size: .86rem; line-height: 1.4;
}
.msg { max-width: 86%; padding: .55rem .75rem; border-radius: 14px; position: relative; box-shadow: 0 1px 0 rgba(13, 27, 61, .08); }
.msg-time { display: block; font-size: .68rem; color: var(--text-muted); margin-top: .2rem; text-align: right; }
.msg--out { align-self: flex-end; background: #D3F4E6; border-bottom-right-radius: 4px; }
.msg--in { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; min-width: 64px; }
.msg--event {
  align-self: center; max-width: 100%; background: var(--white); border: 1px dashed rgba(13, 27, 61, .25); box-shadow: none;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .02em; text-align: center; color: var(--navy-3);
  display: flex; gap: .5rem; align-items: baseline; border-radius: var(--r-md);
}
.msg--event .msg-time { margin: 0; display: inline; font-weight: 700; }
.msg--done { border-style: solid; border-color: var(--green-light); background: #E6F8F1; }
.msg--day { align-self: center; background: rgba(13, 27, 61, .78); color: var(--white); font-family: var(--font-mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .8rem; border-radius: var(--r-pill); }
.demo-cap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-4); flex-wrap: wrap; }

.auto-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
.auto-list li {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .65rem 1rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); font-size: .92rem; font-weight: 500;
}
.auto-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); flex: none; }

/* Services */
.services { padding-top: 0; }
.services .container { border-top: 1px solid var(--line); padding-top: var(--section-y); }
.svc-list { border-top: 1.5px solid var(--navy); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr 32px; align-items: center; column-gap: var(--s-4); row-gap: .35rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem) 0;
  transition: padding var(--dur) var(--ease-out);
}
.svc summary::-webkit-details-marker { display: none; }
.svc-name { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.7rem); grid-column: 2; }
.svc-value { grid-column: 2; color: var(--text-muted); font-size: 1rem; }
.svc-glyph--a, .svc-glyph--b, .svc-glyph--ab, .svc-glyph--c, .svc-glyph--d { grid-row: 1 / span 2; transition: transform var(--dur) var(--ease-out); }
.svc-toggle { grid-column: 3; grid-row: 1 / span 2; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: background-color var(--dur-fast), transform var(--dur) var(--ease-out); }
.svc-toggle::before, .svc-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.svc-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--dur) var(--ease-out); }
.svc[open] .svc-toggle { background: var(--navy); color: var(--white); }
.svc[open] .svc-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.svc summary:hover [class*="svc-glyph"] { transform: rotate(-8deg) scale(1.06); }
.svc-body { padding: 0 0 var(--s-6) calc(44px + var(--s-4)); display: grid; gap: var(--s-5); max-width: 980px; }
.svc-body > p:first-child { font-size: 1.08rem; max-width: 62ch; }
.svc-body .ticks { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.svc-for { font-size: var(--fs-small); color: var(--text-muted); }
.svc-for > span:first-child { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-right: .4rem; }
.svc-for a { font-weight: 700; color: var(--green-ink); }
.svc--featured summary .svc-name::after {
  content: "★"; font-size: .45em; vertical-align: super; margin-left: .3em; color: var(--green-ink);
}

/* Work (concept projects) */
.work { background: var(--navy); color: var(--text-on-dark); }
.work .h2 { max-width: 16ch; }
.honesty {
  max-width: 46ch; font-size: .95rem; color: var(--muted-on-dark);
  border-left: 2px dashed var(--amber); padding-left: var(--s-4);
}
.honesty strong { color: var(--white); }
.projects { display: grid; gap: clamp(4rem, 3rem + 5vw, 8rem); }
.project { display: grid; gap: var(--s-6); align-items: center; }
.project-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; color: var(--muted-on-dark); margin-bottom: var(--s-4); }
.project .h3 { max-width: 22ch; color: var(--white); }
.project-pieces { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.project-pieces > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line-dark); }
.project-pieces dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); padding-top: .2rem; }
.project-pieces > div:first-child dt { color: var(--white); }
.project-pieces dd { color: var(--muted-on-dark); }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: var(--s-6); }
.project-brand { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); }

.project-visual {
  position: relative; border-radius: var(--r-lg); background: var(--p-bg);
  min-height: 460px; display: grid; place-items: center; padding: var(--s-7) var(--s-5);
  overflow: hidden; perspective: 900px;
}
.project-visual::before { /* accent band echoing the mark's diagonal notch */
  content: ""; position: absolute; inset: auto -10% -30% 40%; height: 70%;
  background: var(--p-accent); opacity: .14; transform: rotate(-38deg); border-radius: 40px;
}
.device {
  --tx: 0deg; --ty: 0deg;
  position: relative; display: block; width: 220px; aspect-ratio: 220 / 450;
  background: var(--navy); border-radius: 30px; padding: 8px;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .45);
  transform: rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform 500ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
/* The screen shows a tall screenshot of the concept's home page (made by tools/screenshot-concepts.js).
   main.js measures how far it can scroll (--shift) and adds .is-browsing while the phone is on screen. */
.screen { display: block; height: 100%; border-radius: 22px; overflow: hidden; background: var(--p-bg); }
.screen__shot { display: block; width: 100%; height: auto; max-width: none; }
.device.is-browsing .screen__shot { animation: browse 28s cubic-bezier(.45, .05, .3, 1) infinite; will-change: transform; }
.device.is-paused .screen__shot, .device.is-held .screen__shot { animation-play-state: paused; }
@media (hover: hover) { .device:hover .screen__shot { animation-play-state: paused; } }
@keyframes browse { /* scroll a bit, stop to "read", scroll on … then glide back to the top */
  0%, 7%   { transform: translate3d(0, 0, 0); }
  19%, 26% { transform: translate3d(0, calc(var(--shift, 0px) * .28), 0); }
  38%, 45% { transform: translate3d(0, calc(var(--shift, 0px) * .6), 0); }
  58%, 68% { transform: translate3d(0, var(--shift, 0px), 0); }
  90%, 100% { transform: translate3d(0, 0, 0); }
}
.device__glare { position: absolute; inset: 8px; border-radius: 22px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 42%); opacity: 0; transition: opacity 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .device:hover .device__glare { opacity: 1; } }

.auto-chip {
  position: absolute; right: clamp(8px, 6%, 48px); bottom: 14%;
  display: flex; align-items: center; gap: .65rem;
  background: var(--white); color: var(--navy); padding: .7rem .95rem; border-radius: var(--r-md);
  box-shadow: 0 18px 40px -16px rgba(13, 27, 61, .5);
  font-size: .82rem; line-height: 1.25;
  transform: translateZ(40px);
}
.auto-chip strong { display: block; }
.auto-chip small { color: var(--text-muted); font-size: .72rem; }
.auto-chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46, 211, 156, .2); flex: none; }

/* Approach */
.approach-grid { display: grid; gap: var(--s-7); }
.approach-head .body-lg { margin-top: var(--s-5); }
.path-wrap { position: relative; --progress: 0; }
.path-line { position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.path-fill { position: absolute; inset: 0; background: var(--green-light); transform-origin: top; transform: scaleY(var(--progress)); }
.path { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.step { position: relative; padding-left: 64px; }
.step-node {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); border: 2px solid rgba(13, 27, 61, .3); display: grid; place-items: center;
  transition: background-color var(--dur), border-color var(--dur);
}
.step-node svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 500ms var(--ease-out) 120ms; }
.step.is-done .step-node { background: var(--green-light); border-color: var(--green-light); }
.step.is-done .step-node svg { stroke-dashoffset: 0; }
.step-title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: .6rem; line-height: 1; }
.step p { color: var(--text-muted); max-width: 52ch; font-size: 1.05rem; }

/* Why */
.why { background: var(--navy-2); color: var(--text-on-dark); overflow: hidden; }
.why .h2 { max-width: 20ch; }
.founders { display: grid; gap: var(--s-4); margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.founder {
  position: relative; padding: var(--s-6); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  background: var(--navy); overflow: hidden; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
}
.founder .mono { color: var(--green); }
.founder p:last-child { color: var(--muted-on-dark); max-width: 40ch; }
.founder-mark { position: absolute; width: 190px; height: 190px; top: -40px; background: center / contain no-repeat; opacity: .95; }
.founder-mark--a { right: -36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 104 104'%3E%3Cpath d='M24.3 47A38 38 0 0 1 92.9 41' fill='none' stroke='%23ffffff' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M104.2 34.5L81.6 47.5L99.9 53.1Z' fill='%23ffffff' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); opacity: .1; }
.founder-mark--b { right: -36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 104 104'%3E%3Cpath d='M95.7 73A38 38 0 0 1 27.1 79' fill='none' stroke='%232ED39C' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M15.8 85.5L38.4 72.5L20.1 66.9Z' fill='%232ED39C' stroke='%232ED39C' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); opacity: .25; }

.principles { border-top: 1px solid var(--line-dark); }
.principles li { display: grid; gap: .4rem; padding: var(--s-5) 0; border-bottom: 1px solid var(--line-dark); }
.principles h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; }
.principles p { color: var(--muted-on-dark); max-width: 52ch; }
.wont { margin-top: var(--s-7); max-width: 70ch; padding: var(--s-5); border-radius: var(--r-md); background: rgba(46, 211, 156, .08); border: 1px solid rgba(46, 211, 156, .35); color: var(--muted-on-dark); }
.wont strong { color: var(--white); }

/* Pricing */
.plans { display: grid; gap: var(--s-4); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--s-5);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line);
}
.plan .btn { margin-top: auto; }
.plan-head { display: grid; gap: .6rem; }
.plan-name { font-size: 1.7rem; }
.plan-desc { color: var(--text-muted); }
.plan-price { padding-block: var(--s-4); border-block: 1px solid var(--line); }
.plan-price .cur { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; vertical-align: .5em; }
.plan-price .amt { font-family: var(--font-display); font-size: clamp(2.1rem, 1.7rem + 1.4vw, 2.8rem); font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.plan-price .amt.ph { font-size: 1.15rem; vertical-align: .4em; }
.plan-price .amt--quote { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.plan-price .per { color: var(--text-muted); font-size: .9rem; }
.plan-monthly { margin-top: .5rem; color: var(--text-muted); font-size: .95rem; }
.plan-note { margin-top: .5rem; color: var(--text-muted); font-size: .8rem; line-height: 1.45; }
.plan--featured { background: var(--navy); color: var(--text-on-dark); border-color: var(--navy); box-shadow: 0 30px 60px -36px rgba(13, 27, 61, .7); }
.plan--featured .plan-desc, .plan--featured .per, .plan--featured .plan-monthly, .plan--featured .plan-note { color: var(--muted-on-dark); }
.plan--featured .plan-price { border-color: var(--line-dark); }
.plan--featured .ticks li::before { background: var(--green); }
.plan--featured .svc-glyph--ab { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 104 104'%3E%3Cpath d='M24.3 47A38 38 0 0 1 92.9 41' fill='none' stroke='%23ffffff' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M104.2 34.5L81.6 47.5L99.9 53.1Z' fill='%23ffffff' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M95.7 73A38 38 0 0 1 27.1 79' fill='none' stroke='%232ED39C' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M15.8 85.5L38.4 72.5L20.1 66.9Z' fill='%232ED39C' stroke='%232ED39C' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-flag { position: absolute; top: -12px; left: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); background: var(--green); color: var(--navy); font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: var(--r-pill); }
.plan--custom { background: transparent; border-style: dashed; border-color: rgba(13, 27, 61, .3); }

.care {
  display: grid; gap: var(--s-5); margin-top: var(--s-5);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); border-radius: var(--r-lg);
  background: var(--paper-2);
}
.care-copy p { color: var(--text-muted); margin-top: .5rem; max-width: 44ch; }
.care-list { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-content: center; }
@media (min-width: 640px) { .care-list { grid-template-columns: 1fr 1fr; } .care-list li:last-child { grid-column: 1 / -1; background: var(--navy); color: var(--white); } .care-list li:last-child .icon { color: var(--green); } }
.care-list li { display: flex; gap: .6rem; align-items: center; font-weight: 600; background: var(--white); padding: .8rem 1rem; border-radius: var(--r-md); }
.care-list .icon { color: var(--green-ink); }
.fineprint { margin-top: var(--s-5); color: var(--text-muted); font-size: var(--fs-small); }

/* FAQ */
.faq { padding-top: 0; }
.faq-grid { display: grid; gap: var(--s-6); border-top: 1px solid var(--line); padding-top: var(--section-y); }
.faq-list { border-top: 1.5px solid var(--navy); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 650; font-size: 1.1rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; transition: transform var(--dur) var(--ease-out); }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding-bottom: 1.4rem; color: var(--text-muted); max-width: 62ch; }

/* Contact */
.contact { background: var(--navy); color: var(--text-on-dark); }
.contact-grid { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
.contact .body-lg { color: var(--muted-on-dark); margin-top: var(--s-5); }
.wa-card {
  display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-6);
  padding: 1.2rem 1.4rem; border-radius: var(--r-lg); text-decoration: none;
  background: var(--green); color: var(--navy);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast);
}
.wa-card:hover { background: var(--green-bright); transform: translateY(-2px); }
.wa-card strong { display: block; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.01em; line-height: 1.1; }
.wa-card small { font-size: .9rem; opacity: .85; }
.wa-card__arrow { margin-left: auto; font-size: 1.5rem; transition: transform var(--dur) var(--ease-out); }
.wa-card:hover .wa-card__arrow { transform: translateX(4px); }
.contact-list { display: grid; margin-top: var(--s-6); border-top: 1px solid var(--line-dark); }
.contact-list > div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-4); padding: .9rem 0; border-bottom: 1px solid var(--line-dark); }
.contact-list dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); padding-top: .2rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form {
  display: grid; gap: var(--s-5);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); border-radius: var(--r-lg);
  background: var(--navy-2); border: 1px solid var(--line-dark);
}
.field { display: grid; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; gap: var(--s-5); }
.field label, .field legend { font-size: .9rem; font-weight: 600; color: var(--text-on-dark); padding: 0; margin-bottom: .45rem; }
.field label { margin-bottom: 0; }
.form input[type="text"], .form select, .form textarea {
  width: 100%; min-height: 50px; padding: .8rem .95rem;
  background: var(--navy); color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .2); border-radius: var(--r-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  font-size: 16px; /* prevents iOS zoom */
}
.form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23AEB7CE' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }
.form select option { color: var(--navy); background: var(--white); }
.form ::placeholder { color: #7D88A6; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(255, 255, 255, .4); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 211, 156, .3); }
.form [aria-invalid="true"] { border-color: #FF8A80 !important; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, .22); border-radius: var(--r-pill); font-size: .92rem; font-weight: 550;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.chip:hover span { border-color: rgba(255, 255, 255, .5); }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--navy); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.fieldset-invalid .chip span { border-color: #FF8A80; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: #FFB4AB; }
.form-status.is-ok { color: var(--green); }
.form-note { font-size: var(--fs-small); color: var(--muted-on-dark); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--muted-on-dark); padding-block: var(--s-8) var(--s-5); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-brand p { margin-top: var(--s-4); max-width: 34ch; }
.footer-h { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: var(--s-4); font-weight: 600; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.socials { margin-top: var(--s-4); grid-template-columns: repeat(2, max-content); column-gap: var(--s-4) !important; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); font-size: var(--fs-small); }

/* ---------- 6. Motion ---------- */
/* Everything is visible by default; JS opts in to reveal effects. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Loop: the two arrows slide in, turning with the flow, and settle into the mark.
   Pure CSS; the resting state is the static fallback (no JS, no animation support, reduced motion). */
@media (prefers-reduced-motion: no-preference) {
  .loop-piece--a { animation: loop-in-a 1.3s var(--ease-out) .15s both; }
  .loop-piece--b { animation: loop-in-b 1.3s var(--ease-out) .35s both; }
  .loop .piece-label { animation: fade-in .6s var(--ease-out) 1.4s both; }
  /* once both arrows have settled (≈1.65s), the pair turns slowly with the flow: one turn per 20s */
  .loop-spin { animation: loop-spin 20s linear 1.7s infinite; }
  .loop.is-paused .loop-spin { animation-play-state: paused; } /* off-screen or tab hidden (js/main.js) */
}
@keyframes loop-spin { to { transform: rotate(360deg); } }
@keyframes loop-in-a {
  from { opacity: 0; transform: translate(-24%, -20%) rotate(-80deg) scale(.86); }
  45% { opacity: 1; }
  80% { transform: translate(0, 0) rotate(5deg) scale(1); }
  to { opacity: 1; transform: none; }
}
@keyframes loop-in-b {
  from { opacity: 0; transform: translate(24%, 20%) rotate(-80deg) scale(.86); }
  45% { opacity: 1; }
  80% { transform: translate(0, 0) rotate(5deg) scale(1); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Demo feed */
.js .demo [data-step] { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.js .demo [data-step].is-shown { opacity: 1; transform: none; }
.msg.is-typing > * { visibility: hidden; }
.msg.is-typing::after {
  content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--navy-3); box-shadow: 11px 0 0 var(--navy-3), 22px 0 0 var(--navy-3);
  animation: typing 900ms infinite;
}
@keyframes typing { 50% { opacity: .35; } }
.auto-chip__dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 211, 156, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(46, 211, 156, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js .demo [data-step] { opacity: 1; transform: none; }
  .screen__shot { animation: none !important; }
}

/* ---------- 7. Responsive ---------- */
@media (max-width: 899px) {
  .js .menu-toggle { display: grid; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s-6);
    padding: var(--s-6) var(--gutter) var(--s-7);
    background: var(--navy); border-top: 1px solid var(--line-dark);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
    overflow-y: auto;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a:not(.btn) { display: block; padding: 1rem 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--white); border-bottom: 1px solid var(--line-dark); letter-spacing: -.02em; }
  .js .nav-cta { min-height: 56px; font-size: 1.05rem; }
  .site-nav { display: none; }
  .js .site-nav { display: flex; }
  body.nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; }
  .loop { order: -1; width: min(62vw, 300px); margin-bottom: -.5rem; }
  .piece-label { font-size: .62rem; }
}
@media (max-width: 520px) {
  .hero-facts { grid-template-columns: 1fr; gap: .9rem; }
  .hero-facts li { display: flex; gap: .6rem; align-items: baseline; }
  .hero-facts strong { display: inline; margin: 0; white-space: nowrap; }
  .hero-actions .btn { width: 100%; }
  .svc summary { grid-template-columns: 36px 1fr 32px; }
  [class*="svc-glyph"] { width: 36px; height: 36px; }
  .svc-body { padding-left: 0; }
  .project-pieces > div { grid-template-columns: 1fr; gap: .3rem; }
  .project-visual { min-height: 400px; padding-inline: var(--s-3); }
  .device { width: 196px; }
  .auto-chip { right: 8px; bottom: 8%; }
  .form-actions .btn { width: 100%; }
  .contact-list > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .pieces-explain { grid-template-columns: 1fr 1fr; }
  .founders { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .system-grid { grid-template-columns: 1.1fr .9fr; }
  .demo { position: sticky; top: calc(var(--header-h) + 2rem); }
  .section-head--split { grid-template-columns: 1.2fr 1fr; }
  .svc summary { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .svc-name, .svc-value { grid-row: 1; }
  .svc-value { grid-column: 3; }
  .svc-toggle { grid-column: 4; width: 40px; height: 40px; }
  .svc-glyph--a, .svc-glyph--b, .svc-glyph--ab, .svc-glyph--c, .svc-glyph--d { grid-row: 1; width: 56px; height: 56px; }
  .svc-body { padding-left: calc(56px + var(--s-4)); }
  .svc summary:hover { padding-left: var(--s-3); }
  .project { grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 6rem); }
  .project:nth-child(even) .project-copy { order: 2; }
  .approach-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); }
  .approach-head { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
  .principles li { grid-template-columns: 1fr 1.2fr; gap: var(--s-6); align-items: baseline; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { transform: translateY(-14px); }
  .care { grid-template-columns: .9fr 1.6fr; align-items: center; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .contact-side { position: sticky; top: calc(var(--header-h) + 2rem); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .hero { min-height: 0; padding-block: 3rem; }
}
@media print {
  .site-header, .loop, .demo, .form, .project-visual { display: none !important; }
  body, .hero, .work, .why, .contact { background: #fff !important; color: #000 !important; }
}

/* ---------- Simple pages (thanks / 404 / privacy) ---------- */
.simple-page { background: var(--navy); color: var(--text-on-dark); --focus: var(--green); }
.simple-main { min-height: 100svh; display: grid; place-items: center; padding-block: var(--s-8); }
.simple-card { display: grid; gap: var(--s-5); justify-items: start; max-width: 720px; }
.simple-card .lead { color: var(--muted-on-dark); }
.legal { max-width: 760px; padding-block: var(--s-8); display: grid; gap: var(--s-4); }
.legal h2 { font-family: var(--font-display); font-size: 1.4rem; margin-top: var(--s-5); }
.legal p { color: var(--text-muted); }
