@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap");

:root {
  --ink: #1a2420;
  --ink-60: rgba(26, 36, 32, 0.6);
  --ink-40: rgba(26, 36, 32, 0.4);
  --paper: #f4f7f4;
  --paper-2: #ffffff;
  --line: #dce5de;
  --forest: #14352a;
  --leaf: #1f6b45;
  --mint: #8fe3b0;
  --charge: var(--mint);
  --font: "Manrope", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 3.2vw, 2.75rem);
  --header: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Header */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.is-home .top {
  color: #fff;
  background: transparent;
  backdrop-filter: none;
}

.is-home.is-scrolled .top {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.mark__a {
  position: relative;
}

.mark__a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.28em;
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: var(--mint);
  transform: translateX(-50%);
}

.mark__shop {
  font-weight: 400;
  opacity: 0.4;
}

.top__link {
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  opacity: 0.85;
}

.top__link:hover {
  opacity: 1;
}

/* Hero */

.hero {
  min-height: 100svh;
  background: var(--forest);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header) + 1rem) var(--gutter) 0;
}

.hero h1 {
  font-size: clamp(4.2rem, 13vw, 8.75rem);
  max-width: 8ch;
}

.hero h1 .period {
  color: var(--mint);
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin: 1.75rem 0 2.5rem;
}

.hero__lead {
  max-width: 28rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 0;
  background: var(--leaf);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.hero .btn,
.sum .btn {
  background: #fff;
  color: var(--forest);
}

.btn--ink {
  background: var(--leaf);
  color: #fff;
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.15rem 0 1.4rem;
  font-size: 0.92rem;
}

.facts strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.facts span {
  color: rgba(255, 255, 255, 0.5);
}

/* Lines */

.lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.lines a {
  min-height: 460px;
  padding: 2.25rem var(--gutter) 2rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: background 0.3s var(--ease);
}

.lines a:last-child {
  border-right: 0;
}

.lines a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.lines a:hover {
  background: var(--paper-2);
}

.lines a:hover::before {
  transform: scaleX(1);
}

.lines .big {
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.lines .meta {
  color: var(--ink-60);
  font-size: 1rem;
}

.lines .meta b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.lines .price {
  margin-top: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
}

.lines .go {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-60);
}

/* Turnkey */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.flow div {
  padding: 2.5rem var(--gutter);
  border-right: 1px solid var(--line);
}

.flow div:last-child {
  border-right: 0;
}

.flow em {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-40);
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.flow h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.flow p {
  color: var(--ink-60);
  max-width: 26ch;
}

/* Lead */

.ask {
  background: var(--forest);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}

.ask h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 12ch;
  margin-bottom: 0.8rem;
}

.ask .sub {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.25rem;
  max-width: 32rem;
}

.ask__form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1.5rem 1.75rem;
  align-items: end;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.ask .field input,
.ask .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  padding: 0.7rem 0;
  color: #fff;
  outline: none;
}

.ask .field input:focus,
.ask .field select:focus {
  border-color: #fff;
}

.ask .field select option {
  color: var(--ink);
}

.ask .ok {
  grid-column: 1 / -1;
  color: var(--mint);
  font-weight: 500;
}

/* Footer */

.ftr {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--ink-60);
  font-size: 0.9rem;
}

.is-home .ftr {
  border-top: 0;
  background: var(--forest);
  color: rgba(255, 255, 255, 0.45);
}

/* Configurator */

.cfg-page {
  padding: calc(var(--header) + 2.5rem) var(--gutter) 4rem;
}

.cfg {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: 1180px;
}

.cfg h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin: 1.25rem 0 0.6rem;
}

.cfg .intro {
  color: var(--ink-60);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  flex-wrap: wrap;
}

.seg label {
  position: relative;
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-60);
  cursor: pointer;
}

.seg input:checked + span {
  background: var(--leaf);
  color: #fff;
}

.seg input:checked + span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.block {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.block h3 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.block h3 em {
  font-style: normal;
  color: var(--ink-40);
  font-weight: 500;
  font-size: 0.85rem;
  margin-right: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.range {
  display: grid;
  gap: 0.35rem;
}

.range__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--ink-60);
}

.range__top b {
  color: var(--ink);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line);
  outline: none;
  margin: 0.7rem 0 0.2rem;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  cursor: pointer;
}

.readout {
  margin-top: 0.9rem;
  color: var(--ink-60);
}

.readout b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.toggles {
  display: grid;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.toggle:first-child {
  border-top: 1px solid var(--line);
}

.toggle small {
  display: block;
  color: var(--ink-60);
  font-size: 0.82rem;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle i {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.2s var(--ease);
}

.toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease);
}

.toggle input:checked + i {
  background: var(--leaf);
}

.toggle input:checked + i::after {
  transform: translateX(18px);
}

.field--line label {
  font-size: 0.8rem;
  color: var(--ink-60);
}

.field--line select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.65rem 0;
  outline: none;
}

.sum {
  position: sticky;
  top: calc(var(--header) + 1.25rem);
  background: var(--forest);
  color: #fff;
  border-radius: 24px;
  padding: 1.6rem 1.5rem 1.4rem;
}

.sum__k {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.8rem;
}

.sum__n {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.4rem;
}

.sum dl {
  margin: 0 0 1.2rem;
}

.sum dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
}

.sum dt {
  color: rgba(255, 255, 255, 0.55);
}

.sum dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.sum .note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.2rem;
}

.sum .field label {
  color: rgba(255, 255, 255, 0.5);
}

.sum .field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0.65rem 0;
  outline: none;
  margin-bottom: 1rem;
}

.sum .ok {
  margin-top: 0.9rem;
  color: var(--mint);
  font-size: 0.92rem;
}

/* Motion */

.rise {
  animation: rise 0.8s var(--ease) both;
}

.rise-2 {
  animation: rise 0.8s var(--ease) 0.12s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .facts,
  .lines,
  .flow,
  .ask__form,
  .cfg,
  .pair {
    grid-template-columns: 1fr;
  }

  .lines a,
  .flow div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lines a:last-child,
  .flow div:last-child {
    border-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  .sum {
    position: static;
  }

  .ask__form .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .rise-2 {
    animation: none;
  }
}
