/* Riiings waitlist. Tokens follow the Figma design (Direction v3). */
:root {
  --bg: #E9E8E4;
  --tile: #FFFFFF;
  --tile2: #F2F1EE;
  --text: #121212;
  --muted: #66655F;
  --line: #DEDCD6;
  --accent: #E8A23F;
  --button: #121212;
  --button-text: #FFFFFF;
  --nav: rgba(233, 232, 228, 0.82);
  --error: #B4413A;
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0B;
    --tile: #151517;
    --tile2: #1E1E21;
    --text: #F2F1EE;
    --muted: #8C8B88;
    --line: #2A2A2E;
    --button: #F2F1EE;
    --button-text: #0A0A0B;
    --nav: rgba(10, 10, 11, 0.82);
    --error: #E0726B;
    color-scheme: dark;
  }
}
/* The light/dark button (theme.js) overrides the system setting */
:root[data-theme="dark"] {
    --bg: #0A0A0B;
    --tile: #151517;
    --tile2: #1E1E21;
    --text: #F2F1EE;
    --muted: #8C8B88;
    --line: #2A2A2E;
    --button: #F2F1EE;
    --button-text: #0A0A0B;
    --nav: rgba(10, 10, 11, 0.82);
    --error: #E0726B;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Nav (sticky, like the landing page) */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 20px max(20px, calc((100% - 1312px) / 2));
  background: var(--nav);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
/* Logo: the ring mark (turns very slowly, see logo.js) and RIIINGS (outlined, letters 0.28x the mark) */
.logo { --m: 56px; display: inline-flex; align-items: center; gap: calc(var(--m) * .19); color: var(--text); text-decoration: none; }
.logo .logo-mark { width: var(--m); height: var(--m); max-width: none; fill: currentColor; overflow: visible; }
.logo .logo-ring { transform-box: view-box; transform-origin: 50px 50px; }
.logo .logo-word { height: calc(var(--m) * .279); width: auto; max-width: none; fill: currentColor; }
.nav .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--button); color: var(--button-text);
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
}
.btn.secondary { background: var(--tile2); color: var(--text); }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 10px; background: var(--tile2); color: var(--text); cursor: pointer; }
.theme-btn svg { width: 20px; height: 20px; max-width: none; }
.theme-btn .moon { display: none; }
:root[data-dark] .theme-btn .sun { display: none; }
:root[data-dark] .theme-btn .moon { display: block; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Hero */
main { padding: 0 20px; }
.hero { max-width: 1312px; margin: 0 auto; padding: 72px 0 40px; text-align: center; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 28px; }
h1 {
  margin: 0 auto; max-width: 1100px;
  font-weight: 200; font-size: clamp(44px, 8vw, 96px); line-height: 1.02; letter-spacing: -.03em;
  color: var(--muted); text-wrap: balance;
}
h1 strong { font-weight: 300; color: var(--text); margin-left: .22em; }
.lede { max-width: 760px; margin: 28px auto 0; font-size: clamp(16px, 2vw, 18px); color: var(--muted); }

/* Form */
.waitlist { max-width: 640px; margin: 36px auto 0; display: grid; gap: 18px; justify-items: center; }
.row { display: flex; gap: 8px; width: 100%; max-width: 480px; }
.field {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--tile2); color: var(--text);
  font: 400 15px var(--font);
}
.field::placeholder { color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
legend { float: left; margin-right: 4px; font-size: 13.5px; color: var(--muted); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted); cursor: pointer;
}
.chip input:checked + span { background: var(--tile2); color: var(--text); border-color: color-mix(in srgb, var(--text) 50%, transparent); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.note { margin: 0; font-size: 12.5px; color: var(--muted); }
.error { margin: 0; font-size: 13.5px; color: var(--error); }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; }

/* Visual */
.visual { max-width: 1312px; margin: 8px auto 0; }
.visual img { width: 100%; }

