/* Freight instrument — matte black, one signal, Space Grotesk + JetBrains Mono */

:root {
  --bg: #111111;
  --surface: #181818;
  --raised: #1f1f1f;
  --panel: #161616;
  --ink: #eceae6;
  --secondary: #a8a59f;
  --muted: #7a7772;
  --hair: rgba(236, 234, 230, 0.08);
  --hair-strong: rgba(236, 234, 230, 0.14);

  --signal: #c6e84a;
  --signal-ink: #0f1208;
  --signal-soft: rgba(198, 232, 74, 0.12);
  --signal-line: rgba(198, 232, 74, 0.55);

  --ok: #8fd4ad;
  --warn: #f0a8a0;

  --font: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --shell: 1120px;
  --narrow: 640px;
  --radius: 6px;
  --radius-control: var(--radius);
  --control-h: 44px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;
  --dur-slow: 0.7s;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.signal {
  color: var(--signal);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--signal);
  color: var(--signal-ink);
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.shell {
  width: min(100% - var(--space-9), var(--shell));
  margin-inline: auto;
}

.narrow {
  width: min(100% - var(--space-9), var(--narrow));
  margin-inline: auto;
}

/* Top */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.top.is-solid {
  border-bottom-color: var(--hair);
  background: rgba(17, 17, 17, 0.92);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-md);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.top__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-md);
}

.top__nav a {
  text-decoration: none;
  color: var(--secondary);
  transition: color var(--dur) var(--ease);
}

.top__nav a:hover {
  color: var(--ink);
}

.top__cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg) !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.top__cta:hover {
  background: #fff;
}

