:root {
  color-scheme: light;
  --ink: #121211;
  --muted: #68665f;
  --paper: #f2f0eb;
  --card: #fffefa;
  --line: #d8d4ca;
  --focus: #1e63d2;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 10; background: #000; color: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 900; letter-spacing: -.035em; text-decoration: none; font-size: 1.1rem; }
.product-name { color: var(--muted); font-size: .72rem; letter-spacing: .18em; border-left: 1px solid var(--line); padding-left: .75rem; }
main { overflow: hidden; }
.hero {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7.5rem) 0 4rem;
  text-align: center;
}
.eyebrow { margin: 0 0 1rem; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #5e5b54; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.85rem, 9vw, 5.7rem); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
.hero-copy { max-width: 610px; margin: 1.5rem auto 2.25rem; font-size: clamp(1.04rem, 2.5vw, 1.25rem); line-height: 1.6; color: #4d4b46; }
.download-form {
  position: relative;
  text-align: left;
  padding: .72rem;
  background: var(--card);
  border: 1px solid #cbc6bb;
  border-radius: 19px;
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 18px 48px rgba(27,24,17,.1);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.download-form:focus-within { border-color: #aaa59b; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 54px rgba(27,24,17,.12); }
.download-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.input-row { display: flex; gap: .6rem; }
input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid #e7e2d8;
  border-radius: 12px;
  padding: 0 1rem;
  background: #f6f3ed;
  color: var(--ink);
  font-size: 1rem;
}
button, .download-button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: .85rem 1.3rem;
  background: #111;
  color: white;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover, .download-button:hover { background: #2c2b28; }
button:disabled { opacity: .62; cursor: wait; }
.form-help { margin: .5rem .75rem .12rem; color: var(--muted); font-size: .76rem; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.5rem 0; }
.platforms span { border: 1px solid var(--line); border-radius: 999px; padding: .38rem .68rem; color: #57554f; font-size: .76rem; background: rgba(255,255,255,.45); }
.coming-soon { margin: -1rem 0 1.35rem; color: var(--muted); font-size: .76rem; }
.platform-unavailable { padding: 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 42px rgba(27,24,17,.07); }
.platform-unavailable strong, .platform-unavailable a { display: block; }
.platform-unavailable strong { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; }
.platform-unavailable a { margin-top: .55rem; color: var(--muted); font-size: .84rem; text-underline-offset: 3px; }
.status { min-height: 1.5rem; color: #55524c; font-weight: 650; }
.status.error { color: #a12727; }
.result { margin-top: 1rem; padding: clamp(1.2rem, 4vw, 2rem); text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.result-head { display: grid; grid-template-columns: 112px 1fr; gap: 1.2rem; align-items: center; }
.result-thumb { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: #ddd8cf; }
.result-kicker { margin: 0 0 .35rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .68rem; }
.result h2 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; line-height: 1.15; }
.format-list { display: grid; gap: .65rem; margin-top: 1.35rem; }
.format-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem .1rem; border-top: 1px solid #e5e2da; }
.format-copy strong, .format-copy span, .format-copy small { display: block; }
.format-copy strong { font-size: 1.03rem; line-height: 1.2; }
.best-quality-label { margin-top: .18rem; color: #706d65; font-size: .68rem; font-weight: 700; letter-spacing: .025em; }
.format-copy small { margin-top: .34rem; color: var(--muted); }
.relay-cta { margin: 1.25rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.relay-cta a { font-weight: 750; line-height: 1.5; text-underline-offset: 4px; }
.trust-copy { margin-top: 1.5rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.trust-copy p { margin: .25rem 0; }
.how-it-works, .ecosystem { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; border-top: 1px solid var(--line); }
.how-it-works { padding: clamp(2.25rem, 5.5vw, 4.25rem) 0; }
.ecosystem { padding: clamp(3rem, 8vw, 6rem) 0; }
.how-it-works h2, .ecosystem h2 { max-width: 720px; margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; }
.how-it-works > p:not(.eyebrow) { max-width: 650px; margin: .85rem 0 0; line-height: 1.65; color: var(--muted); }
.how-it-works ol { list-style: none; padding: 0; margin: 1.55rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.how-it-works li { padding: 1.05rem; min-height: 104px; border: 1px solid var(--line); background: rgba(255,255,255,.38); border-radius: 14px; }
.how-it-works li strong, .how-it-works li span { display: block; }
.how-it-works li span { color: var(--muted); margin-top: .45rem; line-height: 1.45; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; margin-top: 2rem; }
.product-card { position: relative; display: flex; flex-direction: column; min-height: 190px; height: 100%; padding: 1.45rem 3.4rem 1.45rem 1.45rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #9c988f; }
.product-card[data-ecosystem-product="relay"] { border-color: #aaa69d; box-shadow: inset 2px 0 0 #6b685f; }
.product-card span, .product-card strong, .product-card small { display: block; }
.product-card span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-card[data-ecosystem-product="relay"] span { color: #383630; }
.product-card strong { max-width: 420px; min-height: 3.1rem; margin-top: .95rem; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.15; font-weight: 500; }
.product-card small { max-width: 390px; margin-top: .55rem; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.product-card b { position: absolute; right: 1.4rem; bottom: 1.2rem; font-size: 1.2rem; }
footer { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; }
footer nav { display: flex; gap: 1rem; }

@media (max-width: 640px) {
  .site-header { min-height: 62px; }
  .hero { padding-top: 3.8rem; }
  .input-row { display: grid; }
  button { width: 100%; }
  .result-head { grid-template-columns: 1fr; }
  .result-thumb { width: 100%; }
  .format-row { align-items: stretch; flex-direction: column; }
  .download-button { width: 100%; }
  .how-it-works ol, .product-grid { grid-template-columns: 1fr; }
  .how-it-works { padding: 2.35rem 0; }
  .product-card { min-height: 172px; }
  .product-card strong { min-height: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
