:root {
  --paper: #f7f3ea;
  --paper-2: #f1ecdf;
  --panel: #fffdf8;
  --ink: #121a18;
  --ink-2: #2a3532;
  --muted: #5f6b66;
  --line: #ddd5c4;
  --line-2: #ece5d6;
  --accent: #0f6b57;
  --accent-2: #0b5142;
  --accent-soft: #e3efe9;
  --hot: #c9502b;
  --gold: #b8862f;
  --shadow: 0 1px 2px rgba(18, 26, 24, .05), 0 12px 32px -18px rgba(18, 26, 24, .35);
  --serif: "Forge Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@font-face {
  font-family: "Forge Serif";
  src: url("../fonts/forgeserif-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Forge Serif";
  src: url("../fonts/forgeserif-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

/* ---------------------------------------------------------------- nav -- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 243, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-word { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
.brand-word i { color: var(--accent); font-style: normal; }
.brand-word.small { font-size: 18px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav .btn { margin-left: 4px; }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #c9c0ac; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; }
.btn-wide { width: 100%; }
.btn-small { padding: 7px 12px; font-size: 13.5px; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn .lock { font-size: 11px; background: var(--gold); color: #fff; border-radius: 3px; padding: 1px 4px; margin-left: 2px; }
.btn.busy { pointer-events: none; opacity: .7; }

/* ---------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 107, 87, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 107, 87, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 76px 24px 60px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 600; }
.hero h1 span { display: block; color: var(--accent-2); font-style: italic; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 34em; margin: 0 0 22px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero-art { display: grid; place-items: center; }
.hero-sheet {
  width: 100%; max-width: 360px; aspect-ratio: 6 / 9;
  background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 26px 24px; position: relative; transform: rotate(-2.2deg);
}
.hero-sheet::after {
  content: ""; position: absolute; inset: 0; border: 1px solid rgba(0,0,0,.04);
}
.hero-sheet h3 { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin: 18px 0 4px; letter-spacing: -.01em; }
.hero-sheet p { font-size: 11px; color: var(--muted); margin: 0 0 16px; }
.mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: #cfc9ba; border: 1.5px solid var(--ink); margin-top: 18px; }
.mini-grid span { background: #fff; aspect-ratio: 1; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ink); }
.mini-grid span.b { background: var(--ink); }
.mini-grid span.f { color: #cfc9ba; }

/* -------------------------------------------------------------- studio -- */
.studio { max-width: 1180px; margin: 0 auto; padding: 54px 24px 20px; }
.studio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.studio-head h2 { font-family: var(--serif); font-size: 34px; margin: 0 0 6px; letter-spacing: -.01em; }
.studio-head p { margin: 0; color: var(--muted); }
.studio-grid { display: grid; grid-template-columns: 372px 1fr; gap: 20px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.controls { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.group { display: flex; flex-direction: column; gap: 7px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; }
.group-head label, .field-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.group-head output { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--accent-2); font-weight: 700; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
input[type=text], input[type=number], select, textarea {
  font: inherit; font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  padding: 9px 11px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { resize: vertical; min-height: 68px; font-size: 13.5px; }
input[type=range] { width: 100%; accent-color: var(--accent); }

.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button {
  flex: 1; font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 4px;
  border: 0; border-right: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  cursor: pointer;
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: #fff; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }

.types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); user-select: none;
}
.type input { accent-color: var(--accent); margin: 0; }
.type:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.type .t-ico { width: 18px; height: 18px; flex: none; color: var(--accent-2); opacity: .8; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.check input { accent-color: var(--accent); }
.divider { height: 1px; background: var(--line-2); margin: 2px 0; }

/* stage */
.stage { padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 640px; }
.stage-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--paper-2); padding: 3px; border-radius: 8px; }
.tabs button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: var(--ink-2); }
.tabs button.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: var(--ink); }
.stage-bar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.canvas-wrap {
  flex: 1; display: grid; place-items: center; padding: 22px;
  background:
    repeating-linear-gradient(45deg, #f4efe3, #f4efe3 10px, #f1ebdd 10px, #f1ebdd 20px);
  border: 1px solid var(--line-2); border-radius: 10px; min-height: 470px; overflow: hidden;
}
#previewCanvas { max-width: 100%; box-shadow: 0 2px 6px rgba(18,26,24,.12), 0 18px 40px -24px rgba(18,26,24,.5); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; background: #fffefb; }
.stat span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stat strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.actions .btn { flex: 1 1 auto; }
.stage-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.progress[hidden] { display: none; }
.progress .bar { height: 6px; background: var(--accent); border-radius: 3px; width: 0; transition: width .2s; flex: 1; max-width: 220px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent-2); background: var(--accent-soft); border-radius: 999px; padding: 4px 9px; }

/* ------------------------------------------------------------- features -- */
.section { max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.015em; }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card-num { font-family: var(--serif); font-size: 13px; color: var(--accent); letter-spacing: .1em; margin-bottom: 10px; }
.card h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.6px; }

.spec { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.spec-table th { background: var(--paper-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td.num { font-variant-numeric: tabular-nums; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.checklist b { color: var(--ink); }
.tick { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 2px; }

/* -------------------------------------------------------------- pricing -- */
.pricing { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-card .tag { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }
.price-card h3 { font-family: var(--serif); font-size: 22px; margin: 0; }
.price { font-family: var(--serif); font-size: 40px; margin: 0; letter-spacing: -.02em; }
.price span { font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 18px; }

/* ------------------------------------------------------------------ faq -- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
details[open] { border-color: #cec5b1; }
summary { cursor: pointer; font-weight: 650; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; font-size: 14.6px; color: var(--ink-2); }

/* --------------------------------------------------------------- footer -- */
.foot { border-top: 1px solid var(--line-2); background: var(--paper); }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.foot a { color: var(--ink-2); }
.attrib { grid-column: 1 / -1; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 16px; margin: 0; }

/* ---------------------------------------------------------------- modal -- */
.modal { position: fixed; inset: 0; background: rgba(18, 26, 24, .55); display: grid; place-items: center; padding: 20px; z-index: 60; }
.modal[hidden] { display: none; }
.modal-card { background: var(--panel); border-radius: 14px; padding: 26px; width: min(480px, 100%); position: relative; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal-x { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 24px; color: var(--muted); cursor: pointer; }
.modal-card h2 { font-family: var(--serif); font-size: 26px; margin: 6px 0 16px; }
.modal-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.modal-plans .plan { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 12px; cursor: pointer; font: inherit; text-align: left; }
.modal-plans .plan strong { display: block; font-size: 20px; font-family: var(--serif); }
.modal-plans .plan span { font-size: 13px; color: var(--muted); }
.modal-plans .plan:hover { border-color: var(--accent); }
.modal-note { font-size: 12.5px; color: var(--muted); }
.license-form { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 14px; font-size: 14px; }
.license-form label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.inline { display: flex; gap: 8px; margin-top: 8px; }
.inline input { flex: 1; }

/* --------------------------------------------------------------- misc -- */
.center { text-align: center; }
.mt { margin-top: 18px; }
.smallprints { font-size: 12.5px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.hidden { display: none !important; }

h1, h2, h3, .brand-word, .price, .price-card h3, .card-num, .modal-card h2 { font-weight: 400; }
.hero h1 { font-weight: 400; }
.section-head h2, .studio-head h2 { font-weight: 400; }
.card h3, .price-card h3 { font-weight: 400; }
.brand-word { font-weight: 400; }

[id] { scroll-margin-top: 76px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 52px; }
  .studio-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .studio-head h2 { font-size: 30px; }
  .hero-art { display: none; }
  .studio-grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
  .cards, .price-cards { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .foot-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav-inner { padding: 12px 16px; gap: 12px; }
  .brand-word { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; }
  .badge-row { display: none; }
  .studio-head h2 { font-size: 28px; }
  .studio { padding: 34px 16px 10px; }
  .section { padding: 44px 16px; }
  .hero h1 { font-size: 38px; }
  .actions .btn { flex: 1 1 100%; }
  .types { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ landing -- */
.landing-hero { max-width: 1000px; margin: 0 auto; padding: 58px 24px 8px; }
.landing-hero h1 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.02em; margin: 10px 0 18px; font-weight: 400; }
.landing-hero .lede { max-width: 42em; }
.article { max-width: 840px; margin: 0 auto; padding: 8px 24px 56px; }
.article h2 { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin: 44px 0 12px; font-weight: 400; letter-spacing: -.01em; }
.article h3 { font-family: var(--serif); font-size: 21px; margin: 28px 0 8px; font-weight: 400; }
.article p, .article li { font-size: 16.5px; color: var(--ink-2); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.article figure { margin: 26px 0; }
.article figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article .callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 22px 0; }
.article .callout p { margin: 0; font-size: 15.5px; }
.demo-frame { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 26px 0; }
.demo-frame canvas { max-width: 100%; box-shadow: var(--shadow); background: #fff; }
.demo-frame h3 { margin-top: 0; }
.demo-frame ul { margin: 10px 0 16px; }
.demo-frame li { font-size: 15px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; }
.article th, .article td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.article th { background: var(--paper-2); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.article pre { background: #12302a; color: #e8f3ee; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.article code { font-family: var(--mono); font-size: .92em; }
.note-box { background: #fff8e9; border: 1px solid #ecd9ae; border-radius: 10px; padding: 14px 18px; margin: 20px 0; font-size: 15px; }
@media (max-width: 820px) { .demo-frame { grid-template-columns: 1fr; } }
