/* Giorgos Romaidis, web design studio.
   Layout concept: a product-led hero (copy + private-code field left, a live device stage right),
   then services as a swipe row, a real 4-step sequence, a dark emerald code band, and the inquiry form. */

@font-face { font-family: "Noto Serif Display"; src: url(fonts/noto-serif-display.woff2?v=2) format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

/* Dark-first and single-theme by choice: black, bone, one emerald and brass details. */
:root {
  --bg: #070908;          /* black with a breath of green */
  --surface: #0F1312;
  --sunk: #0B0E0D;
  --ink: #EEEBE3;         /* bone */
  --muted: #9A9F98;
  --emerald: #F1EDE4;     /* primary action + headline: bone on black */
  --emerald-2: #FFFFFF;
  --on-emerald: #070908;
  --jade: #5DB893;        /* the emerald signature: icons, focus, live dot */
  --mint: #121C18;        /* quiet emerald-tinted fills */
  --brass: #C4A46C;       /* fine metal details */
  --il-1: #2C7A5D; --il-2: #C4A46C; --il-3: #1A211E; --il-4: #0F1412; --il-5: #5DB893;
  --line: rgba(238, 235, 227, .10);
  --line-strong: rgba(238, 235, 227, .22);
  --band: #0A1F18;
  --band-2: #0F2A21;
  --band-ink: #EEEBE3;
  --band-muted: #A4B5AC;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  --glow-1: rgba(93, 184, 147, .10);
  --glow-2: rgba(196, 164, 108, .07);
  --ok: #5DB893;
  --warn: #E58E68;
  --nav-bg: rgba(7, 9, 8, .82);
  --serif: "Noto Serif Display", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--jade); color: var(--bg); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 450; letter-spacing: -.018em; line-height: 1.02; text-wrap: balance; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 450; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 18px; text-wrap: balance; color: var(--ink); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 58ch; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--emerald); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--emerald); color: var(--on-emerald); }
