/* An Open Window — front page. The app's own tokens (app/src/lib/owner/styles.css). */

@font-face { font-family: 'Fredoka'; font-weight: 300; font-display: swap; src: url('/fonts/fredoka-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 400; font-display: swap; src: url('/fonts/fredoka-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 300; font-display: swap; src: url('/fonts/lexend-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 400; font-display: swap; src: url('/fonts/lexend-latin-400-normal.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #FCF8F2; --surface: #FFFFFF; --surface-2: #F3EDE4;
  --text: #3D322C; --text-soft: #5C5049; --muted: #7A6F68;
  --line: #EDE3D7; --line-strong: #DCCDBD;
  --btn-bg: #FFB366; --btn-fg: #3D322C; --focus: #5962FC;
  --ok: #2E7D4F; --alert: #B3402F;
  /* The app's brand colours (app/src/lib/owner/styles.css), and a pale wash of each. */
  --warm: #FFB366; --intimate: #FF8882; --cool: #7C83FD; --cool-ink: #5962FC;
  --warm-wash: #FFF0DE; --intimate-wash: #FFE8E6; --cool-wash: #ECEDFF;
  --radius: 22px; --radius-sm: 16px;
  --heading: 'Fredoka', 'Trebuchet MS', sans-serif;
  --body: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120F; --surface: #221B17; --surface-2: #33291F;
    --text: #F6EEE6; --text-soft: #D8CABE; --muted: #A2948A;
    --line: #362B23; --line-strong: #4C3D32;
    --btn-bg: #FFB366; --btn-fg: #2A211C; --focus: #A9B0FF;
    --ok: #7FD1A0; --alert: #F29A8B;
    --cool-ink: #A9B0FF;
    --warm-wash: rgba(255, 179, 102, .14); --intimate-wash: rgba(255, 136, 130, .14); --cool-wash: rgba(124, 131, 253, .16);
  }
}

* { box-sizing: border-box; }
/* A display rule on an element must never beat the hidden attribute. */
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 1.55; }
a { color: var(--cool-ink); }
.wordmark, footer.site a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { padding: 22px 0 0; }
.wordmark { font-family: var(--heading); font-weight: 400; font-size: 24px; text-decoration: none; }

.hero { display: grid; gap: 36px; align-items: center; padding: 48px 0 56px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; padding: 72px 0; } }
/* Plain about what it is, before anything else. */
.kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--intimate-wash); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }

/* A soft glow of all three brand colours behind the opening. */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* Each glow fades to nothing well inside the box, so no edge ever shows. */
  background:
    radial-gradient(closest-side at 22% 35%, var(--warm-wash), transparent),
    radial-gradient(closest-side at 78% 40%, var(--cool-wash), transparent),
    radial-gradient(closest-side at 55% 85%, var(--intimate-wash), transparent);
}

/* Each topic, and each chip, in one of the three. */
.t-warm { --tint: var(--warm); --tint-wash: var(--warm-wash); }
.t-intimate { --tint: var(--intimate); --tint-wash: var(--intimate-wash); }
.t-cool { --tint: var(--cool); --tint-wash: var(--cool-wash); }
.mock li[class^='t-'] { background: var(--tint-wash); }
.num[class*='t-'] { background: var(--tint); color: #3D322C; }
.step.topic { background: var(--tint-wash); border-color: transparent; border-top: 4px solid var(--tint); }
.topic .points li::marker { color: var(--tint); }
.points { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--text-soft); font-size: 15px; }
.note { margin-top: 16px; }
h1 { font-family: var(--heading); font-weight: 400; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--text-soft); margin: 0 0 26px; max-width: 34em; }

