:root {
  --bg: #eef7f1;
  --bg2: #f7fbf8;
  --surface: #ffffff;
  --ink: #122018;
  --ink-soft: #3d4a42;
  --mute: #5c6b63;
  --line: #d5e0d8;
  --primary: #0b6b3a;
  --primary-hover: #095c32;
  --primary-soft: #d7f0e3;
  --primary-ink: #043a1e;
  --accent: #1967d2;
  --warn: #8a4b08;
  --err: #b3261e;
  --shadow: 0 1px 2px rgba(18, 32, 24, .06), 0 12px 40px rgba(18, 32, 24, .08);
  --shadow-sm: 0 1px 2px rgba(18, 32, 24, .05), 0 4px 16px rgba(18, 32, 24, .06);
  --r: 28px;
  --r-sm: 16px;
  --r-pill: 999px;
  --font: Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9f3e4 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #dff3f4 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 280px, #fff 900px);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
svg.icon { max-width: none; flex-shrink: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: #fff;
  padding: .5rem 1rem; border-radius: 8px; z-index: 80;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 32px)); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--primary);
}
.top__bar {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 12px;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand__logo {
  width: 44px; height: 44px; border-radius: 13px; display: block; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(11, 107, 58, .28);
}
.brand__logo--foot { box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 16px rgba(11, 107, 58, .28);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.02rem; letter-spacing: -.02em; color: var(--primary); }
.brand__text small { font-size: .7rem; color: var(--mute); font-weight: 650; }
.nav {
  display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1 1 auto;
  flex-wrap: nowrap; min-width: 0;
}
.nav__link {
  appearance: none; border: 0; background: none; font: inherit; cursor: pointer;
  color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 999px;
  font-size: .86rem; font-weight: 650; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; flex-shrink: 0; line-height: 1.2;
}
.nav__link:hover { background: var(--primary-soft); color: var(--primary-ink); }
.nav__link.is-active { background: var(--primary-soft); color: var(--primary-ink); }
.nav__drop { position: relative; flex-shrink: 0; }
.nav__panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px; max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 8px; box-shadow: var(--shadow); z-index: 50;
}
.nav__panel--sm { min-width: 240px; }
.nav__panel a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .9rem;
}
.nav__panel a:hover { background: var(--bg); }
.nav__drop:hover .nav__panel, .nav__drop:focus-within .nav__panel, .nav__drop.is-open .nav__panel { display: block; animation: pop .18s ease; }
.top__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; margin-left: auto; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px;
}
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; display: block; }

/* Buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-pill); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.98); }
.btn--fill { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(11,107,58,.25); }
.btn--fill:hover { background: var(--primary-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--primary-soft); color: var(--primary-ink); }
.btn--soft { background: #eef4ff; color: #174ea6; border: 1px solid #d2e3fc; }
.btn--soft:hover { background: #d2e3fc; color: #174ea6; }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 12px; font-size: .85rem; }
.icon-btn {
  appearance: none; border: 0; background: var(--primary-soft); color: var(--primary);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
}

/* Hero + studio */
.hero { width: min(1180px, calc(100% - 24px)); margin: 28px auto 0; text-align: center; }
.hero--page { margin-bottom: 8px; }
.eyebrow {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-ink);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
h1 { font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.15; letter-spacing: -.03em; margin: .7rem 0 .4rem; }
.lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 720px; margin: 0 auto 1.4rem; }
.crumbs { font-size: .85rem; color: var(--mute); margin-bottom: .6rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #9aa89f; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

.studio {
  text-align: left;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8);
  overflow: visible;
}
.studio--simple { padding: 22px; }
.types {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.types__row {
  display: flex; gap: 4px; padding: 12px 8px 12px 14px;
  overflow-x: auto; flex: 1; min-width: 0;
  scrollbar-width: thin;
}
.types__item {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 72px; padding: 10px 8px; border-radius: 16px; color: var(--ink-soft);
  text-decoration: none; font-size: .75rem; font-weight: 650; border: 0; background: none; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.types__item:hover { background: var(--bg); color: var(--ink); }
.types__item.is-active { background: var(--primary-soft); color: var(--primary-ink); }
.types__item .icon { opacity: .85; }
.types__more {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 8px 12px 8px 4px;
  background: var(--surface);
}
.types__panel {
  display: none;
  position: absolute; top: calc(100% - 6px); right: 8px; z-index: 30;
  min-width: 260px; max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 8px; box-shadow: var(--shadow);
}
.types__panel a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .9rem;
}
.types__panel a:hover { background: var(--bg); }
.types__more.is-open .types__panel { display: block; animation: pop .18s ease; }
.studio__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
}
.studio__form { padding: 22px 24px 28px; border-right: 1px solid var(--line); }
.studio__preview {
  padding: 22px 24px 28px;
  background: linear-gradient(180deg, #f8fbf9 0%, #fff 40%);
}
.step-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mute);
  margin-bottom: 10px;
}
.step-label span {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: .72rem; letter-spacing: 0;
}
.hint-title { font-size: 1.15rem; margin: 0 0 14px; letter-spacing: -.02em; }
.fields { display: grid; gap: 12px; }
.fl { display: grid; gap: 6px; font-size: .86rem; font-weight: 650; color: var(--ink-soft); }
input, textarea, select {
  font: inherit; color: var(--ink); width: 100%;
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 12px 14px; outline: none; transition: border .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,107,58,.14);
}
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-right: 52px; }
.input-wrap .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.help, .fine { color: var(--mute); font-size: .85rem; margin: 8px 0 0; }
.toggles { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: .92rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui {
  width: 44px; height: 26px; border-radius: 999px; background: #c9d4cc; position: relative; flex-shrink: 0;
  transition: background .2s;
}
.switch__ui::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.switch input:checked + .switch__ui { background: var(--primary); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch .icon { color: #c9a227; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 550; font-size: .9rem; }
.check input { width: auto; }

.accordion { margin-top: 18px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 14px 2px; font-weight: 650;
  display: flex; align-items: center; gap: 10px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; margin-left: auto; color: var(--mute); font-size: 1.2rem; font-weight: 400;
}
.accordion details[open] summary::after { content: "-"; }
.acc { padding: 0 0 16px; display: grid; gap: 12px; animation: fade .2s ease; }
.color-row { display: flex; gap: 16px; flex-wrap: wrap; }
.color-row label { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 650; }
.color-row input[type=color] {
  width: 42px; height: 42px; padding: 0; border: 0; background: none; cursor: pointer;
}
.file {
  display: flex; align-items: center; justify-content: center; min-height: 88px;
  border: 1.5px dashed var(--line); border-radius: 16px; cursor: pointer; background: #fbfdfc;
}
.file:hover { border-color: var(--primary); background: var(--primary-soft); }
.file input { display: none; }

.preview-kicker { font-size: .85rem; color: var(--mute); margin: 0 0 12px; }
.preview-stage { display: grid; grid-template-columns: 1fr 56px; gap: 12px; align-items: start; }
.preview-canvas {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  min-height: 280px; display: grid; place-items: center; padding: 16px;
  box-shadow: inset 0 0 0 8px #f4f7f5;
}
.preview-canvas canvas, .preview-canvas svg { max-width: 100%; height: auto; }
.preview-canvas--bar { min-height: 160px; }
.preview-thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumb {
  width: 56px; height: 56px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; background: #fff center/cover no-repeat;
  box-shadow: var(--shadow-sm);
}
.thumb.is-active { border-color: var(--primary); }
.thumb[data-preset=classic] { background-image: linear-gradient(#122018 50%, #fff 50%); }
.thumb[data-preset=mint] { background-image: linear-gradient(#0b6b3a 50%, #e8f5ee 50%); }
.thumb[data-preset=ink] { background-image: linear-gradient(#174ea6 50%, #eef4ff 50%); }
.res { display: grid; gap: 6px; margin: 16px 0; font-size: .88rem; }
.res input[type=range] { accent-color: var(--primary); }
.preview-actions { display: grid; gap: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.trust {
  margin: 18px auto 0;
  background: #fff; border-radius: 999px; padding: 12px 18px 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.trust__left, .trust__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trust__g {
  width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; color: #4285f4;
}
.stars { display: flex; color: #f4b400; }
.stars .icon { fill: #f4b400; stroke: none; }

/* Sections */
.band { padding: 64px 0; }
.band--tint { background: linear-gradient(180deg, #f3faf6, #fff); }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; margin: 0 0 .4rem; }
.sec-head p { color: var(--mute); margin: 0; }
.steps {
  list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.steps li {
  background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.steps span {
  width: 36px; height: 36px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 10px;
}
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); }
.tool-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.tool-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tool-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  text-decoration: none; color: inherit; display: grid; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.tile__icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
}
.tile h3, .tile h2 { margin: 0; font-size: 1rem; }
.tile p { margin: 0; color: var(--mute); font-size: .9rem; }
.tile--lg { padding: 24px; }
.tile--static { cursor: default; }
.tile--static:hover { transform: none; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.prose { font-size: 1.02rem; color: var(--ink-soft); }
.prose h2 { color: var(--ink); letter-spacing: -.02em; margin-top: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li {
  display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.checklist .icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; }
.faq p { margin: 0 0 12px; color: var(--ink-soft); }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.switch em { font-style: normal; font-weight: 650; color: var(--primary); font-size: .78rem; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 12px;
}
.plan--hot { border-color: var(--primary); box-shadow: 0 12px 32px rgba(11,107,58,.12); transform: translateY(-4px); }
.plan__price { font-size: 1.8rem; margin: 0; }
.plan__price span { font-size: 1rem; color: var(--mute); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan .icon { color: var(--primary); flex-shrink: 0; }

.auth-card {
  width: min(420px, calc(100% - 32px)); margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.banner {
  background: var(--primary-soft); color: var(--primary-ink); border-radius: 12px; padding: 10px 12px; font-size: .9rem;
}
.banner--err { background: #fce8e6; color: var(--err); }
.account { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.account__side, .account__main {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px;
}
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data th, .data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-edit { display: flex; gap: 6px; margin-bottom: 6px; }
.inline-edit input { min-width: 160px; }
.scanner-box { margin-top: 12px; border-radius: 16px; overflow: hidden; background: #111; min-height: 40px; }
.result { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }

.foot { background: #122018; color: #d7e3db; padding: 48px 0 24px; margin-top: 24px; }
.foot a { color: #e8f5ee; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #9bb5a6; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot__base { margin-top: 32px; padding-top: 16px; border-top: 1px solid #2a3c32; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.muted { color: #9bb5a6; }
.brand--foot .brand__mark { width: 34px; height: 34px; }
.brand--foot .brand__text strong { color: #e8f5ee; }
.brand--foot .brand__text small { color: #9bb5a6; display: block; font-weight: 500; }

.modal {
  position: fixed; inset: 0; background: rgba(18,32,24,.45); display: grid; place-items: center;
  z-index: 60; padding: 20px; animation: fade .2s ease;
}
.modal[hidden] { display: none; }
.modal__card {
  width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 28px 24px 22px; position: relative;
  box-shadow: var(--shadow);
}
.modal__x { position: absolute; top: 12px; right: 12px; border: 0; background: var(--bg); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }
.modal__lead { color: var(--ink-soft); }
.modal__actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }

.reveal { animation: rise .55s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .nav { display: none; }
  body.nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute;
    top: 100%; left: 0; right: 0; background: #fff; padding: 12px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); flex-wrap: nowrap; overflow: auto; max-height: calc(100vh - var(--nav-h));
  }
  body.nav-open .nav__link { white-space: normal; }
  .nav__panel { position: static; display: none; box-shadow: none; border: 0; max-height: 240px; }
  .nav__drop.is-open .nav__panel { display: block; }
  .nav-toggle { display: flex; }
  .top__actions .btn--ghost { display: none; }
}
@media (max-width: 980px) {
  .studio__grid, .split, .steps, .plan-grid, .plan-grid--2, .foot__grid, .account { grid-template-columns: 1fr; }
  .studio__form { border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-grid, .tool-grid--3, .tool-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .trust { border-radius: 20px; }
  .preview-stage { grid-template-columns: 1fr; }
  .preview-thumbs { flex-direction: row; }
}
@media (max-width: 560px) {
  .tool-grid, .tool-grid--3, .tool-grid--4 { grid-template-columns: 1fr; }
  .toggles { flex-direction: column; }
  .hero { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