.btn-primary:hover { background: var(--emerald-2); }
.btn-quiet { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-quiet:hover { border-color: var(--emerald); color: var(--emerald); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--nav-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-solid { background: var(--nav-bg); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 36px; height: 36px; flex: none; color: var(--ink); }
.brand-mark .dot-live { fill: var(--jade); }
.brand-name { display: grid; line-height: 1.1; }
.brand-name b { font: 500 18px var(--serif); letter-spacing: -.005em; }
.brand-name small { font-size: 12px; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(238, 235, 227, .08); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.tool {
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; display: inline-grid; place-items: center; cursor: pointer; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  transition: border-color .2s, color .2s;
}
.tool:hover { border-color: var(--emerald); color: var(--emerald); }
.tool svg { width: 18px; height: 18px; }
.nav-cta { min-height: 44px; padding: 0 20px; font-size: 14px; }
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav.is-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px max(24px, env(safe-area-inset-right, 0px)) 28px max(24px, env(safe-area-inset-left, 0px));
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s;
}
.nav.is-open + .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; padding: 16px 0; font: 400 28px/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: calc(-1 * var(--nav-h)); padding-top: calc(var(--nav-h) + 48px); padding-bottom: 88px;
  min-height: min(940px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate;
}
.hero > .wrap { position: relative; z-index: 2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(55% 60% at 75% 35%, var(--glow-1), transparent 70%), radial-gradient(35% 45% at 0% 100%, var(--glow-2), transparent 70%);
}
.hero::after { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5; mix-blend-mode: screen; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .3 0 0 0 0 .24 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Portrait: full height on the right, melting into black under the copy */
.hero-photo { position: absolute; z-index: -1; top: 0; bottom: 0; right: max(-40px, calc((100vw - 1440px) / 2)); width: min(62vw, 760px); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 55% 18%; }
.hero-photo::after {
  content: ""; position: absolute; inset: -1px;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 9, 8, .85) 26%, rgba(7, 9, 8, 0) 60%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 8, 0) 30%),
    linear-gradient(180deg, rgba(7, 9, 8, .6) 0%, rgba(7, 9, 8, 0) 18%),
    linear-gradient(270deg, var(--bg) 0%, rgba(7, 9, 8, 0) 14%);
}
.hero-copy { min-width: 0; max-width: 600px; }
.hero h1 { font-size: clamp(44px, 5.2vw, 78px); color: var(--ink); margin-bottom: 26px; max-width: 12ch; }
.hero .lead { margin-bottom: 34px; max-width: 44ch; color: #B9BDB5; }
.hero-sign { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; font-size: 14px; color: var(--muted); }
.hero-sign::before { content: ""; width: 36px; height: 1px; background: var(--brass); }

.code-form { max-width: 520px; }
.code-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.code-field {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -30px #000; transition: border-color .25s, box-shadow .25s;
}
.code-field:focus-within { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(93, 184, 147, .16); }
.code-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0 18px; height: 48px;
  font: 500 19px var(--serif); letter-spacing: .14em; text-transform: uppercase;
}
.code-field input::placeholder { color: var(--muted); opacity: .65; letter-spacing: .08em; text-transform: none; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.code-field .btn { min-height: 48px; flex: none; }
.code-form.is-error .code-field { border-color: var(--warn); animation: shake .45s var(--ease); }
.form-msg { min-height: 1.5em; margin: 10px 4px 0; font-size: 14px; color: var(--warn); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.hero-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.link { color: var(--emerald); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.hero-facts { display: grid; gap: 10px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; max-width: 520px; }
.hero-facts li { display: flex; gap: 12px; align-items: center; }
.hero-facts svg { width: 18px; height: 18px; flex: none; color: var(--jade); }
.status-dot { width: 18px; height: 18px; flex: none; display: grid; place-items: center; }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.4s infinite; }
.status-dot.is-off i { background: var(--brass); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* Device stage */
.stage { position: relative; min-width: 0; perspective: 1600px; }
.stage-inner { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); padding-bottom: 8%; }
.browser {
  position: relative; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-url { margin-left: 14px; flex: 1; max-width: 260px; height: 24px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.browser-url svg { width: 11px; height: 11px; color: var(--jade); }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sunk); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone {
  position: absolute; right: -2%; bottom: 0; width: 27%; aspect-ratio: 390 / 820; border-radius: 26px; padding: 7px;
  background: #0E1B16; box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); transform: translateZ(60px);
}
.phone .screen { aspect-ratio: auto; height: 100%; border-radius: 20px; }
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; width: 30%; height: 13px; transform: translateX(-50%); background: #0E1B16; border-radius: 99px; z-index: 2; }
.stage-caption { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.stage-caption a { color: var(--band-ink); font-weight: 700; }
.band .stage-caption { color: var(--band-muted); }

/* Page-load sequence: the portrait surfaces out of the dark, then the copy rises line by line. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-photo img { animation: surface 1.8s var(--ease) both; }
  .js .rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 350ms); }
}
@keyframes surface { from { opacity: 0; transform: scale(1.06); filter: brightness(.4); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 10vw, 128px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; }
.section-head > div { min-width: 0; }

/* Services row */
.row-controls { display: flex; gap: 10px; flex: none; }
.arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s, opacity .2s; }
.arrow:hover:not(:disabled) { border-color: var(--emerald); color: var(--emerald); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 20px; height: 20px; }
.cards {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block: 6px 18px; scroll-padding-inline: max(24px, calc((100vw - 1200px) / 2 + 24px));
  padding-inline: max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.cards::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 min(340px, 78vw); scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 26px; min-width: 0;
}
.card-art { height: 170px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; margin-bottom: 22px; overflow: hidden; }
.card-art svg { width: 132px; height: 132px; }
.card h3 { font: 500 24px/1.2 var(--serif); margin: 0 12px 8px; letter-spacing: -.01em; }
.card p { margin: 0 12px 20px; color: var(--muted); font-size: 15.5px; }
.card .more { margin: auto 12px 0; align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px; }
.il * { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.il .f1 { fill: var(--il-1); } .il .f2 { fill: var(--il-2); } .il .f3 { fill: var(--il-3); } .il .f4 { fill: var(--il-4); } .il .f5 { fill: var(--il-5); }
.il .nf { fill: none; } .il .ns { stroke: none; }
.dots { display: none; justify-content: center; gap: 8px; margin-top: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line-strong); cursor: pointer; transition: width .35s var(--ease), background-color .35s; }
.dots button[aria-current="true"] { width: 26px; background: var(--emerald); }

/* Detail sheet */
.sheet { border: 0; padding: 0; background: transparent; max-width: 640px; width: calc(100% - 32px); color: var(--ink); overflow: visible; }
.sheet::backdrop { background: rgba(8, 26, 20, .5); backdrop-filter: blur(4px); }
.sheet-body { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 32px; box-shadow: var(--shadow); position: relative; }
.sheet[open] .sheet-body { animation: sheet-in .5s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .4s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }

.sheet-close { position: absolute; top: 18px; right: 18px; }
.sheet h3 { font: 400 34px/1.1 var(--serif); margin: 0 48px 12px 0; text-wrap: balance; }
.sheet p { color: var(--muted); margin: 0 0 20px; }
.sheet ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.sheet li { display: flex; gap: 12px; }
.sheet li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--jade); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 12%; height: 1px; background: linear-gradient(90deg, var(--brass), var(--line-strong)); }
.step { position: relative; padding-right: 32px; min-width: 0; }
.step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--brass); color: var(--brass); font: 400 24px/1 var(--serif); position: relative; margin-bottom: 26px; }
.step.is-key .step-num { background: var(--emerald); border-color: var(--emerald); color: var(--on-emerald); }
.step h3 { font: 500 22px/1.25 var(--serif); margin: 0 0 10px; text-wrap: balance; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 30ch; }

