/* Aradi landing page. Same tokens as the app (lib/core/theme). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-400-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ivory: #F7F3EC;
  --ivory-raised: #FBF8F3;
  --ivory-sunken: #F1ECE3;
  --charcoal: #1F1D1B;
  --charcoal-soft: #4A4642;
  --stone: #6B655E;
  --hairline: #E4DDD2;
  --hairline-strong: #D3CABC;
  --champagne: #B89B6A;
  --champagne-ink: #7A6238;
  --champagne-mist: #EFE6D6;
  --oxblood: #8E3B2E;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --page: clamp(24px, 6vw, 64px);
  --max: 1080px;
  --enter: cubic-bezier(0.33, 1, 0.68, 1);
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--champagne-mist); }

a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--hairline-strong); }
a:hover { text-decoration-color: var(--champagne); }

:focus-visible { outline: 1.5px solid var(--champagne-ink); outline-offset: 3px; }

.sprite { position: absolute; }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.gold { color: var(--champagne); }

.skip {
  position: absolute;
  left: var(--page);
  top: -60px;
  padding: 8px 12px;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: 2px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Shared type */

.wordmark {
  font: 500 19px/1 var(--serif);
  letter-spacing: 0.28em;
}
.wordmark.small { font-size: 15px; }

.overline {
  margin: 0 0 12px;
  font: 500 11px/16px var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-ink);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 400; }

h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

h3 { font-size: 23px; line-height: 1.25; }

.rule {
  display: block;
  width: 48px;
  height: 1.5px;
  margin: 24px 0;
  background: var(--champagne);
}

/* Layout */

.top, main > section, .foot {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--page));
  margin: 0 auto;
  padding-left: var(--page);
  padding-right: var(--page);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: env(safe-area-inset-top);
}
.top-link {
  font: 500 14px/20px var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
}
.top-link:hover { border-bottom-color: var(--champagne); }

main > section { padding-top: clamp(64px, 10vw, 128px); }

/* Hero */

.hero { padding-top: clamp(40px, 8vw, 96px); }

/* The necklace, worn. A photo, so it gets a small radius and a hairline
   like the app's cards. */
.necklace {
  margin: clamp(48px, 10vw, 72px) auto 0;
  max-width: 460px;
}
.necklace img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  outline: 1px solid var(--hairline);
  outline-offset: -1px;
  background: var(--ivory-sunken);
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: center;
  }
  .hero-text { grid-column: 1; grid-row: 1; }
  .necklace {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    max-width: none;
    justify-self: center;
    width: min(100%, 500px);
  }
  .hero .quote { grid-column: 1 / -1; }
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(44px, 8.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

/* The intro is set in the serif, like an editorial standfirst. Cormorant
   is fine-boned, so it runs larger and in full charcoal to stay legible. */
.lede {
  max-width: 26em;
  margin: 0 0 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 24px);
  line-height: 1.5;
  color: var(--charcoal);
}

.quote {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 16px;
  max-width: 34em;
  margin: clamp(56px, 8vw, 88px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--hairline);
}
.quote .icon { margin-top: 4px; }
.quote blockquote {
  margin: 0;
  font: italic 400 clamp(20px, 2.2vw, 24px)/1.45 var(--serif);
}
.quote figcaption {
  grid-column: 2;
  margin-top: 12px;
  font-size: 13px;
  color: var(--stone);
}

/* Sign-up form */

.signup { max-width: 34em; }

.field label {
  display: block;
  margin-bottom: 4px;
  font: 500 11px/16px var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.field-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  border-bottom: 1px solid var(--hairline-strong);
  transition: border-color 240ms ease;
}
.field-row:focus-within { border-bottom-color: var(--champagne); }

.field input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  font: 400 17px/1.4 var(--sans);
}
.field input::placeholder { color: var(--stone); }
.field input:focus { outline: none; }
.field-row:has(input:focus-visible) { outline: 1.5px solid var(--champagne-ink); outline-offset: 6px; }

.signup button {
  align-self: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 2px;
  background: var(--charcoal);
  color: var(--ivory);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 240ms ease;
}
.signup button:hover { background: #34302C; }
.signup button[disabled] { background: var(--hairline-strong); cursor: default; }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone);
  cursor: pointer;
}
.consent input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: var(--ivory-raised);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.consent input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--ivory);
  border-bottom: 1.5px solid var(--ivory);
  transform: translateY(-1px) rotate(-45deg);
  opacity: 0;
}
.consent input:checked { background: var(--charcoal); border-color: var(--charcoal); }
.consent input:checked::after { opacity: 1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.status {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--charcoal-soft);
}
.status.error { color: var(--oxblood); }
.status.done { color: var(--champagne-ink); }

.signup.is-done .field,
.signup.is-done .consent { display: none; }
.signup.is-done .status {
  font: italic 400 22px/1.4 var(--serif);
  color: var(--charcoal);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.steps li { border-top: 1px solid var(--hairline); padding-top: 20px; }
.num {
  display: block;
  margin-bottom: 12px;
  font: 500 11px/16px var(--sans);
  letter-spacing: 0.16em;
  color: var(--champagne-ink);
}
.steps p, .space p { margin: 8px 0 0; color: var(--charcoal-soft); font-size: 15px; }

/* Spaces */

.space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.space {
  padding: 24px 20px 28px;
  background: var(--ivory-raised);
  border: 1px solid var(--hairline);
  border-radius: 4px;
}
.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1px solid var(--champagne);
  background: radial-gradient(circle at 32% 28%, #fff9 0%, var(--wash) 62%);
  color: var(--accent);
  box-shadow: inset 0 0 0 2.5px var(--ivory-raised), inset 0 0 0 3.5px color-mix(in srgb, var(--accent) 14%, transparent);
}
.mark .icon { width: 22px; height: 22px; }

/* Promise */

.promise { text-align: center; }
.promise-line {
  max-width: 18em;
  margin: 0 auto;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.2;
}
.promise p {
  max-width: 30em;
  margin: 24px auto 0;
  color: var(--charcoal-soft);
}

/* Join */

.join { padding-bottom: clamp(64px, 10vw, 128px); }
.join-note { margin: 0 0 32px; color: var(--charcoal-soft); }

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--stone);
}
.foot nav { margin-right: auto; }
.foot p { margin: 0; }
.foot nav a { padding: 12px 0; }

/* Contact us: an envelope and a label, opening the visitor's email app. */
.contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--charcoal);
  font: 500 14px/20px var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.contact .icon { width: 20px; height: 20px; color: var(--champagne-ink); }
.contact span { border-bottom: 1px solid transparent; transition: border-color 240ms ease; }
.contact:hover span { border-bottom-color: var(--champagne); }

/* Motion: a slow fade and an 8px drift. Nothing moves with reduced motion. */

.js .reveal { opacity: 0; transform: translateY(8px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--enter), transform 600ms var(--enter);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.is-in { transition: none; }
}

/* Smaller screens */

@media (max-width: 900px) {
  .space-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .field-row { flex-direction: column; gap: 0; border-bottom: 0; }
  .field input { border-bottom: 1px solid var(--hairline-strong); }
  .field-row:focus-within .field input { border-bottom-color: var(--champagne); }
  .signup button { align-self: stretch; min-height: 52px; margin-top: 16px; }
  .space-grid { grid-template-columns: 1fr; }
  .space { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .space .mark { grid-row: span 2; margin: 0; }
  .space p { margin-top: 4px; }
}
