/* FamilyFlow — familyflowapps.com
   Palette borrowed from the RNDM badge (navy/teal/yellow) so the studio and
   the channel read as one house. Hexes sampled from site/logos/avatar-*.png.
   Contrast is checked, not eyeballed: white on teal is only 3.36:1, so teal
   buttons carry navy text — never white. */
:root {
  --bg: #0c1b2a;
  --bg-card: #12263b;        /* the RNDM navy, exact */
  --bg-raise: #1a3654;
  --ink: #edf2f7;            /* 15.46:1 on --bg */
  --ink-dim: #92a8be;        /*  7.10:1 on --bg */
  --brand: #029c9f;          /* RNDM teal, exact */
  --brand-hi: #2fbebf;       /*  7.66:1 on --bg — links use this */
  --accent: #f4b324;         /* RNDM yellow, exact — 9.39:1 on --bg */
  --accent-hi: #ffc53d;
  --line: #1e3a57;
  --ok: #34d399;
  --err: #f87171;
  --radius: 14px;
  --max: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

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

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 27, 42, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.logo {
  font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: 0.2px;
  display: inline-flex; align-items: center; gap: 9px;
  flex: none; white-space: nowrap;   /* never let the nav squeeze it into the links */
}
.logo span { color: var(--accent); }        /* yellow, like the RNDM wordmark */
.logo .mark { width: 28px; height: 28px; border-radius: 7px; display: block; }
.logo:hover { text-decoration: none; }
.nav-links { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--ink-dim); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
/* Primary CTA is the yellow — navy on yellow is 8.29:1, and it carries the
   warmth the indigo never did. Never white-on-teal (3.36:1, fails AA). */
.btn {
  display: inline-block; background: var(--accent); color: #12263b !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; border: 0;
  font-size: 15px; cursor: pointer;
  white-space: nowrap;   /* a wrapped label + the pill radius renders as a circle */
}
.btn:hover { background: var(--accent-hi); text-decoration: none !important; }
.btn.teal { background: var(--brand); color: #0c1b2a !important; }
.btn.teal:hover { background: var(--brand-hi); }
.btn.big { padding: 14px 26px; font-size: 17px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink) !important; }
.btn.ghost:hover { border-color: var(--brand-hi); background: rgba(2, 156, 159, 0.10); }

/* Hero */
header.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero .glow {
  position: absolute; inset: -40% -20% auto; height: 480px; pointer-events: none;
  background: radial-gradient(600px 260px at 50% 20%, rgba(2, 156, 159, 0.22), transparent 70%);
}
h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.12; margin: 0 0 16px; font-weight: 850; }
/* single-hue on purpose: any yellow-to-teal blend passes through olive */
.grad { background: linear-gradient(90deg, var(--accent-hi), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--ink-dim); font-size: clamp(16px, 2.6vw, 19px); max-width: 640px; margin: 0 auto 28px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand-hi); margin-bottom: 14px; }

/* Waitlist form */
.wl { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 auto; max-width: 520px; }
.wl input[type="email"], .field input, .field textarea {
  background: var(--bg-card); border: 1px solid var(--line); color: var(--ink);
  padding: 13px 16px; border-radius: 999px; font-size: 16px; flex: 1 1 260px; min-width: 0;
}
.wl input:focus, .field input:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.form-note { font-size: 13px; color: var(--ink-dim); margin-top: 10px; }
.form-msg { margin-top: 12px; font-weight: 600; min-height: 24px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
.lead { color: var(--ink-dim); max-width: 640px; margin: 0 0 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.num {
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(244, 179, 36, 0.16); color: var(--accent); font-weight: 800;
  align-items: center; justify-content: center; margin-bottom: 12px; font-size: 15px;
}
.emoji { font-size: 26px; display: block; margin-bottom: 10px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(244, 179, 36, 0.16); color: var(--accent); margin-bottom: 10px; }
.tag.soon { background: rgba(2, 156, 159, 0.16); color: var(--brand-hi); }
.card .addon { margin-top: 10px; font-size: 13.5px; color: var(--brand-hi); }

/* 4 cards in a 3-col auto-fit grid leave a 3+1 orphan; pair them up instead */
@media (min-width: 760px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }

/* A card that is itself a link (blog listings): heading stays ink, whole card
   lifts on hover — otherwise the h3 inherits the teal link color */
a.card { color: var(--ink); display: block; }
a.card:hover { text-decoration: none; border-color: var(--brand-hi); background: var(--bg-raise); }

/* The real RNDM badge, not a stand-in — same file the channels use */
.hero-badge { width: 140px; height: 140px; border-radius: 32px; display: block; margin: 0 auto 18px; }

/* Fleet tiles in the /apps hero — reuses the shipped icons rather than baking
   a second copy of them into another SVG */
.fleet-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 620px; margin: 30px auto 10px;
}
.fleet-strip img { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); }
.strip-note { color: var(--ink-dim); font-size: 13.5px; margin: 0 0 4px; }

