:root {
  --paper: #FBFAF3;
  --forest: #31412E;
  --forest-2: #415039;
  --gold: #B6AF52;
  --gold-2: #8E8E47;
  --cream: #E8E4C0;
  --muted: #698065;
  --line: #E3E0C9;
  --line-2: #CFCA8B;
  --soft: #EEEBD8;
  --white: #fff;
  --ink: #31412E;
  --sans: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 var(--sans);
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.045em; line-height: 1.05; font-weight: 700; }
.eyebrow { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px 120px; }

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.04em; }
.plane { width: 42px; height: 24px; }
.brand-link { text-decoration: none; color: var(--forest); }
.brand-link.light { color: var(--cream); }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 999px; border: 0; text-decoration: none;
  font-weight: 650; cursor: pointer; background: var(--forest); color: var(--cream);
}
.btn.line, button.btn.line { background: transparent; color: var(--forest); border: 1px solid var(--line-2); }
.btn.gold { background: var(--gold); color: var(--forest); }
.btn.danger { background: transparent; color: #8a3b28; border: 1px solid #e4c7bf; }
.text-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font-weight: 600; }

.nav, .top {
  max-width: 1160px; margin: 0 auto; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-links, .top-links { display: flex; align-items: center; gap: 22px; }
.nav-links a, .top-links a { text-decoration: none; font-weight: 600; }
.menu-btn, .menu-sheet { display: none; }

.hero { position: relative; min-height: 78vh; }
#hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy {
  position: relative; z-index: 1; max-width: 1160px; margin: 0 auto;
  min-height: 78vh; padding: 72px 28px 96px;
  display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 22px;
}
.pill {
  padding: 7px 14px; border-radius: 999px; background: rgba(251,250,243,.85);
  border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--forest-2);
}
.hero h1 { margin: 0; font-size: clamp(52px, 9vw, 124px); }
.hero-copy p { margin: 0; max-width: 34ch; font-size: clamp(18px, 2vw, 21px); color: var(--forest-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-note { font-size: 13px; color: var(--muted); }

.demo { border-radius: 28px; background: var(--forest); padding: clamp(20px, 4vw, 48px); }
.scene-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 760px; margin: 0 auto 24px; }
.scene-tabs button {
  position: relative; overflow: hidden; border: 0; cursor: pointer; border-radius: 999px;
  background: rgba(232,228,192,.08); color: var(--line-2); padding: 12px 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
}
.scene-tabs button i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-style: normal; font-size: 12px; background: rgba(232,228,192,.12);
}
.scene-tabs button.is-on { background: var(--forest-2); color: var(--cream); }
.scene-tabs button.is-on i { background: var(--gold); color: var(--forest); }
.scene-tabs button b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(182,175,82,.32); }
.browser { background: #F3F2EA; border-radius: 16px; min-height: 420px; overflow: hidden; }
.chrome-bar { display: flex; gap: 6px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chrome-bar span { width: 8px; height: 8px; border-radius: 50%; background: #DCD8C2; }
.chrome-bar em {
  flex: 1; margin-left: 8px; background: white; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-style: normal; color: var(--muted); font-size: 13px;
}
.scene { display: none; padding: 28px; min-height: 360px; }
.browser[data-show="0"] .scene-0 { display: flex; justify-content: flex-end; }
.browser[data-show="1"] .scene-1 { display: grid; grid-template-columns: 160px 1fr; gap: 18px; }
.browser[data-show="2"] .scene-2 { display: block; }
.browser[data-show="3"] .scene-3 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.pop, .share-pop { background: white; border-radius: 16px; padding: 18px; box-shadow: 0 18px 40px -18px rgba(49,65,46,.45); }
.rec-state, #demo-link, .share-pop .ghost, .rec-bar b {
  display: flex; align-items: center; justify-content: center; border-radius: 12px; padding: 12px;
  background: var(--forest); color: var(--cream);
}
.rec-state.is-live, #demo-link.is-on { background: var(--gold); color: var(--forest); }
.scene-1 aside { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.scene-1 aside .hit.is-on { background: white; color: var(--forest); font-weight: 700; border-radius: 8px; padding: 6px; }
.form-mock label { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.form-mock input { width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: white; }
.rec-bar {
  margin-top: 28px; display: flex; gap: 10px; align-items: center; width: max-content;
  background: var(--forest); color: var(--cream); border-radius: 999px; padding: 8px 8px 8px 14px;
}
.rec-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.rec-bar em { color: var(--line-2); font-style: normal; }
.scene-2 article, .scene-3 article {
  display: flex; gap: 12px; align-items: center; background: white; border: 1px solid var(--soft);
  border-radius: 12px; padding: 12px; margin: 8px 0;
}
.scene-2 article i, .scene-3 article i, .guide-public li > span, .step-edit .num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--forest); color: var(--cream); font-family: var(--mono); font-size: 12px; font-style: normal;
}
.scene-2 .editing { border-color: var(--gold); border-width: 2px; }
#demo-saved { float: right; font-size: 14px; background: var(--cream); color: var(--forest); border-radius: 999px; padding: 6px 12px; }
#demo-saved.is-on { background: var(--forest); color: var(--cream); }
.team span, .avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--gold); color: var(--forest); font-size: 12px; font-weight: 700; margin-right: -6px;
}
.team { opacity: 0; }
.team.is-on { opacity: 1; }
.pdf-file { display: none; align-items: center; gap: 8px; background: var(--forest); color: var(--cream); border-radius: 10px; padding: 10px; }
.pdf-file.is-on { display: flex; }
.pdf-file em { background: var(--gold); color: var(--forest); font-style: normal; font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 4px; }

