/* Elywise — plain CSS, no build step. Base copied from safewisp-site/public/styles.css (Safewisp family tokens); Elywise additions at the end. */
:root {
  --ink: #0f1b2d;
  --ink-2: #33415a;
  --muted: #4f5d73;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --line: #dfe4ec;
  --brand: #0b5c63;
  --brand-dark: #08464c;
  --wisp: #7dd3c8;
  --night: #0f1b2d;
  --night-2: #17283f;
  --on-night: #e8eef6;
  --on-night-muted: #b9c6d8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--ink); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { background: var(--night); color: var(--on-night); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--on-night); text-decoration: none; font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; }
.nav a {
  color: var(--on-night-muted); text-decoration: none; font-size: .98rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--wisp); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(125, 211, 200, .16), transparent 60%),
    radial-gradient(700px 300px at -10% 110%, rgba(125, 211, 200, .10), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--on-night);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}
.hero .wisp-lines {
  position: absolute; right: -60px; bottom: -40px; width: 560px; height: auto;
  opacity: .35; pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--wisp); margin-bottom: .9rem;
}
.hero h1 { max-width: 20ch; color: #fff; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-night-muted); max-width: 46ch; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.75rem; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid rgba(125, 211, 200, .45); color: var(--on-night);
  border-radius: 999px; padding: .25rem .8rem; font-size: .88rem; font-weight: 600;
  margin-top: 1.5rem;
}
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--wisp); }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none;
  padding: .75rem 1.3rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--wisp); color: var(--night); }
