/* Morning Surprise — website styles. Night sky to sunrise, like the app. */
:root {
  --night: #0d0e26;
  --dusk: #231a47;
  --plum: #3b2160;
  --sunrise: #ffa24c;
  --coral: #ff6b6b;
  --glow: #ffe3b0;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --card: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.14);
  --radius: 22px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--night);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 50% 115%, rgba(255, 162, 76, 0.35), transparent 60%),
    radial-gradient(900px 500px at 85% -10%, rgba(59, 33, 96, 0.9), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--dusk) 55%, #3a2155 100%);
}
img { max-width: 100%; display: block; }
a { color: var(--glow); }
a:hover { color: var(--sunrise); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ── Header ───────────────────────────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(13, 14, 38, 0.72);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--glow); font-weight: 900; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
nav.links { margin-left: auto; display: flex; gap: 18px; align-items: center; }
nav.links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
nav.links a:hover { color: var(--text); }
nav.links a.btn, nav.links a.btn:hover { color: var(--night); }
.btn { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 1rem; } .brand img { width: 30px; height: 30px; } nav.links .btn.small { padding: 8px 12px; font-size: 0.85rem; } }
@media (max-width: 720px) { nav.links a.hide-sm { display: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 1rem; text-decoration: none;
  color: var(--night);
  background: linear-gradient(90deg, var(--glow), var(--sunrise));
  box-shadow: 0 10px 30px rgba(255, 162, 76, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--night); box-shadow: 0 14px 34px rgba(255, 162, 76, 0.45); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { color: var(--text); background: var(--card); }
.btn.small { padding: 9px 16px; font-size: 0.9rem; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--glow); font-weight: 800; font-size: 0.85rem; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); line-height: 1.05; margin: 16px 0 14px; font-weight: 900; letter-spacing: -0.02em; }
h1 .sun { background: linear-gradient(90deg, var(--glow), var(--sunrise), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* Phone mock-up showing a morning surprise */
.phone {
  justify-self: center;
  width: min(320px, 82vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  padding: 12px;
  background: #07081a;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(255, 162, 76, 0.25);
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background:
    radial-gradient(140% 70% at 50% 100%, #ffb36b 0%, #ff7a59 30%, #8e3f7a 60%, #2b1d55 85%),
    #2b1d55;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.screen .sunball { position: absolute; left: 50%; top: 34%; width: 130px; height: 130px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fff3d1 0%, #ffd27a 45%, rgba(255, 162, 76, 0) 72%); animation: pulse 3.2s ease-in-out infinite; }
.screen .mountains { position: absolute; left: -20%; right: -20%; bottom: 0; height: 48%; background:
  radial-gradient(60% 55% at 25% 100%, rgba(32, 18, 66, 0.95) 98%, transparent 100%),
  radial-gradient(65% 45% at 80% 100%, rgba(22, 13, 50, 0.97) 98%, transparent 100%),
  linear-gradient(0deg, rgba(10, 8, 30, 0.9), transparent 70%); }
.screen .time { position: absolute; top: 26px; left: 0; right: 0; text-align: center; font-size: 3rem; font-weight: 300; }
.screen .caption { position: relative; font-weight: 900; font-size: 1.05rem; line-height: 1.35; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.screen .chip { position: relative; display: inline-block; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); color: var(--glow); font-weight: 800; font-size: 0.75rem; }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(0.94); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .screen .sunball { animation: none; } html { scroll-behavior: auto; } }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 64px 0; }
section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 10px; font-weight: 900; letter-spacing: -0.01em; }
section .sub { color: var(--muted); margin: 0 0 30px; max-width: 640px; font-size: 1.08rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card .ico { font-size: 1.9rem; }
.card h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps .card::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sunrise); color: var(--night); font-weight: 900; margin-bottom: 6px; }

/* Pricing */
.prices { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }
.price { display: flex; flex-direction: column; }
.price.best { border: 2px solid var(--sunrise); box-shadow: 0 0 60px rgba(255, 162, 76, 0.18); }
.price .tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--sunrise); color: var(--night); font-weight: 900; font-size: 0.8rem; }
.price .amount { font-size: 2.3rem; font-weight: 900; margin: 6px 0 0; }
.price .per { color: var(--muted); font-weight: 700; }
.price ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.price li { padding: 6px 0 6px 28px; position: relative; color: var(--muted); }
.price li::before { content: "✓"; position: absolute; left: 4px; color: var(--sunrise); font-weight: 900; }
.price li.no::before { content: "–"; color: var(--muted); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--sunrise); font-weight: 900; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 14px; }

/* Forms */
form.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 800; font-size: 0.92rem; margin: 0 0 6px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25); color: var(--text); font: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sunrise); outline-offset: 1px; }
select option { color: #000; }
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--muted); margin: 8px 0; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--sunrise); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.2); font-weight: 700; cursor: pointer; margin: 0; }
.chips input { width: auto; accent-color: var(--sunrise); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap */
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 800; display: none; }
.msg.ok { display: block; background: rgba(120, 220, 140, 0.15); border: 1px solid rgba(120, 220, 140, 0.4); }
.msg.err { display: block; background: rgba(255, 107, 107, 0.15); border: 1px solid rgba(255, 107, 107, 0.45); }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin: 34px 0 8px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: rgba(255, 255, 255, 0.86); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--border); }
.legal th { color: var(--glow); }
.table-scroll { overflow-x: auto; }
.callout { background: rgba(255, 162, 76, 0.12); border: 1px solid rgba(255, 162, 76, 0.4); border-radius: 16px; padding: 14px 16px; }

/* Invite code */
.code { font-size: clamp(2.4rem, 9vw, 4rem); letter-spacing: 0.25em; font-weight: 900; text-align: center; padding: 18px; border-radius: var(--radius); background: var(--card); border: 2px dashed var(--sunrise); margin: 18px 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--border); padding: 34px 0 44px; color: var(--muted); font-size: 0.92rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .copy { margin-left: auto; }
@media (max-width: 720px) { footer.site .copy { margin-left: 0; width: 100%; } }

/* Anchors land below the sticky header; wide tables scroll sideways on phones. */
section[id] { scroll-margin-top: 72px; }
.table-scroll table { min-width: 640px; }
