:root {
  --bg: #faf7f5;
  --surface: #ffffff;
  --ink: #28415a;
  --ink-soft: #3d4e5e;
  --ink-faint: #465360;
  --line: #e7e0dc;
  --line-input: #ddd5d0;
  --cta: #8f5f69;
  --cta-hover: #7c505a;
  --rose-tint: #f5eaea;
  --rose-border: #e9d8d8;
  --how-band: #f5efec;
  --how-line: #ebe2dc;
  --green: #2e7d55;
  --lilac: #4a3f5e;
  --lilac-tint: #efe9f1;
  --green-tint: #dcede3;
  --input-bg: #fdfbfa;
  --glow-a: #f2e1d6;
  --glow-b: #d9c3ce;
  --font-heading: "Source Serif 4", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --shadow-phone: 0 26px 60px rgba(40, 65, 90, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cta);
  text-decoration: none;
}

a:hover {
  color: var(--cta-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 0 0.75rem;
  text-wrap: pretty;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.wrap {
  width: min(100% - 80px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 41px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--cta);
}

.nav-cta {
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--cta);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--cta-hover);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  height: 64px;
  padding: 0 34px;
  border-radius: 16px;
  background: var(--cta);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--cta-hover);
  color: #fff;
}

.btn-ghost {
  height: 64px;
  padding: 0 30px;
  border-radius: 16px;
  border: 1.5px solid #d9c3ce;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.btn-ghost:hover {
  background: var(--rose-tint);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.hero {
  padding: 76px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy,
.hero-actions {
  min-width: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--rose-tint);
  border: 1px solid var(--rose-border);
  margin-bottom: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.2px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  font-size: 66px;
  line-height: 1.06;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}

.hero-note {
  font-size: 18px;
  line-height: 1.5;
  max-width: 540px;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero-lead {
  font-size: 21px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 34px 0;
}

.phone-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-a) 0%, var(--glow-b) 62%, rgba(217, 195, 206, 0) 72%);
}

.phone {
  position: relative;
  width: 308px;
  height: 680px;
  border-radius: 40px;
  background: var(--bg);
  border: 1px solid #dbd4c9;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 26px;
  font-size: 13px;
  font-weight: 700;
}

.phone-body {
  flex: 1;
  padding: 8px 14px 16px;
}

.phone-greeting {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
  padding: 0 4px;
}

.phone-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 3px 0 15px;
  padding: 0 4px;
}

.phone-checkin {
  background: linear-gradient(135deg, var(--glow-a), var(--glow-b));
  border: 1px solid #e3cbc6;
  border-radius: 20px;
  padding: 17px;
}

.phone-checkin-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.phone-checkin-copy {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  margin-top: 6px;
}

.phone-checkin-cta {
  margin-top: 13px;
  height: 50px;
  border-radius: 14px;
  background: var(--cta);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-tools-label {
  padding: 20px 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.phone-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.phone-tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.phone-tool-icon--lavender {
  background: #c7b9cc;
  color: var(--lilac);
}

.phone-tool-icon--slate {
  background: #dce7ef;
  color: #2f5572;
}

.phone-tool-icon--green {
  background: var(--green-tint);
  color: var(--green);
}

.phone-tool-icon--rose {
  background: var(--rose-tint);
  color: var(--cta);
}

.phone-tool-title {
  font-size: 15px;
  font-weight: 700;
}

.phone-tool-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 1px;
}

.features {
  padding: 108px 0 0;
}

.section-intro {
  max-width: 720px;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--cta);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.features h2,
.how h2,
.register h2 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 18px;
}

.section-intro p {
  font-size: 19px;
  line-height: 1.6;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 30px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.feature-icon--rose {
  background: var(--rose-tint);
  color: var(--cta);
}

.feature-icon--lilac {
  background: var(--lilac-tint);
  color: var(--lilac);
}

.feature-icon--green {
  background: var(--green-tint);
  color: var(--green);
}

.feature-icon--slate {
  background: #dce7ef;
  color: #2f5572;
}

.feature-card h3 {
  font-size: 25px;
  margin: 0 0 12px;
}

.feature-card p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.how {
  margin-top: 112px;
  padding: 108px 0;
  background: var(--how-band);
  border-top: 1px solid var(--how-line);
  border-bottom: 1px solid var(--how-line);
}

.how h2 {
  font-size: 46px;
  line-height: 1.15;
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--cta);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.register {
  padding: 104px 0;
}

.register-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 64px 72px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.register h2 {
  font-size: 42px;
  line-height: 1.14;
}

.register-lead {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 30px;
}

.register-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.register-points li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
}

#pre-register-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field textarea {
  height: 58px;
  border: 1.5px solid var(--line-input);
  border-radius: 14px;
  padding: 0 18px;
  font: 400 17px var(--font-body);
  color: var(--ink);
  background: var(--input-bg);
}

.form-field textarea {
  height: 132px;
  padding: 16px 18px;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cta);
}

.btn-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 15px;
  color: var(--ink-faint);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--how-band);
}

.footer-inner {
  padding: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner .brand {
  font-size: 18px;
}

.footer-inner .brand img {
  width: 32px;
  height: 34px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-faint);
}

.footer-links a:hover {
  color: var(--cta);
}

.footer-copy {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-faint);
  margin: 0;
}

.legal-hero {
  padding: 56px 0 28px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.breadcrumb {
  font-size: 15px;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--cta);
}

.legal-body {
  padding: 0 0 96px;
}

.legal-body .prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.prose ul {
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45rem;
}

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

@media (max-width: 980px) {
  .wrap {
    width: min(100% - 40px, var(--max));
  }

  .hero,
  .features {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-grid,
  .feature-grid,
  .register-card,
  .form-row {
    grid-template-columns: 1fr;
  }

  .how {
    margin-top: 64px;
    padding: 56px 0;
  }

  .register {
    padding: 64px 0;
  }

  .register-card {
    padding: 36px 24px;
    gap: 36px;
  }

  .features h2,
  .how h2,
  .register h2 {
    font-size: 34px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0;
  }

  .nav {
    position: fixed;
    inset: 84px 16px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-phone);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 10px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 6px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .phone-glow {
    width: 320px;
    height: 320px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 220px;
  }
}

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