/* SingIt landing - editorial finance desk.
   Design system: /DESIGN.md (Ramp reference + SingIt adaptation at the top).
   Theme: light Bone canvas, Ink text, one Obsidian band.
   Accent: Emerald only, and only where an action is taken.
   Type: Inter 400 only; hierarchy comes from size and tracking.
   Shapes: buttons/tags 6px, inputs 10px, wash 12px, cards 16px. No shadows. */

:root {
  --ink: #0c0a08;
  --obsidian: #1a1919;
  --paper: #ffffff;
  --bone: #f4f2f0;
  --ash: #6d6c6b;
  --ash-dark: #9a9897;
  --hairline: #e5e7eb;
  --smoke: #d3d3d3;
  --line-dark: rgba(255, 255, 255, 0.12);

  --accent: #3ecf8e;
  --accent-hover: #35bd80;
  --brand-ink: #0a7a4b;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "SF Mono", Menlo, monospace;

  --r-btn: 6px;
  --r-input: 10px;
  --r-wash: 12px;
  --r-card: 16px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-feature-settings: "ss01";
  font-size: 16px;
  line-height: 1.5;
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { overflow-x: clip; }

::selection { background: rgba(62, 207, 142, 0.35); }

:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 4px; }

section[id] { scroll-margin-top: 80px; }

img, svg { display: block; }

h1, h2, h3, strong, b { font-weight: 400; }

.shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

h1, h2 { letter-spacing: -0.025em; }
h1 em, h2 em { font-style: normal; color: var(--ash); }

.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  line-height: 1.05;
  max-width: 20ch;
  margin-bottom: 20px;
  text-wrap: balance;
}
.section-sub { font-size: 20px; line-height: 1.4; color: var(--ash); max-width: 44ch; margin-bottom: 48px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px;
  font-family: var(--sans); font-size: 15px; font-weight: 400; line-height: 1;
  border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-arrow { font-size: 14px; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--paper); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }

/* ---------- sticky nav ---------- */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: rgba(255, 255, 255, 0.6) 0 0 2px 0 inset;
}
.nav-bar {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
}

.brand {
  display: inline-flex; align-items: center;
  font-size: 20px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand .mark { width: 28px; height: 28px; color: var(--brand-ink); margin-right: 8px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 14px;
  padding: 8px 12px; border-radius: var(--r-btn);
  transition: background-color 0.3s var(--ease);
}
.nav-links a:hover { background: var(--bone); }

/* ---------- hero : statement left, allowance right ---------- */
.hero { padding: 152px 0 128px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1;
  margin-bottom: 24px;
  max-width: 13ch;
  text-wrap: balance;
}
.hero h1 em { display: block; }
/* word-mask reveal: outer clips, inner slides up from below the line */
.w-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
.w-mask .w { display: inline-block; }

.hero-sub { font-size: 20px; line-height: 1.4; color: var(--ash); max-width: 34ch; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* allowance card : a content card, border instead of shadow */
.allow-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 24px;
}

.allow-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.allow-avatar {
  width: 44px; height: 44px; flex: none;
  background: var(--bone);
  border-radius: var(--r-wash);
  display: grid; place-items: center;
}
.allow-avatar .mark { width: 28px; height: 28px; color: var(--brand-ink); }
.allow-head strong { display: block; font-size: 16px; }
.allow-head span { font-size: 13px; color: var(--ash); }
.allow-head .allow-state {
  margin-left: auto;
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); background: var(--bone);
  border-radius: var(--r-btn); padding: 4px 8px;
}

.allow-label { display: block; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ash); margin-bottom: 8px; }
.allow-metric { margin-bottom: 20px; }
.allow-metric b { display: block; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; }
.allow-of { display: block; font-size: 14px; color: var(--ash); margin: 4px 0 12px; }
.allow-bar { height: 6px; background: var(--bone); border-radius: 3px; overflow: hidden; }
.allow-bar i { display: block; height: 100%; width: 75%; background: var(--accent); transition: width 0.4s var(--ease); }

.allow-rows { border-top: 1px solid var(--hairline); margin-bottom: 20px; }
.allow-rows > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline);
}
.allow-rows dt { font-size: 14px; color: var(--ash); }
.allow-rows dd { font-size: 14px; color: var(--ink); }

.allow-activity { list-style: none; margin-bottom: 20px; }
.allow-activity li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 6px 0; }
.allow-activity li span:last-child { font-family: var(--mono); font-size: 13px; }

.allow-revoke { width: 100%; margin-bottom: 12px; }
.allow-foot { font-size: 13px; color: var(--ash); }

