/* home.css — sparr.ca's home page, in the app's own look: the prune awning
   with its stripes and scalloped edge, Fraunces headlines with an orange
   second line, mono kickers, receipt-paper cards with a torn edge. The legal
   pages keep style.css. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,800&family=Schibsted+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --prune: #6E2A50;
  --prune-2: #7A3159;
  --prune-deep: #4A1C3B;
  --night: #2A1226;
  --orange: #F4A259;
  --till: #FFC48A;
  --receipt: #FFFDF7;
  --paper: #F7EFE8;
  --tint: #F3E6EC;
  --ink: #1D121C;
  --muted: #6B5F68;
  --line: #E6DCD3;
  --on-dark: rgba(255, 253, 247, 0.74);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 400 17px/1.6 'Schibsted Grotesk', -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--prune); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.kicker { font: 600 13px/1.4 'IBM Plex Mono', monospace; letter-spacing: .18em; text-transform: uppercase; }
.display { font-family: 'Fraunces', Georgia, serif; font-weight: 800; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
.display .accent { display: block; color: var(--orange); }

/* ── The awning ─────────────────────────────── */
.awning { position: relative; color: var(--receipt); background: linear-gradient(180deg, var(--prune-2), var(--prune)); padding-bottom: 40px; }
.awning::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 40px, transparent 40px 80px); pointer-events: none; }
.awning::after { /* the scalloped edge */
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 22px;
  background: radial-gradient(circle at 22px 0, var(--prune) 21.5px, transparent 22px) 0 0 / 44px 22px repeat-x;
}
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.topbar .logo img { height: 30px; width: auto; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1.5px solid rgba(255,253,247,.35); }
.lang a { font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .08em; padding: 5px 11px; border-radius: 999px; text-decoration: none; color: var(--on-dark); }
.lang a.on { background: var(--receipt); color: var(--prune); }

.hero { position: relative; display: grid; gap: 40px; align-items: center; padding: 36px 0 20px; }
.hero .kicker { color: var(--on-dark); }
.hero h1 { font-size: clamp(44px, 7vw, 76px); margin-top: 14px; }
.hero h1 .accent { color: var(--till); }
.hero .lead { font-size: 19px; color: var(--on-dark); max-width: 520px; margin: 20px 0 28px; }
.soon { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 22px; border-radius: 999px; background: var(--receipt); color: var(--prune); font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 var(--prune-deep); }
.soon small { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

/* Phones: the real app screens in a dark bezel */
.phone { background: #1D121C; padding: 9px; border-radius: 44px; box-shadow: 0 30px 60px rgba(29,18,28,.35); }
.phone img { border-radius: 36px; width: 100%; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 450px; margin-bottom: -90px; }
.hero-phones .phone { position: absolute; width: 196px; border-radius: 36px; padding: 7px; }
.hero-phones .phone img { border-radius: 30px; }
.hero-phones .phone.back { transform: translateX(-72px) rotate(-6deg) scale(.9); bottom: 24px; }
.hero-phones .phone.front { transform: translateX(62px) rotate(3deg); bottom: 0; z-index: 1; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; padding-top: 48px; }
  .hero-phones { height: 620px; margin-bottom: -120px; }
  .hero-phones .phone { width: 280px; border-radius: 44px; padding: 9px; }
  .hero-phones .phone img { border-radius: 36px; }
  .hero-phones .phone.back { transform: translateX(-120px) rotate(-6deg) scale(.9); bottom: 30px; }
  .hero-phones .phone.front { transform: translateX(80px) rotate(3deg); }
}

/* ── Feature rows ───────────────────────────── */
main { padding-top: 110px; }
@media (min-width: 900px) { main { padding-top: 90px; } }
.row { display: grid; gap: 36px; align-items: center; padding: 56px 0; }
.row .phone { width: 260px; margin: 0 auto; }
.row .kicker { color: var(--prune); }
.row h2 { font-size: clamp(34px, 4.6vw, 52px); margin: 12px 0 16px; }
.row h2 .accent { color: var(--prune); opacity: .78; }
.row p { color: var(--muted); max-width: 460px; margin: 0 0 14px; }
.row ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.row li { display: flex; gap: 12px; align-items: baseline; }
.row li::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--orange); transform: translateY(-1px); }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; padding: 72px 0; }
  .row.flip .copy { order: 2; }
  .row .phone { width: 290px; }
}

/* ── Made in Quebec strip ───────────────────── */
.quebec { background: var(--night); color: var(--receipt); padding: 56px 0; margin: 40px 0 0; }
.quebec h2 { font-size: clamp(32px, 4vw, 44px); text-align: center; }
.quebec h2 .accent { color: var(--till); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.chips span { font: 600 13px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(255,253,247,.25); color: var(--on-dark); }

/* ── Receipt cards (texts, contact) ─────────── */
.receipts { display: grid; gap: 28px; padding: 72px 0 80px; }
@media (min-width: 900px) { .receipts { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.receipt {
  position: relative; background: var(--receipt); padding: 30px 28px 40px; border-radius: 6px 6px 0 0;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(29,18,28,.08);
}
.receipt::after { /* the torn edge */
  content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: linear-gradient(135deg, var(--receipt) 6px, transparent 0) 0 0 / 12px 12px repeat-x,
              linear-gradient(-135deg, var(--receipt) 6px, transparent 0) 0 0 / 12px 12px repeat-x;
}
.receipt .kicker { color: var(--muted); padding-bottom: 14px; border-bottom: 1.5px dashed var(--line); margin-bottom: 18px; }
.receipt h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 26px; line-height: 1.15; margin: 0 0 12px; }
.receipt p, .receipt li { font-size: 15.5px; color: var(--muted); }
.receipt ul { padding-left: 18px; }
.receipt li { margin: 6px 0; }
.receipt strong { color: var(--ink); }
.receipt .consent { margin: 22px 0 0; text-align: center; }
.receipt .consent img { max-width: 240px; margin: 0 auto; border-radius: 16px; border: 1px solid var(--line); }
.receipt .consent figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── Footer ─────────────────────────────────── */
footer { background: var(--prune); color: var(--on-dark); padding: 34px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer img { height: 22px; width: auto; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--receipt); text-decoration: none; font-weight: 600; font-size: 15px; }
footer small { font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: .06em; }

/* French by default; ?lang=en shows English (the script on the page) */
.js [data-lang]:not(.shown) { display: none !important; }
