/* Larend — marketing site. Palette mirrors the mobile app's "warm & homey"
   tokens (mobile/constants/theme.ts):
   background #F7F4EE · surface #FFFFFF · surface-muted #ECE6DA · border #E7E1D6
   text #1F2A26 · text-secondary #3E4A45 · text-muted #5F6B66
   accent #2F5D50 · accent-pressed #1F4238 · accent-soft #E3ECE7 · highlight #F2D58A
   Fonts are system-fallback stacks only; no web fonts are loaded. */
:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --surface-muted: #ECE6DA;
  --border: #E7E1D6;
  --text: #1F2A26;
  --text-secondary: #3E4A45;
  --muted: #5F6B66;
  --accent: #2F5D50;
  --accent-pressed: #1F4238;
  --accent-soft: #E3ECE7;
  --highlight: #F2D58A;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(47, 93, 80, 0.12), transparent 60%),
    radial-gradient(900px 700px at 100% 100%, rgba(242, 213, 138, 0.22), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* soft warm glow behind the hero */
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(620px 360px at 50% 14%, rgba(242, 213, 138, 0.20), transparent 70%);
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) 24px 16px;
  text-align: center;
}

/* the Larend mark: one stroke, an L whose base lifts into a check */
.hero-mark {
  display: block;
  width: clamp(58px, 11vw, 84px);
  height: auto;
  margin: 0 auto 12px;
}

/* wordmark, set beneath the mark */
.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.4rem, 12vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.tagline {
  display: inline-block;
  margin: 18px 0 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--highlight);
  font-size: clamp(0.88rem, 2vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lede {
  margin: clamp(20px, 4vw, 34px) auto 0;
  max-width: 560px;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-secondary);
}

.coming {
  margin-top: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Feature cards ──────────────────────────────────────────────────── */
.features {
  max-width: 920px;
  margin: clamp(40px, 7vw, 80px) auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, var(--surface), #FBF9F5);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(31, 42, 38, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 93, 80, 0.35);
  box-shadow: 0 8px 22px rgba(31, 42, 38, 0.07);
}

.card-emoji {
  font-size: 1.5rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 14px;
}

.card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.3;
  letter-spacing: 0.2px;
  margin: 0 0 8px;
  color: var(--text);
}

.card h2 em {
  color: var(--accent);
  font-style: italic;
  background: linear-gradient(transparent 62%, rgba(242, 213, 138, 0.7) 62%);
}

.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ── Statement ──────────────────────────────────────────────────────── */
.statement {
  max-width: 720px;
  margin: clamp(48px, 8vw, 96px) auto 0;
  padding: 0 28px;
  text-align: center;
}

.statement p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.2vw, 2.15rem);
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

.statement strong {
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  background: linear-gradient(transparent 64%, rgba(242, 213, 138, 0.75) 64%);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  max-width: 920px;
  margin: clamp(64px, 10vw, 120px) auto 0;
  padding: 32px 24px 56px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.mark { margin-bottom: 14px; }

.copyright { margin: 0; color: var(--muted); font-size: 0.86rem; }

.contact { margin: 6px 0 0; font-size: 0.86rem; }
.contact a { color: var(--accent); text-decoration: none; }
.contact a:hover { color: var(--accent-pressed); text-decoration: underline; }

.footnav {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.86rem;
}
.footnav a { color: var(--muted); text-decoration: none; }
.footnav a:hover { color: var(--accent); text-decoration: underline; }

/* ── About / prose page ─────────────────────────────────────────────── */
.page-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 24px 8px;
  text-align: center;
}

.lockup-link { display: inline-block; text-decoration: none; }
.lockup-link .wordmark { font-size: clamp(2.6rem, 9vw, 3.8rem); }
.lockup-link:hover .wordmark { color: var(--accent-pressed); }

.prose {
  max-width: 660px;
  margin: clamp(28px, 5vw, 52px) auto 0;
  padding: 0 24px;
}

.prose .kicker {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.prose h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 clamp(24px, 4vw, 36px);
  text-align: center;
  color: var(--text);
}

.prose p {
  margin: 0 0 18px;
  font-size: clamp(1.02rem, 2.1vw, 1.12rem);
  color: var(--text-secondary);
}

.prose p em { color: var(--accent); font-style: italic; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-pressed); }

/* Trademark mark — keeps ™ proportional in large serif headings.
   Shrink + raise to the superscript baseline so the glyph sits near
   cap-height instead of on the text baseline. */
.tm { font-size: 0.55em; vertical-align: super; line-height: 0; }

/* maker / Norevia Group callout */
.maker {
  max-width: 660px;
  margin: clamp(34px, 5vw, 54px) auto 0;
  padding: 0 24px;
}

.maker-card {
  background: linear-gradient(180deg, var(--surface), var(--accent-soft));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  text-align: center;
}

.maker-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  margin: 0 0 8px;
  color: var(--text);
}

.maker-card p { margin: 0 0 18px; color: var(--muted); font-size: 0.98rem; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 160ms ease, background 160ms ease;
}
.btn:hover { border-color: var(--accent-pressed); background: var(--accent-pressed); }

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

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
}
