/* Family Flow Tracker public site. Plain CSS, no build step, no remote requests.
   Palette from design/OWNER_DIRECTION.md. No yellow, orange or peach anywhere. */
:root {
  --berry: #B4235A; --mint: #3DBFA8; --teal: #16806F; --indigo: #4B4FC4; --blue: #1B6FA8;
  --ground: #FAF5F8; --card: #FFFFFF; --ink: #2E2433; --muted: #5C4A61; --tint: #FCE8EF; --line: #E6DAE3;
  /* Nunito is not bundled (see README). These are the closest rounded system faces. */
  --font: "Nunito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--berry); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.8rem, 6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.skip { position: absolute; left: -999rem; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand .flow { color: var(--berry); }
.brand-icon { height: 2rem; width: 2rem; border-radius: 0.5rem; }
.site-nav ul, .langs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.1rem 0.2rem; margin: 0; padding: 0; }
.site-nav li, .langs li { margin: 0; }
.site-nav a, .langs a { display: inline-block; padding: 0.55rem 0.6rem; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 0.6rem; }
.site-nav a:hover, .langs a:hover { background: var(--tint); }
.site-nav a[aria-current="page"], .langs a[aria-current="true"] { color: var(--berry); text-decoration: underline; text-decoration-thickness: 2px; }
.langs a { font-size: 0.95rem; color: var(--muted); }

/* Notices */
.notice { background: var(--card); border: 2px solid var(--berry); border-radius: 1rem; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.notice strong:first-child { color: var(--berry); }
.notice.info { border-color: var(--teal); }
.notice.info strong:first-child { color: var(--teal); }
.notice p:last-child { margin-bottom: 0; }
.placeholder { background: var(--tint); border: 1px dashed var(--berry); border-radius: 0.4rem; padding: 0 0.3em; font-weight: 700; }

/* Hero */
.hero { padding: 2.5rem 0 1rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.stores { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 0.6rem; padding: 0; list-style: none; }
.store { display: inline-flex; flex-direction: column; min-width: 10.5rem; padding: 0.6rem 1.1rem; border-radius: 0.9rem; background: var(--card); border: 2px dashed var(--muted); color: var(--ink); line-height: 1.25; }
.store b { font-weight: 800; }
.store span { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.phones { display: flex; justify-content: center; gap: 1rem; }
.phone { margin: 0; width: min(100%, 15rem); }
.phone .frame { border: 0.5rem solid var(--ink); border-radius: 2rem; overflow: hidden; background: var(--ground); aspect-ratio: 780 / 1688; box-shadow: 0 0.8rem 2rem rgba(46, 36, 51, 0.15); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.6rem; }
.phones .phone:nth-child(n+2) { display: none; }

/* Cards */
.section { padding: 1.5rem 0; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1.2rem 0; padding: 0; list-style: none; }
.card { background: var(--card); border-radius: 1.25rem; padding: 1.3rem; margin: 0; border: 1px solid var(--line); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card.bar { border-top: 0.4rem solid var(--berry); }
.card.bar.mint { border-top-color: var(--mint); }
.card.bar.indigo { border-top-color: var(--indigo); }
.card.bar.blue { border-top-color: var(--blue); }
.card.bar.teal { border-top-color: var(--teal); }
.price { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 0.2rem 0 0.3rem; }
.price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.7rem; position: relative; margin-bottom: 0.6rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--berry); font-weight: 800; }

/* Documents */
.doc { padding-top: 2rem; padding-bottom: 3rem; }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border: 1px solid var(--line); }
th { background: var(--tint); font-weight: 800; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 0.2rem 1.1rem; margin-bottom: 0.7rem; }
summary { cursor: pointer; font-weight: 800; padding: 0.8rem 0; }
details p { margin-top: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0.1rem 0 0.4rem 2.8rem; margin-bottom: 0.6rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--berry); color: #fff; font-weight: 800; display: grid; place-items: center; }
.mail { font-weight: 800; }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.5rem 0 2rem; font-size: 0.97rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin-bottom: 0.8rem; }
.site-footer li { margin: 0; }
.site-footer a { display: inline-block; padding: 0.35rem 0; }
.site-footer p { color: var(--muted); margin-bottom: 0.4rem; }

@media (min-width: 40rem) { .phones .phone:nth-child(2) { display: block; } }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 4rem; }
  .phones .phone:nth-child(n+2) { display: block; }
  .phones .phone:nth-child(2) { margin-top: 2.5rem; }
  .phones .phone:nth-child(3) { display: none; }
}
@media (min-width: 75rem) { .phones .phone:nth-child(3) { display: block; margin-top: 5rem; } .hero-grid { grid-template-columns: 5fr 7fr; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
