:root {
  --paper-0: #fbf7ef;
  --paper-1: #f4edde;
  --paper-2: #eadfc7;
  --paper-3: #d9c7a3;
  --ink-1: #2b2420;
  --ink-2: #5c4f45;
  --ink-3: #8b7a6a;
  --accent: #9a4b2a;
  --accent-soft: #c37a52;
  --highlight: #e8d06a;
  --forest: #2f4a3a;
  --navy: #1e3a5f;
  --plum: #3a2a40;
  --ok: #5e7a4f;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(74, 54, 34, 0.16);
  color-scheme: light;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-1);
  background:
    repeating-linear-gradient(178deg, rgba(154, 75, 42, 0.018) 0 1px, transparent 1px 18px),
    var(--paper-0);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

input,
textarea,
select {
  color: var(--ink-1);
}

button {
  cursor: pointer;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(251, 247, 239, 0.88);
  border-bottom: 1px solid rgba(217, 199, 163, 0.55);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper-0);
  background: var(--forest);
  border-radius: 7px;
  font-family: Georgia, serif;
  font-size: 13px;
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, 0.18);
}

.site-nav nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--ink-2);
  font-size: 14px;
}

.nav-cta {
  justify-self: end;
  padding: 9px 15px;
  color: var(--paper-0);
  background: var(--accent);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
}

.product-stage {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(34px, 4vw, 54px) clamp(18px, 5vw, 72px) clamp(38px, 5vw, 60px);
}

.stage-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-weight: 550;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.03;
}

h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
}

h3 {
  font-size: 20px;
}

.stage-copy p:not(.eyebrow),
.pricing-copy p,
.flow-grid p,
.privacy-list p,
.price-card p {
  color: var(--ink-2);
  line-height: 1.78;
}

.stage-copy p:not(.eyebrow) {
  max-width: 45rem;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 750;
}

.primary-action {
  color: var(--paper-0);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(154, 75, 42, 0.25);
}

.secondary-action {
  color: var(--ink-1);
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
}

.local-proof,
.form-status,
.empty-copy {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(320px, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
  scroll-margin-top: 92px;
}

.phone-shell {
  position: relative;
  width: min(100%, 390px);
  min-height: 724px;
  padding: 42px 12px 12px;
  margin-inline: auto;
  background: #111;
  border-radius: 44px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.dynamic-island {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 122px;
  height: 34px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 670px;
  padding: 26px 16px 22px;
  overflow: hidden;
  background:
    repeating-linear-gradient(178deg, rgba(154, 75, 42, 0.025) 0 1px, transparent 1px 18px),
    var(--paper-0);
  border-radius: 34px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--paper-3);
  color: var(--ink-2);
  background: var(--paper-1);
  border-radius: 999px;
}

.phone-screen h2 {
  margin-top: 8px;
  font-size: 31px;
}

.daily-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  text-align: left;
  color: var(--ink-1);
  background: rgba(154, 75, 42, 0.055);
  border: 1px solid rgba(154, 75, 42, 0.15);
  border-radius: var(--radius);
}

.spark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: var(--accent);
  background: rgba(154, 75, 42, 0.1);
  border-radius: 999px;
}

.book-row {
  display: flex;
  gap: 13px;
  margin: 26px -2px 0;
  overflow: hidden;
}

.book-cover {
  position: relative;
  width: 92px;
  height: 132px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 12px 12px 16px;
  color: #eadfbd;
  border-radius: 4px;
  box-shadow: 0 10px 18px rgba(74, 54, 34, 0.18);
  border: 0;
  text-align: left;
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 208, 106, 0.75);
  border-radius: 2px;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: rgba(0, 0, 0, 0.2);
}

.book-cover span {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 700;
  line-height: 1.2;
}

.book-cover small {
  position: relative;
  z-index: 1;
  color: #d7a866;
}

.forest {
  background: var(--forest);
}

.cream {
  color: #3d2a1c;
  background: #e3d4b3;
}

.navy {
  background: var(--navy);
}

