/* Perfect Start — marketing site.
   Palette matches the Android app (mobile/.../res/values/colors.xml) so the
   site and the thing it is selling look like one product. */

:root {
  --ink: #0b0e13;
  --surface: #161b24;
  --surface-2: #1d2431;
  --line: #262f3d;
  --accent: #31d67a;
  --accent-dim: #1f8f50;
  --text: #e9edf3;
  --muted: #8a94a6;
  --warn: #ff5c5c;
  --radius: 16px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* --- Header --------------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 19, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), var(--accent-dim));
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

nav.links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

nav.links a {
  color: var(--muted);
}

nav.links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 720px) {
  nav.links {
    display: none;
  }
}

/* --- Google sign-in (not wired up yet) ------------------------------ */

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font: 600 15px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.google-btn:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.google-btn:active {
  transform: translateY(1px);
}

.google-btn svg {
  width: 18px;
  height: 18px;
}

.google-btn.lg {
  padding: 14px 24px;
  font-size: 16px;
}

header .google-btn {
  margin-left: 8px;
}

/* On a phone the header is brand + button and nothing else, so the button
   shrinks rather than pushing the wordmark onto two lines. */
@media (max-width: 520px) {
  .brand {
    font-size: 16px;
  }

  header .google-btn {
    padding: 9px 12px;
    font-size: 13px;
    gap: 8px;
  }
}

.soon-note {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  max-width: 460px;
}

.soon-note.show {
  display: block;
}

.soon-note strong {
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Hero ------------------------------------------------------------ */

.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(49, 214, 122, 0.16), transparent 65%),
    radial-gradient(700px 320px at 90% 0%, rgba(49, 214, 122, 0.07), transparent 60%);
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lede {
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* --- Sections -------------------------------------------------------- */

section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
}

section p.sub {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step .n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(49, 214, 122, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.step h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* --- Pricing --------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
  /* Stretch, so the three sign-up buttons land on one line however long the
     feature lists are. */
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(49, 214, 122, 0.09), var(--surface) 45%);
}

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

.plan h3 {
  margin: 0;
  font-size: 20px;
}

.plan .price {
  margin: 18px 0 4px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan .price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan .tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  min-height: 48px;
}

.plan ul {
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  font-size: 15px;
}

.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text);
}

.plan li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(49, 214, 122, 0.14);
  box-shadow: inset 0 0 0 1.5px var(--accent-dim);
}

.plan .plan-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.plan-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

/* --- Early access ---------------------------------------------------- */

.early {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 36px;
  display: grid;
  gap: 8px;
}

.early h2 {
  font-size: 26px;
}

.early code {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 14px;
  color: var(--accent);
}

/* --- Footer ---------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 60px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

footer .spacer {
  margin-left: auto;
}
