/* Massi landing page and policies: the app's own look (warm paper, one terracotta accent, OCR-B typewriter font, sharp corners). */
@font-face {
  font-family: 'OCR-B';
  src: url('assets/fonts/OCR-B.otf') format('opentype');
  font-display: swap;
}

:root {
  --bg: #faf9f6;
  --card: #efece6;
  --text: #1e1d1b;
  --muted: #6b665e;
  --line: #d9d5ce;
  --accent: #e08a5f;
  --accent-text: #8a3f17;
  --on-accent: #1e1d1b;
  --bar: #4a4740;
  --on-bar: #faf9f6;
  --dark: #2a2823;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --card: #211f1c;
    --text: #edebe6;
    --muted: #9a958b;
    --line: #38352f;
    --accent: #e8956b;
    --accent-text: #f0a982;
    --bar: #2a2823;
    --dark: #0f0e0d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 'OCR-B', ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: -0.01em;
}

a { color: var(--accent-text); }
img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
header.top { background: var(--bar); color: var(--on-bar); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
header.top a { color: var(--on-bar); text-decoration: none; }
header.top .brand { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
header.top .brand img { width: 30px; height: 30px; }
header.top nav { display: none; gap: 22px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
header.top nav a { opacity: 0.8; }
header.top nav a:hover { opacity: 1; }
header.top .right { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 820px) { header.top nav { display: flex; } }

.draft { background: #fff3cd; color: #5c4500; padding: 8px 16px; text-align: center; font-size: 13px; }

/* ---------- buttons ---------- */
.button {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  padding: 14px 22px;
  border: 0;
  cursor: pointer;
}
.button.accent { background: var(--accent); color: var(--on-accent); }
.button.on-dark { background: var(--on-bar); color: var(--dark); }
.button.disabled { opacity: 0.55; pointer-events: none; }
.note { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- hero ---------- */
.hero { padding: 24px 0 8px; }
.hero .block {
  background: var(--accent);
  color: var(--on-accent);
  padding: 36px 20px 0;
  display: grid;
  gap: 24px;
  overflow: hidden;
}
.hero h1 { font-size: 2.2rem; line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.03em; font-weight: 400; }
.hero p { font-size: 1.05rem; margin: 0 0 22px; max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .button.ghost { background: transparent; color: var(--on-accent); border: 2px solid var(--on-accent); }
.hero .note { color: var(--on-accent); opacity: 0.8; }
.hero .shots { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 14px; min-height: 340px; }
.hero .massi { position: absolute; left: 0; bottom: 16px; width: 96px; z-index: 3; }
@media (min-width: 820px) {
  .hero .block { grid-template-columns: 1.05fr 1fr; padding: 56px 48px 0; gap: 40px; align-items: center; }
  .hero h1 { font-size: 3.2rem; }
  .hero .shots { min-height: 520px; }
}

/* ---------- phone frame ---------- */
.phone {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1080 / 2400;
  border: 8px solid #1e1d1b;
  border-radius: 30px;
  background: #1e1d1b;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  flex: 0 1 250px;
}
.phone img { width: 100%; height: 100%; display: block; object-fit: cover; }
.phone.up { transform: translateY(-34px); }
.hero .phone { margin-bottom: -60px; }

/* ---------- sections ---------- */
section { padding: 56px 0 8px; }
section h2 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 22px; font-weight: 400; letter-spacing: -0.02em; }
section .lead { color: var(--muted); max-width: 60ch; margin: 0 0 24px; }

.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); padding: 22px; display: grid; gap: 14px; align-content: start; min-height: 220px; }
.card h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.card .art { display: flex; justify-content: flex-end; }
.card .art img { width: 110px; }

.advantages { display: grid; gap: 22px; }
@media (min-width: 720px) { .advantages { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }
.advantage { display: grid; grid-template-columns: 44px 1fr; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.advantage .n { background: var(--accent); color: var(--on-accent); width: 36px; height: 36px; display: grid; place-items: center; font-weight: 700; }
.advantage h3 { margin: 0 0 4px; font-size: 1rem; }
.advantage p { margin: 0; color: var(--muted); }

/* ---------- the spending-per-product highlight ---------- */
.highlight { border: 2px solid var(--text); padding: 28px 22px; margin-top: 8px; }
.highlight h2 { margin-bottom: 14px; }
.highlight p { max-width: 62ch; margin: 0 0 16px; }
.highlight .examples { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .highlight .examples { grid-template-columns: repeat(3, 1fr); } }
.highlight .examples li { background: var(--card); padding: 12px 14px; display: grid; gap: 4px; }
.highlight .examples span { color: var(--muted); font-size: 13px; }
.highlight .examples b { font-size: 1.15rem; font-weight: 400; color: var(--accent-text); }

/* ---------- dark band ---------- */
.band { background: var(--bar); color: var(--on-bar); margin-top: 56px; padding: 40px 0 0; overflow: hidden; }
.band .inner { display: grid; gap: 20px; align-items: center; }
.band h2 { color: var(--on-bar); margin-bottom: 14px; }
.band p { margin: 0 0 20px; opacity: 0.85; max-width: 40ch; }
.band .shots { display: flex; gap: 14px; justify-content: center; align-items: flex-end; }
.band .phone { margin-bottom: -70px; }
@media (min-width: 820px) { .band .inner { grid-template-columns: 1fr 1fr; } }

/* ---------- feature rows ---------- */
.row { display: grid; gap: 26px; align-items: center; padding: 28px 0; }
@media (min-width: 820px) { .row { grid-template-columns: 1fr 1fr; gap: 56px; } .row.flip .phone-col { order: 2; } }
.row h3 { font-size: 1.5rem; margin: 0 0 12px; font-weight: 400; }
.row p { color: var(--muted); margin: 0 0 12px; }
.phone-col { display: flex; justify-content: center; }

/* ---------- waiting list and the full-app ad ---------- */
.full { padding-top: 64px; }
.full .panel { display: grid; border: 2px solid var(--text); }
@media (min-width: 820px) { .full .panel { grid-template-columns: 1.1fr 1fr; } }
.full .ad { background: var(--dark); color: var(--on-bar); padding: 32px 24px; position: relative; overflow: hidden; }
.full .ad .tag { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 3px 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.full .ad h2 { color: var(--on-bar); margin: 0 0 12px; font-size: 2rem; }
.full .ad p { margin: 0 0 18px; opacity: 0.85; max-width: 38ch; }
.full .ad ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.full .ad li { border: 1px solid rgba(250, 249, 246, 0.35); padding: 4px 10px; font-size: 13px; }
.full .ad .massi { position: absolute; right: 14px; bottom: 8px; width: 84px; opacity: 0.95; }
.full .signup { background: var(--card); padding: 32px 24px; display: grid; gap: 14px; align-content: center; }
.full .signup h3 { margin: 0; font-size: 1.3rem; font-weight: 400; }
.full label.field { display: grid; gap: 6px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.full input[type='email'] {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); padding: 13px 12px; width: 100%; border-radius: 0;
}
.full input[type='email']:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.full .consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; color: var(--muted); align-items: start; }
.full .consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.full .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.full .status { margin: 0; min-height: 1.6em; font-size: 14px; }
.full .status.ok { color: #2f6b47; }
.full .status.bad { color: #c62828; }
@media (prefers-color-scheme: dark) { .full .status.ok { color: #79c79e; } .full .status.bad { color: #ff6b6b; } }

/* ---------- faq ---------- */
details { background: var(--card); padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- closing call to action and footer ---------- */
.closing { text-align: center; padding: 72px 0 56px; }
.closing img { width: 104px; }
.closing h2 { margin: 14px 0 20px; }

footer.site { background: var(--dark); color: var(--on-bar); padding: 36px 0 44px; font-size: 13px; }
footer.site a { color: var(--on-bar); opacity: 0.85; }
footer.site .cols { display: grid; gap: 22px; }
@media (min-width: 720px) { footer.site .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
footer.site h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; font-weight: 400; }
footer.site p { margin: 0 0 6px; opacity: 0.85; }
footer.site .legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(250, 249, 246, 0.2); opacity: 0.75; line-height: 1.6; }

/* ---------- policy pages (kept) ---------- */
footer { padding: 28px 0 48px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }
.policy h1 { font-size: 2rem; margin: 40px 0 8px; font-weight: 400; }
.policy h2 { font-size: 1.2rem; margin: 28px 0 8px; font-weight: 700; }
.policy .date { color: var(--muted); margin-bottom: 24px; }
.policy ul { padding-left: 22px; }
