:root {
  --cream: #F0EDE3;
  --brand-green: #629924;
  --brand-green-dark: #3B6D11;
  --green-board-light: #EBECD0;
  --green-50: #EAF3DE;
  --green-border: #C0DD97;
  --green-800: #27500A;
  --pink-50: #FBEAF0;
  --text-primary: #1a1a1a;
  --text-secondary: #5F5E5A;
  --text-tertiary: #888780;
  --hairline: rgba(0,0,0,0.08);
  --max: 920px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-green-dark); }

sup {
  font-size: 0.55em;
  vertical-align: top;
  opacity: 0.5;
  letter-spacing: 0;
}

/* ---- HEADER ---- */
header.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.knight {
  color: var(--brand-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1;
}

.wordmark { letter-spacing: -0.01em; }

.cta-mini {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--brand-green-dark);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--green-border);
  background: var(--green-50);
  transition: background 120ms ease;
}
.cta-mini:hover { background: var(--green-board-light); color: var(--green-800); }

/* ---- HERO ---- */
main { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.hero {
  padding: 56px 0 72px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--brand-green-dark);
  margin: 0 0 18px;
  text-transform: none;
}

h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 720px;
}

.lede {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 0 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-block;
  background: var(--brand-green);
  color: #FFF;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 28px;
  border-radius: 999px;
  transition: opacity 120ms ease;
}
.cta-primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.cta-primary:not([aria-disabled="true"]):hover { background: var(--brand-green-dark); color: #FFF; }

.cta-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 4px;
}

/* ---- SECTIONS ---- */
section { padding: 56px 0; border-top: 1px solid var(--hairline); }

h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 32px;
}

h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--text-primary);
}

/* ---- HOW IT WORKS ---- */
.steps { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}

.steps article p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

/* ---- WHO IT'S FOR ---- */
.cards { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 22px; } }

.who {
  background: #FFF;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 24px;
}
.who p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ---- PRICING ---- */
.plans { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }

.plan {
  background: #FFF;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 26px;
}
.plan-featured {
  background: var(--green-50);
  border-color: var(--green-border);
}
.plan h3 { font-size: 19px; }
.price {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.trial {
  font-size: 12px;
  color: var(--green-800);
  margin: 0 0 14px;
}
.plan ul { padding-left: 18px; margin: 14px 0 0; }
.plan li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 6px 0;
}
.plan-featured li { color: var(--green-800); }

/* ---- STORY ---- */
.story p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 28px 56px;
  margin-top: 24px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}
footer nav a:hover { color: var(--brand-green-dark); }
.footnote {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 12px 0 0;
}

/* ---- ANDROID WAITLIST ---- */
.waitlist-hero { padding-bottom: 96px; }

.waitlist-card {
  background: #FFF;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 26px;
  max-width: 560px;
  margin-top: 40px;
}
.waitlist-card h3 { font-size: 19px; margin-bottom: 6px; }

.waitlist-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 18px;
}

.waitlist-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#waitlist-email {
  flex: 1 1 220px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 13px 20px;
  outline: none;
  min-width: 0;
}
#waitlist-email:focus {
  border-color: var(--green-border);
  background: #FFF;
}
#waitlist-email::placeholder { color: var(--text-tertiary); }

#waitlist-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
#waitlist-btn:disabled { opacity: 0.55; cursor: wait; }

#waitlist-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  border: 0;
  padding: 0;
}

#waitlist-msg {
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 2px 0;
  color: var(--text-secondary);
  min-height: 0;
}
#waitlist-msg:empty { margin: 0; }
#waitlist-msg.msg-success { color: var(--green-800); }
#waitlist-msg.msg-error { color: #A03A52; }

.waitlist-disclaimer {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-tertiary);
  margin: 18px 0 0;
}

/* ---- DOWNLOAD PAGE ---- */
.download-body {
  min-height: 100svh;
  position: relative;
}

/* Ambient piece watermarks (canonical Home pattern) */
.wm {
  position: fixed;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-primary);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.wm-knight {
  top: -36px;
  right: -48px;
  font-size: 210px;
  opacity: 0.055;
  transform: rotate(-6deg);
}
.wm-bishop {
  bottom: -30px;
  left: -36px;
  font-size: 150px;
  opacity: 0.045;
  transform: rotate(13deg);
}

.download {
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 28px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.download-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 0 20px;
}

.app-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px; /* iOS squircle-ish */
  box-shadow: 0 8px 20px rgba(39, 80, 10, 0.18), 0 2px 5px rgba(0, 0, 0, 0.06);
}

.app-name {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.app-name sup {
  font-size: 0.4em;
  vertical-align: 12px;
}

.board-figure {
  margin: 0 0 18px;
}

.board-img {
  display: block;
  width: 216px;
  height: 216px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(39, 80, 10, 0.20), 0 3px 8px rgba(0, 0, 0, 0.07);
}

.board-figure figcaption {
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--text-tertiary);
  margin-top: 10px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  color: #FFF;
  border-radius: 15px;
  padding: 14px 30px 14px 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.appstore-badge:hover,
.appstore-badge:active {
  color: #FFF;
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.apple-logo {
  width: 26px;
  height: 32px;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.badge-small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.badge-big {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.press-hint {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  margin: 14px 0 0;
  max-width: 320px;
}
.press-hint strong {
  font-weight: 500;
  color: var(--text-primary);
}

.android-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green-board-light);
  border: 1px solid var(--green-border);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 120ms ease;
}
.android-chip:hover {
  background: var(--green-50);
  color: var(--green-800);
}

.android-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-green);
  flex-shrink: 0;
}

.download-footer {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}
.download-footer nav {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.download-footer nav a:hover { color: var(--brand-green-dark); }

/* ---- LEGAL PAGES ---- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}
.legal h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.legal .meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 36px 0 12px;
}
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.legal ul { padding-left: 20px; }
.legal a { color: var(--brand-green-dark); text-decoration: underline; }
