/* Nudge website. One stylesheet, no build step, no scripts except on the invite page. */
:root {
  --indigo: #4b3fe0;
  --glow: #8f82ff;
  --deep: #211b94;
  --sky: #5fc8ff;
  --blush: #ff3d6e;
  --ink: #17134f;
  --text: #1c1b2e;
  --muted: #5d5b76;
  --line: #e6e4f5;
  --paper: #ffffff;
  --wash: #f4f3fb;
  --green: #248a3d;
  --radius: 28px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--wash);
}

img { max-width: 100%; display: block; }
a { color: var(--indigo); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

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

/* The brand mesh: indigo lit from the top left, a cool glow top right, a warm one bottom right. */
.mesh {
  color: #fff;
  background:
    radial-gradient(60% 60% at 92% 96%, rgba(255, 61, 110, 0.55), rgba(255, 61, 110, 0) 70%),
    radial-gradient(60% 60% at 95% 5%, rgba(95, 200, 255, 0.45), rgba(95, 200, 255, 0) 70%),
    radial-gradient(95% 95% at 18% 12%, var(--glow) 0%, var(--indigo) 55%, var(--deep) 100%);
}

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--rounded); font-weight: 700; font-size: 22px; letter-spacing: -0.3px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { color: inherit; text-decoration: none; opacity: 0.9; }
.nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero { padding: 28px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero h1 { font-family: var(--rounded); font-size: clamp(38px, 6.2vw, 64px); line-height: 1.04; letter-spacing: -1.2px; margin: 24px 0 18px; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); max-width: 34em; margin: 0 0 28px; color: rgba(255, 255, 255, 0.88); }
.hero-copy { padding-bottom: 64px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 14px; color: rgba(255, 255, 255, 0.78); margin-top: 14px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.button.white { background: #fff; color: var(--indigo); }
.button.ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.button.solid { background: var(--indigo); color: #fff; }
.button.quiet { background: var(--wash); color: var(--indigo); }
.button[aria-disabled="true"] { cursor: default; }

/* A phone, drawn in CSS around a real screenshot. */
.phone { width: min(320px, 78vw); margin: 0 auto; border-radius: 46px 46px 0 0; padding: 10px 10px 0; background: #0d0b2a; box-shadow: 0 30px 80px rgba(8, 5, 50, 0.45); }
.phone img { border-radius: 37px 37px 0 0; width: 100%; height: auto; }
.phone.whole { border-radius: 46px; padding: 10px; box-shadow: 0 24px 60px rgba(33, 27, 148, 0.22); }
.phone.whole img { border-radius: 37px; }
.hero .phone { max-height: 560px; overflow: hidden; }

/* Sections */
section { padding: 72px 0; }
.sheet { background: var(--paper); border-radius: 36px 36px 0 0; margin-top: -36px; position: relative; }
h2 { font-family: var(--rounded); font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.6px; margin: 0 0 12px; color: var(--ink); }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 19px; max-width: 38em; margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--wash); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps h3, .card h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.steps p, .card p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip .text { order: 2; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.card { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card.featured { border: 2px solid var(--indigo); box-shadow: 0 18px 50px rgba(75, 63, 224, 0.16); }
.price { font-family: var(--rounded); font-size: 40px; font-weight: 700; color: var(--ink); margin: 10px 0 2px; letter-spacing: -0.8px; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.card .ticks { margin-top: 18px; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo); background: #e9e6ff; border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 0 22px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--indigo); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; color: var(--muted); }

/* Closing band and footer */
.band { text-align: center; padding: 80px 0; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.86); font-size: 19px; margin: 0 auto 26px; max-width: 30em; }
.band .cta { justify-content: center; }

footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 36px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Text pages: privacy, terms, support */
.page-head { padding-bottom: 76px; }
.page-head h1 { font-family: var(--rounded); font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.8px; margin: 28px 0 8px; }
.page-head p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.doc { max-width: 760px; padding-top: 44px; padding-bottom: 72px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; letter-spacing: -0.3px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; color: var(--ink); }
.doc p, .doc li { color: #33324a; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.callout { background: var(--wash); border-radius: 20px; padding: 18px 22px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); }

/* Invite page */
.invite { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; }
.invite-card { background: var(--paper); color: var(--text); border-radius: 36px; padding: 34px 28px; width: min(440px, 100%); text-align: center; box-shadow: 0 30px 80px rgba(8, 5, 50, 0.4); }
.invite-card img.icon { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 18px; }
.invite-card h1 { font-family: var(--rounded); font-size: 30px; letter-spacing: -0.5px; margin: 0 0 8px; color: var(--ink); }
.invite-card p { color: var(--muted); margin: 0 0 20px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 34px; font-weight: 700; letter-spacing: 0.24em; color: var(--ink); background: var(--wash); border-radius: 18px; padding: 16px 10px 16px 18px; margin: 0 0 20px; }
.invite-card .button { width: 100%; margin-bottom: 10px; font-size: 16px; padding: 0 14px; }
.invite-steps { text-align: left; margin: 18px 0 0; padding-left: 22px; color: var(--muted); font-size: 15px; }
.invite-steps li { margin-bottom: 6px; }

@media (max-width: 820px) {
  .hero-grid, .split, .plans, .steps { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 36px; }
  .split.flip .text { order: 0; }
  .nav { gap: 16px; font-size: 14px; }
  section { padding: 56px 0; }
  .split { gap: 32px; }
}

@media (max-width: 420px) {
  .nav a.optional { display: none; }
}

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