form.join { display: grid; gap: 12px; max-width: 460px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
input[type='email'] { flex: 1 1 220px; font: inherit; font-weight: 400; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
button, .btn { font: inherit; font-weight: 400; padding: 13px 22px; border-radius: 999px; border: 0; background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-soft); }
.check input { margin-top: 4px; }
.small { font-size: 13px; color: var(--muted); margin: 0; }
.msg { margin: 0; font-size: 15px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--alert); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* What the partner sees, drawn rather than pictured. */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 18px 40px -28px rgba(61, 50, 44, .45); max-width: 380px; justify-self: center; width: 100%; }
.mock .eyebrow { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.mock h2 { font-family: var(--heading); font-weight: 400; font-size: 22px; margin: 0 0 14px; }
.mock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock li { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; }
.mock li span:last-child { margin-left: auto; font-size: 12px; color: var(--muted); }

section.band { padding: 44px 0; border-top: 1px solid var(--line); }
h2.sec { font-family: var(--heading); font-weight: 400; font-size: 26px; margin: 0 0 20px; }
.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step b { display: block; font-family: var(--heading); font-weight: 400; font-size: 18px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--text-soft); font-size: 15px; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); font-size: 14px; margin-bottom: 10px; }

.promises { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(2, 1fr); } }
.promises li { padding-left: 26px; position: relative; color: var(--text-soft); }
.promises li::before { content: '✓'; position: absolute; left: 0; color: var(--cool-ink); }

footer.site { padding: 28px 0 44px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 13px; color: var(--muted); }
footer.site nav { display: flex; gap: 16px; }

.page { max-width: 680px; padding: 40px 0 56px; }
.page h1 { font-size: 34px; }
.page h2 { font-family: var(--heading); font-weight: 400; font-size: 20px; margin: 26px 0 6px; }
.page p, .page li { color: var(--text-soft); }
.draft { background: #FFF1D6; color: #7A4F00; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .draft { background: #3A2C12; color: #FFD58A; } }

/* Gender-neutral, said once, plainly, near the top. */
.strip { padding: 16px 20px; margin: 0 0 12px; border-radius: var(--radius-sm); background: var(--cool-wash); text-align: center; }
.strip p { margin: 0; color: var(--text); }
.strip b { font-weight: 400; }

/* Features: each one next to a drawing of the screen it describes. */
.features { display: grid; gap: 48px; }
.feature { display: grid; gap: 22px; align-items: center; }
.feature > div:first-child > p { color: var(--text-soft); margin: 0; max-width: 30em; }
.feature .sec { margin-bottom: 10px; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 48px; }
  .feature.flip > :first-child { order: 2; }
}
.mock .label { margin: 14px 0 6px; font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.chip.on { background: var(--intimate-wash); box-shadow: inset 0 0 0 1.5px var(--intimate); }
/* Four equal tiles that always fit the card: category, face, value, top to
   bottom, as in the app, so a value that wraps never knocks the rest out of line. */
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.faces div { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; align-content: start; gap: 4px; padding: 10px 4px 12px; border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; min-width: 0; }
.faces small { font-size: 11px; color: var(--muted); }
.faces span { font-size: 26px; line-height: 1.1; }
.faces b { font-weight: 400; font-size: 12.5px; line-height: 1.25; overflow-wrap: anywhere; }
.mock .ahead { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warm-wash); font-size: 14px; }
.ahead b { font-weight: 400; }
.ranked { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ranked li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--tint-wash); }
.ranked .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: #3D322C; font-size: 13px; }
.ranked li span:last-child { margin-left: auto; font-size: 12px; color: var(--muted); }
.options { display: grid; gap: 8px; }
.opt { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); }
.opt.on { border-color: var(--cool); background: var(--cool-wash); }
.opt b { font-weight: 400; }
.opt small { color: var(--text-soft); font-size: 13px; }

/* What stays yours: two cards side by side. */
.split { display: grid; gap: 16px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } .split .mock { max-width: none; } }
.mock.private li { background: var(--surface-2); }
.promise-line { margin: 18px 0 0; text-align: center; color: var(--text-soft); font-size: 14px; }
.mock li span:first-child { flex: none; }

