@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --paper: #faf7f2;
  --paper-2: #fffcf8;
  --card: #ffffff;
  --line: #e7e1d8;
  --teal: #0f766e;
  --teal-deep: #0f766e;
  --signal: #ffffff;
  --signal-soft: #1c1c1c;
  --up: #15803d;
  --down: #b91c1c;
  --white: #ffffff;
  --shadow: none;
  --radius: 12px;
  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --max: 1120px;
  --page-zoom: 1.25;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }
html.intro-page { zoom: var(--page-zoom); font-size: 90%; }
html.ranking-page { font-size: 90%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: #fffcf8;
  border-bottom: 1px solid #e7e1d8;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand span {
  color: #6d28d9;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}

.nav a {
  color: #57534e;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #1c1917;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.nav a.active { color: #1c1917; }

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #8f2f2a;
  color: #fff;
}

.btn-primary:hover { background: #742622; }

.btn-teal {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.btn-teal:hover { background: rgba(61, 220, 132, 0.12); }

.btn-ghost {
  background: #fff;
  border-color: #d6cfc4;
  color: #1c1917;
}

.btn-ghost:hover {
  border-color: #a8a29e;
  background: #f5f0ea;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.8rem;
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ——— Intro cover ——— */
.hero {
  position: relative;
  min-height: auto;
  display: block;
  background: var(--paper);
  overflow: visible;
}

.cover-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hero-media {
  position: relative;
  height: min(68vh, 560px);
  border-radius: 20px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade { display: none; }

.hero-copy {
  width: auto;
  margin: 0;
  color: var(--ink);
  animation: riseIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy .cover-kicker {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f2f2a;
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 4.15rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 38ch;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn-ghost {
  background: transparent;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 36px;
  animation: riseIn 0.8s ease both;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-pad { padding: 28px; }

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.flow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.step-no {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(61, 220, 132, 0.12);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
}

.flow-list strong {
  display: block;
  margin-bottom: 4px;
}

.flow-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric-strip article {
  background: var(--card);
  padding: 22px 20px;
}

.metric-strip small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.metric-strip strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}

.first-look {
  padding: 28px 0 8px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.first-look-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 28px 36px;
  padding: 28px 0 32px;
}

.first-look-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.first-look-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.first-look-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
  line-height: 1.45;
}

.first-look-unique {
  padding-left: 28px;
  border-left: 2px solid rgba(61, 220, 132, 0.45);
}

.first-look-unique .first-look-title {
  color: var(--ink);
}

.why-section {
  padding-top: 72px;
}

.why-shell {
  max-width: 720px;
}

.why-head {
  margin-bottom: 28px;
}

.why-lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 36ch;
}

.why-story {
  display: grid;
  gap: 18px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  animation: riseIn 0.9s ease both;
  animation-delay: 0.08s;
}

.why-story p {
  margin: 0;
  max-width: 48ch;
}

.why-pivot {
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 34ch !important;
}

.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}

.belief-grid article {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 2px solid rgba(61, 220, 132, 0.45);
  animation: riseIn 0.8s ease both;
}

.belief-grid article:nth-child(2) { animation-delay: 0.08s; }
.belief-grid article:nth-child(3) { animation-delay: 0.16s; }

.belief-grid strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.belief-grid span {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 28ch;
}

.diff-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  animation: riseIn 0.85s ease both;
}

.diff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.diff-row:first-child .diff-them,
.diff-row:first-child .diff-us {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.diff-them,
.diff-us {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
  max-width: 36ch;
}

.diff-them {
  color: var(--muted);
}

.diff-us {
  color: var(--ink);
  font-weight: 500;
}

.stack-layers {
  display: grid;
  gap: 14px;
  max-width: 40rem;
  animation: riseIn 0.85s ease both;
}

.stack-layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.stack-layer:last-child {
  border-bottom: 1px solid var(--line);
}

.stack-layer.is-common .stack-step {
  color: var(--muted);
  background: #f3eee8;
}

.stack-step {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: rgba(61, 220, 132, 0.12);
}

.stack-layer strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stack-layer span {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36ch;
}

.stack-note {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink);
  max-width: 28ch;
  line-height: 1.35;
}

.why-close {
  padding-bottom: 96px;
}

.why-close-inner {
  max-width: 40rem;
  padding: 40px 0 8px;
  border-top: 1px solid var(--line);
}

.why-close h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.why-close p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40ch;
}

/* ——— Ranking ——— */
.page-banner {
  padding: 42px 0 18px;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.page-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 20px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(320px, 100%);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

table.rank {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

table.rank th,
table.rank td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.rank th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fff;
  position: sticky;
  top: 0;
}

table.rank td:first-child,
table.rank th:first-child,
table.rank td:nth-child(2),
table.rank th:nth-child(2) {
  text-align: left;
}

table.rank tbody tr {
  transition: background 0.2s ease;
  animation: riseIn 0.55s ease both;
}

table.rank tbody tr:nth-child(1) { animation-delay: 0.05s; }
table.rank tbody tr:nth-child(2) { animation-delay: 0.1s; }
table.rank tbody tr:nth-child(3) { animation-delay: 0.15s; }
table.rank tbody tr:nth-child(4) { animation-delay: 0.2s; }
table.rank tbody tr:nth-child(5) { animation-delay: 0.25s; }

table.rank tbody tr:hover { background: #f6f1ea; }

.uid {
  font-weight: 600;
}

.uid small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
  margin-top: 2px;
}

.up { color: var(--up); }
.down { color: var(--down); }

/* ——— Auth / forms ——— */
.auth-layout {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.auth-visual .caption {
  position: absolute;
  left: 36px;
  bottom: 36px;
  right: 36px;
  color: #f2f7f8;
}

.auth-visual h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 2.2rem;
}

.auth-visual p {
  margin: 0;
  color: rgba(242, 247, 248, 0.85);
  max-width: 28ch;
}

.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.auth-form {
  width: min(420px, 100%);
  animation: riseIn 0.7s ease both;
}

.auth-form h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 2.2rem;
}

.auth-form .lead {
  margin: 0 0 28px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
}

.field textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-row a { color: var(--teal-deep); font-weight: 600; }

.auth-form .btn { width: 100%; }

.form-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-note.is-error { color: var(--down); }
.form-note.is-ok { color: var(--teal-deep); }

.user-chip {
  display: inline-flex;
  align-items: center;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.header-actions .btn[data-logout],
.header-actions button.btn {
  cursor: pointer;
  font: inherit;
}

.switch-auth {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.switch-auth a {
  color: var(--teal-deep);
  font-weight: 600;
}

/* ——— Account ——— */
.account-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.account-top h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.account-top p {
  margin: 6px 0 0;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  animation: riseIn 0.65s ease both;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.stat em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
}

.account-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}

.date-list {
  max-height: 520px;
  overflow: auto;
}

.date-btn {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 12px 14px;
  cursor: pointer;
}

.date-btn:hover,
.date-btn.active {
  background: rgba(61, 220, 132, 0.1);
}

.date-btn strong { display: block; }
.date-btn small { color: var(--muted); }

.deal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.deal-table th,
.deal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.deal-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ——— Contact / Payment ——— */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.price:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.price.featured {
  border-color: var(--teal);
  background: #fff8f6;
}

.price h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.price .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin: 12px 0;
}

.price .amount span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.price ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}

.pay-form .btn { width: 100%; }

/* Plans and Contact fill one screen */
body.fit-screen {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.84rem;
  line-height: 1.35;
}

body.fit-screen .site-header {
  padding: 8px 22px;
  gap: 16px;
}

body.fit-screen .brand { font-size: 1.2rem; }

body.fit-screen .nav a {
  font-size: 0.72rem;
  padding: 6px 0;
}

body.fit-screen .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}

