/* Terra Claud — лендинг (главная страница). Общие токены/шапка — theme.css. */

/* У лендинга в макете собственная палитра, отличная от кабинета: рамки
   тоньше (0.08 против 0.10), поле ввода темнее, описания приглушённее, а в
   светлой теме и фон, и рамки другие (#f6f4ee / rgba(0,0,0,0.09) вместо
   #f1ede3 / #cabfa9). Файл подключается только на index.html и только после
   theme.css, поэтому переопределение здесь не задевает кабинет. */
:root{
  --line:       rgba(255,255,255,0.08);
  --line-input: rgba(255,255,255,0.10);
  --line-soft:  rgba(255,255,255,0.12);   /* cardBorder — верхняя линия карточек */
  --text-muted: #b8b2a6;                  /* theme.body — текст описаний */
  --text-desc:  #9c968a;                  /* theme.desc — вторичные описания */
  --text-nav:   #a9a49a;                  /* theme.navMuted — ссылки в шапке */
  --panel-2:    #141516;                  /* theme.inputBg героя */
}
:root[data-theme="light"]{
  --ink:        #f6f4ee;
  --text:       #1c1b17;
  --line:       rgba(0,0,0,0.09);
  --line-input: rgba(0,0,0,0.10);
  --line-soft:  rgba(0,0,0,0.12);
  --text-muted: #5c5749;
  --text-desc:  #6f6a5c;
  --text-dim:   #8a8374;
  --text-nav:   #6b6a5f;
  --placeholder:#948e7d;
  --panel-2:    #ece9e0;
}

/* Сплошного узора изолиний на всю страницу здесь больше нет.
   В шаблоне он есть, но вместе с «дышащими» линиями героя на живой странице
   получалось два спорящих слоя волн — одни внутри панели, другие сквозь неё
   и дальше по всем секциям. Оставлен только слой героя (.tc-hero-contours):
   он привязан к первому экрану, где и должен работать, а остальные секции
   читаются на чистом фоне. */
  

/* min-height:100vh — как у корневого контейнера в макете: слой изолиний
   растягивается на всю высоту страницы даже на коротком экране. */
.tc-page{ position:relative; z-index:1; min-height:100vh; }

.tc-section{
  position:relative; z-index:2;
  max-width:1280px; margin:32px auto 0; padding:100px 56px;
  border:1px solid var(--line); border-radius:20px;
}
.tc-section h2{
  font-family:var(--font-display); font-weight:600;
  font-size:38px; line-height:1.15; margin:0 0 48px; max-width:760px;
}
/* Курсивный акцент в заголовках — Instrument Serif, как в макете: одна
   фраза набрана другим шрифтом и цветом, и заголовок читается как строка с
   выделенным смыслом, а не как ровная плашка. */
.tc-section h2 em{
  font-family:"Instrument Serif", Georgia, serif;
  font-style:italic; font-weight:400; color:var(--accent);
}

/* Надзаголовок секции: короткая черта и разрядка, как в макете. */
.tc-eyebrow{
  display:flex; align-items:center; margin-bottom:20px;
  font-size:11px; font-weight:400; letter-spacing:.28em;
  text-transform:uppercase; color:var(--accent);
}
.tc-eyebrow::before{
  content:""; width:22px; height:1px; background:var(--accent);
  display:inline-block; margin-right:10px; flex-shrink:0;
}
.tc-eyebrow--center::before{ display:none; }

/* Возможности: номер сверху и линия над колонкой. */
.tc-feature{ padding-top:20px; border-top:1px solid var(--line); }
.tc-feature-num{
  font-family:var(--font-display); font-size:12px; font-weight:600;
  color:var(--accent); letter-spacing:.08em;
}
.tc-feature-title{ margin-top:16px; }

/* Шапка лендинга в макете шире и без разделителя: padding 32px 56px,
   логотип 19px (в кабинете — 28px clamp(...) и 16px). */