/* Code band */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 50%, rgba(91, 196, 156, .18), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(203, 168, 104, .14), transparent 70%); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.band .h2 { color: var(--band-ink); }
.band .lead { color: var(--band-muted); margin-bottom: 32px; }
.band .code-form label { color: var(--band-ink); }
.band .code-field { background: rgba(255, 255, 255, .06); border-color: rgba(237, 239, 230, .25); box-shadow: none; }
.band .code-field:focus-within { border-color: #7BD3B1; box-shadow: 0 0 0 4px rgba(123, 211, 177, .18); }
.band .code-field input { color: var(--band-ink); }
.band .code-field input::placeholder { color: var(--band-muted); }
.band .btn-primary { background: #EDEFE6; color: #0C3A2E; box-shadow: none; }
.band .btn-primary:hover { background: #fff; }
.band .hero-alt { color: var(--band-muted); }
.band .link { color: #EDEFE6; text-decoration-color: rgba(237, 239, 230, .4); }
.band .form-msg { color: #F0A584; }
.privacy-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(237, 239, 230, .16); font-size: 14.5px; color: var(--band-muted); max-width: 520px; }
.privacy-note svg { width: 22px; height: 22px; flex: none; color: #CBA868; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.reach { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.reach li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.reach .ico { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--jade); }
.reach .ico svg { width: 19px; height: 19px; }
.reach .txt { min-width: 0; flex: 1; }
.reach .txt small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.reach .txt a, .reach .txt span { font-weight: 700; font-size: 16px; text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.copy { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.copy:hover { border-color: var(--emerald); color: var(--emerald); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 40px 80px -50px #000; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 700; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); padding: 13px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(93, 184, 147, .14); }
.field input[aria-invalid="true"] { border-color: var(--warn); }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; user-select: none; }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .2s, border-color .2s, box-shadow .2s; }
.chip input:checked + span { background: var(--mint); border-color: var(--jade); color: var(--ink); }
.chip input:checked + span::before { background: var(--jade); border-color: var(--jade); box-shadow: inset 0 0 0 3px var(--mint); }
.chip input:focus-visible + span { outline: 2px solid var(--jade); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); grid-column: 1 / -1; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--emerald); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { font-size: 14.5px; color: var(--muted); flex: 1; min-width: 200px; }
.form-status.is-error { color: var(--warn); }
.form-done { text-align: center; padding: 30px 10px; display: grid; justify-items: center; gap: 12px; }
.form-done .check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--jade); }
.form-done .check svg { width: 28px; height: 28px; }
.form-done h3 { font: 400 32px/1.1 var(--serif); margin: 6px 0 0; }
.form-done p { margin: 0; color: var(--muted); max-width: 42ch; }
.form-done textarea { width: 100%; min-height: 140px; border-radius: 14px; border: 1px solid var(--line-strong); padding: 12px 14px; background: var(--bg); font-size: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--emerald); }

/* Sticky mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.action-bar.is-shown { transform: none; }
.action-bar .btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: 14.5px; }

/* ---------- Preview page ---------- */
.hero.pv-intro { display: block; min-height: 0; text-align: center; padding-top: calc(var(--nav-h) + 64px); padding-bottom: 48px; }
.pv-intro h1 { font-size: clamp(44px, 6.4vw, 88px); color: var(--emerald); margin: 0 auto 22px; max-width: 13ch; }
.pv-intro .lead { margin: 0 auto 38px; }
.pv-intro .code-form { margin-inline: auto; text-align: left; }
.pv-intro .code-field input { font-size: 24px; height: 56px; text-align: center; }
.pv-intro .code-field .btn { min-height: 56px; }
.pv-intro .hero-alt { justify-content: center; }

.viewer { padding-block: 32px 80px; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.viewer-for small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.viewer-for b { font: 400 clamp(24px, 2.6vw, 32px)/1.15 var(--serif); }
.seg { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; background: none; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: color .3s; }
.seg button[aria-pressed="true"] { color: var(--on-emerald); }
.seg button svg { width: 17px; height: 17px; }
.seg-ind { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--emerald); transition: transform .5s var(--ease), width .5s var(--ease); }
.viewer-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.viewer-actions .btn { min-height: 44px; font-size: 14px; padding: 0 18px; }
.device-area { position: relative; display: grid; justify-items: center; background: var(--sunk); border: 1px solid var(--line); border-radius: 28px; padding: 28px 16px; overflow: hidden; }
.device { position: relative; transition: width .65s var(--ease), height .65s var(--ease); }
.device-frame { position: absolute; top: 0; left: 0; transform-origin: top left; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line-strong); transition: border-radius .5s var(--ease); }
.device-frame.is-phone { border-radius: 40px; border: 10px solid #0E1B16; }
.device-frame.is-tablet { border-radius: 30px; border: 12px solid #0E1B16; }
.device-frame iframe { display: block; border: 0; background: #fff; }
.device-loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface); font-size: 14px; color: var(--muted); transition: opacity .4s; }
.device-loading.is-done { opacity: 0; pointer-events: none; }
.pv-note { display: flex; gap: 14px; align-items: flex-start; margin: 22px auto 0; max-width: 760px; font-size: 14.5px; color: var(--muted); }
.pv-note svg { width: 20px; height: 20px; flex: none; color: var(--brass); margin-top: 2px; }
.pv-cta { margin-top: 64px; text-align: center; }
.pv-cta .lead { margin: 0 auto 30px; }
.pv-cta .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pv-in { animation: rise .8s var(--ease) both; }
.pv-delete { margin: 56px auto 0; max-width: 640px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.pv-delete-text { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 14.5px; color: var(--muted); text-align: left; }
.pv-delete-text svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--muted); }
.pv-delete .btn { min-height: 44px; font-size: 14px; padding: 0 18px; }
.pv-del-confirm { display: grid; justify-items: center; gap: 12px; font-size: 15px; }
.pv-del-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pv-del-status { margin: 0; font-size: 14.5px; color: var(--ink); max-width: 56ch; }
.pv-del-status:empty { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero-photo { width: 70vw; }
  .hero-copy { max-width: 520px; }
  .band-grid, .contact-grid { grid-template-columns: 1fr; }
  .stage { max-width: 640px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 68px; }
  .nav .wrap { gap: 12px; }
  .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .brand-name small { display: none; }
  .hero { display: block; min-height: 0; padding-top: calc(var(--nav-h) + min(64vw, 330px)); padding-bottom: 64px; text-align: center; }
  .hero::before { background: none; }
  .hero-photo { left: 0; right: 0; width: 100%; bottom: auto; height: min(118vw, 600px); }
  .hero-photo img { object-position: 50% 0%; }
  .hero-photo::after { background: linear-gradient(0deg, var(--bg) 18%, rgba(7, 9, 8, .7) 45%, rgba(7, 9, 8, .05) 72%, rgba(7, 9, 8, .5) 100%); }
  .hero-sign { display: none; }
  .hero h1 { margin-inline: auto; font-size: clamp(38px, 10.6vw, 54px); margin-bottom: 18px; }
  .hero .lead { margin-bottom: 26px; }
  .hero .lead { margin-inline: auto; }
  .code-form { margin-inline: auto; }
  .code-form label { text-align: center; }
  .code-field { flex-direction: column; border-radius: 22px; padding: 8px; }
  .code-field input { width: 100%; text-align: center; height: 52px; }
  .code-field .btn { width: 100%; }
  .hero-alt { justify-content: center; }
  .hero-facts { text-align: left; margin-inline: auto; }
  .stage { margin-top: 12px; }
  .stage-caption { text-align: center; }
  .stage-inner { padding-bottom: 12%; }
  .phone { width: 31%; right: 0; }
  .section-head { display: block; text-align: center; }
  .section-head .lead { margin-inline: auto; }
  .row-controls { display: none; }
  .dots { display: flex; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; padding: 0 0 34px; }
  .step::before { content: ""; position: absolute; left: 27.5px; top: 56px; bottom: 0; width: 1px; background: var(--line-strong); }
  .step:last-child::before { display: none; }
  .step-num { margin: 0; grid-row: span 2; }
  .step h3 { margin-top: 12px; }
  .band-grid { text-align: center; gap: 40px; }
  .band .lead, .band .code-form, .privacy-note { margin-inline: auto; }
  .privacy-note { text-align: left; }
  .contact-grid { gap: 44px; }
  .contact-grid > div:first-child { text-align: center; }
  .contact-grid .lead { margin-inline: auto; }
  .reach { text-align: left; }
  .fields { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .action-bar { display: flex; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .footer .wrap { flex-direction: column; text-align: center; }
  .footer nav { justify-content: center; }
  .sheet { margin: auto 0 0; width: 100%; max-width: none; }
  .sheet-body { border-radius: 26px 26px 0 0; padding: 30px 24px calc(28px + env(safe-area-inset-bottom, 0px)); }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .sheet .btn { width: 100%; }
  .viewer-bar { justify-content: center; text-align: center; }
  .seg button span { display: none; }
  .device-area { padding: 20px 8px; border-radius: 20px; }
  .pv-intro .code-field input { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
