/* ---------- design tokens ----------
   Everything is derived from three colors: --bg, --ink (text) and --accent.
   The design panel changes those (plus radius, fonts, spacing), and the whole site follows. */
:root {
  --bg: #faf8f4;
  --ink: #17161d;
  --accent: #6d5dfc;
  --on-accent: #ffffff;          /* set by JS for contrast */
  --accent-text: #5a49f0;        /* accent dark/light enough to read as text, set by JS */
  --radius: 18px;
  --space: 1;                    /* section spacing multiplier */
  --fs: 17px;                    /* body text size */
  --bg-2: color-mix(in srgb, var(--bg) 95%, var(--ink));
  --card: color-mix(in srgb, var(--bg) 30%, #fff);
  --line: color-mix(in srgb, var(--bg) 87%, var(--ink));
  --text: var(--ink);
  --muted: color-mix(in srgb, var(--ink) 66%, var(--bg));
  --shadow: 0 30px 70px -35px color-mix(in srgb, var(--ink) 35%, transparent);
  /* Thai text falls back to Kanit (headings) and Noto Sans Thai (body); Google only downloads them when Thai is on the page */
  --f-display: "Bricolage Grotesque", "Kanit", system-ui, sans-serif;
  --f-body: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "Noto Sans Thai", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e0e14;
  --ink: #f3f2ee;
  --bg-2: color-mix(in srgb, var(--bg) 95%, var(--ink));
  --card: color-mix(in srgb, var(--bg) 92%, var(--ink));
  --line: color-mix(in srgb, var(--bg) 82%, var(--ink));
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
:root[data-font="serif"] { --f-display: "Fraunces", "Kanit", Georgia, serif; }
:root[data-font="mono"] { --f-display: "JetBrains Mono", "Kanit", ui-monospace, monospace; }
:root[data-font="rounded"] { --f-display: "Nunito", "Kanit", system-ui, sans-serif; }

/* Thai: taller lines so tone marks aren't clipped, no negative letter-spacing */
:root[lang="th"] h1, :root[lang="th"] h2, :root[lang="th"] h3, :root[lang="th"] .contact__big { line-height: 1.3; letter-spacing: 0; }
:root[lang="th"] .hero__title { font-size: clamp(2.6rem, 7.5vw, 6rem); }
:root[lang="th"] .contact__big { font-size: clamp(2.2rem, 7vw, 5.6rem); }
:root[lang="th"] .rotator { height: 1.4em; }
:root[lang="th"] body { line-height: 1.75; }
:root[lang="th"] .eyebrow, :root[lang="th"] .tag { letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(2.1rem, 5.5vw, 4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
em { font-style: normal; color: var(--accent-text); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
kbd { font-family: var(--f-mono); font-size: .85em; padding: .1em .45em; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; background: var(--bg-2); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- buttons & chips ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.5em; border-radius: calc(var(--radius) * 2); border: 0;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; cursor: pointer;
  transform: translate(var(--mx), var(--my)); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .3s;
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  white-space: nowrap;
}
.btn:hover { box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.chip {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 999px; border: 1.5px solid var(--line); background: transparent; cursor: pointer;
  font: 600 .8rem var(--f-mono); transition: border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--text); transform: translateY(-1px); }
.chip--icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chip--icon .sun { display: none; }
:root[data-theme="dark"] .chip--icon .sun { display: block; }
:root[data-theme="dark"] .chip--icon .moon { display: none; }
.link { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.link:hover { color: var(--text); border-color: currentColor; }

/* ---------- progress, cursor ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.cursor { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 90; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; opacity: 0; transition: opacity .3s; }
  .cursor__dot { width: 8px; height: 8px; margin: -4px; background: var(--accent); }
  .cursor__ring { width: 40px; height: 40px; margin: -20px; border: 1.5px solid color-mix(in srgb, var(--text) 45%, transparent); transition: opacity .3s, width .25s, height .25s, margin .25s, background .25s, border-color .25s; }
  body.has-cursor .cursor__dot, body.has-cursor .cursor__ring { opacity: 1; }
  body.cursor-hover .cursor__ring { width: 64px; height: 64px; margin: -32px; background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); }
}

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; transition: background .3s, backdrop-filter .3s, padding .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 8px 0; border-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; }
/* logo: the word sits in two frame corners that close into a full frame on hover */
.logo { position: relative; font: 800 1.35rem var(--f-display); text-decoration: none; letter-spacing: -.03em; display: inline-flex; align-items: center; padding: 2px 9px; }
.logo b { color: var(--accent-text); font-weight: 800; }
.logo::before, .logo::after { content: ""; position: absolute; width: 10px; height: 10px; border: 2.5px solid var(--accent); transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1); }
.logo::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 3px 0 0 0; }
.logo::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 3px 0; }
.logo:hover::before, .logo:hover::after { width: calc(100% - 2px); height: calc(100% - 2px); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* the burger menu takes over before the links get crowded (Spanish and Thai labels are longer) */
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav__tools .btn { display: none; }
  .nav__tools { margin-left: auto; }
  .nav__links {
    position: fixed; inset: 64px 12px auto; flex-direction: column; gap: 4px; margin: 0; padding: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links a { padding: 12px 14px; font-size: 1.1rem; color: var(--text); }
  .nav__links a::after { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; pointer-events: none; }
.hero__in a, .hero__in button { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--muted); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3ee07a; box-shadow: 0 0 0 0 rgba(62, 224, 122, .6); animation: pulse 2s infinite; }
.hero__title { font-size: clamp(3rem, 9vw, 7.2rem); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.hero__title > span { display: block; }
.rotator { color: var(--accent-text); height: 1.12em; margin-bottom: -.1em; overflow: hidden; position: relative; white-space: nowrap; }
.rotator span { display: inline-block; animation: rot-in .6s cubic-bezier(.2,.8,.2,1) both; }
.rotator span.out { animation: rot-out .45s cubic-bezier(.6,0,.8,.2) both; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; margin: 26px 0 32px; }
.hero__lead strong { color: var(--text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; color: var(--muted); font-size: .9rem; }
.hero__facts b { display: block; font: 800 1.7rem var(--f-display); color: var(--text); letter-spacing: -.02em; }
.hero__code { position: relative; }

.win { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.win__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: .78rem var(--f-mono); color: var(--muted); }
.win__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; } .win__bar i:nth-child(3) { background: #28c840; }
.win__bar span { margin-left: 8px; }
.win__body { margin: 0; padding: 20px 22px 24px; font: .92rem/1.75 var(--f-mono); min-height: 250px; white-space: pre-wrap; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.tk-k { color: #c2185b; } .tk-s { color: var(--accent-text); } .tk-c { color: var(--muted); } .tk-f { color: #1565c0; } .tk-b { color: #b45309; }
:root[data-theme="dark"] .tk-k { color: #ff7ab6; } :root[data-theme="dark"] .tk-f { color: #7cc4ff; } :root[data-theme="dark"] .tk-b { color: #ffb86b; }

.sticker { position: absolute; padding: 10px 16px; border-radius: 14px; font: 800 1.1rem var(--f-display); line-height: 1.1; box-shadow: var(--shadow); text-align: center; animation: float 6s ease-in-out infinite; }
.sticker small { display: block; font: 500 .7rem var(--f-mono); opacity: .8; }
.sticker--a { right: -14px; top: -26px; background: var(--accent); color: var(--on-accent); transform: rotate(6deg); }
.sticker--b { left: -24px; bottom: -22px; background: var(--text); color: var(--bg); transform: rotate(-5deg); animation-delay: -3s; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrolly 1.8s infinite; }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 64px; }
  .hero__code { max-width: 520px; }
  .sticker--a { right: 4px; }
  .sticker--b { left: 4px; }
  .scroll-hint { display: none; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--bg-2); transform: rotate(-1.5deg) scale(1.03); margin: 10px 0; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font: 800 clamp(1.4rem, 3vw, 2.2rem) var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.marquee__track i { color: var(--accent-text); font-style: normal; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { padding: calc(clamp(80px, 12vw, 150px) * var(--space)) 0; position: relative; scroll-margin-top: 40px; }
.section--alt { background: var(--bg-2); }
.head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.eyebrow { font: 600 .8rem var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text); margin: 0 0 16px; }
.head__sub { color: var(--muted); font-size: 1.12rem; margin: 22px 0 0; max-width: 40em; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- work ---------- */
.case { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); overflow: hidden; }
.case__info { padding: clamp(24px, 4vw, 44px); }
.case__info > p:not(.tag):not(.stack):not(.hint) { color: var(--muted); }
.case h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 6px 0 14px; }
.tag { display: inline-block; margin: 0; font: 600 .74rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: var(--accent); color: var(--on-accent); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.stack span { font: .74rem var(--f-mono); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.hint { font-size: .95rem; }

.case--feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 24px; }
.demo { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; align-items: center; gap: 18px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%); align-self: stretch; justify-content: center; min-width: 0; }
.demo__bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.seg--sm button { padding: 6px 10px; }
.seg--full { display: flex; } .seg--full button { flex: 1; }

.device { position: relative; background: #050507; border-radius: 42px; padding: 12px; box-shadow: var(--shadow), inset 0 0 0 2px #2a2a33; transition: width .5s cubic-bezier(.2,.8,.2,1), height .5s cubic-bezier(.2,.8,.2,1), border-radius .5s; max-width: 100%; }
.device--phone { width: 300px; height: 600px; padding-top: 38px; }
.device--phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 76px; height: 16px; margin-left: -38px; border-radius: 20px; background: #1d1d24; z-index: 2; }
.device--phone .device__screen { border-radius: 8px 8px 32px 32px; }
.device--desktop { width: 100%; height: 440px; border-radius: 16px; padding: 30px 8px 8px; }
.device--desktop::after { content: ""; position: absolute; top: 11px; left: 14px; width: 40px; height: 9px; background: radial-gradient(circle, #ff5f57 4px, transparent 4.5px) 0 0/14px 9px repeat-x; }
.device__screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #111; }
.device--desktop .device__screen { border-radius: 8px; }
.device iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.demo__poster { position: absolute; inset: 0; display: grid; place-items: center; background: center/cover no-repeat; }
.demo__poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.65)); }
.demo__poster .btn { position: relative; }

.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case--card { display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.case--card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.case__media { position: relative; aspect-ratio: 16/10; overflow: hidden; display: grid; place-items: center; }
.case__media--pet { background: linear-gradient(135deg, #ffe0ec, #d9f1ff); }
.case__media--pet img:first-child { height: 92%; width: auto; object-fit: contain; transition: transform .6s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 20px 30px rgba(0,0,0,.2)); }
.case:hover .case__media--pet img:first-child { transform: scale(1.06) rotate(-2deg); }
.case__logo { position: absolute; left: 18px; top: 18px; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.kpis > div { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.kpis b { font: 800 1.8rem var(--f-display); }
.kpis span { font: 600 .9rem var(--f-display); margin-left: 3px; }
.kpis small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.3; margin-top: 4px; }

.case__media--meta { background: repeating-linear-gradient(45deg, var(--bg-2) 0 12px, var(--bg) 12px 24px); }
.mini { width: 72%; aspect-ratio: 16/10; background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) * .7); padding: 14px; position: relative; box-shadow: var(--shadow); }
.mini__nav { display: flex; gap: 5px; margin-bottom: 14px; } .mini__nav i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.mini__h { height: 18%; width: 70%; border-radius: 6px; background: var(--accent); animation: grow 3s ease-in-out infinite alternate; }
.mini__p { height: 6%; width: 85%; border-radius: 4px; background: var(--line); margin-top: 10px; } .mini__p--s { width: 55%; }
.mini__row { display: flex; gap: 8px; margin-top: 14px; height: 24%; } .mini__row span { flex: 1; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.mini__cursor { position: absolute; font-size: 1.4rem; color: var(--text); animation: wander 5s ease-in-out infinite; left: 60%; top: 55%; }

@media (max-width: 900px) {
  .case--feature, .cases { grid-template-columns: 1fr; }
  .device--desktop { height: 380px; }
}
@media (max-width: 380px) { .device--phone { width: 100%; height: 540px; } }

/* ---------- language menu ---------- */
.lang { position: relative; }
.lang__btn { gap: 6px; display: inline-flex; align-items: center; padding: 0 12px; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 170px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * .8 + 4px); box-shadow: var(--shadow); animation: pop .2s cubic-bezier(.2,1.4,.4,1); }
.lang__menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: calc(var(--radius) * .6); background: transparent; cursor: pointer; font-weight: 500; }
.lang__menu button:hover, .lang__menu button:focus-visible { background: var(--bg-2); }
.lang__menu button[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); font-weight: 700; }

/* ---------- scan-to-phone ---------- */
.scan { display: flex; align-items: center; gap: 14px; width: min(100%, 360px); padding: 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.scan__qr { flex: none; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.scan__qr:empty { background: linear-gradient(90deg, var(--bg-2), var(--line), var(--bg-2)) 0 0/200% 100%; animation: shimmer 1.2s linear infinite; }
.scan__qr svg { display: block; width: 100%; height: 100%; }
.scan__t { margin: 0 0 4px; font-weight: 700; }
.scan__p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.scan.is-touch .scan__qr, .scan.is-touch .scan__t { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- inside the system ---------- */
.sys { margin-bottom: 24px; padding: clamp(20px, 3.5vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); }
.sys__head { max-width: 760px; margin-bottom: 22px; }
.sys__head h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 6px 0 10px; }
.sys__head p:last-child { color: var(--muted); margin: 0; }
.sys__tabs { flex-wrap: wrap; margin-bottom: 24px; border-radius: calc(var(--radius) + 6px); }
.sys__grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 28px; align-items: start; }
.sys__list { margin: 0; font-size: .95rem; }
.sys__note { color: var(--muted); font-size: .82rem; margin: 10px 2px 0; }
@media (max-width: 980px) { .sys__grid { grid-template-columns: 1fr; } }

/* 1 · flow diagram */
.flow { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; }
.flow__map { position: relative; aspect-ratio: 800/340; border-radius: var(--radius); background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--bg-2); }
.flow__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow__map path { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 8 8; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.flow__map path.is-hot { stroke: var(--accent); animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.fnode { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; width: 22%; text-align: center; transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
.fnode span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; font-size: 1.7rem; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); transition: border-color .3s, box-shadow .3s; }
.fnode b { font-size: .85rem; margin-top: 4px; line-height: 1.2; }
.fnode small { font-size: .7rem; color: var(--muted); line-height: 1.25; }
.fnode--hub span { width: 72px; height: 72px; font-size: 2rem; }
.fnode.is-lit { transform: translate(-50%, -50%) scale(1.06); }
.fnode.is-lit span { border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.fdot { position: absolute; z-index: 2; transform: translate(-50%, -50%); font-style: normal; font-size: 1.25rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); pointer-events: none; opacity: 0; }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flow__steps li { padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: background .3s, border-color .3s; }
.flow__steps li b { display: block; font-size: .95rem; }
.flow__steps li span { display: block; font-size: .85rem; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .4s; }
.flow__steps li.is-on { background: var(--bg-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.flow__steps li.is-on span { max-height: 9em; margin-top: 4px; }
.flow__steps li:hover:not(.is-on) { background: var(--bg-2); }
@media (max-width: 980px) { .flow { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .flow__map { display: none; } .flow__steps li span { max-height: none; margin-top: 4px; } }

/* 2 · kitchen screen mock (dark, like the real tablet screen) */
.kmock { --k-bg: #17171b; --k-card: #24242a; --k-line: #34343c; --k-text: #f4f2ee; --k-muted: #a5a3ad;
  background: var(--k-bg); color: var(--k-text); border-radius: var(--radius); padding: 14px; min-height: 420px; box-shadow: var(--shadow); font-size: .82rem; border: 8px solid #0b0b0d; }
.km__bar { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--k-line); }
.km__bar > b { font: 800 1rem var(--f-display); margin-right: auto; }
.km__stats { display: flex; gap: 14px; }
.km__stats span { display: grid; font-size: .66rem; color: var(--k-muted); line-height: 1.2; }
.km__stats b { font-size: .95rem; color: var(--k-text); }
.km__live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: #3ee07a; }
.km__live i { width: 8px; height: 8px; border-radius: 50%; background: #3ee07a; animation: pulse 2s infinite; }
.km__ding { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #f4a51c; color: #17161d; font-weight: 700; animation: ding .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes ding { 0% { transform: scale(.8); opacity: 0; } 50% { transform: scale(1.04) rotate(-1deg); } }
.km__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.km__col h4 { display: flex; justify-content: space-between; margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; font: 700 .78rem var(--f-body); text-transform: uppercase; letter-spacing: .06em; background: var(--k-card); }
.km__col h4 span { min-width: 22px; text-align: center; border-radius: 99px; background: var(--k-line); }
.km__col--new h4 { box-shadow: inset 3px 0 0 #f4a51c; } .km__col--cooking h4 { box-shadow: inset 3px 0 0 #4ea3ff; } .km__col--ready h4 { box-shadow: inset 3px 0 0 #3ee07a; }
.kt { background: var(--k-card); border: 1px solid var(--k-line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.kt.is-fresh { animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.kt--new { border-color: #f4a51c; }
.kt__top { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.kt__meta { display: flex; justify-content: space-between; gap: 6px; margin: 4px 0 6px; color: var(--k-muted); font-size: .7rem; }
.kt__tag { padding: 1px 6px; border-radius: 6px; background: var(--k-line); color: var(--k-text); }
.kt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kt li small { display: block; color: #f4a51c; font-size: .7rem; padding-left: 20px; }
.kt__note { margin: 6px 0 0; padding: 4px 6px; border-radius: 6px; background: rgba(244,165,28,.14); color: #ffd27a; font-size: .72rem; }
.kt__foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; }
.kt__pay { font-size: .68rem; padding: 2px 6px; border-radius: 6px; background: var(--k-line); color: var(--k-muted); }
.kt__pay--promptpay { background: rgba(78,163,255,.18); color: #9fcbff; }
.kt__foot button { border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: .72rem; cursor: pointer; background: var(--k-text); color: var(--k-bg); }
.kt__foot button:hover { background: #3ee07a; }
@media (max-width: 560px) { .km__cols { grid-template-columns: 1fr; } .km__stats { display: none; } }

/* 3 · admin mock */
.amock { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; box-shadow: var(--shadow); font-size: .8rem; }
.am__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; }
.am__bar b { font: 800 .95rem var(--f-display); white-space: nowrap; }
.am__bar nav { display: flex; gap: 4px; overflow: hidden; }
.am__bar nav span { padding: 5px 9px; border-radius: 8px; white-space: nowrap; color: var(--muted); }
.am__bar nav span.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.am__body { padding: 14px; display: grid; gap: 12px; }
.am__periods { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.am__periods span { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); }
.am__periods span.on { border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.am__xl { margin-left: auto; background: #1d6f42 !important; color: #fff; border: 0 !important; }
.am__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.am__kpis div, .am__card { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * .7); padding: 10px 12px; }
.am__kpis small { display: block; color: var(--muted); font-size: .68rem; }
.am__kpis b { font: 800 1.05rem var(--f-display); }
.am__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.am__card p { margin: 0 0 8px; font-weight: 700; font-size: .78rem; }
.am__bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.am__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: var(--accent); transform-origin: bottom; }
.amock.is-in .am__bars i { animation: grow-bar .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
@keyframes grow-bar { from { transform: scaleY(0); } }
.am__bars i:hover { filter: brightness(1.15); }
.am__pay { display: flex; align-items: center; gap: 12px; }
.am__donut { flex: none; width: 78px; height: 78px; border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%); }
.amock.is-in .am__donut { animation: spin-in .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes spin-in { from { transform: rotate(-120deg) scale(.6); opacity: 0; } }
.am__pay ul, .am__best { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.am__pay li { display: flex; align-items: center; gap: 6px; }
.am__pay li i { width: 9px; height: 9px; border-radius: 3px; }
.am__pay li b { margin-left: auto; }
.am__best li { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 10px; align-items: center; }
.am__best i { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.am__best em { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.amock.is-in .am__best em { animation: grow-x .8s cubic-bezier(.2,.8,.2,1) both .2s; transform-origin: left; }
@keyframes grow-x { from { transform: scaleX(0); } }
@media (max-width: 560px) { .am__kpis { grid-template-columns: 1fr 1fr; } .am__row { grid-template-columns: 1fr; } .am__best li { grid-template-columns: 7em 1fr auto; } }

/* ---------- before / after ---------- */
.ba { margin-top: 24px; padding: clamp(20px, 3.5vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); }
.ba__head { max-width: 720px; margin-bottom: 22px; }
.ba__head h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 6px 0 10px; }
.ba__head p:last-child { color: var(--muted); margin: 0; }
.ba__stage { --pos: 50%; position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); user-select: none; -webkit-user-select: none; container-type: inline-size; cursor: ew-resize; touch-action: pan-y; }
.ba__stage img { -webkit-user-drag: none; pointer-events: none; }
.ba__stage:has(.ba__range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba__layer { position: absolute; inset: 0; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 0 18px rgba(0,0,0,.3); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #17161d; font: 800 1.1rem var(--f-body); letter-spacing: -.05em; box-shadow: 0 6px 22px rgba(0,0,0,.3); transition: transform .2s; }
.ba__stage:hover .ba__handle span, .ba__stage.is-dragging .ba__handle span { transform: scale(1.12); }
.ba__label { position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 999px; font: 700 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; background: rgba(0,0,0,.7); color: #fff; pointer-events: none; }
.ba__label--l { left: 12px; } .ba__label--r { right: 12px; background: var(--accent); color: var(--on-accent); }
.ba__range { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.ba__notes { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.ba__notes li::before { content: "✓ "; color: var(--accent-text); font-weight: 800; }

/* before: a believable 2014 template (sizes in cqw so it scales with the stage) */
.old { position: relative; height: 100%; background: #dcdcdc linear-gradient(#e9e9e9, #cfcfcf); font: 1.45cqw/1.45 Arial, Helvetica, sans-serif; color: #555; padding: 0 5cqw; overflow: hidden; }
.old__box { height: 100%; background: #fff; box-shadow: 0 0 1.2cqw rgba(0,0,0,.35); }
.old__top { display: flex; gap: 2.4cqw; align-items: center; padding: .5cqw 1.4cqw; background: #2b2b2b; color: #bbb; font-size: 1.15cqw; }
.old__soc { margin-left: auto; display: flex; gap: .5cqw; }
.old__soc i { display: grid; place-items: center; width: 1.8cqw; height: 1.8cqw; font-style: normal; font-weight: 700; color: #fff; background: #3b5998; border-radius: .3cqw; font-size: 1cqw; }
.old__soc i:nth-child(2) { background: #55acee; } .old__soc i:nth-child(3) { background: #dd4b39; }
.old__head { display: flex; justify-content: space-between; align-items: center; padding: 1.4cqw 1.6cqw; background: linear-gradient(#ffffff, #e8f1f8); border-bottom: 1px solid #c5d7e6; }
.old__logo { display: grid; grid-template-columns: auto auto; column-gap: .8cqw; align-items: center; }
.old__logo span { grid-row: span 2; font-size: 3.4cqw; filter: grayscale(.3); }
.old__logo b { font: bold 3cqw Georgia, "Times New Roman", serif; color: #1f5f99; text-shadow: 1px 1px 0 #fff, 2px 2px 2px rgba(0,0,0,.25); line-height: 1; }
.old__logo small { font-size: 1.1cqw; letter-spacing: .5cqw; color: #7a9bb8; }
.old__search { display: flex; border: 1px solid #aaa; font-size: 1.1cqw; }
.old__search i { padding: .4cqw 4cqw .4cqw .6cqw; color: #999; background: #fff; }
.old__search b { padding: .4cqw .8cqw; background: linear-gradient(#5d9bd1, #2c6aa3); color: #fff; }
.old__nav { display: flex; flex-wrap: wrap; background: linear-gradient(#4f8fca, #1d5389); border-top: 1px solid #7fb2df; border-bottom: 2px solid #133d66; }
.old__nav span { padding: .7cqw 1.25cqw; color: #fff; font-weight: bold; font-size: 1.2cqw; text-shadow: 0 -1px 0 rgba(0,0,0,.5); border-right: 1px solid #154675; box-shadow: 1px 0 0 #5b98cf; }
.old__nav span.on { background: linear-gradient(#f7b733, #e38d13); }
.old__slider { position: relative; height: 15cqw; overflow: hidden; border-bottom: 3px solid #1d5389; }
.old__slider img { width: 100%; height: 100%; object-fit: fill; image-rendering: auto; filter: saturate(.8) contrast(.92); }
.old__cap { position: absolute; left: 0; right: 0; bottom: 2.4cqw; margin: 0; padding: .8cqw 2cqw; background: rgba(0,0,0,.55); color: #fff; font: italic 2.1cqw Georgia, serif; }
.old__arr { position: absolute; top: 40%; display: grid; place-items: center; width: 2.6cqw; height: 3.4cqw; background: rgba(0,0,0,.45); color: #fff; font-style: normal; font-size: 2.4cqw; }
.old__arr--l { left: 0; } .old__arr--r { right: 0; }
.old__dots { position: absolute; bottom: .6cqw; left: 50%; transform: translateX(-50%); display: flex; gap: .6cqw; }
.old__dots i { width: 1cqw; height: 1cqw; border-radius: 50%; background: rgba(255,255,255,.6); }
.old__dots i.on { background: #f7b733; }
.old__cols { display: grid; grid-template-columns: 1fr 30%; gap: 1.6cqw; padding: 1.4cqw 1.6cqw; }
.old__main h4 { margin: 0 0 .8cqw; font: normal 2.1cqw Georgia, serif; color: #1f5f99; border-bottom: 1px dotted #bbb; padding-bottom: .4cqw; }
.old__main img { float: left; width: 9cqw; height: 6.8cqw; object-fit: fill; margin: 0 1cqw .4cqw 0; border: 1px solid #ccc; padding: .3cqw; background: #fff; }
.old__main p { margin: 0; font-size: 1.15cqw; text-align: justify; color: #666; }
.old a { color: #1a0dab; text-decoration: underline; }
.old__side { background: #f3f3f3; border: 1px solid #ddd; padding: .8cqw 1cqw; font-size: 1.1cqw; }
.old__side h5 { margin: 0 0 .4cqw; padding: .3cqw .6cqw; background: linear-gradient(#5d9bd1, #2c6aa3); color: #fff; font-size: 1.15cqw; }
.old__side ul { list-style: none; margin: 0 0 .8cqw; padding: 0; color: #1a0dab; text-decoration: underline; }
.old__side p { margin: 0; }
.old__side small { color: #999; font-size: .95cqw; }
.old__foot { margin-top: .4cqw; padding: .8cqw 1.6cqw; background: #2b2b2b; color: #888; font-size: 1cqw; }
.old__cookie { position: absolute; left: 0; right: 0; bottom: 0; padding: 1cqw 2cqw; background: rgba(20,20,20,.92); color: #ddd; font-size: 1.15cqw; text-align: center; }
.old__cookie b { margin-left: 1cqw; padding: .3cqw 1.2cqw; background: #f7b733; color: #222; }

/* after: the same clinic, rebuilt in its own identity (serif headings, navy and teal, a booking widget) */
.neo { height: 100%; background: #f7f5f0; color: #0f2a44; font-family: "DM Sans", sans-serif; display: flex; flex-direction: column; }
.neo__util { display: flex; gap: 3cqw; justify-content: flex-end; padding: .8cqw 4cqw; background: #0f2a44; color: #b9d6e8; font-size: 1.2cqw; }
.neo__util span:last-child { color: #fff; font-weight: 700; }
.neo__nav { display: flex; align-items: center; gap: 3cqw; padding: 1.8cqw 4cqw; font-size: 1.45cqw; font-weight: 500; background: #fff; border-bottom: 1px solid #e3e0d8; }
.neo__logo { display: flex; align-items: center; gap: .8cqw; margin-right: auto; font: 2.4cqw "DM Serif Display", serif; color: #0f2a44; }
.neo__logo svg { width: 2.6cqw; height: 2.6cqw; color: #2a9d8f; }
.neo__logo small { font: 700 1.1cqw "DM Sans", sans-serif; letter-spacing: .25em; text-transform: uppercase; color: #2a9d8f; align-self: flex-end; margin-bottom: .4cqw; }
.neo__hero { position: relative; flex: 1; min-height: 0; }
.neo__hero > img { position: absolute; inset: 0 0 0 30%; width: 70%; height: 100%; object-fit: cover; }
.neo__panel { position: relative; width: 46%; height: 100%; padding: 3cqw 3cqw 3cqw 4cqw; background: #f7f5f0; display: flex; flex-direction: column; justify-content: center; }
.neo__kicker { margin: 0 0 1cqw; font-size: 1.25cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #2a9d8f; }
.neo__h { margin: 0 0 2.2cqw; font: 4.4cqw/1.02 "DM Serif Display", serif; letter-spacing: -.01em; }
.neo__book { width: 112%; padding: 1.8cqw; background: #fff; border-radius: .8cqw; border-top: .5cqw solid #2a9d8f; box-shadow: 0 2cqw 4cqw -2cqw rgba(15,42,68,.35); display: grid; gap: 1.1cqw; }
.neo__book-t { margin: 0; font: 1.8cqw "DM Serif Display", serif; }
.neo__select { display: flex; justify-content: space-between; padding: .9cqw 1.2cqw; border: 1px solid #d5d9de; border-radius: .5cqw; font-size: 1.35cqw; }
.neo__days, .neo__times { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8cqw; }
.neo__times { grid-template-columns: repeat(3, 1fr); }
.neo__days span, .neo__times span { padding: .6cqw 0; border: 1px solid #d5d9de; border-radius: .5cqw; text-align: center; font-size: 1.15cqw; color: #5b6f80; line-height: 1.25; }
.neo__days b { font-size: 1.6cqw; color: #0f2a44; }
.neo__days span.on, .neo__times span.on { background: #0f2a44; border-color: #0f2a44; color: #fff; }
.neo__days span.on b { color: #fff; }
.neo__btn { padding: 1.1cqw; border-radius: .5cqw; background: #2a9d8f; color: #fff; text-align: center; font-weight: 700; font-size: 1.4cqw; }
.neo__cards { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid #e3e0d8; }
.neo__cards div { display: flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw 2.4cqw; border-right: 1px solid #e3e0d8; }
.neo__cards div:last-child { border-right: 0; }
.neo__cards img { width: 6.4cqw; height: 4.8cqw; object-fit: cover; border-radius: .5cqw; }
.neo__cards b { display: block; font: 1.7cqw "DM Serif Display", serif; }
.neo__cards small { font-size: 1.15cqw; color: #5b6f80; }

/* ---------- generator ---------- */
.gen { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.gen__form { display: grid; gap: 24px; position: sticky; top: 100px; }
.gen__field { display: grid; gap: 8px; font-weight: 600; }
.gen__field input { font-size: 1.15rem; padding: 16px 18px; }
.opts--icons { grid-template-columns: repeat(2, 1fr); }
.opts--icons span { padding: 12px 14px; }
.gen__win { overflow: hidden; }
.gen__url { margin: 0 auto; padding: 4px 14px; border-radius: 999px; background: var(--bg-2); font-size: .78rem; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gen__url b { font-weight: 600; color: var(--text); }
.gen__note { color: var(--muted); font-size: .85rem; margin: 12px 4px 0; }
/* the mini homepage: shared basics, then one block per vibe (each its own layout) */
.gen__site { container-type: inline-size; position: relative; overflow: hidden; background: var(--g-bg); color: var(--g-ink); font-family: var(--f-body); min-height: 440px; transition: background .4s, color .4s; }
.gen__site img { display: block; width: 100%; height: auto; object-fit: cover; background: color-mix(in srgb, var(--g-ink) 10%, var(--g-bg)); }
.gs__nav { display: flex; align-items: center; gap: 3cqw; font-size: max(.7rem, 2cqw); }
.gs__nav nav { display: flex; gap: 2.6cqw; }
.gs__logo { display: flex; align-items: center; gap: 1.2cqw; margin-right: auto; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs__btn { display: inline-block; white-space: nowrap; font-weight: 700; background: var(--g-acc); color: var(--g-on); }
.gs__h, .gs__p, .gs__kicker, .gs__sec { margin: 0; }
.gs__in { animation: gsIn .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 85ms); }
@keyframes gsIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ◻️ minimal: Swiss grid, hairlines, black on white, one red accent */
.gs--minimal { padding: 0 5% 4%; font-family: "Archivo", "Kanit", sans-serif; }
.gs--minimal .gs__nav { padding: 3cqw 0; border-bottom: 1.5px solid var(--g-ink); font-size: max(.66rem, 1.8cqw); font-weight: 600; }
.gs--minimal .gs__logo { font: 900 max(.85rem, 2.6cqw) "Archivo", "Kanit", sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
.gs--minimal .gs__nav nav span i { font-style: normal; color: var(--g-acc); margin-right: .6cqw; font-weight: 400; }
.gs--minimal .gs__h { padding: 5cqw 0 4cqw; font: 800 max(1.7rem, 8.6cqw)/.95 "Archivo", "Kanit", sans-serif; letter-spacing: -.055em; }
.gs--minimal .gs__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4cqw; padding-top: 3cqw; border-top: 1.5px solid var(--g-ink); }
.gs--minimal .gs__p { font-size: max(.8rem, 2.2cqw); line-height: 1.5; margin-bottom: 3cqw; }
.gs--minimal .gs__link { display: inline-block; font-weight: 800; font-size: max(.8rem, 2.2cqw); color: var(--g-acc); border-bottom: 2px solid var(--g-acc); }
.gs--minimal .gs__meta { margin: 4cqw 0 0; font-size: max(.62rem, 1.6cqw); text-transform: uppercase; letter-spacing: .12em; }
.gs--minimal .gs__meta::first-letter { color: var(--g-acc); }
.gs--minimal .gs__fig { margin: 0; }
.gs--minimal .gs__fig img { aspect-ratio: 4/3; filter: grayscale(1) contrast(1.1); transition: filter .5s; }
.gs--minimal .gs__fig:hover img { filter: none; }
.gs--minimal .gs__fig figcaption { margin-top: 1cqw; font-size: max(.6rem, 1.5cqw); color: #777; }
.gs--minimal .gs__sec { margin: 5cqw 0 1cqw; font-size: max(.62rem, 1.6cqw); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.gs--minimal .gs__index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--g-ink); }
.gs--minimal .gs__index li { display: grid; grid-template-columns: 6cqw 1fr 1fr 10cqw; gap: 2cqw; align-items: center; padding: 1.6cqw 0; border-bottom: 1px solid #ddd; }
.gs--minimal .gs__index em { font-style: normal; color: var(--g-acc); font-weight: 700; font-size: max(.7rem, 1.8cqw); }
.gs--minimal .gs__index b { font-weight: 800; font-size: max(.78rem, 2.2cqw); }
.gs--minimal .gs__index small { font-size: max(.66rem, 1.7cqw); color: #666; }
.gs--minimal .gs__index img { aspect-ratio: 4/3; filter: grayscale(1); }
.gs--minimal .gs__foot { display: flex; justify-content: space-between; margin-top: 4cqw; font-size: max(.6rem, 1.5cqw); text-transform: uppercase; letter-spacing: .1em; }

/* ⚡ bold: poster style, condensed type, hard borders and offset shadows */
.gs--bold { font-family: "Archivo", "Kanit", sans-serif; }
.gs--bold .gs__hero { position: relative; min-height: 66cqw; display: flex; flex-direction: column; padding: 0 5cqw 6cqw; color: #fff; isolation: isolate; }
.gs--bold .gs__bg { position: absolute; inset: 0; height: 100%; z-index: -1; filter: contrast(1.15) saturate(1.15); }
.gs--bold .gs__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.1) 40%, rgba(11,11,13,.96)); }
.gs--bold .gs__nav { padding: 3.4cqw 0; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: max(.6rem, 1.6cqw); }
.gs--bold .gs__logo { font: max(1rem, 3.4cqw) "Anton", "Kanit", sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.gs--bold .gs__over { margin-top: auto; }
.gs--bold .gs__kicker { display: inline-block; margin-bottom: 1.6cqw; padding: .4cqw 1.4cqw; background: var(--g-acc); color: #000; font: 800 max(.62rem, 1.7cqw) "Archivo", sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.gs--bold .gs__h { font: max(2rem, 11cqw)/.88 "Anton", "Kanit", sans-serif; text-transform: uppercase; letter-spacing: .005em; max-width: 95%; }
.gs--bold .gs__btn { margin-top: 3.4cqw; padding: 1.8cqw 3.8cqw; border: 3px solid #000; text-transform: uppercase; letter-spacing: .06em; font: 800 max(.72rem, 2cqw) "Archivo", sans-serif; box-shadow: 1.2cqw 1.2cqw 0 #fff; }
.gs--bold .gs__stamp { position: absolute; right: 5cqw; top: 40%; padding: 1.2cqw 2cqw; border: 3px solid var(--g-acc); color: var(--g-acc); font: max(.7rem, 2cqw) "Anton", sans-serif; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-12deg); }
.gs--bold .gs__ticker { overflow: hidden; background: var(--g-acc); color: #000; padding: 1.4cqw 0; border-block: 3px solid #000; transform: rotate(-1.5deg) scale(1.04); margin: -2.4cqw 0 4cqw; }
.gs--bold .gs__ticker div { display: flex; gap: 3cqw; width: max-content; animation: marquee 14s linear infinite; font: max(.9rem, 3cqw) "Anton", "Kanit", sans-serif; text-transform: uppercase; white-space: nowrap; }
.gs--bold .gs__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 0 5cqw; }
.gs--bold .gs__card { position: relative; aspect-ratio: 3/4; overflow: hidden; border: 3px solid #fff; box-shadow: 1cqw 1cqw 0 var(--g-acc); }
.gs--bold .gs__card img { height: 100%; transition: transform .5s; }
.gs--bold .gs__card:hover img { transform: scale(1.06); }
.gs--bold .gs__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.85)); }
.gs--bold .gs__card em, .gs--bold .gs__card b { position: absolute; z-index: 1; left: 2cqw; color: #fff; }
.gs--bold .gs__card em { top: 1.4cqw; padding: .2cqw 1cqw; background: var(--g-acc); color: #000; font: 800 max(.62rem, 1.6cqw) "Archivo", sans-serif; font-style: normal; }
.gs--bold .gs__card b { bottom: 2cqw; right: 2cqw; font: max(.9rem, 3cqw)/1 "Anton", "Kanit", sans-serif; text-transform: uppercase; font-weight: 400; }
.gs--bold .gs__foot { display: flex; justify-content: space-between; margin: 5cqw 5cqw 4cqw; padding-top: 2.4cqw; border-top: 2px solid rgba(255,255,255,.2); font: 800 max(.58rem, 1.5cqw) "Archivo", sans-serif; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }

/* 🕯️ elegant: deep green and gold, italic serif, an arched photo, a framed gallery */
.gs--elegant { padding: 0 6% 5%; font-family: "Cormorant Garamond", "Kanit", serif; }
.gs--elegant .gs__nav { justify-content: center; gap: 3.4cqw; padding: 3.6cqw 0; border-bottom: 1px solid color-mix(in srgb, var(--g-acc) 45%, transparent); font: 500 max(.6rem, 1.5cqw) "DM Sans", "Kanit", sans-serif; text-transform: uppercase; letter-spacing: .22em; color: color-mix(in srgb, var(--g-ink) 75%, transparent); }
.gs--elegant .gs__logo { margin: 0 2.4cqw; max-width: 38%; font: 500 italic max(1.1rem, 3.8cqw) "Cormorant Garamond", "Kanit", serif; color: var(--g-acc); letter-spacing: 0; text-transform: none; }
.gs--elegant .gs__hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 6cqw; align-items: center; padding: 6cqw 0; }
.gs--elegant .gs__kicker { color: var(--g-acc); font: 500 max(.6rem, 1.5cqw) "DM Sans", "Kanit", sans-serif; text-transform: uppercase; letter-spacing: .32em; margin-bottom: 2.4cqw; }
.gs--elegant .gs__h { font: 500 italic max(1.7rem, 7.4cqw)/1 "Cormorant Garamond", "Kanit", serif; letter-spacing: -.01em; }
.gs--elegant .gs__p { margin: 2.6cqw 0 3.6cqw; font-size: max(.85rem, 2.4cqw); line-height: 1.55; opacity: .8; }
.gs--elegant .gs__link { display: inline-block; padding: 1.4cqw 3.4cqw; border: 1px solid var(--g-acc); color: var(--g-acc); font: 500 max(.62rem, 1.6cqw) "DM Sans", "Kanit", sans-serif; text-transform: uppercase; letter-spacing: .24em; }
.gs--elegant .gs__arch { aspect-ratio: 3/4; padding: 1.2cqw; border: 1px solid var(--g-acc); border-radius: 50% 50% 0 0 / 32% 32% 0 0; }
.gs--elegant .gs__arch img { height: 100%; border-radius: 50% 50% 0 0 / 32% 32% 0 0; filter: saturate(.85) sepia(.12); }
.gs--elegant .gs__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; padding-top: 4cqw; border-top: 1px solid color-mix(in srgb, var(--g-acc) 45%, transparent); }
.gs--elegant .gs__gallery figure { margin: 0; text-align: center; }
.gs--elegant .gs__gallery img { aspect-ratio: 4/5; padding: .8cqw; border: 1px solid color-mix(in srgb, var(--g-acc) 60%, transparent); filter: saturate(.85); }
.gs--elegant .gs__gallery figcaption { margin-top: 1.4cqw; display: grid; gap: .2cqw; }
.gs--elegant .gs__gallery b { font: 600 max(.85rem, 2.6cqw) "Cormorant Garamond", "Kanit", serif; }
.gs--elegant .gs__gallery small { font: italic max(.7rem, 1.9cqw) "Cormorant Garamond", "Kanit", serif; opacity: .7; }
.gs--elegant .gs__foot { margin-top: 5cqw; text-align: center; color: var(--g-acc); font: italic max(.75rem, 2cqw) "Cormorant Garamond", "Kanit", serif; letter-spacing: .1em; }

/* 🎈 playful: primary colours, rounded type, a wobbly blob photo, taped colour cards */
.gs--playful { padding: 0 5% 4%; font-family: "Fredoka", "Kanit", sans-serif; }
.gs--playful .gs__nav { padding: 3.4cqw 0; font-weight: 700; font-size: max(.7rem, 2cqw); }
.gs--playful .gs__logo { font: 700 max(.95rem, 3cqw) "Fredoka", "Kanit", sans-serif; max-width: none; flex: 1 1 auto; min-width: 0; }
.gs--playful .gs__logo > span:first-child { display: grid; place-items: center; width: 5.6cqw; height: 5.6cqw; min-width: 24px; min-height: 24px; border-radius: 40% 60% 55% 45%; background: #ff595e; font-size: max(.8rem, 2.6cqw); }
.gs--playful .gs__nav nav { flex: none; }
.gs--playful .gs__nav nav span { padding: .6cqw 1.8cqw; border-radius: 99px; border: 2px solid var(--g-ink); background: #fff; }
.gs--playful .gs__nav nav span:nth-child(2) { background: #8ac926; } .gs--playful .gs__nav nav span:nth-child(3) { background: #ffca3a; }
.gs--playful .gs__hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4cqw; align-items: center; padding: 3cqw 0 4cqw; }
.gs--playful .gs__h { font: 700 max(1.6rem, 7cqw)/1.02 "Fredoka", "Kanit", sans-serif; letter-spacing: -.01em; }
.gs--playful .gs__p { margin: 2.4cqw 0 3.6cqw; font-size: max(.8rem, 2.3cqw); font-weight: 500; opacity: .8; }
.gs--playful .gs__btn { padding: 1.8cqw 3.8cqw; border-radius: 99px; border: 2.5px solid var(--g-ink); font-weight: 700; font-size: max(.78rem, 2.2cqw); box-shadow: 0 1cqw 0 var(--g-ink); transform: rotate(-2deg); }
.gs--playful .gs__blob { position: relative; aspect-ratio: 1; }
.gs--playful .gs__blob::before { content: ""; position: absolute; inset: -3cqw -2cqw auto auto; width: 70%; height: 70%; border-radius: 50%; background: #ffca3a; z-index: 0; }
.gs--playful .gs__blob img { position: relative; height: 100%; border-radius: 62% 38% 56% 44% / 48% 60% 40% 52%; border: 3px solid var(--g-ink); animation: wobble 7s ease-in-out infinite; }
@keyframes wobble { 50% { border-radius: 42% 58% 40% 60% / 58% 42% 58% 42%; } }
.gs--playful .gs__sticker { position: absolute; z-index: 1; bottom: -1cqw; left: -2cqw; display: grid; place-items: center; width: 15cqw; height: 15cqw; min-width: 64px; min-height: 64px; border-radius: 50%; background: #ff595e; color: #fff; border: 2.5px solid var(--g-ink); font-weight: 700; font-size: max(.62rem, 1.8cqw); text-align: center; line-height: 1.1; transform: rotate(-14deg); }
.gs--playful .gs__wave { display: block; width: 100%; height: 3cqw; margin: 0 0 4cqw; }
.gs--playful .gs__wave path { fill: none; stroke: var(--g-acc); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gs--playful .gs__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; padding: 0 1cqw; }
.gs--playful .gs__card { position: relative; padding: 1.6cqw 1.6cqw 3cqw; border: 2.5px solid var(--g-ink); border-radius: 3cqw; background: #8ac926; text-align: center; box-shadow: 0 1.2cqw 0 var(--g-ink); }
.gs--playful .gs__card:nth-child(1) { background: #ffca3a; transform: rotate(-3deg); } .gs--playful .gs__card:nth-child(2) { background: #6a9bff; transform: rotate(2deg) translateY(2cqw); } .gs--playful .gs__card:nth-child(3) { background: #ff8fa3; transform: rotate(-1.5deg); }
.gs--playful .gs__card img { aspect-ratio: 1; margin-bottom: 1.6cqw; border-radius: 2cqw; border: 2px solid var(--g-ink); }
.gs--playful .gs__card b { font-weight: 700; font-size: max(.78rem, 2.2cqw); }
.gs--playful .gs__tape { position: absolute; top: -1.8cqw; left: 50%; width: 12cqw; height: 3.4cqw; margin-left: -6cqw; background: rgba(255,255,255,.7); border: 1px dashed rgba(0,0,0,.2); transform: rotate(-3deg); }
.gs--playful .gs__foot { margin-top: 8cqw; text-align: center; font-weight: 700; font-size: max(.66rem, 1.7cqw); color: var(--g-acc); }

/* narrow previews: stack everything */
@container (max-width: 520px) { .gs--playful .gs__nav nav span:nth-child(n+2), .gs--minimal .gs__nav nav span:nth-child(n+3) { display: none; } }
@container (max-width: 380px) {
  .gs__nav nav, .gs--elegant .gs__nav > span { display: none; }
  .gs--minimal .gs__grid, .gs--elegant .gs__hero, .gs--playful .gs__hero { grid-template-columns: 1fr; }
  .gs--minimal .gs__index li { grid-template-columns: 6cqw 1fr 14cqw; } .gs--minimal .gs__index small { display: none; }
  .gs--elegant .gs__arch { max-width: 60%; margin: 0 auto; }
  .gs--playful .gs__blob { max-width: 70%; margin: 0 auto; }
  .gs--bold .gs__hero { min-height: 110cqw; } .gs--bold .gs__stamp { display: none; }
}
@media (max-width: 900px) { .gen { grid-template-columns: 1fr; } .gen__form { position: static; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__photo { position: relative; max-width: 420px; }
.about__frame { position: relative; aspect-ratio: 4/5; border-radius: calc(var(--radius) * 1.4); overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 35%, var(--card)), var(--bg-2) 70%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__initials { font: 800 clamp(4rem, 12vw, 7rem) var(--f-display); color: var(--accent-text); letter-spacing: -.04em; }
/* the brand's frame corners around the photo */
.about__photo::before, .about__photo::after { content: ""; position: absolute; z-index: 1; width: 56px; height: 56px; border: 4px solid var(--accent); pointer-events: none; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.about__photo::before { left: -14px; top: -14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.about__photo::after { right: -14px; bottom: 54px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.about__photo:hover::before { transform: translate(-6px, -6px); }
.about__photo:hover::after { transform: translate(6px, 6px); }
.about__badge { margin: 18px 0 0; }
/* optional second photo (e.g. with your dog) fades in on hover, focus or tap */
.about__photo2 { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.about__frame.has-second:hover .about__photo2, .about__frame.has-second:focus .about__photo2 { opacity: 1; }
.about__caption { position: absolute; z-index: 2; left: 50%; bottom: 74px; transform: translate(-50%, 8px); margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .82rem; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.about__photo:has(.has-second:hover) .about__caption, .about__photo:has(.has-second:focus) .about__caption { opacity: 1; transform: translate(-50%, 0); }
.about .head { margin-bottom: 22px; }
.about__bio { color: var(--muted); font-size: 1.12rem; margin: 0 0 28px; max-width: 38em; }
.about__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 28px; }
.about__facts div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.about__facts dt { font: 600 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.about__facts dd { margin: 4px 0 0; font-weight: 600; }
.about .stack { margin: 0 0 30px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 320px; } }
@media (max-width: 460px) { .about__facts { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { --x: 50%; --y: 50%; position: relative; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s; }
.svc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--x) var(--y), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.svc:hover::before { opacity: 1; }
.svc__ic { font-size: 1.6rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: calc(var(--radius) * .8); background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 22px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.svc:hover .svc__ic { transform: rotate(-10deg) scale(1.1); }
.svc p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }

/* ---------- design panel (playground) ---------- */
.play__slot { min-height: 0; }
.play__panel { position: relative; padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); box-shadow: var(--shadow); }
.play__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.play__title { margin: 0; font: 700 1.1rem var(--f-display); }
.play__x { display: none; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.preset { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-size: .86rem; font-weight: 600; transition: border-color .2s, transform .2s; }
.preset:hover { transform: translateY(-2px); border-color: var(--text); }
.preset i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--pb) 50%, var(--pa) 50%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.ctls { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px 32px; }
.ctl__label { display: flex; justify-content: space-between; margin: 0 0 12px; font-weight: 600; font-size: .92rem; }
.ctl__label output { font: .85rem var(--f-mono); color: var(--muted); }
.play__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button, .swatch-custom { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--card); outline: 2px solid transparent; background: var(--c); cursor: pointer; transition: transform .2s, outline-color .2s; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatches button:hover, .swatch-custom:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { outline-color: var(--text); }
.swatch-custom { position: relative; display: grid; place-items: center; background: conic-gradient(#ff5a36, #ffd23f, #c8ff3d, #22d3ee, #a78bfa, #ff4fa3, #ff5a36); font-weight: 800; color: #111; }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.seg--wrap { flex-wrap: wrap; border-radius: calc(var(--radius) + 4px); }
#genVibe { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
#genVibe button { border-radius: calc(var(--radius) + 2px); }

/* panel docked to the side, so you can restyle while looking at any section */
.play__panel.is-docked {
  position: fixed; z-index: 70; right: 16px; bottom: 16px; top: 76px; width: min(400px, calc(100vw - 32px));
  overflow-y: auto; overscroll-behavior: contain; animation: pop .3s cubic-bezier(.2,1.4,.4,1);
}
.play__panel.is-docked .ctls { grid-template-columns: 1fr; }
.play__panel:focus { outline: none; }
@media (max-width: 600px) { .play__panel.is-docked { top: auto; max-height: 72vh; } }
.play__panel.is-docked .play__x { display: grid; }
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 65; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 600;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow);
  transform: translateY(120px); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.fab.is-shown { transform: none; }
.fab:hover { background: var(--accent); color: var(--on-accent); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 96; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .9rem; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s, visibility .35s; pointer-events: none; }
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; }
:root[data-motion="off"] .js .reveal, :root[data-motion="off"].js .reveal { opacity: 1; transform: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 4px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid var(--card); cursor: grab; }

/* ---------- process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 30px; right: 30px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 27px; left: 30px; right: 30px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.step { position: relative; z-index: 1; }
.step__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line); font: 600 .95rem var(--f-mono); margin-bottom: 22px; transition: background .4s, color .4s, border-color .4s; }
.step.lit .step__n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.step p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before, .steps::after { top: 30px; bottom: 30px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { padding-left: 80px; } .step__n { position: absolute; left: 0; top: 0; }
}

/* ---------- estimator ---------- */
.est { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px 40px; align-items: start; }
.est .head { grid-column: 1 / -1; margin-bottom: 10px; }
.est__form { display: grid; gap: 30px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 14px; display: flex; gap: 10px; width: 100%; justify-content: space-between; }
legend output { font: .9rem var(--f-mono); color: var(--accent-text); }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: block; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--card); font-weight: 500; transition: border-color .2s, background .2s, transform .2s; }
.opts label:hover span { transform: translateY(-2px); }
.opts input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opts--check span::before { content: ""; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px; border-radius: 5px; border: 1.5px solid var(--muted); font-size: .7rem; font-weight: 800; line-height: 1; transition: background .2s; }
.opts--check input:checked + span::before { content: "✓"; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.est__out { position: sticky; top: 100px; padding: 32px; border-radius: calc(var(--radius) * 1.3); background: var(--text); color: var(--bg); display: grid; gap: 6px; box-shadow: var(--shadow); }
.est__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.est__cur select { appearance: none; -webkit-appearance: none; padding: 6px 30px 6px 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--bg) 35%, transparent); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right 11px center/10px no-repeat; color: var(--bg); font: 600 .85rem var(--f-mono); cursor: pointer; }
.est__cur select option { color: #17161d; background: #fff; }
.est__label { margin: 0; font: 600 .78rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.est__price { margin: 0; font: 800 clamp(2.4rem, 5vw, 3.4rem) var(--f-display); letter-spacing: -.03em; line-height: 1.1; }
.est__time, .est__care { margin: 0 0 6px; }
.est__out .btn { margin-top: 14px; white-space: normal; text-align: center; }
.est__note { font-size: .8rem; opacity: .6; margin: 10px 0 0; }
@media (max-width: 900px) { .est { grid-template-columns: 1fr; } .est__out { position: static; } }
@media (max-width: 460px) { .opts { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.faq__list { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .3s; }
details[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); font-size: 1.2rem; transition: transform .3s, background .3s, color .3s; }
details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
details p { margin: 0; padding: 0 22px 22px; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact__big { font-size: clamp(2.6rem, 9vw, 7.5rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; margin-bottom: clamp(40px, 6vw, 70px); }
.contact__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form .full { grid-column: 1 / -1; }
.contact__form label { display: grid; gap: 8px; font-weight: 600; font-size: .92rem; }
input:not([type]), input[type="email"], textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--card); font-weight: 400; transition: border-color .2s, box-shadow .2s; resize: vertical; }
input:not([type]):focus, input[type="email"]:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.contact__attach { display: grid; gap: 10px; }
.contact__attach:empty { display: none; }
.contact__est { position: relative; margin: 0; padding: 14px 44px 14px 16px; border-radius: var(--radius); border: 1.5px dashed var(--accent); font: .85rem var(--f-mono); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.contact__x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.contact__x:hover { background: var(--accent); color: var(--on-accent); }
.contact__send { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__err { margin: 0; color: color-mix(in srgb, #e5484d 80%, var(--ink)); min-height: 1.4em; font-size: .9rem; }
.contact__k { margin: 0 0 8px; color: var(--muted); }
.contact__mail { font: 700 clamp(1.1rem, 2.2vw, 1.5rem) var(--f-display); text-decoration: none; border-bottom: 2px solid var(--accent); word-break: break-all; }
.contact__clock { color: var(--muted); margin-top: 24px; }
.contact__clock b { color: var(--text); font-family: var(--f-mono); }
.socials { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; transition: border-color .2s, background .2s, color .2s; }
.socials a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact__form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.foot p { margin: 0; }
.foot__ver { font: .78rem var(--f-mono); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
#contactLinks { margin-top: 18px; }
#contactLinks a { display: inline-flex; align-items: center; gap: 8px; }
.foot__egg { display: flex; align-items: center; gap: 10px; }

/* ---------- terminal ---------- */
.term { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 8, .55); backdrop-filter: blur(6px); }
.term[hidden] { display: none; }
.term .win { width: min(680px, 100%); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.term__x { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.term__body { height: min(360px, 55vh); overflow-y: auto; min-height: 0; padding-bottom: 8px; font-size: .88rem; }
.term__body p { margin: 0; }
.term__line { display: flex; gap: 10px; align-items: center; padding: 0 22px 18px; font-family: var(--f-mono); color: var(--accent-text); }
.term__line input, .term__line input:focus-visible { flex: 1; border: 0; background: transparent; outline: none; font: .92rem var(--f-mono); color: var(--text); padding: 0; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

/* ---------- keyframes ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 122, 0); } }
@keyframes rot-in { from { transform: translateY(100%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rot-out { to { transform: translateY(-100%) rotate(-4deg); opacity: 0; } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes scrolly { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grow { to { width: 40%; } }
@keyframes wander { 0%, 100% { left: 60%; top: 55%; } 33% { left: 25%; top: 30%; } 66% { left: 70%; top: 20%; } }
@keyframes pop { from { transform: scale(.92) translateY(10px); opacity: 0; } }

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