/* ============================================================
   Chorda landing v3 — design system
   Brand idea: the resonant string (dot · line).
   Zero external requests: system font stacks only.
   ============================================================ */

:root {
  --paper: #FAF6EF;
  --paper-raised: #FFFDF8;
  --ink: #1C1E24;
  --body: #3C3F47;
  --muted: #6A6D75;
  --line: #E7E0D2;
  --stage: #15171D;
  --stage-raised: #1D2028;
  --stage-line: #2C303A;
  --stage-text: #E9E5DC;
  --stage-muted: #A9ACB5;
  --gold: #C9973B;
  --gold-text: #8F6B22;
  --gold-bright: #E3B45C;
  --action: #0E6B52;
  --action-hover: #0A523F;
  --focus: rgba(201, 151, 59, 0.55);
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(28, 30, 36, 0.05), 0 10px 30px rgba(28, 30, 36, 0.07);
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--body);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2, h3 { color: var(--ink); line-height: 1.14; letter-spacing: -0.015em; }

strong { color: var(--ink); }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.brand-name {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--paper-raised);
}
.lang-pill:hover { border-color: var(--gold); color: var(--ink); }
.lang-pill svg { width: 15px; height: 15px; stroke: currentColor; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 7vh, 84px) 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.6rem);
  font-weight: 800;
}

.nobr { white-space: nowrap; }

.lead {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  max-width: 34rem;
}

.cta-block { margin-top: 30px; }

.btn {
  display: inline-block;
  background: var(--action);
  color: #fff;
  font-weight: 650;
  font-size: 1.06rem;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-s);
  padding: 15px 34px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: var(--sans);
}
.btn:hover { background: var(--action-hover); color: #fff; }

.price-fact {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.sov-chip {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-text);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 999px;
  padding: 7px 15px;
}
.sov-chip .chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex: none;
}

/* ---------- hero scene ---------- */

.hero-scene { min-width: 0; }

.meet-window {
  background: var(--stage);
  border-radius: var(--radius);
  padding: 14px 14px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stage-line);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 12px;
}
.win-bar .win-dots { display: flex; gap: 5px; }
.win-bar .win-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--stage-line); display: block;
}
.win-bar .win-title {
  font-size: 0.78rem;
  color: var(--stage-muted);
  letter-spacing: 0.01em;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.tile {
  background: var(--stage-raised);
  border: 1px solid var(--stage-line);
  border-radius: 10px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
}

.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--stage);
}
.avatar.a1 { background: #D8C6A9; }
.avatar.a2 { background: #B9C4B1; }
.avatar.a3 { background: #C9B4B0; }

.tile .t-name {
  font-size: 0.75rem;
  color: var(--stage-muted);
}

.tile-chorda {
  background: #101217;
  border-color: rgba(201, 151, 59, 0.45);
  position: relative;
}

.resonance {
  position: relative;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resonance .halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(201, 151, 59, 0.28);
  animation: halo 2.4s ease-out infinite;
}
.resonance .core {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 14px rgba(227, 180, 92, 0.75);
}
@keyframes halo {
  0%   { transform: scale(0.55); opacity: 0.9; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.tile-chorda .t-name { color: var(--gold-bright); font-weight: 600; }

.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-top: 2px;
}
.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  display: block;
  height: 6px;
  animation: wave 1.6s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: 0.18s; height: 12px; }
.wave i:nth-child(3) { animation-delay: 0.36s; height: 8px; }
.wave i:nth-child(4) { animation-delay: 0.54s; height: 11px; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.6); }
  50%      { transform: scaleY(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .resonance .halo, .wave i { animation: none; }
  .resonance .halo { transform: scale(1); opacity: 0.25; }
}

.exchange {
  padding: 16px 6px 2px;
  display: grid;
  gap: 10px;
}
.say {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--stage-text);
}
.say .who {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--stage-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}
.say-chorda .who { color: var(--gold-bright); }
.say-chorda .who::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  display: inline-block;
}

.hero-scene figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gold-text);
  font-weight: 600;
}

/* ---------- scroll cue ---------- */

.scroll-cue-row {
  display: flex;
  justify-content: center;
  padding-block: 26px 34px;
}
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue .cue-arrow {
  width: 22px; height: 22px;
  stroke: var(--gold);
}
.js-motion .scroll-cue .cue-arrow { animation: cue 2.2s ease-in-out infinite; }
@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .cue-arrow { animation: none; }
}

/* ---------- section scaffolding ---------- */

section { scroll-margin-top: 24px; }

.section-pad { padding: clamp(56px, 9vh, 104px) 0; }

.section-head {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 750;
  max-width: 22ch;
}

/* ---------- lifecycle band ---------- */

.experience { border-top: 1px solid var(--line); }

.band {
  margin-top: clamp(36px, 5vh, 56px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
/* the thread */
.band::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, rgba(201,151,59,0), var(--gold) 12%, var(--gold) 88%, rgba(201,151,59,0));
  z-index: 0;
}

.moment { position: relative; z-index: 1; }

.moment .node {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold);
  margin: 28px auto 18px;
}