.top__cta:active {
  transform: translateY(1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: var(--text-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

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

.btn--primary:hover {
  background: #fff;
}

.btn--signal {
  background: var(--signal);
  color: var(--signal-ink);
}

.btn--signal:hover {
  background: #d4f05c;
}

.btn--ghost {
  background: transparent;
  border-color: var(--hair-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--raised);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Hero — full-bleed composition */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: var(--space-12) 0 var(--space-10);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(198, 232, 74, 0.06), transparent 55%),
    linear-gradient(180deg, #0c0c0c 0%, var(--bg) 100%);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero__routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero__path,
.hero__flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__path {
  stroke-width: 1.5;
}

.hero__path--a {
  stroke: rgba(198, 232, 74, 0.55);
}

.hero__path--b {
  stroke: rgba(198, 232, 74, 0.28);
}

.hero__path--c {
  stroke: rgba(236, 234, 230, 0.16);
}

.hero__flow {
  stroke-width: 2;
  stroke: var(--signal);
  opacity: 0;
}

.hero__flow--a {
  --flow-opacity: 0.85;
}

.hero__flow--b {
  --flow-opacity: 0.45;
}

.hero__flow--c {
  stroke: rgba(236, 234, 230, 0.55);
  --flow-opacity: 0.35;
}

.hero__node {
  fill: var(--signal);
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__grid {
    animation: grid-drift 48s linear infinite;
  }

  .hero__path {
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: route-draw 2.8s var(--ease-out) forwards;
  }

  .hero__path--a {
    animation-delay: 0.15s;
  }

  .hero__path--b {
    animation-delay: 0.4s;
  }

  .hero__path--c {
    animation-delay: 0.65s;
  }

  .hero__flow {
    stroke-dasharray: 18 220;
    stroke-dashoffset: 0;
    animation: route-flow 9s linear infinite;
    opacity: 0;
  }

  .hero__flow--a {
    animation:
      route-flow-fade-a 0.6s var(--ease) 2.6s forwards,
      route-flow 8s linear 2.6s infinite;
  }

  .hero__flow--b {
    animation:
      route-flow-fade-b 0.6s var(--ease) 2.9s forwards,
      route-flow 11s linear 2.9s infinite reverse;
    stroke-dasharray: 12 260;
  }

  .hero__flow--c {
    animation:
      route-flow-fade-c 0.6s var(--ease) 3.2s forwards,
      route-flow 14s linear 3.2s infinite;
    stroke-dasharray: 10 300;
  }

  .hero__node {
    opacity: 0;
    animation:
      node-in 0.5s var(--ease) 2.4s forwards,
      node-pulse 3.2s var(--ease) 2.9s infinite;
  }

  .hero__node--mid {
    animation-delay: 2.55s, 3.1s;
  }

  .hero__node--end {
    animation-delay: 2.7s, 3.3s;
  }

  .hero-enter__item {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-in 0.85s var(--ease-out) forwards;
    animation-delay: calc(0.2s + var(--i, 0) * 0.12s);
  }

  @keyframes route-draw {
    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes route-flow {
    to {
      stroke-dashoffset: -238;
    }
  }

  @keyframes route-flow-fade-a {
    to {
      opacity: 0.85;
    }
  }

  @keyframes route-flow-fade-b {
    to {
      opacity: 0.45;
    }
  }

  @keyframes route-flow-fade-c {
    to {
      opacity: 0.35;
    }
  }

  @keyframes grid-drift {
    from {
      transform: translate3d(0, 0, 0);
    }
    to {
      transform: translate3d(-64px, -64px, 0);
    }
  }

  @keyframes node-in {
    to {
      opacity: 1;
    }
  }

  @keyframes node-pulse {
    0%,
    100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.35);
      opacity: 0.7;
    }
  }

  @keyframes hero-in {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter__item {
    opacity: 1;
    transform: none;
  }

  .hero__flow {
    display: none;
  }

  .hero__path,
  .hero__node {
    opacity: 1;
  }
}

.hero__layout {
  max-width: 820px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 16px;
}

.brand-lockup {
  margin-bottom: var(--space-5);
  font-size: clamp(36px, 6.2vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.brand-lockup__line {
  display: block;
}

.hero__lede {
  max-width: 34em;
  margin-bottom: var(--space-7);
  color: var(--secondary);
  font-size: var(--text-lg);
  line-height: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Sections */
.section {
  padding: var(--space-11) 0;
}

.section--band {
  background: var(--surface);
  border-block: 1px solid var(--hair);
}

.section--demo {
  padding-top: var(--space-6);
  padding-bottom: var(--space-12);
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d0d 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 20px;
}

.eyebrow__ref {
  color: var(--signal);
  font-size: var(--text-xs);
}

.section h2 {
  margin-bottom: var(--space-3);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__lede {
  max-width: 40em;
  margin-bottom: var(--space-7);
  color: var(--secondary);
  font-size: var(--text-base);
  line-height: 24px;
}

.demo-head {
  margin-bottom: var(--space-7);
}

/* Live calculator — instrument plane, not a floating card */
.live-calc {
  padding: var(--space-6);
  background: var(--panel);
  border: 1px solid var(--hair-strong);
  border-radius: 0;
  color: var(--ink);
}

.live-calc__chrome {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.live-calc__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--signal-line);
  background: var(--signal-soft);
  color: var(--signal);
  font-family: var(--mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.02em;
}

.live-calc__badge--muted {
  border-color: var(--hair-strong);
  background: transparent;
  color: var(--muted);
}

.live-calc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.live-calc__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.live-calc__field > span,
.form__field > span {
  line-height: 1.3;
}

/* Shared control chrome — keep value vertically centered */
.live-calc__field select,
.live-calc__field input,
.live-calc__dims input,
.form input:not([type="checkbox"]),
.form select,
.form textarea {
  width: 100%;
  box-sizing: border-box;
  height: var(--control-h);
  min-height: var(--control-h);
  margin: 0;
  padding: 0 var(--space-3);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: calc(var(--control-h) - 2px);
  vertical-align: middle;
}

.form textarea {
  height: auto;
  min-height: 96px;
  padding: var(--space-3);
  line-height: 1.45;
  resize: vertical;
}

.brand-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%237a7772' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  background-color: var(--raised);
}

.live-calc__field select option,
.form select option {
  color: #111;
  background: #fff;
  line-height: 1.4;
}

.live-calc__dims {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: var(--space-2);
}

.live-calc__dims span {
  color: var(--muted);
}

.live-calc__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.live-calc__hint {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 20px;
}

.live-calc__result {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hair);
}

.live-calc__route {
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

.live-calc__route svg {
  width: 100%;
  height: 32px;
}

.live-calc__path {
  stroke: var(--signal);
}

.live-calc__route circle {
  fill: var(--signal);
}

.live-calc__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.live-calc__figures span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 16px;
}

.live-calc__figures strong {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.live-calc__tariffs {
  margin-top: var(--space-5);
}

.live-calc__tariffs-title {
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 16px;
}

.live-calc__tariff-list {
  display: grid;
  gap: var(--space-2);
}

.live-calc__tariff {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-3);
  align-items: center;
  width: 100%;
  min-height: var(--control-h);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--hair);
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.live-calc__tariff:hover:not(:disabled) {
  border-color: var(--hair-strong);
}

.live-calc__tariff.is-active {
  border-color: var(--signal-line);
  background: var(--signal-soft);
}

.live-calc__tariff:disabled {
  cursor: default;
  opacity: 0.45;
}

.live-calc__tariff-name {
  font-weight: 500;
}

.live-calc__tariff-days {
  color: var(--muted);
  font-size: var(--text-sm);
}

.live-calc__tariff-price {
  font-family: var(--mono);
  font-size: var(--text-md);
  font-weight: 500;
  white-space: nowrap;
}

.live-calc__status {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 20px;
}

.live-calc__result[data-state="loading"] .live-calc__status {
  color: var(--secondary);
}

.live-calc__result[data-state="ready"] #calc-price {
  color: var(--signal);
}

.live-calc__result[data-state="error"] .live-calc__status {
  color: var(--warn);
}

/* Work — edge-to-edge proof */
.work-shot {
  display: block;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--hair-strong);
  background: #0a0a0a;
  transition: border-color var(--dur) var(--ease);
}

.work-shot:hover {
  border-color: var(--signal-line);
}

.work-shot img {
  width: 100%;
  height: auto;
  transition: transform var(--dur-slow) var(--ease-out);
}

.work-shot:hover img {
  transform: scale(1.02);
}

.work-shot__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--panel);
  color: var(--secondary);
  font-size: var(--text-md);
}

.work-shot__link {
  color: var(--signal);
  font-weight: 500;
}

/* Lists */
.pain-list,
.includes {
  list-style: none;
}

.pain-list li,
.includes li {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hair);
}

.pain-list li:last-child,
.includes li:last-child {
  border-bottom: 1px solid var(--hair);
}

.includes li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-4);
}