.tc-topbar{ padding:32px 56px; }
.tc-brand__title strong{ font-size:19px; }

.tc-nav-link{ position:relative; color: var(--text-nav); font-size:14px; }
.tc-nav-link::after{ content:""; position:absolute; left:0; bottom:-4px; width:0; height:1px; background:var(--accent); transition:width .25s ease; }
.tc-nav-link:hover{ color: var(--text); }
.tc-nav-link:hover::after{ width:100%; }

/* ---------- hero ---------- */
.tc-hero{
  margin-top:24px; padding:100px 56px;
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center;
}
.tc-hero-badge-row{ display:flex; align-items:center; gap:10px; margin-bottom:20px; }
.tc-hero-badge{
  font-size:11px; font-weight:600; letter-spacing:0.06em; color: var(--on-accent);
  background: var(--accent); padding:3px 9px; border-radius:4px;
}
.tc-hero-eyebrow{ font-size:13px; letter-spacing:0.08em; text-transform:uppercase; color: var(--text-dim); }
.tc-hero h1{
  font-family: var(--font-display); font-weight:600; font-size:50px; line-height:1.1;
  margin:0 0 24px; letter-spacing:-0.01em; white-space:nowrap;
}
.tc-hero-cursor{ opacity:0.6; }
.tc-hero p.tc-hero-desc{ font-size:18px; line-height:1.6; color: var(--text-muted); max-width:480px; margin:0 0 40px; }

.tc-hero-input{
  display:flex; align-items:center; gap:2px;
  background: var(--panel-2); border:1px solid var(--line-input); border-radius:12px;
  padding:6px 6px 6px 20px; max-width:520px; margin-bottom:24px;
}
.tc-hero-input input{
  flex:1; min-width:0; font-size:15px; color: var(--text);
  background:none; border:none; padding:8px 0 8px 4px;
}
.tc-hero-input input::placeholder{ color: var(--placeholder); }
.tc-hero-input input:focus{ outline:none; }
/* В макете у кнопки НЕТ радужной обводки — она осталась от прежнего
   лендинга и спорила с охряной палитрой, перетягивая взгляд на себя.
   Обёртка теперь только позиционирует кольцо нажатия. */
.tc-cta-wrap{ position:relative; flex-shrink:0; }
@keyframes tcGradShift{ 0%{ background-position:0% 50%; } 100%{ background-position:200% 50%; } }
.tc-cta{
  position:relative; background:#c9834a; color:#241a0c;
  font-weight:600; font-size:14px; padding:14px 24px; border-radius:7px; cursor:pointer;
  white-space:nowrap; text-align:center; overflow:hidden;
  transition:transform .05s ease, box-shadow .25s ease;
}
.tc-cta:active{ transform:scale(0.96); }
:root .tc-cta:hover{ box-shadow:0 0 18px rgba(201,131,74,0.45); }
:root[data-theme="light"] .tc-cta:hover{ box-shadow:0 0 14px rgba(201,131,74,0.28); }

/* Отклик на нажатие из макета: разбегающееся кольцо и косой блик поперёк
   кнопки. Оба — накладки поверх, поэтому не двигают раскладку. */
