/* meyro.app: one stylesheet for every page. Light theme only, in the app's colors (theme.ts). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --border: #E3E5EB;
  --hairline: #EEF0F4;
  --ring: #C9CCD6;
  --text: #16171D;
  --soft: #3A3D4A;
  --muted: #5B5E70;
  --accent: #D2421B;
  --accent-dark: #A9340F;
  --accent-tint: #FFF1EC;
  --accent-border: #F4D2C5;
  --kitchen: #9A6511;
  --book: #6A45C2;
  --journal: #0E7490;
  --speaking: #12795A;
  --warn-bg: #FFF7E6;
  --warn-border: #F1D9A6;
  --warn-text: #6B4508;
  --radius-card: 20px;
  --radius-row: 16px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Space Grotesk", var(--font-body);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
.note-title,
.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: 34px; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 36px 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
strong { font-weight: 600; color: var(--text); }

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #FFFFFF;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.lead { font-size: 18px; color: var(--soft); }
.muted { color: var(--muted); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow svg { flex: none; width: 16px; height: 16px; }
.eyebrow-accent { color: var(--accent-dark); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-dark); }

/* ---------- Header and footer ---------- */

.site-header { padding: 18px 0 4px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  color: var(--text);
  text-decoration: none;
}
.brand svg { display: block; flex: none; }

main { display: block; padding-bottom: 16px; }

.site-footer {
  margin-top: 56px;
  padding: 26px 0 44px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.site-footer p { margin: 0 0 4px; }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--soft);
  font-weight: 500;
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.footer-mail a { font-weight: 600; }

/* ---------- Home ---------- */

.hero {
  padding: 36px 0 4px;
  text-align: center;
  background: radial-gradient(closest-side, rgba(210, 66, 27, 0.13), rgba(210, 66, 27, 0)) center 0 / 340px 240px no-repeat;
}

.hero-mark {
  display: inline-block;
  width: 96px;
  height: 96px;
  border-radius: 21.6px;
  box-shadow: 0 14px 34px rgba(210, 66, 27, 0.3), 0 2px 6px rgba(22, 23, 29, 0.1);
}
.hero-mark svg { display: block; }

.hero h1 {
  max-width: 15em;
  margin: 28px auto 26px;
  font-size: 34px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 168px;
  min-height: 56px;
  padding: 8px 20px;
  border: 1px solid var(--text);
  border-radius: 14px;
  background: var(--text);
  color: #FFFFFF;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
}
.store-small { font-size: 12px; opacity: 0.85; }
.store-big {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.store-soon {
  border-color: var(--border);
  background: var(--card);
  color: var(--text);
}
.store-soon .store-small { color: var(--muted); opacity: 1; }

.demo {
  display: grid;
  gap: 10px;
  margin-top: 44px;
}

.demo-card {
  margin: 0;
  padding: 18px 20px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.demo-said blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--soft);
}
.demo-note { box-shadow: 0 12px 32px rgba(22, 23, 29, 0.07); }

.demo-arrow {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  transform: rotate(90deg);
}
.demo-arrow svg { width: 18px; height: 18px; }

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.chip-kitchen { color: var(--kitchen); background: rgba(154, 101, 17, 0.1); }

.note-title { margin: 10px 0 6px; font-size: 20px; }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--hairline);
}
.checklist li:first-child { border-top: 0; }
.checklist li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ring);
  border-radius: 50%;
}

.home-section { margin-top: 56px; }
.home-section > h2 {
  margin: 0 0 18px;
  font-size: 26px;
  text-align: center;
}

.features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.feature p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 13px;
  color: var(--c);
  background: var(--t);
}
.feature-icon svg { width: 22px; height: 22px; }
.f-notebook { --c: var(--accent); --t: rgba(210, 66, 27, 0.1); }
.f-stories { --c: var(--book); --t: rgba(106, 69, 194, 0.1); }
.f-journal { --c: var(--journal); --t: rgba(14, 116, 144, 0.1); }
.f-coach { --c: var(--speaking); --t: rgba(18, 121, 90, 0.1); }

/* ---------- Text pages (privacy, terms, support, delete account) ---------- */

.page-head { margin: 28px 0 8px; }
.page-head .lead { margin-bottom: 0; }
.updated { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.intro { margin: 0; color: var(--soft); }

.toc {
  margin: 22px 0 8px;
  padding: 14px 20px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-row);
}
.toc-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; font-size: 15px; }
.toc li { margin: 3px 0; break-inside: avoid; }

.legal section { scroll-margin-top: 16px; }
.legal h2 { margin: 34px 0 8px; font-size: 21px; }
.legal ul,
.answer ul,
.from-policy ul { margin: 0 0 14px; padding-left: 22px; }
.legal li,
.answer li { margin: 0 0 8px; }

.contact { margin: 22px 0 0; }
.contact h2 { margin: 0 0 6px; font-size: 20px; }
.contact p { margin: 0; }

.faq details {
  margin: 10px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-row);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 13px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.answer { padding: 0 20px 4px; color: var(--soft); }
.after-faq { margin-top: 18px; }

.steps {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 2px 0 0 44px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font: 700 15px/30px var(--font-heading);
  text-align: center;
}

.from-policy { color: var(--soft); }
.from-policy p:last-child { margin-bottom: 0; }

.notice {
  margin: 28px 0 0;
  padding: 16px 20px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-row);
  color: var(--warn-text);
}
.notice h2 { margin: 0 0 4px; font-size: 18px; color: var(--warn-text); }
.notice p { margin: 0; }
.notice a { color: var(--warn-text); font-weight: 600; }

/* ---------- 404 ---------- */

.notfound { padding: 56px 0 8px; text-align: center; }
.notfound .code {
  margin: 0 0 10px;
  font: 700 64px/1 var(--font-heading);
  letter-spacing: -0.03em;
  color: var(--accent);
}

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
  h1 { font-size: 38px; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: 44px; }
  .demo { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
  .demo-arrow { transform: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 2; column-gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
