/* LinguaTek AI Solutions: shared styles for ES (/), EN (/en/), FR (/fr/).
   Tokens live in :root. Type scale: 16 (min) / 19 (body) / 24 / headlines in clamp(). */

/* Fonts are self-hosted (SIL Open Font License) so no visitor data goes to Google Fonts. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/hanken-grotesk.woff2') format('woff2'); }

:root {
  --ground: oklch(0.985 0.004 250);
  --ground-2: oklch(0.965 0.008 250);
  --surface: oklch(0.998 0.002 250);
  --ink: oklch(0.21 0.025 258);
  --ink-2: oklch(0.36 0.02 255);
  --ink-3: oklch(0.42 0.02 255);
  --line: oklch(0.88 0.008 250);
  --line-soft: oklch(0.91 0.006 250);
  --blue: oklch(0.36 0.1 257);
  --blue-focus: oklch(0.43 0.11 255);
  --orange: oklch(0.64 0.18 42);
  --orange-soft: oklch(0.78 0.13 52);
  --night: oklch(0.2 0.02 258);
  --night-line: oklch(0.45 0.03 258);
  --on-night: oklch(0.95 0.006 250);
  --on-night-2: oklch(0.82 0.012 250);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  --fs-min: 16px;
  --fs-body: 19px;
  --fs-lead: 21px;
  --fs-h3: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.booking:focus { outline: none; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--blue-focus); }
:focus-visible { outline: 3px solid var(--blue-focus); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; color: var(--ground); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.accent { color: var(--blue); font-weight: 600; }
.on-night .accent { color: var(--orange-soft); }

/* Headings */
.h-display, .h-section {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0;
}
.h-display { font-size: clamp(46px, 6.8vw, 100px); line-height: 0.98; letter-spacing: -0.045em; margin-bottom: 32px; }
.h-section { font-size: clamp(36px, 5vw, 72px); line-height: 1.02; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 32em; margin: 0; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand-main { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--blue); line-height: 1; }
.brand-main em { font-style: normal; color: var(--orange); }
.brand-sub { font-size: var(--fs-min); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: oklch(0.42 0.05 255); line-height: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: var(--fs-body); font-weight: 500; }
.nav a { text-decoration: none; }
.langs { display: flex; gap: 0; font-weight: 600; }
.langs a { color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.langs a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--orange); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 24px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--ground); font: inherit; font-size: var(--fs-body); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform 250ms var(--ease-out), background-color 250ms var(--ease-out);
}
.btn:hover { color: var(--ground); background: oklch(0.32 0.05 258); transform: translateY(-2px); }
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn-lg { padding: 18px 30px; font-weight: 700; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px oklch(0.78 0.01 250); }
.btn-ghost:hover { background: oklch(0.96 0.006 250); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.link-u {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 400ms var(--ease-out);
}
.link-u:hover { background-size: 100% 1px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit; font-size: var(--fs-min); font-weight: 600;
  min-height: 48px; padding: 12px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid oklch(0.85 0.008 250); background: transparent; color: oklch(0.3 0.02 258);
  transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out), border-color 250ms var(--ease-out), transform 120ms var(--ease-out);
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 64px 72px; align-items: center; padding-top: 40px; padding-bottom: 136px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-copy .lead { margin-bottom: 40px; }
.hint { margin: 20px 0 0; font-size: var(--fs-body); color: var(--ink-3); }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; }
.underlined { position: relative; display: inline-block; font-weight: 600; }
.underlined svg { position: absolute; left: 0; bottom: -0.12em; width: 100%; height: 0.22em; overflow: visible; }
.hero-phone { flex: 0 1 372px; min-width: 0; margin: 0 auto; display: flex; justify-content: center; }

