:root {
  --paper: #f4efe3;
  --paper-deep: #e9dfcb;
  --ink: #18241e;
  --muted: #667068;
  --line: rgba(24, 36, 30, 0.18);
  --green: #0f5d43;
  --green-bright: #c9f269;
  --coral: #e76548;
  --white: #fffdf7;
  --shadow: 0 30px 80px rgba(34, 45, 31, 0.12);
  --radius-lg: 30px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 6%, rgba(231, 101, 72, 0.13), transparent 25rem),
    radial-gradient(circle at 6% 40%, rgba(15, 93, 67, 0.1), transparent 28rem),
    var(--paper);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  min-width: 320px;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-name,
.footer-brand {
  font-size: 15px;
  letter-spacing: 0.13em;
}

.brand-name strong {
  color: var(--green);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(231, 101, 72, 0.12);
}

.header-rule {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 86px 0 56px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50px;
  right: 0;
  width: 160px;
  height: 160px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px var(--paper), inset 0 0 0 29px var(--line);
  opacity: 0.7;
}

.hero-copy {
  max-width: 950px;
  position: relative;
  z-index: 1;
  animation: reveal 700ms ease both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.7vw, 108px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--green);
  font-weight: 400;
}

.hero-lead {
  max-width: 670px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.search-panel {
  position: relative;
  z-index: 2;
  margin-top: 52px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  animation: reveal 700ms 120ms ease both;
}

.search-label {
  display: block;
  margin: 0 0 12px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: stretch;
}

.search-control textarea {
  width: 100%;
  min-height: 94px;
  padding: 21px 23px;
  resize: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: #faf7ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.35;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-control textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 93, 67, 0.09);
}

.search-control textarea::placeholder {
  color: #92978f;
}

.search-button {
  min-width: 210px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-radius: var(--radius-md);
  color: white;
  background: var(--green);
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.search-button:hover {
  transform: translateY(-2px);
  background: #0b4b36;
}

.search-button:active {
  transform: translateY(0);
}

.arrow {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--green-bright);
  font-size: 20px;
}

.search-footer,
.suggestions,
.market-pill {
  display: flex;
  align-items: center;
}

.search-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 17px 4px 0;
}

.search-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.market-pill {
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.market-pill span:first-child {
  padding: 5px 7px;
  color: var(--paper);
  border-radius: 6px;
  background: var(--ink);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.suggestions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  animation: reveal 700ms 220ms ease both;
}

.suggestions button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.suggestions button:hover {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.45);
}

.results-section {
  padding: 72px 0 100px;
  border-top: 1px solid var(--line);
}

.results-section[hidden] {
  display: none;
}

.results-section.is-visible {
  animation: reveal 500ms ease both;
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.results-heading h2,
.principles h2,
.manifesto h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.results-heading h2 {
  font-size: clamp(38px, 5vw, 64px);
}

.independence-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 93, 67, 0.23);
  border-radius: 999px;
  color: var(--green);
  background: rgba(201, 242, 105, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.demo-notice {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.result-card {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.75);
  box-shadow: 0 12px 40px rgba(34, 45, 31, 0.06);
}

.result-card:first-child {
  border-color: var(--green);
  background: var(--white);
}

.result-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.score {
  color: var(--green);
  font-weight: 800;
}

.product-visual {
  height: 145px;
  margin: 22px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  color: rgba(24, 36, 30, 0.72);
}

.result-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.product-subtitle {
  min-height: 42px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-price strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}

.product-price span {
  color: var(--muted);
  font-size: 11px;
}

.reason-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  position: relative;
  margin-top: 9px;
  padding-left: 17px;
  color: #4e5b53;
  font-size: 13px;
  line-height: 1.45;
}

.reason-list li::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.principles {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.principles h2 {
  max-width: 560px;
  font-size: clamp(39px, 5vw, 67px);
  line-height: 1.03;
}

.principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.principle-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.principle-number {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.principle-list h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.principle-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.manifesto {
  margin: 18px 0 72px;
  padding: clamp(34px, 6vw, 78px);
  border-radius: var(--radius-lg);
  color: var(--paper);
  background:
    radial-gradient(circle at 86% 10%, rgba(201, 242, 105, 0.18), transparent 22rem),
    var(--ink);
}

.manifesto > p {
  margin: 0 0 20px;
  color: #adb8b0;
  font-size: 15px;
}

.manifesto h2 {
  max-width: 920px;
  color: var(--white);
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1;
}

.manifesto-footer {
  margin-top: 64px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--green-bright);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  padding: 30px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 580px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-meta {
  display: flex;
  gap: 24px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .hero::after {
    width: 110px;
    height: 110px;
    opacity: 0.35;
  }

  .search-control {
    grid-template-columns: 1fr;
  }

  .search-button {
    min-height: 62px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 55px;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1220px);
  }

  .site-header {
    min-height: 72px;
  }

  .header-meta .header-rule,
  .header-meta span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 52px;
  }

  .hero::after {
    display: none;
  }

  h1 {
    font-size: clamp(48px, 14vw, 70px);
    line-height: 0.94;
  }

  .hero-lead {
    margin-top: 24px;
  }

  .search-panel {
    margin-top: 36px;
    padding: 13px;
    border-radius: 22px;
  }

  .search-label {
    margin: 7px 0 11px 7px;
  }

  .search-control textarea {
    min-height: 125px;
    padding: 18px;
    font-size: 19px;
  }

  .search-footer {
    align-items: start;
    flex-direction: column;
    padding: 14px 6px 4px;
  }

  .suggestions {
    align-items: flex-start;
  }

  .suggestions > span {
    width: 100%;
  }

  .results-section,
  .principles {
    padding: 72px 0;
  }

  .results-heading {
    align-items: start;
    flex-direction: column;
  }

  .result-card {
    padding: 20px;
  }

  .manifesto {
    margin-bottom: 50px;
  }

  .manifesto-footer,
  .site-footer {
    flex-direction: column;
  }

  .manifesto-footer {
    margin-top: 48px;
  }
}