.concept-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.concept-cloud button {
  padding: 7px 12px;
  color: var(--ink-1);
  background: var(--paper-1);
  border: 1px solid rgba(154, 75, 42, 0.12);
  border-radius: 999px;
}

.concept-cloud b {
  margin-left: 4px;
  color: var(--ink-3);
  font-size: 11px;
}

.excerpt-preview {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--paper-2);
}

.excerpt-preview small {
  color: var(--ink-3);
}

.excerpt-preview p {
  margin: 6px 0 0;
  font-family: "Songti SC", Georgia, serif;
  line-height: 1.65;
}

.capture-button {
  position: static;
  min-width: 172px;
  height: 54px;
  align-self: center;
  margin-top: auto;
  color: var(--paper-0);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(154, 75, 42, 0.32);
}

.insight-panel {
  min-height: 724px;
  padding: 20px;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.4px;
}

.quote-card,
.summary-card {
  position: relative;
  margin-top: 18px;
  padding: 22px 20px;
  background: #f8efdc;
  border: 1px solid rgba(154, 75, 42, 0.16);
  border-radius: var(--radius);
}

.quote-card p {
  margin: 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: 18px;
  line-height: 1.85;
}

.tape {
  position: absolute;
  top: -10px;
  left: 22px;
  width: 56px;
  height: 20px;
  background: repeating-linear-gradient(135deg, rgba(154, 75, 42, 0.55) 0 6px, rgba(195, 122, 82, 0.55) 6px 12px);
  border-radius: 1px;
  transform: rotate(-5deg);
}

.summary-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.summary-card p {
  margin: 8px 0 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
}

.variant-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 18px;
  border-bottom: 1px solid var(--paper-3);
}

.variant-tabs button {
  min-height: 42px;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.variant-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.variant-view {
  min-height: 260px;
  margin-top: 18px;
}

.timeline-card,
.compare-grid > article,
.neighbor {
  padding: 14px;
  background: var(--paper-0);
  border: 1px solid rgba(154, 75, 42, 0.12);
  border-radius: var(--radius);
}

.timeline-card + .timeline-card {
  margin-top: 12px;
}

.timeline-card small,
.compare-grid small {
  color: var(--accent);
  font-weight: 750;
}

.timeline-card p,
.compare-grid p {
  margin: 8px 0 0;
  font-family: "Songti SC", Georgia, serif;
  line-height: 1.66;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.vs-badge {
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper-0);
  background: var(--accent);
  border-radius: 999px;
  font-family: Georgia, serif;
  font-weight: 700;
}

.graph-box {
  position: relative;
  min-height: 280px;
  background: #f8efdc;
  border: 1px solid rgba(154, 75, 42, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.graph-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(154, 75, 42, 0.16) 0.8px, transparent 1px);
  background-size: 18px 18px;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 34px;
  padding: 0 10px;
  color: var(--ink-1);
  background: var(--paper-0);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 13px;
}

.node.main {
  width: 78px;
  height: 78px;
  color: var(--paper-0);
  background: var(--accent);
  border: 0;
}

.edge {
  position: absolute;
  height: 2px;
  background: rgba(154, 75, 42, 0.34);
  transform-origin: left center;
}

.flow-section,
.privacy-section,
.pricing-section,
.web-lab {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.flow-section {
  padding-top: clamp(28px, 3vw, 42px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.lab-card {
  padding: 22px;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
}

.lab-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.lab-card textarea,
.preorder-form input,
.lab-actions select {
  width: 100%;
  border: 1px solid rgba(154, 75, 42, 0.18);
  border-radius: var(--radius);
  background: var(--paper-0);
}

.lab-card textarea {
  resize: vertical;
  min-height: 150px;
  padding: 14px;
  font-family: "Songti SC", Georgia, serif;
  line-height: 1.75;
}

.lab-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.lab-actions select {
  min-height: 48px;
  padding: 0 12px;
}

.text-button {
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.saved-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.saved-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--paper-0);
  border: 1px solid rgba(154, 75, 42, 0.12);
  border-radius: var(--radius);
}

.saved-item small {
  color: var(--accent);
  font-weight: 750;
}

.saved-item span {
  font-family: "Songti SC", Georgia, serif;
  line-height: 1.65;
}

.saved-item em {
  color: var(--ink-3);
  font-style: normal;
  font-size: 12px;
}

.flow-grid article,
.price-card {
  padding: 22px;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
}

.step-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-weight: 700;
}

.privacy-section,
.pricing-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: start;
  border-top: 1px solid rgba(217, 199, 163, 0.55);
}

.privacy-list {
  display: grid;
  gap: 10px;
}

.privacy-list p {
  margin: 0;
  padding: 16px;
  background: var(--paper-1);
  border-left: 3px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.price-card {
  max-width: 440px;
  justify-self: end;
}

.price-card span {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 1.6px;
}

.price-card strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 1;
}

.price-card .primary-action {
  width: 100%;
  margin-top: 14px;
}

.preorder-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preorder-form input {
  min-height: 46px;
  padding: 0 14px;
}

.mail-fallback {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--ink-3);
  border-top: 1px solid rgba(217, 199, 163, 0.55);
}

