:root {
  --parchment: #F4EDDD;
  --parchment-card: #FBF7EC;
  --parchment-deep: #EFE7D2;
  --night: #232D3F;
  --night-soft: #A8B2C6;
  --night-faint: #7B87A0;
  --ink: #2A2317;
  --ink-soft: #6E6042;
  --ochre: #C79A3B;
  --ochre-deep: #8A6A1F;
  --ochre-text: #B07E1E;
  --clay: #7A4A2B;
  --hairline: #DCCFAA;
  --star-line: #485571;
  --star-dim: #5E6C8C;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ochre-deep); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

.serif { font-family: "Libre Caslon Text", Georgia, serif; }

/* Header */
.site-header {
  background: var(--parchment);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { width: 1.05rem; height: 1.05rem; color: var(--ochre-deep); }
.site-header nav a {
  font-size: 0.95rem;
  margin-left: 1.4rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-header nav a:hover { color: var(--ink); }

/* Night hero */
.hero {
  background: var(--night);
  text-align: center;
  padding: clamp(3rem, 9vw, 5rem) 0 clamp(2.6rem, 7vw, 4rem);
}
.hero .constellation { width: 100%; max-width: 340px; height: auto; }
.hero h1 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: #F2ECDD;
  margin: 0.9rem 0 0.9rem;
}
.hero .lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--night-soft);
  max-width: 30rem;
  margin: 0 auto;
}
.cta {
  display: inline-block;
  background: var(--ochre);
  color: #3B2C0A;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  margin-top: 1.5rem;
  transition: filter 0.15s ease;
}
.cta:hover { filter: brightness(1.06); color: #3B2C0A; }
.cta:focus-visible { outline: 2px solid #F2ECDD; outline-offset: 3px; }
.hero .phone-note { font-size: 0.86rem; color: var(--night-faint); margin: 0.8rem 0 0; }
.hero .phone-note a { color: var(--night-soft); }

/* Section scaffolding */
.section { padding: clamp(2.6rem, 7vw, 4rem) 0; }
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0 0 1.2rem;
}
.kicker.center { text-align: center; }

/* Constellation app cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.app-card {
  background: var(--parchment-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1rem;
}
.app-card svg { width: 1.35rem; height: 1.35rem; color: var(--ochre-text); }
.app-card h3 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  font-size: 1.12rem;
  margin: 0.45rem 0 0.25rem;
  color: var(--ink);
}
.app-card p { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 0.6rem; }
.status { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
.status.live { color: var(--ochre-deep); }
.status.soon { color: #9A8D66; }

/* Jane demo */
.jane { background: var(--parchment-card); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.chat { display: flex; flex-direction: column; gap: 0.5rem; max-width: 30rem; }
.bubble {
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0.6rem 0.9rem;
  max-width: 85%;
}
.bubble.you {
  align-self: flex-end;
  background: var(--ochre);
  color: #3B2C0A;
  border-radius: 14px 14px 4px 14px;
}
.bubble.jane-msg {
  align-self: flex-start;
  background: var(--parchment-deep);
  color: #4A3D22;
  border-radius: 14px 14px 14px 4px;
}
.jane .note { font-size: 0.95rem; color: var(--ink-soft); margin: 1.1rem 0 0; max-width: 32rem; }

/* Opt-in card */
.optin {
  background: var(--parchment-card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: clamp(1.5rem, 5vw, 2.25rem);
}
.optin h2 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}
.optin p.sub { margin: 0 0 1.4rem; color: var(--ink-soft); font-size: 0.98rem; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field input[type="tel"],
.field input[type="text"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 9px;
}
.field input:focus {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(199,154,59,0.18);
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.25rem 0 1.4rem;
}
.consent input { margin-top: 0.28rem; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; accent-color: var(--ochre-deep); }
.consent label { font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--parchment);
  background: var(--night);
  border-radius: 9px;
  transition: background 0.15s ease;
}
.btn:hover { background: #1A2230; }
.btn:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }

.formnote { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ochre-deep); display: none; }

/* Bundle strip */
.bundle { background: var(--night); }
.bundle .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}
.bundle h2 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: #F2ECDD;
  margin: 0;
}
.bundle p { font-size: 0.92rem; color: var(--night-soft); margin: 0.15rem 0 0; }
.bundle .pill {
  background: var(--parchment);
  color: #4A3D22;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Legal pages */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 4.5rem; }
.legal .back {
  display: inline-block;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ochre-deep);
  margin-bottom: 1.6rem;
}
.legal h1 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
}
.legal .date { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1.6rem; }
.legal hr.rule { height: 2px; background: var(--ochre); width: 4.5rem; border: 0; margin: 0 0 2.5rem; }
.legal h2 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 2.5rem 0 0.8rem;
}
.legal p { margin: 0 0 1.1rem; }
.legal ul { margin: 0 0 1.1rem; padding-left: 1.1rem; list-style: none; }
.legal li { position: relative; padding-left: 1.1rem; margin: 0 0 0.55rem; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--ochre); }
.legal strong { font-weight: 600; }
.contact-block {
  margin-top: 1rem;
  padding: 1.2rem 1.35rem;
  background: rgba(199,154,59,0.08);
  border-left: 2px solid var(--ochre);
  border-radius: 0 6px 6px 0;
  font-size: 0.97rem;
  line-height: 1.55;
}
.contact-block span { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
}
.site-footer .wrap {
  padding-top: 1.6rem;
  padding-bottom: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .copy { margin-right: auto; }
.site-footer .star { color: var(--ochre); display: inline-flex; }
.site-footer .star svg { width: 0.9rem; height: 0.9rem; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header nav a { margin-left: 1rem; }
  .app-grid { grid-template-columns: 1fr; }
  .bundle .wrap { flex-direction: column; align-items: flex-start; }
}