.btn-primary:hover { background: #a3e3da; color: var(--night); }
.btn-ghost { border-color: rgba(232, 238, 246, .5); color: var(--on-night); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-dark); color: #fff; }

/* Sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 62ch; color: var(--ink-2); }
.mission {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.5; max-width: 40ch; color: var(--ink);
  border-left: 4px solid var(--wisp); padding-left: 1.1rem; margin: 0 0 1.25rem;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.75rem; display: flex; flex-direction: column;
}
.card .icon { width: 52px; height: 52px; margin-bottom: 1rem; }
.card h3 { font-size: 1.45rem; margin-bottom: .25rem; }
.card .tagline { color: var(--brand); font-weight: 600; margin-bottom: .75rem; }
.card p { color: var(--ink-2); }
.card .meta { font-size: .9rem; color: var(--muted); margin-top: auto; padding-top: .5rem; }
.card .card-link { margin-top: 1rem; font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem 3rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .95rem; height: .95rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--brand) 0 35%, rgba(11, 92, 99, .18) 36%);
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem; color: var(--ink-2);
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--night); color: var(--wisp); font-weight: 700; margin-bottom: .6rem;
}
.steps strong { display: block; color: var(--ink); }

.callout {
  background: #eef7f6; border: 1px solid #cfe9e5; border-radius: var(--radius);
  padding: 1.25rem 1.4rem; color: var(--ink-2);
}
.callout strong { color: var(--ink); }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 3rem; align-items: start; }
form.contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.75rem;
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #9aa6b8; border-radius: 10px; padding: .65rem .8rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(11, 92, 99, .25); outline-offset: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.warning {
  display: flex; gap: .7rem; align-items: flex-start;
  background: #fff8e6; border: 1px solid #f0d58a; border-radius: 10px;
  padding: .85rem 1rem; margin-bottom: 1.25rem; color: #4a3a07; font-size: .95rem;
}
.warning svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .15rem; }
.form-foot { font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }

/* Prose (privacy page) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: 2.25rem 0; font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--on-night); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; }
.site-footer .legal { display: flex; gap: .4rem 1.25rem; flex-wrap: wrap; }
.site-footer .pp { color: var(--wisp); font-weight: 600; }

@media (max-width: 560px) {
  .site-header .container { justify-content: center; }
  .hero .wisp-lines { width: 380px; opacity: .25; }
  .card, form.contact { padding: 1.35rem; }
}

/* v1 additions */
.section-tint { background: #eef5f6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.narrow { max-width: 760px; }
.narrow p { color: var(--ink-2); }
.grid-2 p { color: var(--ink-2); }
.fineprint { font-size: .9rem; color: var(--muted); margin-top: 1.5rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.35rem 1rem; border-top: 4px solid var(--wisp); }
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-2); margin: 0; }
.btn { min-height: 44px; }
.nav a { display: inline-block; padding: .55rem 0; }
@media (max-width: 560px) {
  .site-header .container { justify-content: space-between; gap: .4rem 1rem; }
  .nav ul { gap: 0 1rem; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Elywise additions (everything above is the shared Safewisp family base) ---------- */
.hero h1 { max-width: 24ch; }

/* About: headshot beside bio (same rhythm as .grid-2) */
.about-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 2rem 3rem; align-items: start; }
.headshot { margin: 0; }
.headshot picture { display: block; }
.headshot img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--night-2);
}
.headshot:not(.placeholder) { border: none; background: transparent; padding: 0; }
.headshot figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.contact-email { color: var(--ink-2); margin: 0 0 1.25rem; }
.about-body h2 { margin-bottom: .75rem; }
.about-body .checklist { margin: 1.25rem 0 1.5rem; }
.about-links { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

/* Placeholders: deliberately loud so nothing ships by accident. Remove the class once real content is in. */
.placeholder {
  border: 2px dashed #d39b00; background: #fff8e6; color: #4a3a07;
  border-radius: 10px; padding: .85rem 1rem;
}
.placeholder-tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: #f2b705; color: #2b2104; border-radius: 999px; padding: .1rem .6rem; margin-bottom: .4rem;
}
.headshot.placeholder { padding: .75rem; }
.headshot.placeholder img { box-shadow: none; }
.headshot.placeholder figcaption { color: #4a3a07; font-weight: 600; }
.btn.placeholder-link { background: #fff8e6; color: #4a3a07; border: 2px dashed #d39b00; }
.btn.placeholder-link:hover { background: #ffefc2; color: #2b2104; }

/* Product hub cards (three products, external links) */
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card .domain { font-size: .9rem; color: var(--muted); margin: 0 0 .75rem; }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .headshot { max-width: 300px; }
}

/* Pre-launch product status pill (currently unused) */
.card .status { display: inline-flex; align-self: flex-start; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4a3a07; background: #fff4d6; border: 1px solid #f0d58a; border-radius: 999px; padding: .15rem .65rem; margin: 0 0 .75rem; }
.card .status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #d39b00; }
.card .card-soon { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--muted); }

/* Polish (Oct 27 2026): tap targets and small-screen type */
.brand { min-height: 44px; }
.card .card-link, .about-links a, .site-footer nav a, .contact-email a, .callout a { display: inline-flex; align-items: center; min-height: 44px; }
.callout a, .contact-email a { display: inline; min-height: 0; padding: .35rem 0; }
.about-links a:not(.btn) { padding: 0 .15rem; }
.site-footer nav ul { gap: 0 1.25rem; }
.site-footer .legal { max-width: 46ch; }
.card .status + .tagline { margin-top: 0; }
.card .domain + .status { margin-top: 0; }
.card .card-link { margin-top: auto; padding-top: .5rem; }
.card > p:not(.domain):not(.status):not(.tagline) + .card-link { margin-top: 1rem; }
/* Single product: one deliberate feature card, icon beside text on desktop, stacked on mobile */
.cards.cards-1 { grid-template-columns: 1fr; max-width: 760px; }
.cards-1 .card { display: grid; grid-template-columns: auto 1fr; column-gap: 1.5rem; align-items: start; }
.cards-1 .card > :not(.icon) { grid-column: 2; }
.cards-1 .card .icon { grid-column: 1; grid-row: 1 / span 5; width: 64px; height: 64px; margin-bottom: 0; }
.cards.cards-1 .card > p:not(.domain):not(.status):not(.tagline) + .card-link, .cards-1 .card .card-link { margin-top: .25rem; padding-top: 0; }
@media (max-width: 560px) {
  .cards-1 .card { display: flex; flex-direction: column; }
  .cards-1 .card .icon { width: 52px; height: 52px; margin-bottom: 1rem; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  section { padding: 2.75rem 0; }
  .hero { padding: 3rem 0 3.25rem; }
  .hero .actions .btn { flex: 1 1 100%; text-align: center; }
  .btn { padding: .8rem 1.1rem; }
  .about-links .btn { flex: 1 1 100%; text-align: center; }
  .headshot { max-width: 260px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 1.95rem; }
  .hero .lede { font-size: 1.05rem; }
  h2 { font-size: 1.45rem; }
  .mission { font-size: 1.15rem; padding-left: .9rem; }
  .nav ul { gap: 0 .85rem; }
  .nav a { font-size: .95rem; }
  .field input, .field select, .field textarea { font-size: 1rem; }
}
.card-link span, .about-links a span { margin-left: .35em; }
@media (max-width: 560px) { form.contact .btn { width: 100%; } }
