/* Da Wedding landing page (knowledge-base/47-landing-page.md). Tokens from knowledge-base/03.
   Served under CSP style-src 'self': no inline styles anywhere, so every rule lives here. */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2?v=88b41f3f") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-500.woff2?v=fdcd45c5") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Colour. Rausch is for drawing (rings, bars): as text it reads at only 3.5:1. Text in the bride's
   colour uses primaryActive (--bride-text), and so does the Bride badge behind white text
   (--bride-strong). The app has no dark theme (K121), so the dark set is this page's own. */
:root {
  color-scheme: light dark;
  --canvas: #ffffff;
  --surface: #f7f7f7;
  --surface-strong: #f2f2f2;
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --hairline: #ebebeb;
  --line: #dddddd;
  --bride: #ff385c;
  --bride-strong: #e00b41;
  --bride-text: #e00b41;
  --groom: #222222;
  --link: #e00b41;
  --on-ink: #ffffff;
  --on-bride: #ffffff;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141414;
    --surface: #1c1c1c;
    --surface-strong: #262626;
    --ink: #f2f2f2;
    --body: #d4d4d4;
    --muted: #a8a8a8;
    --hairline: #262626;
    --line: #3a3a3a;
    --bride-text: #ff5a76;
    --groom: #f2f2f2;
    --link: #ff5a76;
    --on-ink: #141414;
  }
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.5 var(--text);
  font-kerning: normal;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

/* The brand's focus ring: 2px of ink, no glow. */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

/* Header */

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 500 27px/1 var(--display);
  letter-spacing: -0.01em;
}
.brand svg { width: 40px; height: 28px; flex: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.nav-cta:hover { box-shadow: inset 0 0 0 2px var(--ink); }

/* The rings: the brand mark, and the page's one picture. Bride side is Rausch, groom side is ink. */
.ring { fill: none; stroke-width: 3; }
.ring-bride { stroke: var(--bride); }
.ring-groom { stroke: var(--groom); }

/* Hero */

.hero { padding: 24px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }

h1 {
  font: 500 clamp(2.75rem, 1.55rem + 5.6vw, 5.25rem)/1.02 var(--display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.store {
  display: inline-flex;
  flex: 1 1 140px;
  flex-direction: column;
  justify-content: center;
  max-width: 200px;
  min-height: 60px;
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.store-name { font-weight: 600; font-size: 17px; line-height: 1.25; }
.store-state { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* A store with a real link: filled, like the app's primary buttons. */
.store[href] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.store[href] .store-state { color: inherit; }
.store[href]:hover { background: var(--body); }

.note { margin-top: 14px; color: var(--muted); font-size: 14px; }

.sides { width: 100%; max-width: 460px; margin: 0 auto; }
.sides svg { display: block; width: 100%; height: auto; overflow: visible; }
.sides .ring { stroke-width: 7; }
.side-label { fill: var(--ink); font: 600 17px var(--text); text-anchor: middle; }
.side-label-both { fill: var(--muted); font: 500 25px var(--display); }
.sides figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  text-wrap: balance;
}

/* The one moment of motion: the two rings draw themselves in, then the labels appear. */
@keyframes draw { from { stroke-dashoffset: 629; } }
@keyframes appear { from { opacity: 0; } }
.sides .ring { stroke-dasharray: 629; animation: draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) both; }
.sides .ring-groom { animation-delay: 0.25s; }
.side-label { animation: appear 0.6s ease-out 1.3s both; }

/* Sections */

.section { padding: 64px 0; border-top: 1px solid var(--hairline); }

h2 {
  max-width: 20em;
  font: 600 clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem)/1.15 var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lead { max-width: 36em; margin-top: 12px; color: var(--body); font-size: 17px; }

h3 { font: 600 18px/1.3 var(--text); letter-spacing: -0.01em; }

/* Joining: a real sequence, so it is numbered. */
.steps {
  display: grid;
  gap: 32px;
  margin-top: 40px;
  counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.step p { margin-top: 6px; color: var(--body); font-size: 15px; }

.code { display: flex; gap: 6px; margin-top: 16px; }
.code span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 46px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
  font: 600 20px/1 var(--text);
}
.code .typing { position: relative; box-shadow: inset 0 0 0 2px var(--ink); }
.code .typing::after {
  content: "";
  width: 2px;
  height: 22px;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}
.badge-bride { background: var(--bride-strong); color: var(--on-bride); }
.badge-groom { background: var(--ink); color: var(--on-ink); }
.badge-both { background: var(--canvas); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Inside the wedding */

.features { display: grid; gap: 16px; margin-top: 40px; }
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.feature p { color: var(--body); }
.demo { margin-top: auto; padding-top: 16px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
}

.announcement {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--bride);
}
.announcement-from { color: var(--muted); font-size: 13px; font-weight: 500; }
.announcement p { margin-top: 2px; color: var(--ink); font-size: 15px; }

.score { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.score strong { display: block; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.score-groom { text-align: right; }
.bar { display: flex; gap: 3px; height: 10px; margin-top: 10px; }
.bar span { border-radius: 999px; }
.bar-bride { flex: 1240; background: var(--bride); }
.bar-groom { flex: 1180; background: var(--groom); }
.demo-note { margin-top: 10px; color: var(--muted); font-size: 13px; }

.now {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
}
.now-tag { color: var(--bride-text); font-weight: 600; font-size: 13px; }
.now-what { font-weight: 600; }
.now-where { color: var(--muted); font-size: 14px; }

/* For the couple and organisers */

.team .wrap { display: grid; gap: 32px; }
.powers { display: grid; gap: 14px; }
.powers li { display: flex; gap: 12px; align-items: baseline; color: var(--body); }
.powers li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--bride);
  transform: translateY(-1px);
}
.aside { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* Private by design */

.promises { display: grid; gap: 28px; margin-top: 40px; }
.promises p { margin-top: 6px; color: var(--body); font-size: 15px; }
.small-print { margin-top: 40px; color: var(--muted); font-size: 14px; }

/* Footer */

.footer { padding: 40px 0 56px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }
.footer .wrap { display: grid; gap: 20px; }
.footer .brand { font-size: 22px; }
.footer .brand svg { width: 32px; height: 22px; }
.policies { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.policies a { display: inline-flex; align-items: center; min-height: 44px; }
.footer p a { display: inline-block; padding: 10px 0; }

/* Wider screens */

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 48px 0 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; }
  .section { padding: 96px 0; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .team .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .promises { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer .wrap { grid-template-columns: auto 1fr; align-items: center; column-gap: 48px; }
  .policies { justify-content: flex-end; }
  .footer p { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .sides .ring,
  .side-label,
  .code .typing::after { animation: none; }
}