.includes strong {
  font-weight: 500;
}

.includes span,
.pain-list li {
  color: var(--secondary);
}

.pain-list strong {
  color: var(--ink);
  font-weight: 500;
}

.proof {
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tags span {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-control);
  background: transparent;
  font-size: var(--text-md);
  color: var(--secondary);
}

.steps {
  list-style: none;
  display: grid;
  gap: var(--space-6);
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.steps__n {
  color: var(--signal);
  font-family: var(--mono);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 24px;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.steps p {
  color: var(--secondary);
}

/* Price */
.section--price .price-figure {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.price-lede {
  margin-bottom: var(--space-7);
}

.price-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-6);
}

.price-split h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--muted);
}

.price-split ul {
  list-style: none;
  color: var(--secondary);
}

.price-split li {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--hair);
}

.pay-note {
  margin-bottom: var(--space-6);
  max-width: 40em;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 20px;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--hair);
}

.faq details:last-child {
  border-bottom: 1px solid var(--hair);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) 0;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.faq summary:hover {
  color: var(--signal);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  padding: 0 0 var(--space-4);
  color: var(--secondary);
}

/* Order */
.section--order {
  background: #0c0c0c;
  border-top: 1px solid var(--hair);
}

.order {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-9);
  align-items: start;
}

.who {
  margin-top: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hair);
}

.who__name {
  margin-bottom: 4px;
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.who__role {
  margin-bottom: var(--space-3);
  color: var(--secondary);
  font-size: var(--text-md);
  line-height: 20px;
}

.who__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-md);
}

.who__links a {
  color: var(--signal);
  text-decoration: none;
}

.who__links a:hover {
  text-decoration: underline;
}

.who__note {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 20px;
}

.form__note a {
  color: var(--signal);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--panel);
  border: 1px solid var(--hair-strong);
}

.form__field--full,
.form__consents,
.form__consent,
.form__actions,
.form__status {
  grid-column: 1 / -1;
}