/* Phone mock-up (illustration: inner UI keeps real-phone sizes) */
.phone {
  position: relative; width: 100%; max-width: 352px; padding: 11px; border-radius: 60px;
  background: oklch(0.32 0.012 258);
  box-shadow: inset 0 0 0 1.5px oklch(0.5 0.012 258), inset 0 0 0 4px oklch(0.22 0.01 258),
    0 60px 120px -40px oklch(0.21 0.025 258 / 0.5), 0 24px 40px -24px oklch(0.21 0.025 258 / 0.35);
  transition: transform 700ms var(--ease-out);
}
.phone:hover { transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
.phone-btn { position: absolute; width: 3px; border-radius: 2px; background: oklch(0.36 0.012 258); }
.screen { position: relative; height: 720px; border-radius: 50px; overflow: hidden; background: oklch(0.95 0.014 85); display: flex; flex-direction: column; color: var(--ink); }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 112px; height: 33px; border-radius: 20px; background: oklch(0.12 0.005 258); z-index: 3; }
.statusbar { position: relative; z-index: 2; height: 54px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 34px; background: oklch(0.985 0.003 250); font-size: 15px; font-weight: 700; }
.statusbar .icons { display: flex; gap: 6px; align-items: center; }
.chat-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px 10px; background: oklch(0.985 0.003 250); border-bottom: 1px solid oklch(0.9 0.006 250); }
.avatar { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); color: var(--ground); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.chat-who { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.chat-name { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-presence { display: block; font-size: 12px; color: oklch(0.48 0.01 250); }
.chat-body {
  flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 14px 12px;
  background-color: oklch(0.95 0.014 85);
  background-image: radial-gradient(oklch(0.88 0.018 85) 1px, transparent 1.4px); background-size: 18px 18px;
}
.day-chip { margin: 0 0 6px; align-self: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: oklch(0.985 0.003 250 / 0.9); color: oklch(0.45 0.01 250); }
.bubble { max-width: 78%; padding: 7px 10px 8px 12px; font-size: 16px; line-height: 1.38; box-shadow: 0 1px 1px oklch(0.21 0.025 258 / 0.08); }
.bubble.them { align-self: flex-start; background: oklch(0.995 0.002 250); border-radius: 4px 14px 14px 14px; }
.bubble.me { align-self: flex-end; background: oklch(0.93 0.07 145); border-radius: 14px 4px 14px 14px; }
.meta { display: inline-flex; gap: 3px; align-items: center; float: right; margin: 8px 0 -4px 10px; font-size: 11px; color: oklch(0.5 0.01 250); }
.tick { color: oklch(0.6 0.01 250); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: oklch(0.995 0.002 250); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.55 0.01 250); }
.composer { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px 26px; background: oklch(0.975 0.004 250); }
.field { flex: 1 1 auto; min-width: 0; height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 18px; background: oklch(0.995 0.002 250); border: 1px solid oklch(0.9 0.006 250); font-size: 15px; overflow: hidden; }
.field .ph { color: oklch(0.6 0.01 250); }
.draft { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: oklch(0.5 0.12 150); margin-left: 1px; flex: 0 0 auto; }
.mic { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.home-bar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 130px; height: 5px; border-radius: 3px; background: oklch(0.15 0.005 258); }
.banner {
  position: absolute; top: 122px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 22px; background: oklch(0.985 0.003 250 / 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -12px oklch(0.21 0.025 258 / 0.35);
}
.banner[hidden] { display: none; }
.banner-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.banner-text { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.35; }
.banner-top { display: flex; justify-content: space-between; font-weight: 700; }
.banner-top span:last-child { font-weight: 500; color: oklch(0.5 0.01 250); }

/* Sectors strip */
.sectors { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sectors .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; padding-top: 36px; padding-bottom: 36px; }
.sectors-label { flex: 1 1 100%; font-size: var(--fs-body); font-weight: 600; color: var(--ink-3); margin: 0; }
.sectors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 40px; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 28px); letter-spacing: -0.02em; }

