/* heynylo.com
 *
 * ⭐ NO CARDS. The first version put every section in a white rounded box on
 * the amber, and it looked like a template with Nylo's colours dropped in — the
 * yellow became a margin rather than the page. Everything now sits directly on
 * the ground, separated by hairlines, which is the same idiom shreyanbuilds.com
 * already uses: "a ruled row, not a card".
 *
 * ⚠️ THE ONE PLACE WHITE IS ALLOWED is the little thread mock, because that IS
 * the app. It is showing the product, not framing prose.
 *
 * Colours are lifted verbatim from Recall/Design/Theme.swift so the site and
 * the app cannot drift apart.
 */

:root {
  --amber: #FEBF4C;
  --ink:   #112747;
  --cream: #FDE2B6;
  --soft:  rgba(17, 39, 71, 0.68);
  --faint: rgba(17, 39, 71, 0.45);
  --line:  rgba(17, 39, 71, 0.16);
  --white: #FFFFFF;
  --shell: #FFF6E4;
}

*, *::before, *::after { box-sizing: border-box; }

@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB;
}

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

body {
  margin: 0;
  background: var(--amber);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* A soft wash so the ground has the same warmth the app's screens do. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(110% 70% at 50% -8%, rgba(255,255,255,0.40), transparent 62%),
    radial-gradient(80% 55% at 100% 102%, rgba(240,174,51,0.5), transparent 66%);
}
header, main, footer { position: relative; z-index: 1; }

.wrap { width: min(58rem, 100% - 2.4rem); margin-inline: auto; }

/* ---------- Top bar ---------- */
header { padding: 1.2rem 0; }
.bar { display: flex; align-items: center; gap: 0.65rem; }
.bar img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.bar .name { font-weight: 800; font-size: 1.05rem; }
.bar nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: 0.94rem; font-weight: 650; }
.bar nav a { color: var(--ink); text-decoration: none; opacity: 0.7; }
.bar nav a:hover { opacity: 1; }
@media (max-width: 30rem) { .bar nav { display: none; } }

/* ---------- Rhythm ---------- */
section { padding: clamp(2.2rem, 7vw, 3.6rem) 0; }
section + section { border-top: 1px solid var(--line); }

h1 {
  font-size: clamp(2.3rem, 9vw, 4rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 0.6rem; text-wrap: balance;
}
h2 {
  font-size: clamp(1.35rem, 4.4vw, 1.9rem);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 800;
  margin: 0 0 1.2rem; text-wrap: balance;
}
h3 { font-size: 1.02rem; font-weight: 800; margin: 0; }
p { margin: 0; }
.sub { font-size: clamp(1.05rem, 3.2vw, 1.2rem); color: var(--soft); max-width: 32ch; }
.muted { color: var(--soft); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: clamp(0.5rem, 3vw, 1.4rem); }
.hero img { width: clamp(160px, 38vw, 230px); height: auto; display: block; margin: 0 auto 0.6rem; }
.hero .sub { margin: 0 auto 1.6rem; }

.cta { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 750; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--ink); transition: transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--cream); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(17,39,71,0.07); }
.after { font-size: 0.88rem; color: var(--faint); margin-top: 0.9rem; text-align: center; }

/* ---------- Three steps ---------- */
.steps { display: grid; gap: 1.6rem; text-align: center; }
@media (min-width: 42rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.steps img { width: 92px; height: auto; display: block; margin: 0 auto 0.5rem; }
.steps p { color: var(--soft); font-size: 0.97rem; margin-top: 0.15rem; }

/* ---------- The thread mock: the only white on the page ---------- */
.show { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 42rem) { .show { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
.mock {
  background: var(--shell);
  border-radius: 22px;
  padding: 0.8rem;
  box-shadow: 0 18px 34px -24px rgba(17,39,71,0.55);
}
.msg { background: var(--white); border-radius: 13px; padding: 0.65rem 0.8rem; }
.msg + .msg { margin-top: 0.5rem; }
.msg .label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint);
}
.msg .value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.02rem; font-weight: 600; }
.msg .said { color: var(--soft); font-size: 0.9rem; }
.due {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.4rem;
  padding: 0.2rem 0.55rem; background: rgba(17,39,71,0.1);
  border-radius: 999px; font-size: 0.76rem; font-weight: 700;
}

/* ---------- One-line lists ---------- */
.list { display: grid; gap: 0; }
@media (min-width: 42rem) { .list { grid-template-columns: 1fr 1fr; column-gap: 2.2rem; } }
.list div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  display: flex; gap: 0.7rem; align-items: baseline;
}
.list div span { color: var(--soft); font-size: 0.95rem; }
.list .when {
  flex: 0 0 auto; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.42rem;
}

/* ---------- Privacy ---------- */
.privacy { text-align: center; }
.privacy img { width: 130px; height: auto; display: block; margin: 0 auto 0.6rem; }
.privacy h2 { margin-bottom: 0.5rem; }
.privacy p { max-width: 40ch; margin: 0 auto 1.1rem; color: var(--soft); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 1.8rem 0 2.4rem; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; justify-content: center; margin-bottom: 0.6rem; }
footer a { color: var(--ink); font-weight: 650; text-decoration: none; opacity: 0.72; }
footer a:hover { opacity: 1; }
footer .fine { font-size: 0.85rem; color: var(--faint); }

/* ---------- Legal pages ---------- */
.doc { max-width: 42rem; }
.doc h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-bottom: 0.15rem; }
.doc .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 1.8rem; }
.doc h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
.doc p { margin-bottom: 0.9rem; }
.doc ul { padding-left: 1.1rem; margin: 0 0 0.9rem; }
.doc li { margin-bottom: 0.3rem; }
.doc a { color: var(--ink); }
.doc .lead { font-size: 1.12rem; }
.back { display: inline-block; margin-bottom: 1.2rem; font-weight: 750; text-decoration: none; color: var(--ink); opacity: 0.75; }
.back:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