.tc-cta__shine{
  position:absolute; top:-60%; bottom:-60%; width:45%; pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: tcCtaShine .65s ease-out;
}
.tc-cta-ring{
  position:absolute; inset:0; border-radius:7px; pointer-events:none;
  animation: tcCtaRing .65s ease-out;
}
@keyframes tcCtaShine{
  from{ transform:translateX(-180%) skewX(-20deg); }
  to{ transform:translateX(260%) skewX(-20deg); }
}
@keyframes tcCtaRing{
  from{ box-shadow:0 0 0 0 rgba(201,131,74,0.5), 0 0 0 0 rgba(201,131,74,0.3); }
  to{ box-shadow:0 0 0 8px rgba(201,131,74,0), 0 0 26px 10px rgba(201,131,74,0); }
}
@media (prefers-reduced-motion: reduce){
  .tc-cta__shine, .tc-cta-ring{ animation:none; display:none; }
}
.tc-cta:active{ transform:scale(0.96); }
[data-theme="dark"] .tc-cta:hover, :root:not([data-theme="light"]) .tc-cta:hover{ box-shadow:0 0 18px rgba(201,131,74,0.45); }
:root[data-theme="light"] .tc-cta:hover{ box-shadow:0 0 14px rgba(201,131,74,0.28); }
@keyframes tcClickPulse{ 0%{ box-shadow:0 0 0 0 rgba(201,131,74,0.5); } 100%{ box-shadow:0 0 0 16px rgba(201,131,74,0); } }
.tc-cta-pulse{ position:absolute; inset:0; border-radius:6px; animation:tcClickPulse .4s ease-out; }

.tc-hero-media{ position:relative; }

/* Живая модель. Заглушка лежит внутри контейнера и видна, пока три.js не
   отрисовал первый кадр; если WebGL недоступен или файл не загрузился,
   класс is-ready не появится и заглушка останется — блок не опустеет. */
.tc-hero-model{
  position:relative; width:100%; aspect-ratio:4/5; border-radius:4px;
  overflow:hidden; cursor:grab; touch-action:pan-y;
}
.tc-hero-model:active{ cursor:grabbing; }
.tc-hero-model canvas{ display:block; width:100% !important; height:100% !important; }
.tc-hero-model .tc-slot{ position:absolute; inset:0; width:100%; height:100%; }
.tc-hero-model.is-ready .tc-slot{ display:none; }
.tc-hero-media .tc-slot{ width:100%; aspect-ratio:4/5; border-radius:4px; }
.tc-hero-media-foot{ margin-top:16px; display:flex; justify-content:space-between; font-size:13px; color: var(--text-dim); }

/* ---------- placeholder ("image-slot") ---------- */
/* Заглушка изображения — повторяет пустое состояние <image-slot> из макета:
   полупрозрачная серая подложка и пунктирная рамка цветом текста. */
.tc-slot{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  background: rgba(127,127,127,.08); border:1.5px dashed currentColor;
  color: var(--text-dim); font-size:12.5px; text-align:center; padding:12px;
  overflow:hidden;
}
.tc-slot svg{ opacity:0.6; }

/* ---------- features ---------- */
.tc-features-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:48px; margin-top:56px; }
.tc-feature{ padding-top:20px; border-top:1px solid var(--line-soft); }
.tc-feature-title{ font-family:var(--font-display); font-size:18px; font-weight:600; margin-bottom:10px; }
.tc-feature-desc{ font-size:14px; line-height:1.55; color: var(--text-desc); }

/* ---------- gallery ---------- */
.tc-section-sub{ font-size:15px; color: var(--text-dim); margin:0 0 40px; }
.tc-gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.tc-gallery-item .tc-slot{ width:100%; aspect-ratio:1/1; border-radius:8px; }

/* Карточка со схемой, раскрывающаяся по наведению.
 *
 * Высота задана через padding-bottom, а не height, намеренно: анимировать
 * можно только числовые свойства, а auto-высоту — нельзя. Проценты
 * padding-bottom считаются от ШИРИНЫ карточки, поэтому 87% -> 180% даёт
 * плавный рост ровно так, как задумано в макете, и одинаково на любой ширине
 * колонки.
 *
 * Раскрытая карточка налезает на соседей снизу — это и задумано, поэтому у
 * наведённой поднимается z-index, иначе её накрыла бы следующая карточка. */