/* About */
.about .wrap { display: flex; flex-wrap: wrap; gap: 56px 96px; padding-top: 136px; }
.about-intro { flex: 1 1 420px; min-width: 0; }
.about-intro .h-section { margin-bottom: 24px; }
.about-intro .lead { max-width: 30em; }
.about dl { flex: 1 1 560px; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px; }
.ruled { position: relative; padding-top: 24px; }
.rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: oklch(0.86 0.008 250); transform-origin: left center; }
.about dt { margin: 0 0 10px; font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
.about dd { margin: 0; color: oklch(0.38 0.02 255); }

/* Demos */
.demos .wrap { padding-top: 136px; padding-bottom: 112px; }
.demos .h-section { margin-bottom: 72px; max-width: 12em; }
.job {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 56px; align-items: baseline;
  padding: 40px 16px; margin: 0 -16px; border-radius: 6px; text-decoration: none; color: inherit;
  transition: background-color 350ms var(--ease-out);
}
.job .rule { left: 16px; right: 16px; }
a.job:hover, .job-live:hover { background: var(--ground-2); color: inherit; }
.job-live:hover .job-id { transform: translateX(8px); }
.job-cta { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.gate-dialog { padding: 40px 40px 36px; border: 0; border-radius: 24px; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -30px oklch(0.21 0.025 258 / 0.55); }
.gate-dialog[open] { animation: gate-in 350ms var(--ease-out) both; }
.gate-dialog::backdrop { background: oklch(0.21 0.025 258 / 0.55); }
body:has(.gate-dialog[open]) { overflow: hidden; }
.gate-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 200ms var(--ease-out); }
.gate-close:hover { background: var(--ground-2); }
.gate-h { margin: 0 56px 8px 0; font-size: var(--fs-h3); }
.gate-p { margin: 0 0 8px; color: var(--ink-3); }
.gate-form { gap: 20px; }
.opt { font-weight: 500; color: var(--ink-3); }
@keyframes gate-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .gate-dialog { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; padding: 32px 20px 28px; } }
@media (prefers-reduced-motion: reduce) { .gate-dialog[open] { animation: none; } .job-live:hover .job-id { transform: none; } }
.job-id { display: flex; gap: 20px; align-items: baseline; transition: transform 450ms var(--ease-out); }
a.job:hover .job-id { transform: translateX(8px); }
.job-n { font-family: var(--font-display); font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: var(--orange); }
.job-verb { display: block; margin-bottom: 6px; font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.job-sector { display: block; font-size: var(--fs-min); color: oklch(0.45 0.02 255); }
.job-text { color: var(--ink-2); }
.job-end { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.badge { font-size: var(--fs-min); font-weight: 700; letter-spacing: 0.02em; padding: 6px 14px; border-radius: 999px; line-height: 1.3; }
.badge-live { background: var(--ink); color: var(--ground); }
.badge-soon, .badge-concept { padding: 5px 13px; border: 1px solid oklch(0.6 0.02 255); color: oklch(0.38 0.02 255); }
.job-cta { font-weight: 700; }
.arrow { display: inline-block; transition: transform 450ms var(--ease-out); }
a.job:hover .arrow { transform: translateX(6px); }

/* Gift: Automation Town, a self-playing town preview (iframe ?attract) that links to the game */
.gift { background: var(--ground-2); }
.gift .wrap { padding-top: 120px; padding-bottom: 120px; }
.gift-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.gift-town {
  display: block; position: relative; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden;
  background: oklch(0.975 0.006 250); border: 1px solid oklch(0.9 0.01 255);
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}
.gift-town iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.gift-town:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px oklch(0.2 0.03 258 / 0.45); }
.gift-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: var(--fs-min); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.gift-kicker::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.gift .h-section { margin-bottom: 28px; }
.gift-note { margin: 20px 0 32px; max-width: 30em; font-weight: 600; color: var(--ink); }
.gift .btn:hover .arrow { transform: translateX(6px); }
@media (max-width: 900px) { .gift-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) { .gift .wrap { padding-top: 96px; padding-bottom: 96px; } .gift-town { aspect-ratio: 4 / 3; border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .gift-town:hover { transform: none; } }

/* Method (night section) */
.method { background: var(--night); color: var(--on-night); }
.method .wrap { padding-top: 136px; padding-bottom: 136px; }
.method .h-section { margin-bottom: 80px; max-width: 13em; }
.method ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 56px; }
.method .rule { background: var(--night-line); }
.method-n { margin: 0 0 14px; font-family: var(--font-display); font-size: 40px; font-weight: 300; line-height: 1; color: var(--orange-soft); }
.method h3 { margin: 0 0 10px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.method p:not(.method-n) { margin: 0; line-height: 1.7; color: var(--on-night-2); }

/* Tools */
.tools { border-top: 1px solid var(--line-soft); }
.tools .wrap { display: flex; flex-wrap: wrap; gap: 48px 96px; align-items: flex-start; padding-top: 120px; }
.tools-intro { flex: 1 1 340px; min-width: 0; }
.tools-intro .h-section { font-size: clamp(34px, 4vw, 56px); margin-bottom: 20px; }
.tools-intro p { margin: 0; color: var(--ink-3); max-width: 26em; }
.tools ul { flex: 1 1 600px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.tool {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 12px;
  border-radius: 16px; border: 1px solid var(--line-soft); background: var(--surface); text-align: center;
  transition: transform 350ms var(--ease-out), border-color 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}
.tool:hover { transform: translateY(-4px); border-color: oklch(0.8 0.02 255); box-shadow: 0 16px 30px -18px oklch(0.21 0.025 258 / 0.3); }
.tool-ico { position: relative; display: block; height: 32px; width: 96px; transition: transform 450ms var(--ease-out); }
.tool-ico img { position: absolute; inset: 0; margin: auto; height: 32px; width: auto; max-width: 96px; transition: opacity 350ms var(--ease-out); }
.tool-ico .c { opacity: 0; }
.tool:hover .tool-ico { transform: translateY(-3px) scale(1.12); }
.tool:hover .tool-ico .c { opacity: 1; }
.tool:hover .tool-ico .m { opacity: 0; }
.tool span:last-child { font-size: var(--fs-min); font-weight: 600; color: oklch(0.3 0.02 258); }

/* Contact */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 64px 96px; padding-top: 136px; padding-bottom: 136px; }
.contact-intro { flex: 1 1 380px; min-width: 0; }
.contact-intro .h-section { font-size: clamp(36px, 5vw, 68px); margin-bottom: 20px; }
.contact-intro .lead { max-width: 28em; }
.gift-applied { margin: 24px 0 0; max-width: 28em; padding: 14px 18px; border-radius: 16px; background: oklch(0.95 0.04 50); font-weight: 600; color: var(--ink); }
.form { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.form label { display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.form .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.input {
  font: inherit; font-weight: 400; font-size: var(--fs-body); color: var(--ink);
  padding: 14px 16px; border-radius: 16px; border: 1px solid oklch(0.78 0.01 250); background: var(--surface);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); width: 100%;
}
textarea.input { padding: 16px; resize: vertical; min-height: 120px; }
.input::placeholder { color: oklch(0.55 0.01 250); }
.input:focus { outline: none; border-color: var(--blue-focus); box-shadow: 0 0 0 4px oklch(0.43 0.11 255 / 0.15); }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.form-actions .link-u { font-weight: 600; }
.form-note { margin: 0; font-size: var(--fs-min); color: var(--ink-3); }
.form-error { margin: 0; color: oklch(0.5 0.18 28); font-weight: 600; }
.booking[hidden] { display: none; }
.booking { flex: 1 1 520px; min-width: 0; }
.booking h3 { margin: 0 0 8px; font-size: var(--fs-h3); }
.booking p { margin: 0 0 20px; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: baseline; padding-top: 40px; padding-bottom: 40px; font-size: var(--fs-min); color: var(--ink-3); }
.site-footer .brand-main { font-size: 20px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== Motion ===== */
@keyframes mask-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes phone-in { from { opacity: 0; transform: perspective(1400px) translateY(60px) rotateX(14deg) scale(0.94); } to { opacity: 1; transform: perspective(1400px); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes bounce-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tick-read { from { color: oklch(0.6 0.01 250); } to { color: oklch(0.62 0.13 240); } }
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes banner-in { from { opacity: 0; transform: translateY(-120%) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  .line > span { animation: mask-up 1100ms var(--ease-out) both; }
  .line:nth-child(2) > span { animation-delay: 110ms; }
  .line:nth-child(3) > span { animation-delay: 220ms; }
  .enter { animation: rise 900ms var(--ease-out) both; }
  .enter-1 { animation-delay: 380ms; } .enter-2 { animation-delay: 500ms; } .enter-3 { animation-delay: 620ms; }
  .underlined path { stroke-dasharray: 1; animation: draw 900ms var(--ease-out) 1000ms both; }
  .phone { animation: phone-in 1400ms var(--ease-out) 250ms both; }
  .bubble { animation: pop 480ms var(--ease-out) both; }
  .bubble.me .tick { animation: tick-read 400ms ease-out 900ms both; }
  .dot { animation: bounce-dot 1.2s ease-in-out infinite; }
  .dot:nth-child(2) { animation-delay: 0.15s; } .dot:nth-child(3) { animation-delay: 0.3s; }
  .draft { animation: type-in 1100ms steps(28, end) both; }
  .caret { animation: blink 900ms steps(1) infinite; }
  .banner { animation: banner-in 700ms var(--ease-out) both; }

  /* Scroll reveals: JS adds .is-in when visible */
  .js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), filter 800ms var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }
  .js .rule { transform: scaleX(0); transition: transform 900ms var(--ease-out) 150ms; }
  .js .is-in .rule, .js .rule.is-in { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone:hover, .tool:hover, .tool:hover .tool-ico, .btn:hover, a.job:hover .job-id { transform: none; }
  .bubble.me .tick { color: oklch(0.62 0.13 240); }
}

@media (max-width: 600px) {
  .hero .wrap { padding-top: 16px; padding-bottom: 96px; }
  .about .wrap, .demos .wrap, .contact .wrap { padding-top: 96px; }
  .method .wrap { padding-top: 96px; padding-bottom: 96px; }
  .contact .wrap { padding-bottom: 56px; }
  .tools .wrap { padding-top: 96px; }
  .demos .h-section, .method .h-section { margin-bottom: 48px; }
  .job { padding: 32px 16px; }
  .screen { height: 690px; }
  .nav { gap: 12px 20px; width: 100%; justify-content: space-between; }
  .nav > .link-u { display: none; }
  .tools ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tool { padding: 18px 6px; gap: 10px; }
  .tool-ico, .tool-ico img { height: 28px; max-width: 72px; }
  .tool-ico { width: 72px; }
  .tool span:last-child { font-size: 16px; overflow-wrap: anywhere; }
}

/* Form chips are radio inputs styled as chips (work without JS) */
.form label.chip-wrap { display: inline-flex; flex-direction: row; gap: 0; font-weight: 600; }
.chip-wrap input:checked + .chip { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip-wrap input:focus-visible + .chip { outline: 3px solid var(--blue-focus); outline-offset: 3px; }

/* Consent + booking */
.form label.consent { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 500; }
.consent input { width: 22px; height: 22px; margin: 4px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.form-note a { color: var(--ink); }
.booking .btn { margin-top: 4px; }

/* Legal pages */
.legal .wrap { padding-top: 64px; padding-bottom: 120px; }
.legal article { max-width: 46em; }
.legal h1 { margin-bottom: 40px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.02em; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal .owner { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 16px 0; padding: 20px 24px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); }
.legal .owner dt { font-weight: 700; }
.legal .owner dd { margin: 0; overflow-wrap: anywhere; }
.legal-updated { margin-top: 56px; font-size: var(--fs-min); color: var(--ink-3); }
@media (max-width: 600px) { .legal .owner { grid-template-columns: 1fr; gap: 2px; } .legal .owner dd { margin-bottom: 10px; } }

/* Success state: replaces the form in place, same height, no jump */
.booking { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: 0 30px 60px -40px oklch(0.21 0.025 258 / 0.35); }
.booking h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; margin: 20px 0 12px; }
.booking p { max-width: 30em; }
.booking-check { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: oklch(0.93 0.07 145); color: oklch(0.42 0.12 150); }
@keyframes booking-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes form-out { to { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: no-preference) {
  .booking.is-shown { animation: booking-in 600ms var(--ease-out) both; }
  .booking.is-shown .booking-check { animation: booking-in 500ms var(--ease-out) 150ms both; }
  .booking.is-shown .booking-check path { stroke-dasharray: 1; animation: draw 600ms var(--ease-out) 350ms both; }
  .booking.is-shown h3 { animation: booking-in 600ms var(--ease-out) 250ms both; }
  .booking.is-shown p, .booking.is-shown .btn { animation: booking-in 600ms var(--ease-out) 350ms both; }
  .form.is-leaving { animation: form-out 220ms cubic-bezier(0.7, 0, 0.84, 0) both; }
}
@media (max-width: 600px) { .booking { padding: 32px 24px; } }

/* Logo B symbol */
.brand { align-items: center; }
.brand-mark { height: 36px; width: auto; flex: 0 0 auto; }
.site-footer .brand-mark { height: 26px; }
.brand-main { color: oklch(0.2 0.04 255); }
.brand-main em { color: #FA691A; }
.brand-text { display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
