:root {
  color-scheme: light;
  --paper: #fbf5ed;
  --surface: #fffcf9;
  --ink: #302032;
  --muted: #776a6c;
  --accent: #873c59;
  --plum: #49233c;
  --gold: #e3ae52;
  --line: #e5dad5;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 40px 16px 64px; }
a { color: var(--accent); }
.wordmark { font-family: var(--serif); font-size: 22px; color: var(--plum); text-decoration: none; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: 0.12em; font-weight: 700; text-transform: uppercase; margin: 32px 0 4px; }
h1, h2 { font-family: var(--serif); color: var(--plum); font-weight: 600; line-height: 1.2; }
h1 { font-size: 34px; margin: 4px 0 12px; }
h2 { font-size: 23px; margin: 36px 0 8px; }
.lead { font-size: 19px; }
.card { background: var(--surface); border-left: 4px solid var(--gold); border-radius: 16px; padding: 4px 20px; margin: 16px 0; }
ol, ul { padding-left: 22px; }
li { margin: 6px 0; }
.muted, footer { color: var(--muted); font-size: 15px; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; }

/* Product page */
.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 18px 16px; }
.hero { position: relative; overflow: hidden; background: #2b1a1f; color: #fff8f0; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: 0.9; }
.hero-text { position: relative; max-width: 1080px; margin: 0 auto; padding: 96px 16px 120px; }
.hero h1 { color: #fff8f0; font-style: italic; font-size: clamp(42px, 8vw, 72px); line-height: 1.05; margin: 0 0 16px; max-width: 12ch; text-shadow: 0 1px 12px rgba(30, 14, 20, 0.55); }
.hero p { font-size: 19px; max-width: 34ch; color: #f4e6dd; text-shadow: 0 1px 10px rgba(30, 14, 20, 0.6); }
.hero .wordmark { color: #f4dfc0; }
.button { display: inline-block; background: var(--gold); color: var(--plum); font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 999px; margin-top: 8px; }
.button:hover, .button:focus-visible { background: #ecbf6e; }
.note { font-size: 15px; color: #e8d6cc; margin-top: 10px; }
.section { max-width: 1080px; margin: 0 auto; padding: 56px 16px 8px; }
.section h2 { font-size: clamp(26px, 4vw, 34px); margin-top: 0; }
.section > p { max-width: 62ch; }
.split { display: grid; gap: 32px; align-items: center; }
.memory { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: 0 8px 28px rgba(73, 35, 60, 0.08); }
.memory .meta { color: var(--accent); font-size: 12px; letter-spacing: 0.12em; font-weight: 700; text-transform: uppercase; margin: 0; }
.memory h3 { font-family: var(--serif); font-style: italic; color: var(--plum); font-size: 26px; margin: 6px 0 14px; font-weight: 600; }
.side { border-left: 3px solid var(--gold); padding: 2px 0 2px 14px; margin: 14px 0; }
.side strong { font-family: var(--serif); color: var(--plum); font-weight: 600; }
.side p { margin: 4px 0 0; }
.features { display: grid; gap: 16px; padding: 0; list-style: none; }
.features li { background: var(--surface); border-radius: 16px; padding: 18px 20px; margin: 0; }
.features strong { display: block; font-family: var(--serif); color: var(--plum); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.privacy { background: var(--plum); color: #f4e6dd; border-radius: 24px; padding: 32px 24px; }
.privacy h2 { color: #fff8f0; }
.privacy li { margin: 10px 0; }
.privacy strong { color: var(--gold); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--plum); font-weight: 700; display: grid; place-items: center; }
details { background: var(--surface); border-radius: 14px; padding: 14px 18px; margin: 10px 0; max-width: 72ch; }
summary { cursor: pointer; font-weight: 600; color: var(--plum); }
details p { margin: 8px 0 2px; }
.site-footer { max-width: 1080px; margin: 56px auto 0; padding: 20px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer a { margin-right: 14px; }
@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .privacy { padding: 40px 48px; }
}
.privacy .eyebrow { color: var(--gold); }
.product main { max-width: none; padding: 0; }

/* The product page draws its hero under the status bar (viewport-fit=cover);
   text and controls stay inside the safe areas, also in landscape. */
.hero-text { padding-top: max(96px, calc(env(safe-area-inset-top) + 48px)); }
.hero-text, .product .section, .site-footer {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.site-footer { padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px)); }

/* The product page's own background is the photo's dark colour, so the colour
   Safari uses for the status bar area (and for overscrolling) matches the
   hero at the top and the footer at the bottom. Content sits on paper. */
.product-page, .product { background: #321f1b; }
/* The photo starts with a fade from exactly that colour, so the status bar
   area Safari paints with it meets the photo without a visible edge. */
.hero::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 180px; background: linear-gradient(to bottom, #321f1b, rgba(50, 31, 27, 0)); pointer-events: none; }
.hero-text { z-index: 1; }
.product main { background: var(--paper); padding-bottom: 56px; }
.product .site-footer { margin-top: 0; border-top: 0; color: #e8d6cc; }
.product .site-footer a { color: #f4dfc0; }
