/* ========== Base ========== */
:root {
  --navy: #081a28;
  --navy2: #102c38;
  --cream: #f9f6ef;
  --mint: #c5e4ce;
  --gold: #f1ba78;
  --ink: #122e3b;
  --muted: #b3c1c6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: #f7f6f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 10;
}

/* ========== Header & navigation ========== */
.site-header {
  max-width: 1240px;
  margin: auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  height: 43px;
  width: 43px;
  border: 1px solid #91acaa;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 27px;
  color: var(--mint);
  position: relative;
}

.brand-mark .dot {
  font-size: 10px;
  position: absolute;
  right: 5px;
  top: 3px;
  color: var(--gold);
}

.brand-text,
.footer-brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1.4px;
}

.brand-text span,
.footer-brand span {
  color: var(--mint);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  color: #d0dce0;
}

nav>a:hover {
  color: #fff;
}

.nav-cta {
  border: 1px solid #57727c;
  padding: 13px 18px;
  border-radius: 99px;
}

.nav-cta span {
  margin-left: 13px;
  color: var(--gold);
}

/* ========== Hero ========== */
.hero {
  max-width: 1240px;
  margin: auto;
  min-height: 675px;
  padding: 64px 40px 105px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 55px;
}

.eyebrow,
.kicker,
.form-overline {
  font-size: 11px;
  letter-spacing: 2.2px;
  font-weight: 800;
  color: var(--mint);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #b9e7c2;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #b9e7c21b;
}

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

h1,
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -2px;
}

h1 {
  font-size: clamp(54px, 5.5vw, 84px);
  line-height: 1.06;
  margin: 24px 0 26px;
  max-width: 660px;
}

h1 em,
h2 em {
  color: var(--mint);
  font-weight: 400;
}

.lede {
  font-size: 17px;
  line-height: 1.85;
  color: #c1cdd0;
  max-width: 490px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.primary-button {
  background: var(--mint);
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
  padding: 18px 23px;
  border-radius: 6px;
  display: inline-flex;
  gap: 30px;
  align-items: center;
  white-space: nowrap;
}

.primary-button:hover,
.submit-button:hover {
  background: #def3e1;
}

.subnote {
  font-size: 12px;
  color: #9caeb5;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 55px;
  margin-top: 66px;
}

.hero-stats div {
  display: grid;
  gap: 6px;
}

.hero-stats strong {
  font-size: 15px;
}

.hero-stats span {
  font-size: 12px;
  color: #8fa3ab;
}

.hero-art {
  position: relative;
  padding: 24px;
}

.art-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #c7a47d3c, transparent 66%);
  filter: blur(15px);
}

.art-frame {
  position: relative;
  border: 1px solid #8da7a055;
  border-radius: 180px 180px 12px 12px;
  overflow: hidden;
  box-shadow: 0 30px 100px #0008;
  aspect-ratio: .91;
  transform: rotate(2deg);
}

.art-frame img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(.96);
}

.art-tag {
  position: absolute;
  bottom: -4px;
  left: -10px;
  background: #f4efe3;
  color: var(--ink);
  padding: 15px 20px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 14px 30px #0004;
  transform: rotate(-3deg);
}

.art-tag span {
  color: #bb794d;
  margin-right: 10px;
}

/* ========== Features ========== */
.features {
  background: var(--cream);
  color: var(--ink);
  padding: 90px 40px 100px;
}

.section-head {
  max-width: 800px;
  text-align: center;
  margin: 0 auto 52px;
}

.section-head .kicker {
  color: #43816e;
}

.section-head h2,
.waitlist-intro h2 {
  font-size: clamp(42px, 4vw, 61px);
  margin: 17px 0;
}

.section-head h2 em {
  color: #538b77;
}

.section-head p {
  color: #667780;
  line-height: 1.8;
}

.feature-grid {
  max-width: 1160px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  border: 1px solid #dce2dd;
  border-radius: 10px;
  padding: 35px;
  background: #fffdf8;
}

.feature-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e7f1e9;
  color: #487e6c;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 28px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.feature p {
  color: #667780;
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
}

/* ========== Waitlist section & form ========== */
.waitlist-section {
  max-width: 1240px;
  margin: auto;
  padding: 115px 40px 125px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
  align-items: center;
}

.waitlist-intro h2 {
  line-height: 1.15;
  margin: 25px 0;
}

.waitlist-intro p {
  color: #b3c3c7;
  line-height: 1.9;
  font-size: 16px;
  max-width: 450px;
}

.promise {
  color: #c6decf;
  margin-top: 35px;
  font-size: 13px;
}

.promise span {
  margin-right: 8px;
}

.form-card {
  background: #fffdf8;
  color: var(--ink);
  padding: 38px;
  border-radius: 12px;
  box-shadow: 0 25px 80px #0005;
}

.form-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 27px;
}

