/* ADRAS site: tokens, base, hero, prices, process, contacts. Scenes live in scenes.css */
:root {
  --ink: #0D0F14;
  --indigo: #1E2440;
  --madder: #C8442C;
  --madder-dark: #A9361F;
  --silk: #F2EADF;
  --ash: #8C8A93;
  --line: rgba(242, 234, 223, .14);

  --f-head: "Unbounded", "Arial", sans-serif;
  --f-text: "Golos Text", "Arial", sans-serif;

  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --section: clamp(5rem, 12vh, 9rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--silk);
  font: 400 1.0625rem/1.55 var(--f-text);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--silk); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--silk); color: var(--ink); padding: 12px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.h2 {
  font: 300 clamp(1.9rem, 4.2vw, 3.4rem)/1.08 var(--f-head);
  letter-spacing: -.02em;
}
.h3 { font: 400 clamp(1.2rem, 2vw, 1.6rem)/1.2 var(--f-head); letter-spacing: -.01em; }
.lead { color: var(--ash); margin-top: .75rem; font-size: 1.125rem; }
.note { color: var(--ash); font-size: .95rem; max-width: 32em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 28px;
  background: var(--madder); color: #fff; /* only pure white on Madder (4.9:1) */
  font: 500 1.0625rem/1.2 var(--f-text); text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--madder-dark); }
.btn:active { transform: translateY(1px); }
.link {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
  text-decoration: underline; text-decoration-color: rgba(242, 234, 223, .4);
  text-underline-offset: 5px; transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: var(--silk); }

/* ---------- 1. Hero ---------- */
.hero { position: relative; height: 210vh; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; display: flex; align-items: center;
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(14px, 2.6vh, 28px);
}
.hero__logo { display: block; margin-bottom: clamp(8px, 4vh, 48px); }
.hero__logo img { width: clamp(104px, 11vw, 150px); height: auto; }
.hero__title {
  font: 300 clamp(1.95rem, 7.4vw, 6.6rem)/1.04 var(--f-head);
  letter-spacing: -.025em;
}
.hl { display: block; white-space: nowrap; }
.hero__title em { font-style: normal; color: var(--madder); } /* large text: 3.7:1 passes AA-large */
.hero__tj { color: var(--ash); font-size: 1rem; }
.hero__sub { max-width: 33em; font-size: clamp(1rem, 1.3vw, 1.2rem); color: rgba(242, 234, 223, .86); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }

.thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.thread--back { z-index: 0; }
.thread--front { z-index: 2; }
.thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thread--back path { stroke: var(--madder); stroke-width: 3; }
.thread--front path { stroke: var(--madder); stroke-width: 3.5; stroke-dasharray: 12 40; }
.thread--front .thread__gap { stroke: var(--ink); stroke-width: 9; } /* gap in background colour, as in the logo */
.thread--front .thread__mask { stroke: #fff; stroke-width: 18; }

/* ---------- 4. Prices ---------- */
.prices { padding-block: var(--section); }
.plans { margin-top: clamp(2rem, 5vh, 3.5rem); border-bottom: 1px solid var(--line); }
.plan {
  display: grid; grid-template-columns: minmax(12rem, 16rem) 1fr auto;
  gap: 12px 40px; align-items: baseline;
  padding: clamp(22px, 3.4vh, 34px) 0; border-top: 1px solid var(--line);
}
.plan__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.plan__name span { color: var(--ash); font-size: .95rem; }
.plan__what { max-width: 30em; color: rgba(242, 234, 223, .86); }
.plan__price { font: 300 clamp(1.8rem, 3.6vw, 3rem)/1 var(--f-head); white-space: nowrap; text-align: right; letter-spacing: -.02em; }
.plan__price small { font: 400 .95rem var(--f-text); color: var(--ash); letter-spacing: 0; }
.plan--main {
  position: relative; background: var(--indigo); border-top-color: transparent;
  padding-inline: clamp(18px, 2.4vw, 32px); margin-inline: calc(-1 * clamp(18px, 2.4vw, 32px));
  border-radius: 6px;
}
.plan--main::before { /* the thread runs along the chosen plan */
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
  background: var(--madder); border-radius: 2px;
}
.plan--main + .plan { border-top-color: transparent; }
.plan--main .plan__name span, .plan--main .plan__price small { color: rgba(242, 234, 223, .8); }
.tag {
  font: 500 .8125rem/1 var(--f-text); font-style: normal;
  background: var(--madder); color: #fff; padding: 6px 10px; border-radius: 20px;
}
.support { margin-top: 1.5rem; color: rgba(242, 234, 223, .86); }

/* ---------- 5. Process ---------- */
.process { padding-block: var(--section); }
.knots {
  position: relative; margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
}
.knots::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px;
  background: var(--madder); transform-origin: left; transform: scaleX(var(--sew, 1));
}
.knots li { position: relative; padding-top: 36px; display: flex; flex-direction: column; gap: 6px; }
.knots li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ink); border: 2px solid var(--silk);
}
.knots b { font: 400 1.05rem/1.25 var(--f-head); }
.knots span { color: var(--ash); font-size: .95rem; }

/* ---------- 6. Contacts ---------- */
.contact { padding-block: var(--section) clamp(3rem, 8vh, 5rem); }
.contact__list { margin-top: clamp(2rem, 5vh, 3rem); }
.contact__list li {
  display: grid; grid-template-columns: 10rem 1fr; align-items: baseline; gap: 4px 24px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.contact__list span { color: var(--ash); }
.contact__list a {
  display: inline-flex; align-items: center; min-height: 44px; justify-self: start;
  font: 300 clamp(1.4rem, 3.6vw, 2.6rem)/1.15 var(--f-head); letter-spacing: -.02em;
  text-decoration: none; background: linear-gradient(var(--madder), var(--madder)) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.contact__list a:hover, .contact__list a:focus-visible { background-size: 100% 2px; }
.contact__meta { margin-top: 2rem; color: var(--ash); }

.foot {
  display: flex; align-items: center; gap: 14px;
  padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--ash); font-size: .95rem;
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  .plan { grid-template-columns: 1fr auto; }
  .plan__what { grid-column: 1 / -1; grid-row: 2; }
  .plan__price { grid-row: 1; grid-column: 2; }
  .knots { grid-template-columns: 1fr; gap: 22px; padding-left: 34px; }
  .knots::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; transform: scaleY(var(--sew, 1)); }
  .knots li { padding-top: 0; }
  .knots li::before { left: -34px; top: 2px; }
  .contact__list li { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .thread--back path { stroke-width: 2; }
  .thread--front path { stroke-width: 2.2; stroke-dasharray: 6 34; }
  .thread--front .thread__gap { stroke-width: 5; }
  .plan { grid-template-columns: 1fr; }
  .plan__price { grid-row: auto; grid-column: 1; text-align: left; }
  .hero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; min-height: 100svh; height: auto; padding-block: 48px; }
  * { transition-duration: .01ms !important; }
}