.tc-gallery-shape{
  position:relative; width:100%; padding-bottom:87%;
  border:1px solid var(--line-soft);
  background: rgba(127,127,127,.05);
  border-radius:14px; overflow:hidden;
  transition: padding-bottom .55s cubic-bezier(.22,1,.36,1),
              border-color .35s ease, box-shadow .45s ease,
              transform .45s cubic-bezier(.22,1,.36,1);
}
.tc-gallery-inner{ position:absolute; inset:0; display:flex; flex-direction:column; }
.tc-gallery-icon{
  width:94%; margin:0 auto; aspect-ratio:1/1; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  color: var(--text-muted);
}
.tc-gallery-icon svg{ width:62%; height:62%; }
.tc-gallery-icon .tc-art-accent{ color: var(--accent); stroke: var(--accent); }

.tc-gallery-reveal{
  flex:1; min-height:0; padding:6px 14px 16px;
  display:flex; flex-direction:column;
  opacity:0; transform:translateY(6px);
  transition: opacity .4s ease .12s, transform .4s ease .12s;
}
.tc-gallery-media{
  width:100%; flex:1; min-height:0; border-radius:6px; overflow:hidden;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.tc-gallery-media .tc-slot{ width:100%; height:100%; aspect-ratio:auto; border-radius:6px; }
.tc-gallery-info{ font-size:12.5px; line-height:1.5; color: var(--text-desc); margin-top:10px; flex-shrink:0; }

/* РАСКРЫТИЕ — И ПО НАВЕДЕНИЮ, И ПО НАЖАТИЮ.
 *
 * Сначала карточка раскрывалась только под курсором. На мыши это выглядело
 * рабочим, но нажатие не делало ничего: подвёл курсор — раскрылось, кликнул —
 * ровно то же самое, что и так уже происходило. Естественное движение —
 * ткнуть в карточку — оставалось без ответа, и это читалось как поломка.
 *
 * Класс is-open вешает js по нажатию (см. initGallery в landing.js), а
 * дальше оба состояния описаны ОДНИМ набором правил: раскрытая по клику
 * карточка обязана выглядеть точно так же, как раскрытая наведением, иначе
 * получится два разных вида одного и того же.
 */
.tc-gallery-item:hover,
.tc-gallery-item.is-open{ z-index:10; }
.tc-gallery-item:hover .tc-gallery-shape,
.tc-gallery-item.is-open .tc-gallery-shape{
  padding-bottom:180%;
  border-color: var(--accent);
  transform:translateY(-4px);
  box-shadow:0 22px 44px rgba(0,0,0,.28), 0 0 0 1px rgba(201,131,74,.14);
}
:root[data-theme="light"] .tc-gallery-item:hover .tc-gallery-shape,
:root[data-theme="light"] .tc-gallery-item.is-open .tc-gallery-shape{
  box-shadow:0 22px 40px rgba(60,50,30,.12), 0 0 0 1px rgba(201,131,74,.18);
}
.tc-gallery-item:hover .tc-gallery-reveal,
.tc-gallery-item.is-open .tc-gallery-reveal{ opacity:1; transform:translateY(0); }

/* Карточка — орган управления, а не картинка: показываем это курсором и
   снимаем выделение текста, чтобы двойное нажатие не подсвечивало подпись. */
.tc-gallery-item{ cursor:pointer; -webkit-tap-highlight-color:transparent; }
.tc-gallery-item .tc-gallery-shape{ -webkit-user-select:none; user-select:none; }
.tc-gallery-item:focus-visible .tc-gallery-shape{
  outline:2px solid var(--accent); outline-offset:3px;
}

/* Там, где курсора нет, отключается только НАВЕДЕНИЕ.
 *
 * Раньше здесь глушилось раскрытие целиком — и правильно глушилось, пока оно
 * зависело от hover: на сенсорном экране тот либо не наступает вовсе, либо
 * залипает после тапа, и карточка осталась бы раскрытой навсегда. Но нажатие
 * работает везде и залипанием не страдает, поэтому is-open остаётся живым и
 * на телефоне — там раскрытие теперь единственный способ увидеть описание. */
@media (hover:none){
  .tc-gallery-item:hover .tc-gallery-shape{
    padding-bottom:87%; transform:none; box-shadow:none; border-color: var(--line-soft);
  }
  .tc-gallery-item:hover .tc-gallery-reveal{ opacity:0; transform:translateY(6px); }
  .tc-gallery-item.is-open .tc-gallery-shape{
    padding-bottom:180%; transform:translateY(-4px); border-color: var(--accent);
  }
  .tc-gallery-item.is-open .tc-gallery-reveal{ opacity:1; transform:translateY(0); }
}

.tc-gallery-item-label{ font-size:14px; color: var(--text-desc); margin-top:12px; }

/* ---------- steps ---------- */
.tc-steps-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px; margin-top:48px; }
.tc-step-n{ font-family:var(--font-display); font-size:15px; color: var(--accent); margin-bottom:16px; }
.tc-step-title{ font-size:18px; font-weight:600; margin-bottom:10px; }
.tc-step-desc{ font-size:14px; line-height:1.6; color: var(--text-desc); }