/* One shares, the other sees: the two screens side by side. */
.sides { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 860px) { .sides { grid-template-columns: 1fr auto 1fr; gap: 24px; } }
.side { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.side .mock { max-width: none; height: 100%; }
.side figcaption { color: var(--text-soft); font-size: 15px; text-align: center; }
.side figcaption b { display: block; font-family: var(--heading); font-weight: 400; font-size: 18px; color: var(--text); }
.arrow { align-self: center; justify-self: center; font-size: 28px; color: var(--cool-ink); transform: translateY(-24px); }
@media (max-width: 859px) { .arrow { transform: rotate(90deg); } }

/* Four audiences, two by two. */
.intro { margin: -8px 0 20px; color: var(--text-soft); max-width: 40em; }
.topics { display: grid; gap: 16px; }
@media (min-width: 760px) { .topics { grid-template-columns: 1fr 1fr; } }

/* The logo, light or dark to match the viewer's theme. */
.logo { display: inline-flex; line-height: 0; }
/* Taller than the letters, for the sun above the O. */
.logo img { height: 39px; width: auto; }
@media (max-width: 420px) { .logo img { height: 32px; } }

/* ---------------------------------------------------------------- brand --
   The logo's shapes: an arched window, and the sun rising behind it. */

/* The hero's app preview sits inside the window, with the sun behind. */
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 420px; padding: 56px 22px 22px; isolation: isolate; }
.hero-art .arch { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border: 5px solid var(--text); border-radius: 210px 210px 26px 26px; }
.hero-art .sun { position: absolute; z-index: 0; width: 46%; aspect-ratio: 1; top: -6%; right: -8%;
  border-radius: 50%; background: var(--warm); }
.hero-art .mock { position: relative; z-index: 2; max-width: none; }
@media (max-width: 480px) { .hero-art { padding: 44px 14px 14px; } .hero-art .arch { border-width: 4px; } .hero-art .sun { right: -2%; width: 40%; } }
/* Nothing decorative may make the page scroll sideways. */
html, body { overflow-x: clip; }

/* A small sun before each section heading, as over the O in the logo. */
h2.sec::before { content: ''; display: inline-block; width: 12px; height: 12px; margin: 0 10px 3px 0;
  border-radius: 50%; background: var(--warm); vertical-align: middle; }

/* The hero's glow now warms from the sun's side. */
.hero::before {
  background:
    radial-gradient(closest-side at 80% 20%, var(--warm-wash), transparent),
    radial-gradient(closest-side at 20% 60%, var(--cool-wash), transparent),
    radial-gradient(closest-side at 55% 95%, var(--intimate-wash), transparent);
}

/* ------------------------------------------------------- new previews -- */

.hearts .chip { color: var(--intimate); letter-spacing: 2px; }
.hearts .chip.on { color: #3D322C; background: var(--intimate); box-shadow: none; }
.hearts-inline { color: var(--intimate); letter-spacing: 1px; }

/* Dates to plan around. */
.mock ul.plans li { align-items: flex-start; background: var(--tint-wash); }
.plans li > span:nth-child(2) { display: grid; gap: 1px; }
.plans b { font-weight: 400; }
.plans small { color: var(--text-soft); font-size: 12.5px; }
.plans li span:last-child { white-space: nowrap; }
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ideas div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.ideas span { font-size: 20px; }
.ideas b { font-weight: 400; font-size: 14px; }
.ideas small { color: var(--muted); font-size: 12px; }

/* Worth a read. */
.reads { display: grid; }
.read { display: grid; gap: 3px; justify-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.read:first-child { border-top: 0; padding-top: 0; }
.read small { font-size: 12px; color: var(--tint); filter: saturate(1.2) brightness(.8); }
@media (prefers-color-scheme: dark) { .read small { filter: none; } }
.read b { font-weight: 400; font-size: 15px; line-height: 1.35; }
.send { margin-top: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; }
.send.on { background: var(--warm); border-color: var(--warm); color: #3D322C; }