body.fit-screen main.shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 0 6px;
  width: min(1180px, calc(100% - 32px));
}

body.fit-screen .page-banner {
  padding: 0 0 8px;
}

body.fit-screen .page-banner h1 {
  font-size: 1.35rem;
  margin: 0 0 2px;
}

body.fit-screen .page-banner p {
  font-size: 0.8rem;
  max-width: none;
}

body.fit-screen .site-footer {
  margin-top: 0;
  padding: 8px 22px;
  font-size: 0.75rem;
}

body.fit-screen .panel h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

body.fit-screen .panel-lead {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

body.fit-screen .panel-pad { padding: 12px 14px; }

body.fit-screen .field {
  gap: 2px;
  margin-bottom: 6px;
}

body.fit-screen .field label { font-size: 0.72rem; }

body.fit-screen .field input,
body.fit-screen .field select,
body.fit-screen .field textarea {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

body.plans-page .price-grid {
  gap: 10px;
  margin-bottom: 10px;
}

body.plans-page .price {
  padding: 10px 12px 12px;
}

body.plans-page .price:hover { transform: none; }

body.plans-page .price h3 {
  font-size: 1rem;
  margin: 0;
}

body.plans-page .price p { font-size: 0.75rem; }

body.plans-page .price .amount {
  font-size: 1.35rem;
  margin: 4px 0;
}

body.plans-page .price .amount span { font-size: 0.75rem; }

body.plans-page .price ul {
  margin: 0 0 8px;
  gap: 2px;
  font-size: 0.76rem;
}

body.plans-page .two-col,
body.contact-page .two-col {
  flex: 1;
  min-height: 0;
  gap: 10px;
  align-items: stretch;
}

body.plans-page .two-col > .panel,
body.contact-page .two-col > .panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.plans-page .flow-list,
body.contact-page .flow-list {
  gap: 8px;
}

body.plans-page .flow-list span,
body.contact-page .flow-list span { font-size: 0.75rem; }

body.plans-page .step-no,
body.contact-page .step-no {
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
}

body.plans-page .two-col > aside .flow-list {
  flex: 1;
  align-content: space-evenly;
}

body.plans-page .two-col > aside .btn { margin-top: auto; align-self: flex-start; }

body.contact-page form.panel .field:has(textarea) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.contact-page .two-col > aside .flow-list {
  flex: 1;
  align-content: space-evenly;
}

body.contact-page .field textarea {
  flex: 1;
  min-height: 0;
  resize: none;
}

.site-footer {
  margin-top: 60px;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

/* ——— Trader / miner registration ——— */
.trader-page {
  line-height: 1.65;
}

.trader-page .page-banner {
  padding-top: 48px;
}

.trader-page .page-banner h1 {
  line-height: 1.15;
}

.trader-page .page-banner > p,
.trader-page .section-head p,
.trader-page .why-first-list span,
.trader-page .benefit p,
.trader-page .register-steps p,
.trader-page .trader-cta p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.trader-kicker {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-banner .why-first {
  margin-top: 28px;
  max-width: 46rem;
  background: var(--card);
}

.why-first h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.why-first-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.why-first-list li {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.why-first-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.why-first-list strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.why-first-list span {
  max-width: 68ch;
}

.trader-section {
  padding: 56px 0 8px;
}

.trader-section .section-head {
  margin-bottom: 24px;
  animation: none;
}

.trader-section .section-head h2 {
  line-height: 1.2;
}

.trader-section .section-head p {
  max-width: 62ch;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.benefit {
  padding: 22px 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.benefit-label {
  margin: 0 0 8px;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.benefit h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.benefit p {
  margin: 0;
  max-width: 46ch;
}

.register-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.register-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.register-steps h3 {
  margin: 2px 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
}

.register-steps p {
  margin: 0;
  max-width: 68ch;
}

.trader-cta {
  margin: 64px 0 28px;
  padding: 40px 44px 36px;
  background: var(--card);
  border-top: 3px solid var(--teal);
}

.trader-cta h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.trader-cta p {
  margin: 0 0 28px;
  max-width: 58ch;
}

.trader-cta .hero-actions {
  margin: 0;
}

@media (max-width: 1080px) {
  html.intro-page {
    zoom: 1;
    font-size: 100%;
  }

  html, body { overflow-x: clip; }

  .hero { min-height: auto; }

  .cover-grid {
    grid-template-columns: 1fr;
    width: min(var(--max), calc(100% - 32px));
    gap: 28px;
    padding: 32px 0 40px;
  }

  .hero-media { height: 320px; }

  body.fit-screen {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    display: block;
    font-size: 1rem;
    line-height: 1.5;
  }

  body.fit-screen .site-header {
    padding: 12px 16px;
    gap: 10px 16px;
  }

  body.fit-screen .brand { font-size: 1.35rem; }

  body.fit-screen .nav a {
    font-size: 0.72rem;
    padding: 8px 0;
  }

  body.fit-screen .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  body.fit-screen main.shell {
    display: block;
    flex: none;
    width: min(var(--max), calc(100% - 32px));
    padding: 20px 0 36px;
  }

  body.fit-screen .page-banner { padding: 8px 0 16px; }

  body.fit-screen .page-banner h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

  body.fit-screen .page-banner p { font-size: 0.95rem; }

  body.fit-screen .site-footer {
    margin-top: 28px;
    padding: 22px 16px;
    font-size: 0.88rem;
  }

  body.fit-screen .panel h2 { font-size: 1.25rem; }

  body.fit-screen .panel-lead { font-size: 0.92rem; }

  body.fit-screen .panel-pad { padding: 18px; }

  body.fit-screen .two-col,
  body.fit-screen .two-col > .panel {
    display: grid;
  }

  body.fit-screen .field textarea {
    min-height: 140px;
    flex: none;
    resize: vertical;
  }

  .split,
  .auth-layout,
  .two-col,
  .price-grid,
  .account-body,
  .first-look-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .belief-grid,
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .first-look-unique {
    padding-left: 0;
    padding-top: 8px;
    border-left: 0;
    border-top: 2px solid rgba(61, 220, 132, 0.45);
  }

  .auth-visual { min-height: 200px; }

  .site-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 16px;
    padding: 12px 16px;
  }

  .brand { grid-column: 1; grid-row: 1; }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    gap: 8px 14px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin-left: 0;
    justify-self: end;
  }

  .table-shell {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .section { padding: 48px 0; }

  .trader-cta {
    margin: 36px 0 16px;
    padding: 28px 22px 24px;
  }
}

@media (min-width: 720px) and (max-width: 1080px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }

  .hero { padding: 0; }

  .cover-grid { width: calc(100% - 28px); padding: 24px 0 32px; }

  .hero-copy { width: auto; margin: 0; }

  .hero-copy h1 { font-size: 2.2rem; }

  .hero-media { height: 220px; }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .stat-grid,
  .belief-grid,
  .metric-strip,
  .price-grid,
  .diff-row {
    grid-template-columns: 1fr;
  }

  .diff-row { gap: 8px; }

  .page-banner { padding: 24px 0 12px; }

  .page-banner h1 { font-size: 1.7rem; }

  .toolbar { align-items: stretch; }

  .search { width: 100%; }

  .auth-form-wrap { padding: 24px 16px; }

  .auth-visual { min-height: 150px; }

  .auth-visual .caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .auth-visual h2 { font-size: 1.45rem; }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  .site-footer .shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-top { align-items: flex-start; }

  .btn { min-height: 42px; }
}