.moment .phase {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.ui-card {
  margin-top: 16px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 172px;
}

.ui-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.ui-title { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.ui-meta { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

.ui-line {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 0.88rem;
  padding: 4px 0;
}
.ui-line .li-mark { flex: none; width: 16px; text-align: center; }
.li-mark.ok { color: var(--action); font-weight: 700; }
.li-mark.open { color: var(--gold-text); }
.li-mark.next { color: var(--ink); font-weight: 700; }
.ui-line .li-label {
  font-weight: 650;
  color: var(--ink);
  margin-right: 2px;
}

.ui-dotline { color: var(--gold-text); }

.ui-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-text);
  background: rgba(201, 151, 59, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}

/* hint toast */
.toast {
  background: var(--stage);
  color: var(--stage-text);
  border-radius: var(--radius);
  border: 1px solid var(--stage-line);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.toast .toast-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.toast .toast-msg::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(227, 180, 92, 0.7);
}
.toast .toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
.toast-btn {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 650;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: default;
  border: 1px solid var(--stage-line);
  background: var(--stage-raised);
  color: var(--stage-text);
}
.toast-btn.primary {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--stage);
}

.moment h3 {
  margin-top: 20px;
  font-size: 1.14rem;
  font-weight: 720;
}
.moment .m-body {
  margin-top: 8px;
  font-size: 0.96rem;
  max-width: 34ch;
}
.moment .m-quote {
  font-family: var(--serif);
  font-style: italic;
}

/* ---------- sovereignty ---------- */

.sovereignty {
  background: var(--stage);
  color: var(--stage-text);
}
.sovereignty .section-head { color: #fff; }
.sov-intro {
  margin-top: 14px;
  color: var(--stage-muted);
  max-width: 52ch;
}

.sov-grid {
  margin-top: clamp(32px, 4vh, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  list-style: none;
}

.sov-item .sov-icon {
  width: 40px; height: 40px;
  stroke: var(--gold-bright);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sov-item h3 {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 720;
  margin-top: 14px;
}
.sov-item p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--stage-muted);
  max-width: 32ch;
}
.sov-item .sov-line {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-style: italic;
}

/* ---------- decision zone ---------- */

.decision { text-align: center; }

.price-big {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.price-big small {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: var(--body);
  letter-spacing: 0;
  margin-top: 8px;
}
.price-sub {
  margin: 14px auto 0;
  max-width: 44ch;
  color: var(--body);
}

.objections {
  margin: 28px auto 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
}

.decision .btn { margin-top: 30px; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  align-items: center;
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

/* ---------- access page ---------- */

.access-main {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 72px) 24px 72px;
}
.access-thread {
  height: 3px;
  background: linear-gradient(90deg, rgba(201,151,59,0), var(--gold), rgba(201,151,59,0));
  border-radius: 2px;
  margin-bottom: clamp(32px, 5vh, 52px);
}
.access-main h1 {
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 800;
}
.access-lead { margin-top: 16px; }

.facts {
  margin-top: 26px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.facts li {
  display: flex;
  gap: 11px;
  align-items: baseline;
  font-size: 0.98rem;
}
.facts li::before {
  content: "✓";
  color: var(--action);
  font-weight: 800;
  flex: none;
}

.access-form {
  margin-top: 36px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.field { margin-bottom: 22px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 22px; }
fieldset.field legend { padding: 0; }
.field > label, .field > .group-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 9px;
}
.field input[type="email"],
.field input[type="text"],
.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
}
.field input:focus-visible,
.field select:focus-visible { border-color: var(--gold); }

.radio-row { display: grid; gap: 8px; }
@media (min-width: 560px) {
  .radio-row { grid-template-columns: 1fr 1fr; }
}
.radio-row label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  padding: 11px 13px;
  font-size: 0.95rem;
  cursor: pointer;
}
.radio-row label:has(input:checked) {
  border-color: var(--action);
  box-shadow: inset 0 0 0 1px var(--action);
}
.radio-row input { accent-color: var(--action); }

.optional-hint { font-weight: 400; color: var(--muted); }

.access-form .btn { width: 100%; text-align: center; }

.form-note {
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--muted);
  text-align: center;
}

.state {
  margin-top: 26px;
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 0.98rem;
}
.state[hidden] { display: none; }
.state-success {
  background: rgba(14, 107, 82, 0.08);
  border: 1px solid rgba(14, 107, 82, 0.35);
  color: var(--ink);
}
.state-error {
  background: rgba(201, 151, 59, 0.1);
  border: 1px solid rgba(201, 151, 59, 0.4);
  color: var(--ink);
}

/* ---------- legal pages ---------- */

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) 24px 80px;
}
.legal-main h1 { font-size: 2rem; font-weight: 800; }
.legal-main h2 { font-size: 1.2rem; font-weight: 720; margin-top: 34px; }
.legal-main h3 { font-size: 1.02rem; font-weight: 700; margin-top: 22px; }
.legal-main p, .legal-main ul { margin-top: 12px; }
.legal-main ul { padding-left: 20px; }
.legal-note {
  margin-top: 16px;
  border-left: 3px solid var(--gold);
  padding: 10px 16px;
  background: var(--paper-raised);
  color: var(--body);
  font-size: 0.95rem;
}

/* ---------- reveal motion ---------- */

.js-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block-start: 28px;
  }
  .hero h1 { max-width: none; }

  .band { grid-template-columns: 1fr; max-width: 560px; }
  .band::before {
    top: 6%;
    bottom: 6%;
    left: 5px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(201,151,59,0), var(--gold) 10%, var(--gold) 90%, rgba(201,151,59,0));
  }
  .moment { padding-left: 34px; }
  .moment .node {
    position: absolute;
    left: 0;
    top: 4px;
    margin: 0;
  }
  .moment .phase { text-align: left; }

  .sov-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.5rem); }
  .tiles { gap: 7px; }
  .tile { min-height: 84px; }
  .btn { width: 100%; text-align: center; }
  .site-head { padding-top: 20px; }
}