.ki { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.ki h2, .price-head h2, .closing h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); }
.ki-table { display: grid; gap: 8px; }
.ki-table div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ki-table span { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.price-head, .work-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; flex-wrap: wrap; }
.cycle, .tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream); }
.cycle a, .tabs a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 650; }
.cycle a.is-on, .tabs a.is-on { background: white; }
.price-grid, .cards, .plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.price-card, .card, .panel {
  background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.price-card.featured { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.price-card header { display: flex; justify-content: space-between; align-items: center; }
.price-card header span { background: var(--gold); color: var(--forest); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.amount { margin: 0; font-size: 52px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.amount small, .amount em { font-size: 15px; font-style: normal; font-weight: 600; }
.price-card .fine { color: var(--muted); }
.price-card.featured .fine { color: var(--line-2); }
.recs { margin: 0; padding: 16px; border-radius: 14px; background: #F3F2EA; font-size: 28px; font-weight: 700; }
.price-card.featured .recs { background: var(--forest-2); }
.recs span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price-card li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--gold); }
.price-card .btn { margin-top: auto; }
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.closing h2 { max-width: 14ch; }
.foot {
  max-width: 1160px; margin: 0 auto; padding: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px;
}
.foot a { color: var(--muted); text-decoration: none; margin-left: 18px; }

.auth-body { min-height: 100vh; background: var(--paper); }
.auth-grid { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 520px) 1fr; }
.auth-card { padding: 36px 40px 28px; display: flex; flex-direction: column; gap: 12px; }
.auth-legal { margin-top: auto; }
.auth-legal a { color: var(--muted); }
.code-input { font-family: var(--mono); letter-spacing: 0.4em; font-size: 22px; text-align: center; }
.resend { text-align: center; color: var(--forest-2); }
.resend .text-btn { font-weight: 700; border-bottom: 1px solid var(--gold); }
.auth-card h1 { margin: 18px 0 0; font-size: 40px; }
.lead { color: var(--forest-2); }
.stack { display: grid; gap: 12px; }
.stack label, .project-pick { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.stack input, .stack select, .inline input, .inline select, .new-project input, .toolbar input, .title-input, textarea {
  width: 100%; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 72px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 4px; }
.switch, .form-row { color: var(--muted); }
.auth-aside {
  background: var(--forest); color: var(--cream); padding: 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.auth-aside h2 { margin: 0; font-size: clamp(36px, 4vw, 64px); max-width: 12ch; }
.steps-aside { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps-aside li { display: flex; gap: 14px; }
.steps-aside span { font-family: var(--mono); color: var(--gold); }
.steps-aside p { margin: 0; color: var(--line-2); }
.aside-note { color: var(--line-2); }
.welcome-list { padding-left: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.app-body { background: var(--paper); }
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side {
  background: var(--forest); color: var(--cream); padding: 22px 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.side a { color: var(--cream); text-decoration: none; }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-foot a { padding: 8px 10px; border-radius: 10px; display: flex; gap: 8px; align-items: center; }
.side-nav a.is-on, .side-nav a:hover { background: rgba(232,228,192,.1); }
.side-nav i { width: 8px; height: 8px; border-radius: 50%; }
.new-project { display: flex; gap: 6px; }
.new-project input { background: transparent; color: var(--cream); border-color: rgba(232,228,192,.3); }
.new-project button { border: 0; border-radius: 10px; background: var(--gold); color: var(--forest); font-weight: 700; padding: 0 12px; cursor: pointer; }
.month-count { margin: 0; color: var(--line-2); font-size: 13px; }
.side-foot { margin-top: auto; display: grid; gap: 4px; }
.nav-toggle, .nav-open { display: none; }
.workspace { padding: 28px; }
.work-head h1 { margin: 0; font-size: 40px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 18px 0; }
.toolbar input { max-width: 280px; }
.toolbar a { text-decoration: none; font-weight: 650; }
.toolbar a.is-on { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { text-decoration: none; color: inherit; }
.card-cover { display: block; height: 120px; border-radius: 14px; background: #F3F2EA; overflow: hidden; }
.card-cover img { width: 100%; height: 120px; object-fit: cover; }
.swatch { width: 28px; height: 4px; border-radius: 99px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide-list a { display: grid; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.guide-list span, .card span { color: var(--muted); font-size: 13px; }
.empty-block { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 36px; max-width: 560px; }
.record-steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.record-steps li { display: flex; gap: 14px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.record-steps span, .people .avatar { background: var(--forest); color: var(--cream); }
.record-steps span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.title-input { font-size: 32px; font-weight: 700; letter-spacing: -0.04em; }
.grow { flex: 1; }
.share-box, .panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 16px 0; }
.share-link { display: flex; gap: 8px; }
.step-edit { list-style: none; padding: 0; display: grid; gap: 12px; }
.step-edit li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.step-edit .is-note { background: #F7F6EE; }
.step-main img { width: 100%; border-radius: 10px; margin-bottom: 8px; }
.step-tools { display: grid; gap: 6px; align-content: start; }
.step-tools button { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.is-blurred { filter: blur(10px); }
.narrow { max-width: 520px; }
.token-once { display: flex; gap: 8px; }
.plain { list-style: none; padding: 0; }
.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.people { list-style: none; padding: 0; display: grid; gap: 10px; }
.people li { display: flex; gap: 12px; align-items: center; }
.people em { margin-left: auto; color: var(--muted); font-style: normal; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-pick { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; }
.plan-pick.is-on { border-color: var(--forest); background: #F7F6EE; }
.flash { padding: 12px 14px; border-radius: 12px; }
.flash.ok { background: #E7EFE4; }
.flash.bad { background: #F8E8E2; }
.sheet { max-width: 760px; margin: 0 auto; padding: 12px 28px 80px; }
.sheet h2 { font-size: 28px; margin-top: 28px; }
.guide-public { max-width: 800px; margin: 0 auto; padding: 32px 20px 80px; }
.guide-public ol { list-style: none; padding: 0; display: grid; gap: 18px; }
.guide-public li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.guide-public img { border-radius: 12px; border: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 8px 14px; }
  .menu-sheet[hidden] { display: none; }
  .menu-sheet { display: grid; padding: 8px 28px 24px; }
  .menu-sheet a { text-decoration: none; font-size: 32px; font-weight: 700; letter-spacing: -0.04em; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ki, .price-grid, .auth-grid, .app-shell, .browser[data-show="1"] .scene-1, .browser[data-show="3"] .scene-3 { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .scene-tabs { grid-template-columns: 1fr 1fr; }
  .nav-open { display: inline-flex; margin-bottom: 12px; }
  .side { display: none; }
  .nav-toggle:checked ~ .app-shell { grid-template-columns: 1fr; }
  .nav-toggle:checked ~ .app-shell .side { display: flex; }
  .step-edit li { grid-template-columns: 1fr; }
}

@media print {
  .brand-link { break-after: avoid; }
  .guide-public { max-width: none; }
  .is-blurred { filter: blur(8px); }
}