.allow-card.is-revoked .allow-bar i { width: 0; }
.allow-card.is-revoked .allow-state { background: var(--ink); color: var(--paper); }
.allow-card.is-revoked .allow-activity { opacity: 0.45; }

/* ---------- how : three steps ---------- */
.how { padding: 128px 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.step {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 24px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 32px; border-radius: var(--r-btn);
  background: var(--bone);
  font-family: var(--mono); font-size: 13px;
  margin-bottom: 40px;
}
.step h3 { font-size: 24px; line-height: 1.17; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ash); }

/* ---------- ask : example prompts ---------- */
.ask { padding: 0 0 128px; }
.prompts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prompts li {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.prompts b { font-size: 18px; line-height: 1.3; }
.prompts span { font-size: 14px; color: var(--ash); }

/* ---------- buy : typographic rows ---------- */
.buy { padding: 0 0 128px; }
.buy .section-title { margin-bottom: 48px; }
.buy-rows { display: grid; border-bottom: 1px solid var(--smoke); }
.buy-row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px;
  align-items: baseline;
  border-top: 1px solid var(--smoke);
  padding: 32px 0;
  transition: border-color 0.3s var(--ease);
}
.buy-row:hover { border-top-color: var(--ink); }
.buy-row h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em; }
.buy-row p { color: var(--ash); font-size: 16px; max-width: 44ch; }
.buy-tag {
  display: inline-block; margin-top: 12px;
  font-size: 12px !important; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink) !important; background: var(--paper);
  border: 1px solid var(--hairline); border-radius: var(--r-btn); padding: 4px 8px;
}

/* ---------- the one full-bleed dark band ---------- */
.band-dark { background: var(--obsidian); color: var(--paper); }
.band-dark em { color: var(--ash-dark); font-style: normal; }
.band-dark .eyebrow { color: var(--ash-dark); }

.safety { padding: 128px 0; }
.safe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 28px 0 64px; }
.safe-item { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.safe-item h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.safe-item p { font-size: 15px; color: var(--ash-dark); }
.safe-note { font-size: 14px; color: var(--ash-dark); max-width: 60ch; }

/* ---------- wallets ---------- */
.wallets { padding: 128px 0 96px; }
.wallets-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.wallets .section-sub { margin-bottom: 0; }
.wallet-list { list-style: none; border-top: 1px solid var(--smoke); }
.wallet-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--smoke);
  font-size: 18px;
}
.wallet-list li span:last-child { font-size: 14px; color: var(--ash); }
.fine { font-size: 13px; color: var(--ash); margin-top: 32px; }

/* ---------- install ---------- */
.install { padding: 0 0 128px; }
.install-card {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 48px;
}
.install-card .section-sub { margin-bottom: 0; }
.install-steps { list-style: none; display: grid; gap: 12px; }
.install-steps li {
  display: flex; gap: 12px; align-items: baseline;
  background: var(--bone); border-radius: var(--r-wash);
  padding: 16px; font-size: 15px;
}
.install-steps span { font-family: var(--mono); font-size: 13px; color: var(--ash); }

/* ---------- cta ---------- */
.cta { padding: 64px 0 128px; }
.cta h2 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; max-width: 16ch; margin-bottom: 24px; }
.cta p { font-size: 20px; line-height: 1.4; color: var(--ash); max-width: 46ch; margin-bottom: 40px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); background: var(--paper); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.brand-footer { font-size: 18px; }
.brand-footer .mark { width: 24px; height: 24px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { color: var(--ash); font-size: 14px; text-decoration: none; transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--ink); }
.footer-fine { font-size: 13px; color: var(--ash); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 112px 0 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 14ch; }
  .hero-visual { max-width: 520px; }
  .steps, .prompts { grid-template-columns: 1fr 1fr; }
  .safe-grid { grid-template-columns: 1fr 1fr; }
  .wallets-grid, .install-card { grid-template-columns: 1fr; gap: 32px; }
  .install-card { padding: 32px; }
  .buy-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
}

@media (max-width: 720px) {
  .shell, .nav-bar { padding: 0 20px; }
  .nav-bar { height: 56px; gap: 16px; justify-content: space-between; }
  .nav-links { display: none; }
  .hero { padding: 96px 0 80px; }
  .hero-sub, .section-sub, .cta p { font-size: 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .steps, .prompts, .safe-grid { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 24px; }
  .how, .safety, .wallets { padding: 96px 0; }
  .ask, .buy, .install { padding: 0 0 96px; }
  .install-card { padding: 24px; }
  .cta { padding: 48px 0 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation: none !important; }
}
