@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 850;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101d19;
  --surface: #182820;
  --primary: #23794b;
  --ink: #112819;
  --muted: #a5bbae;
  --paper: #f4f6ea;
  --sun: #f2d85d;
  --mint: #a6df57;
  --line: #33463a;
  --shell: 1280px;
  font-family: "DM Sans", "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--paper);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--mint); outline-offset: 6px; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
section[id], article[id] { scroll-margin-top: 42px; }

.shell {
  width: min(var(--shell), calc(100% - 112px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: var(--ink);
  background: var(--sun);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
}
.wordmark {
  display: block;
  width: fit-content;
}
.wordmark img {
  width: 98px;
  height: auto;
  border-radius: 8px;
}
nav { display: flex; gap: 41px; }
nav a, .header-link { font-size: .925rem; font-weight: 650; }
nav a { color: var(--muted); transition: color .2s ease; }
nav a:hover { color: var(--sun); }
.header-link {
  justify-self: end;
  white-space: nowrap;
  padding: 10px 17px;
  border: 1px solid #5a6c5d;
  border-radius: 999px;
  transition: background-color .2s ease, border-color .2s ease;
}
.header-link:hover { background: var(--surface); border-color: var(--mint); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(30px, 5vw, 86px);
  padding-block: clamp(54px, 6vw, 100px) clamp(70px, 8vw, 126px);
}
.hero-copy { min-width: 0; }
.hero h1, .experience h2, .chat-copy h2 {
  font-family: "Bricolage Grotesque", "Avenir Next", Avenir, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.075em;
}
.hero h1 {
  font-size: clamp(4.55rem, 7.6vw, 8rem);
  line-height: .88;
}
.hero h1 em { font-style: normal; color: var(--sun); }
.hero-copy p {
  max-width: 430px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.42vw, 1.25rem);
  line-height: 1.62;
  margin-top: 31px;
  text-wrap: pretty;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding-inline: 23px;
  border-radius: 999px;
  font-weight: 750;
}
.button-primary {
  margin-top: 26px;
  background: var(--sun);
  color: var(--ink);
  transition: background-color .2s ease;
}
.button-primary:hover { background: var(--mint); }

.hero-photo {
  min-width: 0;
  position: relative;
  isolation: isolate;
  height: clamp(460px, 47vw, 620px);
  border-radius: 17px 17px 17px 77px;
  overflow: hidden;
  background: #78604a;
  box-shadow: 0 24px 65px #050a073b;
}
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-photo::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 45% 0 0;
  background: linear-gradient(0deg, #111d14a8, #111d1400);
}
.hero-message {
  position: absolute;
  z-index: 1;
  bottom: clamp(22px, 4vw, 55px);
  left: clamp(24px, 5vw, 65px);
  display: grid;
  gap: 9px;
  width: max-content;
  max-width: calc(100% - 55px);
  padding: 15px 19px;
  background: var(--surface);
  border: 1px solid #5b6d59;
  border-radius: 16px 16px 16px 4px;
  color: var(--paper);
  font-size: clamp(.91rem, 1.2vw, 1rem);
  line-height: 1.28;
}
.message-original { color: var(--sun); }
.message-rule { height: 1px; background: currentColor; opacity: .2; }

.experience { padding-block: 49px 90px; border-top: 1px solid var(--line); }
.experience h2, .chat-copy h2 {
  font-size: clamp(3rem, 6.2vw, 6rem);
  line-height: .94;
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(18px, 4vw, 57px);
  align-items: start;
  margin-top: 46px;
}
.story { min-width: 0; }
.story:nth-child(2) { margin-top: 45px; }
.story-image {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: var(--surface);
  height: clamp(320px, 36vw, 470px);
}
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.share-image img { object-position: center 58%; }
.discover-image img { object-position: center 43%; }
.story-image figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  background: var(--sun);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: .875rem;
  font-weight: 750;
}
.story:nth-child(2) figcaption { background: var(--mint); }
.story-copy { padding-block: 19px 0; }
.story-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.06;
  letter-spacing: -.052em;
}
.story-copy p {
  margin-top: 9px;
  max-width: 480px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.chat-section { padding-bottom: 90px; }
.chat-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  align-items: center;
  gap: 25px;
  padding: clamp(35px, 6vw, 83px);
  border-radius: 24px;
  color: var(--ink);
  background: var(--sun);
  overflow: hidden;
}
.chat-copy p { margin-top: 23px; max-width: 400px; font-size: 1.105rem; line-height: 1.59; }
.demo { display: grid; gap: 10px; max-width: 390px; margin-top: 26px; }
.demo-question, .demo-reply { font-size: 1rem; line-height: 1.42; }
.demo-question {
  justify-self: end;
  padding: 11px 15px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 13px 13px 3px 13px;
}
.demo-reply {
  display: grid;
  gap: 7px;
  width: fit-content;
  padding: 11px 15px;
  border: 1px solid #a79743;
  background: #f7e28e;
  border-radius: 13px 13px 13px 3px;
}
.chat-device-area {
  display: grid;
  place-items: center;
  isolation: isolate;
  position: relative;
}
.chat-device-area::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  width: min(115%, 400px);
  aspect-ratio: 1;
  background: var(--mint);
  opacity: .7;
}
.chat-device {
  width: min(100%, 258px);
  border-radius: 34px;
  border: 5px solid #28382c;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 18px 40px #10271842;
}
.chat-device img { width: 100%; height: auto; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner > span { color: var(--muted); font-size: .9rem; }
.footer-links { flex-wrap: wrap; gap: 10px 24px; }

body:has(.legal-dialog[open]) { overflow: hidden; }
.legal-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  color: var(--paper);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overscroll-behavior: contain;
}
.legal-dialog::backdrop { background: rgb(7 16 11 / 76%); }
.legal-dialog-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 5vw, 32px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.legal-dialog-header h2 { font-size: clamp(1.35rem, 4vw, 1.85rem); }
.legal-dialog-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font: 1.65rem / 1 system-ui, sans-serif;
  cursor: pointer;
}
.legal-dialog-close:hover { background: var(--line); }
.legal-dialog-close:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.legal-dialog-content {
  padding: 24px clamp(16px, 5vw, 32px) 32px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-dialog-content > * + * { margin-top: 1em; }
.legal-dialog-content h2 { font-size: 1.18rem; line-height: 1.3; }
.legal-dialog-content li + li { margin-top: .55em; }
.legal-dialog-content a { color: var(--sun); text-decoration: underline; }

@media (max-width: 980px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 35px; }
  .hero h1 { font-size: clamp(3.65rem, 8.3vw, 5.3rem); }
  .hero-photo { height: 465px; }
}
@media (max-width: 715px) {
  .shell { width: calc(100% - 38px); }
  .header-inner { min-height: 65px; grid-template-columns: auto 1fr; gap: 15px; }
  .wordmark img { width: 82px; }
  nav { justify-self: end; gap: clamp(12px, 4vw, 27px); }
  nav a { font-size: .875rem; }
  .header-link { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 29px; padding-block: 45px 58px; }
  .hero h1 { font-size: clamp(3.75rem, 13.6vw, 5.75rem); }
  .hero-copy p { margin-top: 22px; }
  .button-primary { margin-top: 20px; }
  .hero-photo { height: clamp(330px, 91vw, 515px); border-bottom-left-radius: 42px; }
  .hero-message { bottom: 17px; left: 22px; }
  .experience { padding-block: 37px 53px; }
  .experience h2, .chat-copy h2 { font-size: clamp(2.7rem, 9.7vw, 4.5rem); }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 24px; }
  .story:nth-child(2) { margin-top: 0; }
  .story-image { height: clamp(285px, 78vw, 425px); }
  .chat-section { padding-bottom: 58px; }
  .chat-panel { grid-template-columns: minmax(0, 1fr); gap: 35px; padding: 24px; border-radius: 17px; }
  .chat-copy p { margin-top: 16px; }
  .demo { margin-top: 20px; }
  .chat-device { width: min(76%, 242px); border-radius: 28px; }
  .chat-device-area { padding: 2px 0 12px; }
  .footer-inner { min-height: 75px; flex-wrap: wrap; padding-block: 18px; }
  .footer-links { flex-basis: 100%; order: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
