/* Sotro marketing site. Values from the Sotro Brand Guidelines (section 4
   colors, section 5 type). Gaya and PP Mori are not licensed for the web
   yet, so Fraunces and Inter stand in until they are. */

:root {
  --forest: #0f331f;
  --forest-deep: #0a2616;
  --signal: #f6ff53;
  --chartreuse: #dae75b;
  --coral: #ff6164;
  --mist: #ecf1e5;
  --sage: #bec4b7;
  --moss: #61645d;
  --ink: #191918;

  --display: 'Gaya', 'Fraunces', Georgia, serif;
  --sans: 'PP Mori', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--forest);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--signal);
  color: var(--forest);
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* Soft-focus green behind the hero, with film grain (guidelines section 6). */
.atmosphere {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.atmosphere::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 55% 18%, rgba(94, 150, 110, 0.55), transparent 70%),
    radial-gradient(35% 40% at 12% 70%, rgba(20, 70, 40, 0.9), transparent 70%),
    radial-gradient(45% 45% at 88% 55%, rgba(10, 40, 22, 0.95), transparent 70%),
    var(--forest);
  filter: blur(40px);
}
.atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav: wordmark top left, links top right (guidelines section 7). */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.wordmark {
  display: inline-block;
  color: var(--mist);
  line-height: 0;
}
.wordmark svg { height: 32px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 15px;
}
.nav__links a {
  text-decoration: none;
  color: var(--sage);
}
.nav__links a:hover,
.nav__links a[aria-current='page'] { color: var(--mist); }
.nav__login {
  border: 1px solid rgba(236, 241, 229, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--mist) !important;
}

/* Type scale: hero 64/68, H1 40/48, H2 24/32, body 16/24, caption 13/18. */
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 64px;
  line-height: 68px;
  letter-spacing: -0.01em;
  color: var(--signal);
}
.h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.005em;
}
.h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
}
.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--mist);
  max-width: 560px;
}
.caption {
  font-size: 13px;
  line-height: 18px;
  color: var(--sage);
}
.eyebrow {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chartreuse);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--signal { background: var(--signal); color: var(--forest); }
.btn--ghost { border: 1px solid rgba(236, 241, 229, 0.4); color: var(--mist); }
.btn--forest { background: var(--forest); color: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-bottom: 96px; }
.hero__copy {
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
}
.hero__product { margin-top: 64px; }

/* The team thread: the product and the main brand asset (section 6). */
.thread {
  background: rgba(236, 241, 229, 0.94);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  max-width: 760px;
  margin-left: auto;
}
.thread__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sage);
  font-weight: 600;
  font-size: 15px;
}
.thread__head span:last-child { font-weight: 400; color: var(--moss); font-size: 13px; }
.thread__body { padding: 8px 20px 20px; display: flex; flex-direction: column; }
.msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 0;
}
.msg + .msg { border-top: 1px solid rgba(190, 196, 183, 0.6); }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--forest);
  background: var(--sage);
}
.avatar--agent { background: var(--forest); padding: 7px; }
.avatar--agent img { width: 100%; height: 100%; }
.msg__meta { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.msg__meta b { font-weight: 600; }
.msg__meta time { color: var(--moss); font-size: 13px; }
.msg__text { font-size: 15px; line-height: 22px; margin-top: 2px; }
.msg__text .mention { color: var(--forest); font-weight: 600; background: rgba(218, 231, 91, 0.45); border-radius: 4px; padding: 0 3px; }
.suggestion {
  margin-top: 10px;
  border: 1px solid var(--sage);
  border-left: 4px solid var(--chartreuse);
  border-radius: 10px;
  padding: 12px 14px;
  background: #f7f9f3;
  font-size: 14px;
  line-height: 21px;
}
.suggestion__label { color: var(--moss); font-size: 13px; }
.suggestion__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--sage);
  background: #fff;
  color: var(--ink);
}
.chip--primary { background: var(--forest); color: var(--mist); border-color: var(--forest); }

/* Sections */
.section { padding: 96px 0; }
.section--mist { background: var(--mist); color: var(--ink); }
.section--mist .lead { color: var(--ink); }
.section--mist .caption,
.section--mist .muted { color: var(--moss); }
.section--mist .eyebrow { color: var(--forest); }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.muted { color: var(--sage); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  border-top: 2px solid var(--forest);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 28px;
  line-height: 32px;
  color: var(--forest);
}
.step p { color: var(--moss); }

.surfaces {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.surface {
  border: 1px solid rgba(190, 196, 183, 0.35);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.surface b { font-weight: 600; }
.surfaces--three { grid-template-columns: repeat(3, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.preview { display: flex; flex-direction: column; gap: 12px; }
.preview .caption a { color: var(--mist); }
.preview video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--forest-deep);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.owned {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.owned li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--sage);
}
.owned li:last-child { border-bottom: 1px solid var(--sage); }
.owned b { font-weight: 600; }
.owned span { color: var(--moss); }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plans--two { grid-template-columns: repeat(2, 1fr); }
.plan {
  background: rgba(236, 241, 229, 0.06);
  border: 1px solid rgba(190, 196, 183, 0.35);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan--feature { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.plan--feature .muted { color: var(--moss); }
.plan__price {
  font-family: var(--display);
  font-size: 40px;
  line-height: 48px;
}
.plan__price small { font-family: var(--sans); font-size: 16px; color: inherit; opacity: 0.75; }
.plan .btn { margin-top: auto; align-self: flex-start; }

.cta {
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer {
  border-top: 1px solid rgba(190, 196, 183, 0.25);
  padding: 40px 0 56px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__links { display: flex; gap: 20px; list-style: none; font-size: 14px; }
.footer__links a { color: var(--sage); text-decoration: none; }
.footer__links a:hover { color: var(--mist); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .surfaces { grid-template-columns: repeat(2, 1fr); }
  .surfaces--three { grid-template-columns: 1fr; }
  .split, .plans, .previews { grid-template-columns: 1fr; }
  .split { gap: 40px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero-title { font-size: 40px; line-height: 44px; }
  .h1 { font-size: 30px; line-height: 36px; }
  .lead { font-size: 16px; line-height: 24px; }
  .nav__links { gap: 16px; font-size: 14px; }
  .nav__links .hide-sm { display: none; }
  .wordmark svg { height: 26px; }
  .hero__copy { padding-top: 40px; }
  .hero__product { margin-top: 40px; }
  .section { padding: 64px 0; }
  .steps, .surfaces { grid-template-columns: 1fr; }
  .owned li { grid-template-columns: 1fr; gap: 4px; }
  .thread__body { padding: 4px 14px 14px; }
  .plan__price small { display: block; line-height: 24px; }
}

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