/* ---------- footer ---------- */
.tc-footer{
  margin:32px auto 40px; padding:24px 56px;
  display:flex; justify-content:space-between; font-size:13px; color: var(--text-dim);
}

@media (max-width:880px){
  .tc-hero-grid, .tc-hero{ grid-template-columns:1fr !important; gap:32px !important; }
}
@media (max-width:680px){
  .tc-topbar{ padding:20px !important; }
  .tc-hide-mobile{ display:none !important; }
  .tc-section{ margin-left:12px !important; margin-right:12px !important; padding-left:22px !important; padding-right:22px !important; border-radius:16px !important; }
  .tc-hero{ padding-top:40px !important; padding-bottom:48px !important; margin-top:16px !important; }
  .tc-hero h1{ font-size:32px !important; white-space:normal !important; }
  .tc-hero-input{ flex-direction:column !important; align-items:stretch !important; padding:14px !important; gap:12px !important; border-radius:14px !important; }
  .tc-hero-input span{ padding-left:4px; }
  .tc-features-grid{ grid-template-columns:1fr !important; gap:28px !important; }
  .tc-gallery-grid{ grid-template-columns:repeat(2,1fr) !important; gap:14px !important; }
  /* Описание больше не прячем совсем: на узком экране оно и есть единственный
     способ узнать, чем карточки отличаются, — раскрывается нажатием. */
  .tc-gallery-item:not(.is-open) .tc-gallery-reveal{ opacity:0 !important; }
  .tc-steps-grid{ grid-template-columns:1fr !important; gap:28px !important; }
  .tc-footer{ flex-direction:column !important; gap:8px !important; align-items:flex-start !important; }
}

/* Строка состояния витрины в первом экране. Появляется только когда есть
   что сказать, поэтому места под себя заранее не занимает. */
.tc-hero-status{
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 46ch;
}
.tc-hero-status.is-error{ color: var(--danger); }

.tc-hero-links{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-top: 14px; }
.tc-hero-open{ color: var(--accent); }

/* Кнопка на время расчёта. Не «отключена», а занята: отключённая кнопка
   выглядит поломкой, а тут просто идёт работа. */
.tc-cta.is-busy{ opacity:.75; pointer-events:none; }

/* Выбор тела в первом экране. Тот же язык, что у чипов планет в кабинете,
   но компактнее: здесь это уточнение к полю ввода, а не самостоятельный
   орган управления. */
