:root {
  --bg-1: #1B1530;
  --bg-2: #2A1A35;
  --bg-3: #1F1A2E;
  --cream: #F1EAD9;
  --cream-55: rgba(241, 234, 217, 0.55);
  --cream-40: rgba(241, 234, 217, 0.40);
  --cream-35: rgba(241, 234, 217, 0.35);
  --cream-20: rgba(241, 234, 217, 0.20);
  --cream-15: rgba(241, 234, 217, 0.15);
  --cream-10: rgba(241, 234, 217, 0.10);
  --cream-06: rgba(241, 234, 217, 0.06);
  --cream-05: rgba(241, 234, 217, 0.05);
  --cyan: #32C8C8;
  --amber: #F0A020;
  --indigo: #1B1530;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad: 28px;
  --section-gap: 96px;
}

@media (min-width: 880px) {
  :root {
    --pad: 80px;
    --section-gap: 160px;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-1);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 880px) {
  html, body { font-size: 18px; }
}

body {
  min-height: 100vh;
  background:
    linear-gradient(135deg,
      var(--bg-1) 0%,
      var(--bg-2) 50%,
      var(--bg-3) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(50, 200, 200, 0.30); color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Top bar ---------- */
.topbar {
  height: 60px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--cream);
}

.nav-link {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--cream);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav-link:hover { border-bottom-color: var(--cyan); color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 60px);
  padding: 24px var(--pad) 64px;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 64px;
  }
}

.hero-copy { max-width: 520px; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
  color: var(--cream);
}
@media (min-width: 880px) {
  h1 { font-size: 68px; }
}

.hero p.lede {
  color: var(--cream-55);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 60ch;
}

.hero-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--cream-40);
}

/* ---------- Form ---------- */
.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.signup__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
@media (min-width: 560px) {
  .signup__row { flex-direction: row; }
}

.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--cream-20);
  border-radius: 12px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.signup input[type="email"]::placeholder { color: var(--cream-40); }
.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(50, 200, 200, 0.18);
}

.signup button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--cyan);
  color: var(--indigo);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.signup button:hover { background: var(--amber); }
.signup button[disabled] { opacity: 0.6; cursor: progress; }
.signup button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.signup-error {
  display: none;
  font-size: 13px;
  color: #FFB7A0;
}
.signup.is-error .signup-error { display: block; }

.signup-success {
  display: none;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(240, 160, 32, 0.35);
  background: rgba(240, 160, 32, 0.06);
  color: var(--amber);
  font-family: var(--sans);
  font-size: 15px;
}
.signup.is-done .signup__row { display: none; }
.signup.is-done .signup-success { display: inline-flex; }
.signup.is-done .signup-error { display: none; }

/* Honeypot: hidden from humans, visible to bots */
.signup .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Phone ---------- */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(241, 234, 217, 0.10), rgba(241, 234, 217, 0) 65%);
  filter: blur(40px);
}
@media (min-width: 880px) {
  .phone-glow { width: 720px; height: 720px; }
}

.phone {
  position: relative;
  max-width: 360px;
  width: 100%;
  transform: rotate(-3deg);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

@media (min-width: 880px) {
  .phone { max-width: 420px; }
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */
section.copy {
  padding: 0 var(--pad);
  margin-top: var(--section-gap);
}

.col {
  max-width: 640px;
  margin: 0 auto;
}

.what-it-is .block + .block {
  margin-top: 80px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
  color: var(--cream);
}
@media (min-width: 880px) {
  h2 { font-size: 36px; }
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 32px 0 12px;
  color: var(--cream);
}

.what-it-is p, .why p {
  color: var(--cream-55);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.why { margin-top: var(--section-gap); }
.why p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--cream);
  letter-spacing: -0.2px;
}
@media (min-width: 880px) {
  .why p { font-size: 24px; }
}

/* ---------- Second CTA ---------- */
.cta2 {
  margin-top: var(--section-gap);
  padding: 0 var(--pad);
  text-align: center;
}

.cta2 .col { max-width: 560px; }
.cta2 h2 { margin-bottom: 18px; }
.cta2 p {
  color: var(--cream-55);
  margin: 0 auto 28px;
  max-width: 50ch;
}
.cta2 .signup { max-width: 480px; margin: 0 auto; }
.cta2 .fineprint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--cream-40);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 120px;
  padding: 28px var(--pad) 48px;
  text-align: center;
}

.hairline {
  max-width: 880px;
  height: 1px;
  margin: 0 auto 28px;
  background: var(--cream-15);
}

footer .line {
  font-size: 13px;
  color: var(--cream-40);
  margin: 0;
}

footer .line a {
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease;
}
footer .line a:hover { border-bottom-color: var(--cyan); color: var(--cyan); }
footer .dot { margin: 0 10px; opacity: 0.6; }

/* ---------- Article (privacy / principles / 404) ---------- */
.article {
  padding: 32px var(--pad) 48px;
}
.article .col {
  max-width: 680px;
  margin: 0 auto;
}
.article header.page-head {
  margin: 24px 0 48px;
}
.article .eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--cream-40);
  margin: 0 0 12px;
}
.article h1 {
  font-size: 44px;
  margin: 0 0 12px;
}
@media (min-width: 880px) {
  .article h1 { font-size: 56px; }
}
.article .subhead {
  color: var(--cream-55);
  font-size: 18px;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}

.article h2 {
  font-size: 26px;
  margin-top: 56px;
  margin-bottom: 14px;
}
@media (min-width: 880px) {
  .article h2 { font-size: 30px; }
}

.article p {
  color: var(--cream-55);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
}
@media (min-width: 880px) {
  .article p { font-size: 18px; }
}

.article p strong {
  color: var(--cream);
  font-weight: 500;
}

.article a.inline {
  color: var(--cream);
  border-bottom: 1px solid var(--cream-20);
  transition: border-color .2s ease, color .2s ease;
}
.article a.inline:hover {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}

.article .meta-line {
  font-size: 13px;
  color: var(--cream-40);
  margin: 0 0 24px;
}

.article .return {
  margin-top: 64px;
  display: inline-block;
  font-size: 14px;
  color: var(--cream-55);
  border-bottom: 1px solid var(--cream-20);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.article .return:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .phone { transform: none; }
}
