:root {
  --bg: #fbfaf7;
  --paper: #fff;
  --ink: #242321;
  --text: #45413b;
  --muted: #746e64;
  --line: #e5ded2;
  --yellow: #f4c84a;
  --yellow-soft: #fff7d9;
  --charcoal: #25221d;
  --green: #13795b;
  --red: #a94334;
  --radius: 8px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2 + 24px));
  border-bottom: 1px solid rgba(37, 34, 29, .08);
  background: rgba(251, 250, 247, .95);
  backdrop-filter: blur(14px);
}

.brand, nav, .nav-cta, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand { gap: 10px; font-weight: 800; white-space: nowrap; }
.brand img { display: block; width: 38px; height: 38px; object-fit: contain; }
nav { gap: 24px; color: var(--muted); font-size: 15px; }
nav > a:hover, footer a:hover, footer button:hover { color: var(--ink); }

.nav-cta, .primary-button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--charcoal);
  color: #fffdf7;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 34, 29, .1);
}
.nav-cta { min-height: 40px; }
.nav-cta:hover, .primary-button:hover { background: #11100d; }
.primary-button:disabled { cursor: wait; opacity: .68; }

.hero {
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(420px, 1.12fr);
  column-gap: clamp(42px, 6vw, 82px);
  row-gap: clamp(42px, 5vw, 60px);
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 6vw, 76px) 24px clamp(62px, 7vw, 88px);
}
.hero-copy { max-width: 590px; }
.beta-heading { grid-column: 1 / -1; text-align: center; }
.beta-heading p { margin-bottom: 10px; color: #806514; font-size: 14px; font-weight: 800; }
.beta-heading h1 { position: relative; width: fit-content; margin: 0 auto 15px; font-size: clamp(46px, 5vw, 68px); line-height: 1.08; }
.beta-heading h1::after { content: ""; position: absolute; z-index: -1; right: -5px; bottom: 5px; left: -5px; height: 15px; background: var(--yellow); opacity: .72; }
.beta-heading span { color: var(--muted); font-size: 16px; }

h1, h2, p, figure { margin-top: 0; }
.hero-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(43px, 3.8vw, 54px);
  line-height: 1.11;
  letter-spacing: 0;
}
h2 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 38px); line-height: 1.18; letter-spacing: 0; }
.lede { margin-bottom: 28px; color: var(--text); font-size: clamp(18px, 1.55vw, 20px); line-height: 1.72; }
.hero-copy > .primary-button { display: flex; width: fit-content; margin-right: auto; margin-left: auto; }
.platform-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

.product-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9d1c5;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(37, 34, 29, .09);
}
.software-screenshot { display: block; width: 100%; height: auto; }
.product-preview figcaption { padding: 10px 14px; color: var(--muted); font-size: 12px; text-align: center; }

.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 100px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: clamp(68px, 8vw, 96px) 24px;
}
.section-label { margin-bottom: 10px; color: #76601d; font-size: 13px; font-weight: 800; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 17px 0; }
summary { cursor: pointer; font-weight: 800; line-height: 1.5; }
details p { margin: 12px 0 0; color: var(--muted); line-height: 1.7; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 24px 36px;
  color: var(--muted);
  font-size: 14px;
}
footer button { border: 0; padding: 0; background: transparent; cursor: pointer; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(25, 23, 20, .58); }
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}
.modal-dialog:focus { outline: none; }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: #f2efe9; color: var(--text); font-size: 25px; line-height: 1; cursor: pointer; }
.modal-heading { padding-right: 44px; }
.modal-heading h2 { font-size: clamp(26px, 5vw, 34px); }
.modal-heading > p:last-child { margin-bottom: 22px; color: var(--muted); line-height: 1.6; }
.application-form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: #39352f; font-size: 14px; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #d9d1c2; border-radius: var(--radius); padding: 10px 12px; background: #fffefa; color: var(--ink); font-size: 16px; }
textarea { min-height: 100px; resize: vertical; }
.field-helper { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.55; }
.honeypot { position: absolute; left: -9999px; }
.consent { display: flex; align-items: flex-start; font-weight: 500; line-height: 1.55; }
.consent input { width: 18px; min-height: 18px; margin-top: 2px; }
.form-helper, .form-message { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.form-helper a { text-decoration: underline; text-underline-offset: 2px; }
.form-message.success { color: var(--green); font-weight: 800; }
.form-message.error { color: var(--red); font-weight: 800; }

input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(244, 200, 74, .7); outline-offset: 2px; }

.plain-page { max-width: 940px; margin: 0 auto; padding: 56px 20px 80px; }
.plain-page h1 { font-size: clamp(36px, 5vw, 58px); }
.plain-page section { margin-top: 34px; }
.plain-page li, .plain-page p { color: var(--muted); line-height: 1.85; }

@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(360px, .9fr) minmax(380px, 1.1fr); gap: 38px; }
  .hero-copy h2 { font-size: clamp(39px, 4.5vw, 46px); }
}

@media (max-width: 800px) {
  .hero, .faq-section { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero-copy { max-width: 650px; }
  .product-preview { width: 100%; max-width: 650px; }
  .faq-section { gap: 24px; }
}

@media (max-width: 600px) {
  .site-header { min-height: 64px; padding: 9px 16px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand img { width: 34px; height: 34px; }
  nav { gap: 0; }
  nav > a { display: none; }
  .nav-cta { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .hero { gap: 38px; padding: 34px 18px 54px; }
  .beta-heading h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero-copy h2 { font-size: clamp(34px, 9.5vw, 42px); line-height: 1.16; }
  .lede { font-size: 18px; }
  .primary-button { width: 100%; min-height: 48px; }
  .faq-section { padding: 58px 18px 64px; }
  footer { padding-inline: 18px; }
  .modal { align-items: end; padding: 10px; }
  .modal-dialog { width: 100%; max-height: calc(100dvh - 20px); padding: 22px 18px; }
  .modal-close { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