.tc-hero-bodies{ display:flex; gap:6px; flex-wrap:wrap; margin-top:14px; }
.tc-body-chip{
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.tc-body-chip:hover{ border-color: var(--accent); color: var(--text); }
.tc-body-chip:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.tc-body-chip.is-active{
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}

/* ===================== ОБНОВЛЁННЫЙ ПЕРВЫЙ ЭКРАН =====================
   Разметка и метрики — из макета «Terra Claud Landing». Слева текст,
   справа стеклянная карточка запуска; модель уехала в выездную панель
   (см. .tc-drawer), потому что в макете правую колонку занимает карточка. */
.tc-hero{ position:relative; overflow:hidden; align-items:center; margin-top:24px; }
.tc-hero-copy{ position:relative; z-index:2; }

/* Свечение из угла — радиальный градиент, как в макете. */
.tc-hero-glow{
  position:absolute; inset:0; pointer-events:none; border-radius:20px;
  background: radial-gradient(ellipse 80% 60% at 15% 0%, rgba(201,131,74,0.16), transparent 62%);
}
/* Горизонтали. Две копии каждой линии со сдвигом на ширину кадра: пока
   первая уезжает влево, вторая занимает её место — движение непрерывное,
   без рывка в момент повтора. */
.tc-hero-contours{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:.7; pointer-events:none;
}
:root[data-theme="light"] .tc-hero-contours{ opacity:.55; }
.tc-hero-contours g{ fill:none; stroke: var(--accent); stroke-width:2; }
.tc-drift{ animation: tcDrift 46s linear infinite; }
.tc-drift--a{ opacity:.18; animation-duration:46s; }
.tc-drift--b{ opacity:.28; animation-duration:64s; animation-direction:reverse; }
.tc-drift--c{ opacity:.40; animation-duration:80s; }
.tc-drift--d{ opacity:.20; animation-duration:58s; }
@keyframes tcDrift{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .tc-drift{ animation:none; } }

/* Карточка запуска */
.tc-hero-card{
  position:relative; z-index:2;
  background: var(--card-glass, rgba(20,21,22,0.55));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border:1px solid var(--line); border-radius:14px; padding:32px;
}
:root[data-theme="light"] .tc-hero-card{ --card-glass: rgba(255,255,255,0.55); }
.tc-hero-card__title{
  font-family: var(--font-display); font-weight:600; font-size:19px; margin-bottom:6px;
}
.tc-hero-card__desc{ font-size:13px; color: var(--text-muted); line-height:1.5; margin-bottom:20px; }
.tc-hero-card .tc-hero-input{ margin-bottom:14px; }
.tc-hero-card .tc-hero-bodies{ margin:0 0 16px; }
.tc-hero-card .tc-cta-wrap{ display:block; }
.tc-hero-card .tc-cta{ width:100%; text-align:center; }
.tc-hero-meta{
  margin-top:18px; display:flex; gap:10px 18px; flex-wrap:wrap;
  font-size:11px; letter-spacing:.04em; text-transform:uppercase; color: var(--text-muted);
}
.tc-hero-meta b{ color: var(--text); font-weight:600; }

/* ===================== ПАНЕЛЬ РЕЗУЛЬТАТА ===================== */
.tc-drawer-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:90;
  opacity:0; transition:opacity .35s ease;
}
.tc-drawer-backdrop.is-open{ opacity:1; }
.tc-drawer{
  position:fixed; top:0; right:0; height:100vh; width:min(420px, 92vw);
  background: var(--panel); border-left:1px solid var(--line);
  box-shadow:-24px 0 60px rgba(0,0,0,0.35); z-index:91;
  transform:translateX(105%); transition:transform .45s cubic-bezier(.22,1,.36,1);
  padding:28px 24px; display:flex; flex-direction:column; gap:18px;
}
.tc-drawer.is-open{ transform:translateX(0); }
@media (prefers-reduced-motion: reduce){
  .tc-drawer{ transition:none; } .tc-drawer-backdrop{ transition:none; }
}
.tc-drawer__head{
  display:flex; align-items:center; justify-content:space-between;
  font-family: var(--font-display); font-weight:600; font-size:16px;
}
.tc-drawer__close{
  width:28px; height:28px; border-radius:50%; background:transparent;
  border:1px solid var(--line); color: var(--text-muted);
  font-size:16px; line-height:1; cursor:pointer;
}
.tc-drawer__close:hover{ border-color: var(--accent); color: var(--text); }
.tc-drawer__progress-label{ font-size:13px; color: var(--text-muted); margin-bottom:12px; }
.tc-drawer__bar{ height:2px; background: var(--line); border-radius:2px; overflow:hidden; }
.tc-drawer__bar-fill{
  height:100%; width:0; background: var(--accent);
  transition: width .4s ease;
}
.tc-drawer__body{ flex:1; display:flex; flex-direction:column; gap:14px; min-height:0; }
.tc-drawer .tc-hero-model{
  flex:1; min-height:220px; border-radius:10px; overflow:hidden;
  background: var(--panel-2); border:1px solid var(--line);
}
.tc-drawer__foot{
  display:flex; justify-content:space-between;
  font-family: var(--font-mono); font-size:12px; color: var(--text-muted);
}

