/* PhenoPlant — сайт стартап-проекта.
 *
 * Композиция первого экрана (наклонная карточка с роликом, кнопки звука, карточка
 * с призывом) и чередование цветных разделов взяты со страницы проекта brag:
 * https://github.com/latent-spaces/brag (docs/).
 *
 * MIT License. Copyright (c) 2026 Shunit Haviv Hakimi
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

:root {
  --green: oklch(74% 0.19 140);
  --ink: oklch(17% 0.05 150);
  --ink-soft: oklch(29% 0.06 150);
  --paper: oklch(97% 0.025 130);

  --tint-bg: oklch(97% 0.02 130);
  --tint-elev: oklch(99.5% 0.008 130);
  --tint-ink: oklch(19% 0.04 150);
  --tint-ink-soft: oklch(40% 0.04 150);
  --tint-rule: oklch(88% 0.03 140);
  --tint-accent: oklch(46% 0.14 145);

  --dark-bg: oklch(15% 0.03 150);
  --dark-bg-elev: oklch(20% 0.035 150);
  --dark-ink: oklch(96% 0.02 130);
  --dark-ink-soft: oklch(78% 0.04 140);
  --dark-rule: oklch(30% 0.035 150);
  --dark-accent: oklch(86% 0.2 132);

  --radius: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-page: 1280px;
  --pad: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--tint-bg);
  color: var(--tint-ink);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: 8px; font-size: 15px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* Shared type */
.title {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 20ch;
}
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; max-width: 58ch; }
.caption { font-size: 15px; line-height: 1.45; color: var(--tint-ink-soft); max-width: 80ch; }
.section { padding: clamp(64px, 8vw, 112px) var(--pad); }
.inner { max-width: var(--max-page); margin: 0 auto; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }

/* === Hero === */
.hero {
  min-height: 100svh;
  background: var(--green);
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(32px, 4.5vw, 64px);
  padding: clamp(18px, 2.6vw, 34px) var(--pad);
  overflow: hidden;
}
.topbar { max-width: var(--max-page); width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 16px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.mark svg { width: 24px; height: 24px; }
.topbar nav { display: flex; gap: 26px; }
.topbar nav a { text-decoration: none; font-weight: 500; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.topbar .demo { font-weight: 600; text-decoration: none; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
@media (max-width: 1000px) { .topbar nav { display: none; } }

.hero-main {
  max-width: var(--max-page); width: 100%; margin: 0 auto; align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 28vw, 380px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-body { min-width: 0; display: grid; gap: clamp(20px, 2.4vw, 30px); }
.hero-headline {
  font-size: clamp(44px, 6.6vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 900;
}
.emph {
  display: inline-block;
  margin-top: 0.06em;
  background: var(--ink);
  color: var(--green);
  padding: 0 0.1em 0.04em;
  font-style: italic;
}
.hero-sub { max-width: 40ch; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; color: var(--ink-soft); }
.hero-sub strong { color: var(--ink); font-weight: 700; }

.hero-video {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius);
  background: var(--ink);
  transform: rotate(2.5deg);
  box-shadow: 0 30px 80px -20px oklch(20% 0.08 150 / 0.5);
  overflow: hidden;
}
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-controls { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; align-items: center; }
.hero-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  background: oklch(15% 0.04 150 / 0.82);
  backdrop-filter: blur(8px);
  color: var(--paper);
  border: 1px solid oklch(96% 0.02 130 / 0.22);
  font-size: 15px; font-weight: 500;
  transition: background 200ms var(--ease-out);
}
.hero-control:hover { background: oklch(24% 0.05 150 / 0.95); }
.hero-control svg { width: 18px; height: 18px; }
.hero-playback { width: 44px; border-radius: 50%; padding: 0; }
.hero-mute { border-radius: 999px; padding: 0 16px 0 12px; }
.hero-playback .icon-play, .hero-mute .icon-sound { display: none; }
.hero-playback[data-mode="play"] .icon-play { display: inline-block; }
.hero-playback[data-mode="play"] .icon-pause { display: none; }
.hero-mute[aria-pressed="false"] .icon-muted { display: none; }
.hero-mute[aria-pressed="false"] .icon-sound { display: inline-block; }
@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-video { width: min(100%, 420px); justify-self: center; transform: rotate(1.5deg); }
}

.hero-foot {
  max-width: var(--max-page); width: 100%; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 24px 40px;
  align-items: end;
}
.readout { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 18px 22px 20px; max-width: 560px; }
.readout h2 { font-size: 16px; font-weight: 600; color: var(--dark-ink-soft); }
.readout dl { margin-top: 10px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 22px; font-size: 16px; font-variant-numeric: tabular-nums; }
.readout dt { color: var(--dark-ink-soft); }
.readout dd { margin: 0; }
.readout .ok { color: var(--dark-accent); }
@media (max-width: 480px) { .readout dl { grid-template-columns: 1fr; gap: 0; } .readout dd { margin-bottom: 8px; } }
.cta-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  transform: rotate(-1.5deg);
  box-shadow: 0 22px 50px -24px oklch(20% 0.08 150 / 0.6);
  min-width: 0;
}
.cta-title { font-size: clamp(24px, 2vw, 28px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
.cta-copy { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.cta-go {
  margin-top: 16px; min-height: 50px; padding: 0 16px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-radius: 10px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-size: 17px; font-weight: 600;
}
.cta-go svg { width: 20px; height: 20px; color: var(--dark-accent); transition: transform 220ms var(--ease-out); }
.cta-go:hover svg { transform: translateX(3px); }
@media (max-width: 900px) {
  .hero-foot { grid-template-columns: 1fr; }
  .cta-card { transform: none; }
}

/* === Fund support === */
.fund { background: var(--tint-elev); border-bottom: 1px solid var(--tint-rule); padding: 24px var(--pad); }
.fund .inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fund p { flex: 1 1 420px; min-width: 0; font-size: 16px; color: var(--tint-ink-soft); }
.fund-logo { flex: 0 0 auto; background: #fff; border-radius: 8px; padding: 8px 14px; line-height: 0; }
.fund-logo img { display: block; height: 60px; width: auto; }

/* === Problem === */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.big-number { font-size: clamp(72px, 9vw, 132px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; color: var(--tint-accent); }
.problem-list { list-style: none; padding: 0; border-top: 2px solid var(--tint-ink); }
.problem-list li { padding: 16px 0 16px 26px; border-bottom: 1px solid var(--tint-rule); font-size: 18px; line-height: 1.4; position: relative; }
.problem-list li::before { content: ""; position: absolute; left: 0; top: calc(16px + 0.7em); width: 12px; height: 2px; background: var(--tint-ink); }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

/* === Dark sections === */
.dark { background: var(--dark-bg); color: var(--dark-ink); }
.dark .title em { font-style: normal; color: var(--dark-accent); }
.dark .lead, .dark .caption { color: var(--dark-ink-soft); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); counter-reset: step; }
.step { background: var(--dark-bg-elev); border: 1px solid var(--dark-rule); border-radius: var(--radius); padding: 22px 22px 24px; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.step h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.step h3::before { content: counter(step) ". "; color: var(--dark-accent); }
.step p { color: var(--dark-ink-soft); font-size: 16px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.pipeline { margin-top: clamp(28px, 3vw, 44px); display: grid; gap: 12px; }
.pipeline img { width: 100%; border-radius: var(--radius); background: #fff; }

/* === Traits === */
.traits-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.trait-list { display: grid; gap: 14px; margin-top: 28px; }
.trait { background: var(--tint-elev); border: 1px solid var(--tint-rule); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; }
.trait h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.trait p { color: var(--tint-ink-soft); font-size: 16px; }
.trait .co { color: var(--tint-accent); font-weight: 500; }
.shot { display: grid; gap: 12px; }
.shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--tint-rule); }
.result-row { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 8px; }
.result-row div { display: grid; gap: 4px; }
.result-row b { font-size: clamp(30px, 2.8vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-row span { font-size: 15px; color: var(--tint-ink-soft); }
@media (max-width: 900px) { .traits-grid { grid-template-columns: 1fr; } }

/* === Features + gallery === */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-bottom: clamp(48px, 6vw, 80px); }
.feature { border-top: 2px solid var(--dark-accent); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.feature h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.feature p { color: var(--dark-ink-soft); font-size: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px clamp(18px, 1.8vw, 26px); }
.card { display: grid; gap: 12px; align-content: start; margin: 0; grid-column: span 2; }
.card.half { grid-column: span 3; }
.card-media { background: var(--dark-bg-elev); border: 1px solid var(--dark-rule); border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.card.half .card-media { aspect-ratio: 2.2 / 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.card figcaption { display: grid; gap: 4px; }
.card figcaption b { font-size: 18px; font-weight: 700; }
.card figcaption span { color: var(--dark-ink-soft); font-size: 15px; }
@media (max-width: 900px) { .card, .card.half { grid-column: span 3; } }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .card, .card.half { grid-column: auto; }
  .card-media, .card.half .card-media { aspect-ratio: auto; }
  .card-media img { height: auto; }
}

/* === Audience === */
.segs { display: grid; border-top: 2px solid var(--tint-ink); }
.seg { display: grid; grid-template-columns: clamp(96px, 9vw, 140px) minmax(0, 320px) minmax(0, 1fr); gap: 8px 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--tint-rule); }
.seg .share { white-space: nowrap; font-size: clamp(34px, 3.4vw, 50px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.seg h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.seg p { color: var(--tint-ink-soft); font-size: 16px; }
.seg .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--tint-rule); overflow: hidden; }
.seg .bar i { display: block; height: 100%; background: var(--green); }
@media (max-width: 760px) { .seg { grid-template-columns: 96px minmax(0, 1fr); } .seg p { grid-column: 1 / -1; } }

/* === Pricing === */
.green { background: var(--green); color: var(--ink); }
.green .lead { color: var(--ink-soft); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.plan { background: var(--paper); border-radius: var(--radius); padding: 24px 22px 26px; display: grid; gap: 14px; align-content: start; box-shadow: 0 22px 50px -30px oklch(20% 0.08 150 / 0.6); }
.plan.featured { background: var(--ink); color: var(--paper); }
.plan h3 { font-size: 20px; font-weight: 700; }
.price { font-size: clamp(30px, 2.8vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.price small { display: block; margin-top: 8px; font-size: 15px; font-weight: 400; letter-spacing: 0; opacity: 0.8; }
.plan ul { padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(14px, 1.6vw, 22px); }
.addon { border: 1.5px dashed var(--ink); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 18px; }
.addon p { flex: 1 1 240px; min-width: 0; font-size: 16px; }
.addon b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.note { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .plans, .addons { grid-template-columns: 1fr; } }

/* === Team === */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.person { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--tint-elev); border: 1px solid var(--tint-rule); border-radius: var(--radius); padding: 20px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 24px; }
.person h3 { font-size: 21px; font-weight: 700; }
.person p { color: var(--tint-ink-soft); font-size: 16px; margin-top: 4px; }
.hiring { display: grid; gap: 14px; }
.hiring h3 { font-size: 21px; font-weight: 700; }
.hiring ul { list-style: none; padding: 0; border-top: 2px solid var(--tint-ink); }
.hiring li { padding: 12px 0; border-bottom: 1px solid var(--tint-rule); font-size: 17px; }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }

/* === Contacts === */
.outro { background: var(--green); color: var(--ink); padding: clamp(72px, 10vw, 144px) var(--pad) clamp(32px, 4vw, 48px); }
.outro-headline { font-size: clamp(40px, 7vw, 116px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 900; }
.outro-grid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.outro-grid .lead { color: var(--ink-soft); }
.contacts { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; font-size: 17px; }
.contacts dt { color: var(--dark-ink-soft); }
.contacts dd { margin: 0; overflow-wrap: anywhere; }
.contacts a { color: var(--dark-accent); text-underline-offset: 4px; }
.foot { margin-top: clamp(48px, 6vw, 88px); padding-top: 24px; border-top: 1.5px solid var(--ink); display: grid; gap: 18px; }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-row p { flex: 1 1 380px; min-width: 0; font-size: 16px; color: var(--ink-soft); }
.colophon { font-size: 15px; color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 860px) { .outro-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contacts { grid-template-columns: 1fr; gap: 2px; } .contacts dd { margin-bottom: 12px; } }