.form-spark {
  font-size: 29px;
  color: #bc8154;
  background: #f7eadb;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.form-overline {
  color: #528474;
  font-size: 10px;
}

.form-top h3 {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  margin: 5px 0 0;
}

form {
  display: grid;
  gap: 9px;
}

form label:not(.consent) {
  font-size: 12px;
  font-weight: 750;
  margin-top: 10px;
}

form label span {
  color: #ba7857;
}

form input:not([type=checkbox]),
form select {
  width: 100%;
  height: 46px;
  border: 1px solid #d7dfda;
  border-radius: 5px;
  background: #fff;
  color: #163342;
  padding: 0 13px;
  font: inherit;
  font-size: 13px;
}

form input:focus,
form select:focus {
  outline: 2px solid #83bca2;
  outline-offset: 1px;
}

.optional {
  color: #82938f;
  font-weight: 400;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 11px;
  line-height: 1.7;
  color: #60736f;
  margin: 14px 0 8px;
}

.consent input {
  margin-top: 3px;
  accent-color: #39785f;
}

.consent a {
  text-decoration: underline;
  color: #356e59;
}

.submit-button {
  background: var(--navy2);
  color: white;
  border: 0;
  border-radius: 5px;
  padding: 16px 19px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 750;
  font-size: 13px;
}

.submit-button:hover {
  background: #214655;
  color: white;
}

.submit-button:disabled {
  opacity: .65;
  cursor: wait;
}

.form-message {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.form-message.success {
  color: #287650;
}

.form-message.error {
  color: #b14337;
}

.form-foot {
  font-size: 11px;
  color: #8b9b97;
  text-align: center;
  margin: 18px 0 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========== Footer ========== */
footer {
  border-top: 1px solid #25404a;
  max-width: 1240px;
  margin: auto;
  padding: 34px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 22px;
}

.footer-brand small {
  display: block;
  color: #92a6ad;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 11px;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 25px;
  font-size: 12px;
  color: #a7bac0;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ========== Notice popup & legal page ========== */
body.modal-open {
  overflow: hidden;
}

#notice-dialog {
  /* Colors matched to the cream waitlist form card */
  --nd-bg: #fffdf8;
  --nd-text: var(--ink);
  --nd-border: #dce2dd;
  --nd-hover: #e7f1e9;
  --nd-link: #356e59;
  --nd-button-bg: var(--navy2);
  --nd-button-bg-hover: #214655;

  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nd-bg);
  color: var(--nd-text);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

#notice-dialog::backdrop {
  background: rgba(8, 26, 40, 0.72);
}

#notice-dialog .nd-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}

#notice-dialog .nd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--nd-border);
}

/* The global h2 rule uses letter-spacing: -2px, far too tight at this size */
#notice-dialog h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: inherit;
}

#notice-dialog .nd-x {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 4px 10px;
}

#notice-dialog .nd-x:hover,
#notice-dialog .nd-x:focus-visible {
  background: var(--nd-hover);
}

#notice-dialog .nd-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8;
}

#notice-dialog .nd-body p {
  margin: 0 0 1em;
}

#notice-dialog .nd-body p:last-child {
  margin-bottom: 0;
}

#notice-dialog .nd-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--nd-border);
  text-align: right;
}

/* Matches .submit-button */
#notice-dialog .nd-close {
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: var(--nd-button-bg);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 13px 26px;
}

#notice-dialog .nd-close:hover,
#notice-dialog .nd-close:focus-visible {
  background: var(--nd-button-bg-hover);
}

/* The global a rule removes underlines and color, so restore them for text links */
.text-link {
  text-decoration: underline;
}

#notice-dialog .text-link {
  color: var(--nd-link);
}

/* Standalone /privacy.html page (dark background) */
.legal-page {
  max-width: 800px;
  margin: 60px auto 120px;
  padding: 0 24px;
  line-height: 1.9;
}

.legal-page h1 {
  font-size: clamp(38px, 7vw, 52px);
}

.legal-page .text-link {
  color: var(--mint);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero {
    gap: 18px;
    min-height: 0;
  }
  .hero-stats {
    gap: 20px;
  }
  .waitlist-section {
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 20px;
  }
  .site-header nav>a:first-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 45px 22px 70px;
    gap: 45px;
  }
  .hero-copy {
    order: 1;
  }
  .hero-art {
    order: 2;
    max-width: 480px;
    margin: auto;
  }
  .hero-stats {
    margin-top: 42px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .features {
    padding: 70px 22px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .waitlist-section {
    grid-template-columns: 1fr;
    padding: 75px 22px;
    gap: 38px;
  }
  .form-card {
    padding: 26px;
  }
  footer {
    padding: 28px 22px;
    gap: 20px;
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-links {
    justify-content: flex-start;
  }
  h1 {
    font-size: 58px;
  }
}

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