/* Button pair under a section */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* Banner strip */
.strip {
  background: linear-gradient(90deg, rgba(2, 156, 159, 0.16), rgba(244, 179, 36, 0.10));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.strip h3 { margin: 0 0 4px; }
.strip p { margin: 0; color: var(--ink-dim); }

/* RNDM page */
.rndm-links { display: grid; gap: 12px; max-width: 460px; margin: 30px auto 0; }
.rndm-links a {
  display: flex; align-items: center; gap: 14px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  color: var(--ink); font-weight: 700; font-size: 17px;
}
.rndm-links a:hover { border-color: var(--brand-hi); text-decoration: none; background: var(--bg-raise); }
.rndm-links .ic { width: 26px; display: inline-flex; align-items: center;
  justify-content: center; color: var(--brand-hi); flex: none; }
.rndm-links a:hover .ic { color: var(--accent); }
.rndm-links .h { margin-left: auto; color: var(--ink-dim); font-weight: 500; font-size: 13px; }

/* Legal + prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.prose h1 { font-size: 32px; }
.prose h2 { font-size: 21px; margin-top: 34px; }
.prose p, .prose li { color: #c2d2e0; font-size: 15.5px; }
.prose .eff { color: var(--ink-dim); font-size: 14px; }

/* Support + project forms */
.field { display: block; margin-bottom: 14px; }
/* The markup is <label class="field"><span>…</span><input>, so the caption is
   the direct span — `.field label` matched nothing and left labels unstyled. */
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-dim); }
.field input, .field textarea, .field select { width: 100%; border-radius: 12px; font-family: inherit; }
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  background: var(--bg-card); border: 1px solid var(--line); color: var(--ink);
  padding: 13px 16px; font-size: 16px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
  padding-right: 42px;
}
.field select:focus { outline: 2px solid var(--brand); border-color: transparent; }
/* Budget + timeline sit side by side once there's room for them. */
.field-row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* The project form borrows .prose for its measure, but unlike /support it sits
   INSIDE a section that already pads — and `.prose p` would otherwise outrank
   .form-note's colour on specificity. */
#start .prose { padding-top: 4px; }
#start .prose .form-note { color: var(--ink-dim); }

/* Hero artwork — sits under the sub-copy, above the waitlist form */
.hero-art {
  max-width: 760px; margin: 4px auto 30px; padding: 14px 10px 11px;
  border-radius: 18px; border: 1px solid var(--line);
}
.hero-art img {
  display: block; width: 100%; height: auto;   /* height:auto or the width/height
     attrs letterbox it inside the border */
}
/* The stage labels live here, not inside the SVG: baked into the artwork they
   scaled with it and were ~6px on a 360px phone. */
.flow-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 9px 0 0; }
.flow-labels span { font-size: 12.5px; font-weight: 600; color: var(--ink-dim); text-align: center; line-height: 1.25; }

/* App icons — replace the emoji stand-ins on /apps and /services */
.app-ic {
  width: 46px; height: 46px; border-radius: 11px; display: block;
  margin-bottom: 12px; border: 1px solid var(--line);
}
.card .app-ic + h3 { margin-top: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: 40px; color: var(--ink-dim); font-size: 14px; }
.foot { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.foot a { color: var(--ink-dim); }
.foot .co { margin-right: auto; }
@media (max-width: 640px) {
  .nav-links a.hide-m { display: none; }
  .flow-labels span { font-size: 10.5px; }
  header.hero { padding-top: 52px; }
  /* the mark widened the lockup, so tighten everything else to match */
  .nav-in { gap: 10px; padding: 10px 16px; }
  .logo { font-size: 16px; gap: 7px; }
  .logo .mark { width: 24px; height: 24px; }
  .nav-links { gap: 13px; font-size: 14px; }
  .btn { padding: 9px 15px; font-size: 14px; }
}
/* Below ~430px even the short links won't fit beside the CTA without colliding.
   Drop to logo + CTA only; /blog and /rndm are in the footer on every page. */
@media (max-width: 430px) {
  .nav-links a:not(.btn) { display: none; }
}
