:root {
  color-scheme: light;
  --paper: #f8efdc;
  --paper-deep: #ead9bb;
  --ink: #2e261d;
  --muted: #6b5d4e;
  --line: #c8b08d;
  --route: #b84d31;
  --green: #2f6651;
  --blue: #356b7f;
  --white: #fffaf0;
  --shadow: 0 18px 50px rgba(58, 42, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(rgba(100, 76, 45, 0.055) 1px, transparent 1px) 0 0 / 100% 31px,
    radial-gradient(circle at 15% 20%, rgba(184, 77, 49, 0.08), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(47, 102, 81, 0.08), transparent 24%),
    var(--paper);
}

a {
  color: inherit;
  text-decoration-color: rgba(184, 77, 49, 0.5);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--route);
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 16px;
}

.brand,
.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--green);
  border-radius: 50%;
  position: relative;
  background: var(--paper);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: var(--route);
  left: 5px;
  top: 11px;
  transform: rotate(-28deg);
}

.nav-links,
.site-footer nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  flex-wrap: wrap;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 42px;
  position: relative;
  overflow: clip;
  padding: 48px 0 56px;
}

.route-thread {
  position: absolute;
  inset: 5% 20% auto auto;
  width: min(440px, 46vw);
  height: 320px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--route) 0 5px, transparent 6px) 7% 74% / 100% 100% no-repeat,
    radial-gradient(circle, var(--route) 0 5px, transparent 6px) 44% 38% / 100% 100% no-repeat,
    radial-gradient(circle, var(--route) 0 5px, transparent 6px) 82% 19% / 100% 100% no-repeat;
  opacity: 0.36;
}

.route-thread::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px dashed var(--route);
  border-right: 3px dashed var(--route);
  border-radius: 58% 42% 55% 45%;
  transform: rotate(-15deg);
}

.hero-copy {
  position: relative;
  max-width: 720px;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.mini-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  line-height: 0.93;
  font-weight: 700;
}

.hero h2 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.02;
  font-weight: 700;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.5);
}

.field-card,
.paper-page,
.phone-frame,
.screen-note {
  border: 1px solid rgba(91, 70, 46, 0.22);
  background: rgba(255, 250, 240, 0.7);
  box-shadow: var(--shadow);
}

.beta-card {
  position: relative;
  padding: 24px;
  border-radius: 8px;
  transform: rotate(1.5deg);
}

.stamp {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 2px solid var(--route);
  border-radius: 4px;
  color: var(--route);
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  border-top: 1px solid rgba(91, 70, 46, 0.22);
}

.intro-grid h2,
.preview-copy h2,
.trust-strip h2,
.paper-page h1,
.paper-page h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.intro-grid h2,
.preview-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.notebook-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.notebook-list article {
  min-height: 184px;
  padding: 22px 0 0;
  border-top: 2px solid var(--line);
}

.list-number {
  display: block;
  margin-bottom: 14px;
  color: var(--route);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.notebook-list h3,
.screen-note h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.notebook-list p,
.preview-copy p,
.trust-strip p,
.paper-page p,
.screen-note p {
  color: var(--muted);
}

.preview-section {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  align-items: center;
  gap: 46px;
}

.preview-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: end;
  gap: 20px;
}

.phone-frame {
  min-height: 520px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(248, 239, 220, 0.88)),
    var(--white);
}

.phone-top {
  width: 70px;
  height: 6px;
  margin: 0 auto 16px;
  border-radius: 99px;
  background: rgba(46, 38, 29, 0.22);
}

.map-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 0.76;
  object-fit: cover;
  border: 1px solid rgba(91, 70, 46, 0.18);
  border-radius: 18px;
}

.phone-caption {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.phone-caption strong {
  color: var(--ink);
}

.notes-preview {
  transform: translateY(34px);
}

.screen-note {
  padding: 18px;
  border-radius: 8px;
}

.screen-note + .screen-note {
  margin-top: 14px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 90px;
}

.trust-strip > div {
  border-left: 3px solid var(--green);
  padding-left: 20px;
}

.policy-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 86px;
}

.paper-page {
  padding: clamp(24px, 5vw, 56px);
  border-radius: 8px;
}

.paper-page h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.paper-page h2 {
  margin-top: 34px;
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.support-grid section {
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.support-grid h2 {
  margin-top: 0;
}

.updated {
  color: var(--route);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 38px;
  border-top: 1px solid rgba(91, 70, 46, 0.22);
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .site-header,
  .site-footer,
  .hero,
  .section {
    width: min(100% - 24px, 720px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .intro-grid,
  .preview-section,
  .trust-strip,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    padding: 32px 0 34px;
  }

  .route-thread {
    inset: 8% 0 auto auto;
    width: 74vw;
    opacity: 0.22;
  }

  .beta-card {
    max-width: 440px;
    padding: 18px;
    transform: none;
  }

  .stamp {
    margin-bottom: 10px;
    padding: 4px 9px;
  }

  .preview-board {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    min-height: auto;
  }

  .notes-preview {
    transform: none;
  }
}

@media (max-width: 560px) {
  .nav-links,
  .site-footer nav {
    gap: 12px;
  }

  h1 {
    font-size: 3.05rem;
    line-height: 0.96;
  }

  .hero h2 {
    font-size: 1.9rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 22px;
  }

  .button {
    width: 100%;
  }

  .notebook-list {
    grid-template-columns: 1fr;
  }

  .notebook-list article {
    min-height: auto;
  }

  .phone-frame {
    border-radius: 20px;
    padding: 14px;
  }
}