/* Thanks */
.thanks { max-width: 600px; margin: 0 auto; padding: 80px 0; display: grid; gap: 22px; justify-items: center; text-align: center; }
.thanks svg.rings { width: 96px; height: 96px; max-width: none; }
.thanks h1 { font-size: clamp(32px, 6vw, 52px); }
.card { width: 100%; background: var(--tile); border-radius: 16px; padding: 20px; display: grid; gap: 14px; text-align: left; }
.card p { margin: 0; }
.card .k { font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.link-row { display: flex; gap: 8px; }
.link-box { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 14px; min-height: 46px; border-radius: 10px; background: var(--tile2); font-weight: 500; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { padding: 8px 12px; border-radius: 8px; border: 0; background: var(--tile2); color: var(--text); font: 500 13.5px var(--font); text-decoration: none; cursor: pointer; }
.follow { font-size: 13.5px; color: var(--muted); }
.follow a { color: var(--text); font-weight: 500; text-decoration: none; }

/* Simple text pages */
.page { max-width: 680px; margin: 0 auto; padding: 64px 0; }
.page h1 { text-align: left; font-size: clamp(36px, 6vw, 56px); margin: 0 0 24px; }
.page h2 { font-weight: 500; font-size: 18px; margin: 32px 0 8px; }
.page p, .page li { color: var(--muted); }

/* Footer */
footer {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  padding: 24px max(20px, calc((100% - 1312px) / 2)); border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
footer b { color: var(--text); font-weight: 500; }
footer .spacer { flex: 1; }

@media (max-width: 640px) {
  h1 strong { display: block; margin-left: 0; }
  .hero { padding-top: 40px; text-align: left; }
  .eyebrow { margin-bottom: 18px; }
  h1 { margin: 0; }
  .lede { margin: 18px 0 0; }
  .waitlist { justify-items: stretch; margin-top: 28px; gap: 16px; }
  .row { flex-direction: column; max-width: none; }
  fieldset { justify-content: flex-start; }
  legend { float: none; width: 100%; margin-bottom: 2px; }
  .link-row { flex-direction: column; }
  .thanks { padding: 40px 0; }
  .nav .hide-mobile { display: none; }
  .nav .btn { min-height: 40px; padding: 0 16px; }
  .nav .theme-btn { width: 40px; height: 40px; }
  footer .spacer { flex-basis: 100%; height: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Skip link: hidden until you tab to it */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--text, #121212); color: var(--bg, #E9E8E4); text-decoration: none; }
.skip:focus { top: 12px; }

/* Landing page sections (Figma: Landing page riiings.com) */
html { scroll-behavior: smooth; }
section[id], #join { scroll-margin-top: 96px; }
.nav .links { display: flex; gap: 4px; margin-left: 24px; }
.nav .links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--muted); text-decoration: none; }
.nav .links a:hover { color: var(--text); background: var(--tile2); }
.block { max-width: 1312px; margin: 0 auto; padding: 120px 0 0; text-align: center; }
.split { margin: 0 auto 48px; max-width: 1000px; font-weight: 200; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.025em; color: var(--muted); text-wrap: balance; }
.split strong { font-weight: 300; color: var(--text); }
.split.left { text-align: left; margin: 0 0 20px; font-size: clamp(34px, 3.8vw, 48px); }
.split.xl { font-size: clamp(38px, 5.4vw, 64px); max-width: 1100px; margin-bottom: 36px; }
.grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; text-align: left; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--tile); border-radius: 16px; padding: 28px; }
.tile h3 { margin: 0 0 8px; font-weight: 500; font-size: 19px; line-height: 1.3; }
.tile p { margin: 0; font-size: 15px; color: var(--muted); }
.tile.big { padding: 36px; display: grid; align-content: start; justify-items: start; }
.tile.big h3 { font-weight: 300; font-size: 30px; margin: 14px 0 12px; }
.tile.big p { font-size: 16px; }
.visual img, picture.visual img { width: 100%; border-radius: 12px; }
picture.visual { width: 100%; margin-bottom: 28px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--tile2); font-size: 12px; font-weight: 500; }
.num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.num svg { width: 18px; height: 18px; max-width: none; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px !important; }
.logos svg { width: 18px; height: 18px; fill: currentColor; opacity: .75; }
.logos span { font-size: 12.5px; }
.compact .tile { padding: 22px 24px; }
.compact .tile h3 { font-size: 17px; margin-bottom: 4px; }
.compact .tile p { font-size: 14.5px; }
.rings { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; text-align: left; }
.ring-art img { width: 100%; max-width: 653px; }
.ring-text .lede { margin: 0 0 28px; font-size: 17px; }
.moment { display: flex; gap: 20px; align-items: center; background: var(--tile); border-radius: 16px; padding: 12px; }
.moment img { width: 176px; height: 132px; object-fit: cover; border-radius: 12px; flex: none; }
.moment p { margin: 0; }
.moment .cat { font-size: 12.5px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.moment .dot { width: 8px; height: 8px; border-radius: 50%; background: #EFA35C; }
.moment .mt { font-weight: 300; font-size: 22px; margin: 4px 0 2px; }
.moment .meta { font-size: 13px; color: var(--muted); }
.moment .small { font-size: 12.5px; margin-top: 6px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 16px; justify-content: center; text-align: left; }
.plan { display: grid; align-content: start; justify-items: start; gap: 18px; padding: 36px; }
.plan h3 { margin: 0; font-size: 18px; }
.price { font-weight: 300; font-size: 48px !important; line-height: 1; color: var(--text) !important; }
.price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.checks li::before { content: "✓"; font-weight: 500; margin-right: 10px; }
.plan.plus { background: linear-gradient(160deg, var(--tile) 0%, color-mix(in srgb, var(--accent) 12%, var(--tile)) 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.plan .note { font-size: 12px; }
.final { padding: 140px 0 120px; display: grid; justify-items: center; }
.cta-rings { width: 120px; height: 120px; max-width: none; margin-bottom: 36px; }

@media (max-width: 1100px) {
  .nav .links { display: none; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .rings { grid-template-columns: 1fr; gap: 32px; }
  .ring-art { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .block { padding-top: 80px; text-align: left; }
  .split { margin: 0 0 28px; }
  .grid.two, .grid.three, .plans { grid-template-columns: 1fr; }
  .tile, .tile.big, .plan { padding: 22px; }
  .tile.big h3 { font-size: 24px; }

  .moment { flex-direction: column; align-items: stretch; }
  .moment img { width: 100%; height: 180px; }
  .final { justify-items: start; padding: 96px 0 72px; }
}

.priceline { margin: 14px auto 0; max-width: 760px; }
.priceline b { color: var(--text); font-weight: 500; }
@media (max-width: 640px) { .logo { --m: 44px; } }