@media (max-width: 1040px) {
  .product-stage,
  .workspace,
  .lab-grid,
  .privacy-section,
  .pricing-section {
    grid-template-columns: 1fr;
  }

  .workspace {
    max-width: 760px;
  }

  .price-card {
    justify-self: start;
  }

  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }

  .site-nav nav {
    display: none;
  }

  .product-stage {
    min-height: min(720px, calc(100svh - 104px));
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .stage-copy p:not(.eyebrow) {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .local-proof {
    margin-top: 10px;
  }

  .primary-action,
  .secondary-action {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .workspace {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: none;
    margin-inline: -8px;
    padding: 0 8px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .phone-shell,
  .insight-panel {
    flex: 0 0 272px;
    height: 430px;
    min-height: 430px;
    max-height: 430px;
    scroll-snap-align: start;
  }

  .phone-shell {
    padding: 35px 8px 8px;
    border-radius: 32px;
  }

  .phone-screen {
    min-height: 387px;
    max-height: 387px;
    padding: 18px 12px 14px;
    border-radius: 24px;
  }

  .dynamic-island {
    top: 10px;
    width: 92px;
    height: 26px;
  }

  .app-header {
    font-size: 9px;
    letter-spacing: 0.8px;
  }

  .icon-button {
    width: 30px;
    height: 30px;
  }

  .phone-screen h2 {
    margin-top: 5px;
    font-size: 25px;
  }

  .daily-thread {
    margin-top: 12px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .spark {
    width: 28px;
    height: 28px;
  }

  .book-row {
    gap: 8px;
    margin-top: 16px;
  }

  .book-cover {
    width: 64px;
    height: 78px;
    padding: 18px 9px 10px 13px;
    font-size: 12px;
  }

  .book-cover small {
    font-size: 10px;
  }

  .concept-cloud {
    gap: 6px;
    margin-top: 14px;
  }

  .concept-cloud button {
    padding: 5px 9px;
    font-size: 12px;
  }

  .excerpt-preview {
    display: none;
  }

  .capture-button {
    min-width: 150px;
    height: 46px;
    font-size: 13px;
  }

  .insight-panel {
    padding: 14px;
    overflow: hidden;
  }

  .quote-card,
  .summary-card {
    margin-top: 12px;
    padding: 15px 14px;
  }

  .quote-card p,
  .summary-card p {
    font-size: 14px;
    line-height: 1.58;
  }

  .variant-tabs {
    margin-top: 12px;
  }

  .variant-tabs button {
    min-height: 36px;
    font-size: 12px;
  }

  .variant-view {
    margin-top: 12px;
  }

  .graph-box {
    min-height: 118px;
  }

  .node {
    min-width: 48px;
    height: 28px;
    font-size: 11px;
  }

  .node.main {
    width: 58px;
    height: 58px;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .vs-badge {
    justify-self: center;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .lab-actions {
    grid-template-columns: 1fr;
  }

  .flow-section {
    padding-top: 30px;
  }

  .site-footer {
    flex-direction: column;
  }
}