.form__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  min-width: 0;
  font-size: var(--text-sm);
  line-height: 1.3;
  color: var(--muted);
}

/* display:flex выше перебивает нативный [hidden] */
.form__field[hidden],
.live-calc__field[hidden] {
  display: none !important;
}

.form__field em {
  font-style: normal;
  opacity: 0.75;
}

.req {
  color: var(--signal);
}

.form input:not([type="checkbox"]),
.form select,
.form textarea,
.live-calc__field select,
.live-calc__field input,
.live-calc__dims input {
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.form select.brand-select {
  background-color: var(--raised);
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.form__honeypot {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.form__consents {
  display: grid;
  gap: var(--space-3);
}

.form__consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--secondary);
}

.form__consent input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  accent-color: var(--signal);
}

.form__consent span {
  flex: 1;
  min-width: 0;
}

.form__consent a {
  color: var(--signal);
}

.form__note {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 20px;
}

.form__status {
  font-size: var(--text-md);
}

.form__status[data-type="ok"] {
  color: var(--ok);
}

.form__status[data-type="err"] {
  color: var(--warn);
}

.form .is-invalid {
  border-color: var(--warn) !important;
}

.form__noscript {
  grid-column: 1 / -1;
  padding: var(--space-3);
  background: var(--signal-soft);
  border-radius: var(--radius-control);
  font-size: var(--text-md);
}

/* Footer */
.footer {
  padding: var(--space-8) 0 calc(var(--space-9) + var(--space-2));
  background: #090909;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 20px;
}

.footer__inner {
  display: grid;
  gap: var(--space-2);
}

.footer a {
  color: var(--secondary);
}

.footer a:hover {
  color: var(--signal);
}

/* Legal */
.legal {
  padding-top: var(--space-8);
}

.legal h1 {
  margin-bottom: var(--space-3);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.legal h2 {
  margin: var(--space-7) 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: 500;
}

.legal p {
  margin-bottom: var(--space-3);
  color: var(--secondary);
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-4);
  border: 1px solid var(--hair-strong);
  background: var(--panel);
  color: var(--secondary);
  font-size: var(--text-sm);
  line-height: 20px;
}

.cookie-bar[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-bar:not([hidden]) {
    animation: cookie-in 0.55s var(--ease-out);
  }

  @keyframes cookie-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.cookie-bar p {
  flex: 1;
  min-width: 200px;
}

.cookie-bar a {
  color: var(--signal);
}

.cookie-bar .btn {
  min-height: 36px;
  padding: 0 var(--space-3);
  flex-shrink: 0;
}

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .live-calc__result {
    transition: opacity var(--dur) var(--ease);
  }

  .live-calc__figures strong,
  .live-calc__status {
    transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }

  .tags span {
    transition:
      border-color var(--dur) var(--ease),
      color var(--dur) var(--ease),
      background var(--dur) var(--ease);
  }

  .tags span:hover {
    border-color: var(--signal-line);
    color: var(--ink);
  }

  .footer a {
    transition: color var(--dur) var(--ease);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .live-calc__grid {
    grid-template-columns: 1fr 1fr;
  }

  .order {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .includes li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .price-split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: var(--space-12) 0 var(--space-9);
  }
}

@media (max-width: 640px) {
  .shell,
  .narrow {
    width: min(100% - var(--space-7), var(--shell));
  }

  .top__nav a:not(.top__cta):not([href*="t.me"]) {
    display: none;
  }

  .hero {
    padding: var(--space-10) 0 var(--space-9);
  }

  .section {
    padding: var(--space-10) 0;
  }

  .section--demo {
    padding-top: var(--space-2);
    padding-bottom: var(--space-10);
  }

  .brand-lockup {
    font-size: 32px;
  }

  .hero__lede {
    font-size: var(--text-base);
    line-height: 24px;
  }

  .live-calc {
    padding: var(--space-4);
  }

  .cookie-bar {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
  }

  .live-calc__grid,
  .live-calc__figures,
  .form {
    grid-template-columns: 1fr;
  }

  .live-calc__figures strong {
    font-size: 24px;
  }

  .live-calc__tariff {
    grid-template-columns: 1fr auto;
  }

  .live-calc__tariff-days {
    display: none;
  }
}