/* ===================== ФИЛОСОФИЯ =====================
   Единственная светлая секция страницы. Цвета заданы явно и не зависят от
   темы — как в макете: это пауза перед разделом «как это работает». */
.tc-philosophy{
  background:#f5efe6; color:#171310; text-align:center;
}
.tc-eyebrow--center{
  display:flex; align-items:center; justify-content:center;
  font-size:11px; letter-spacing:.28em; text-transform:uppercase;
  color: var(--accent); margin-bottom:28px;
}
.tc-quote{
  font-family: var(--font-display); font-weight:500;
  font-size: clamp(22px, 3vw, 34px); line-height:1.4; letter-spacing:-0.01em;
  max-width:880px; margin:0 auto;
}
.tc-quote em{
  font-family:"Instrument Serif", Georgia, serif;
  font-style:italic; font-weight:400; color: var(--accent);
}
.tc-quote-cite{
  display:block; margin-top:28px; font-style:normal;
  font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:#6b6459;
}
.tc-stats{
  margin-top:72px; padding-top:40px; border-top:1px solid rgba(23,19,16,0.14);
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
.tc-stat h3{ font-family: var(--font-display); font-size:38px; font-weight:600; margin:0; }
.tc-stat span{
  display:block; margin-top:8px; font-size:11px;
  letter-spacing:.16em; text-transform:uppercase; color:#6b6459;
}
@media (max-width:680px){
  .tc-stats{ grid-template-columns:repeat(2,1fr); row-gap:32px; }
  .tc-hero-card{ padding:22px; }
}

/* Последнее слово печатающейся строки — охрой, как в шаблоне. */
#heroTypedLast{ color: var(--accent); }

/* Плавная прокрутка к якорям «Возможности» и «Как это работает».
   В шаблоне это html{scroll-behavior:smooth} плюс запас сверху у самих
   якорей, чтобы заголовок не упирался в липкую шапку. */
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }
#features, #how-it-works{ scroll-margin-top: 24px; }

/* ===================== ЛИПКАЯ ШАПКА =====================
   В шаблоне шапка приклеена к верху окна (position:sticky) и просвечивает:
   полупрозрачный фон плюс размытие того, что под ней проезжает. Без этого
   она уезжала вместе со страницей, и на длинном лендинге до навигации
   приходилось прокручивать обратно наверх.

   Фон задан через собственную переменную, а не через --ink: шапке нужна
   ПРОЗРАЧНОСТЬ (0.72), иначе размывать будет нечего. */
:root{ --nav-bg: rgba(10,11,12,0.72); }
:root[data-theme="light"]{ --nav-bg: rgba(246,244,238,0.72); }

.tc-topbar{
  position: sticky; top: 0; z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
  /* Отступы шаблона: 20px по вертикали вместо прежних 32px — прилипшая
     шапка занимает место у содержимого постоянно, и высокая мешает. */
  padding: 20px 56px;
}
@media (max-width: 680px){
  .tc-topbar{ padding: 20px !important; }
}
