/* Public website. Same brand as the app (deep green, lime, Poppins); one light look on purpose. */
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #1b3a2f;
  --green-deep: #1a3226;
  --lime: #c8e98a;
  --lime-soft: #eef8dc;
  --paper: #f6f8f7;
  --white: #ffffff;
  --ink: #1d2b24;
  --ink-2: #3f5048;
  --ink-3: #66756d;
  --line: #dde5df;
  --ok: #2f7a4b;
  --ok-bg: #e2f3e7;
  --warn: #8a5a0c;
  --warn-bg: #fbefd5;
  --radius: 14px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, 'Courier New', monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
.h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
}
h3,
.h3 {
  font-size: 1.12rem;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--white);
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 20px;
}
.wrap.narrow {
  max-width: 780px;
}
.center {
  text-align: center;
}
.section-title {
  margin-bottom: 28px;
}
.small {
  font-size: 0.9rem;
  color: var(--ink-3);
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 1.12rem;
}
.center .lede {
  margin-inline: auto;
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--green);
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.button:hover {
  background: var(--green-deep);
}
.button.small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.92rem;
}
.button.ghost {
  background: transparent;
  color: var(--green);
}
.button.ghost:hover {
  background: var(--lime-soft);
}
.button.light {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--green-deep);
}
.button.light:hover {
  background: var(--white);
}
.button.ghost-light {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--white);
}
.button.ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}
.button[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  text-decoration: none;
}
.text-link::after {
  content: ' →';
}
.text-link:hover {
  text-decoration: underline;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo .brand-icon {
  width: 36px;
  height: 36px;
  flex: none;
}
.logo .brand-wordmark {
  height: 24px;
  width: auto;
}
.logo .brand-wordmark-dot {
  fill: #4f8a3c;
}
.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.menu a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.menu a:hover,
.menu a[aria-current='page'] {
  color: var(--green);
}
.menu .button {
  color: var(--white);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: 500 0.95rem var(--font);
}

/* Hero */
.hero {
  padding-block: 72px 80px;
  background:
    radial-gradient(900px 420px at 85% 10%, var(--lime-soft), transparent 70%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 0.92rem;
}
.hero-note svg {
  color: var(--ok);
}
.hero-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(36, 67, 52, 0.35);
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.panel-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.panel-bar em {
  margin-left: 10px;
  color: var(--ink-3);
  font-size: 0.82rem;
  font-style: normal;
}
.panel-body {
  padding: 18px 18px 8px;
}
.panel-label {
  margin: 4px 0 8px;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.panel-list {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.panel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.panel-list small {
  display: block;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 400;
}
.pill {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.pill.neutral {
  background: var(--paper);
  color: var(--ink-2);
}
.hero-panel figcaption {
  padding: 0 18px 14px;
  color: var(--ink-3);
  font-size: 0.75rem;
  text-align: right;
}

/* Sections */
.section {
  padding-block: 88px;
}
.section.tight {
  padding-block: 48px 88px;
}
.section.alt {
  background: var(--paper);
}
.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--ink-2);
}
.page-head {
  padding-block: 64px 24px;
  background: var(--paper);
}
.band {
  border-block: 1px solid var(--line);
  background: var(--white);
}
.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-block: 22px;
}
.band-title {
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 500;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.feature {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.feature p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--green);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 56px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--lime);
  font-weight: 700;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.split > div > p {
  margin-top: 16px;
  color: var(--ink-2);
}
.split h2 + p {
  margin-top: 16px;
}
.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
}
.checks svg {
  flex: none;
  color: var(--green);
}
.code {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  border-radius: var(--radius);
  background: #13241b;
  color: #d9ead0;
  font: 0.86rem/1.6 var(--mono);
}
.stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.fields {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}
.fields div {
  display: grid;
  gap: 2px;
}
.fields dt code {
  color: var(--green);
  font-family: var(--mono);
  font-weight: 600;
}
.fields dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.plain {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
}
.plain li + li {
  margin-top: 6px;
}

/* Pricing */
.price-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}
.price-mini {
  display: grid;
  gap: 2px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.price-mini:hover {
  border-color: var(--green);
}
.price-mini span {
  font-weight: 600;
}
.price-mini strong {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
}
.price-mini small {
  color: var(--ink-3);
}
.period {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.period button {
  padding: 9px 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font: 600 0.95rem var(--font);
  cursor: pointer;
}
.period button[aria-pressed='true'] {
  background: var(--green);
  color: var(--white);
}
.period span {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 0.72rem;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}
.plan {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 30px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
/* The free trial: lime, so it reads as the no-risk way in. */
.plan.trial-plan,
.price-mini.free {
  border-color: var(--lime);
  background: var(--lime-soft);
}
.price-mini.free:hover {
  border-color: var(--green);
}
.plans + p {
  margin-top: 32px;
}
.plan.featured {
  border: 2px solid var(--green);
  box-shadow: 0 24px 50px -30px rgba(36, 67, 52, 0.45);
}
.plan-tag {
  /* On the border, so cards with and without a tag keep their prices aligned. */
  position: absolute;
  top: -13px;
  left: 22px;
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 600;
}
.plan h2 {
  font-size: 1.35rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}
.plan-price strong {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}
.plan-price span {
  color: var(--ink-3);
}
.plan-note {
  min-height: 1.6em;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.plan ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
}
.plan .button {
  width: 100%;
}
.plan li svg {
  flex: none;
  margin-top: 4px;
  color: var(--ok);
}
.trial {
  margin: 34px 0 18px;
  padding: 26px 30px;
  border-radius: 18px;
  background: var(--lime-soft);
}
.trial p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 500;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  padding: 0 20px 20px;
  color: var(--ink-2);
}
.faq-group + .faq-group {
  margin-top: 44px;
}
.faq-group h2 {
  margin-bottom: 18px;
  font-size: 1.3rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
}
.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}
.optional {
  color: var(--ink-3);
  font-weight: 400;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem var(--font);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form [aria-invalid='true'] {
  border-color: #b4442f;
}
.trap {
  position: absolute !important;
  left: -9999px;
}
.form-legal {
  color: var(--ink-3);
  font-size: 0.85rem;
}
.contact-form .button {
  justify-self: start;
}
.form-status:empty {
  display: none;
}
.form-status {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 500;
}
.form-status.error {
  background: #f8e4df;
  color: #9a3320;
}
.contact-aside {
  display: grid;
  align-content: start;
  gap: 26px;
}
.contact-aside svg {
  color: var(--green);
}
.contact-aside h2 {
  margin-top: 8px;
  font-size: 1.05rem;
}
.contact-aside p {
  margin-top: 4px;
  color: var(--ink-2);
}

/* Legal */
.legal h2 {
  margin: 36px 0 10px;
  font-size: 1.25rem;
}
.legal p,
.legal li {
  color: var(--ink-2);
}
.legal ul {
  padding-left: 22px;
}
.legal li + li {
  margin-top: 6px;
}

/* Closing band and footer */
.closing {
  padding-block: 80px;
  background: var(--green);
  color: var(--white);
}
.closing-inner {
  text-align: center;
}
.closing h2 {
  color: var(--white);
}
.closing p {
  max-width: 560px;
  margin: 14px auto 0;
  color: #d8e6dc;
}
.closing .actions {
  justify-content: center;
}
.foot {
  padding-block: 56px 28px;
  background: var(--green-deep);
  color: #c6d6cc;
}
.foot .logo {
  color: var(--white);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.foot-grid p {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 0.92rem;
}
.foot nav {
  display: grid;
  align-content: start;
  gap: 8px;
}
.foot nav h2 {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.foot nav a {
  color: #c6d6cc;
  font-size: 0.93rem;
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--white);
}
.foot-base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.foot-social a,
.foot-social .is-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #c6d6cc;
}
.foot-social a:hover,
.foot-social a:focus-visible {
  color: var(--green-deep);
  background: var(--lime);
  border-color: var(--lime);
}
.foot-social a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.foot-social .is-pending {
  opacity: 0.5;
}

/* Tablet and phone */
@media (max-width: 1100px) {
  .plans,
  .price-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu-toggle {
    display: inline-block;
  }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }
  .menu.open {
    display: flex;
  }
  .menu a {
    padding: 10px 0;
  }
  .menu .button {
    margin-top: 8px;
  }
}
@media (max-width: 600px) {
  .section {
    padding-block: 64px;
  }
  .hero {
    padding-block: 48px 56px;
  }
  .steps,
  .field-row,
  .foot-grid,
  .plans,
  .price-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form {
    padding: 22px;
  }
  .actions .button {
    width: 100%;
  }
}
