@font-face {
  font-family: Gantari;
  src: url('/fonts/gantari-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Gantari;
  src: url('/fonts/gantari-600.ttf') format('truetype');
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: Gantari;
  src: url('/fonts/gantari-800.ttf') format('truetype');
  font-weight: 700 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f5ee;
  --surface: #ffffff;
  --surface-2: #e8efe6;
  --ink: #172b23;
  --ink-2: #4b5a50;
  --line: #d5dcd0;
  --brand: #133b2d;
  --on-brand: #f3f3ed;
  --link: #133b2d;
  --panel: #133b2d;
  --panel-ink: #f3f3ed;
  --panel-ink-2: #c9d6cc;
  --stripe: #d9a441;
  --focus: #b45309;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 10px 30px rgb(19 59 45 / 0.08);
  --radius: 14px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1713;
    --surface: #15221c;
    --surface-2: #1b2b24;
    --ink: #edf2ec;
    --ink-2: #a9b8ad;
    --line: #2a3d34;
    --brand: #e4ede1;
    --on-brand: #133b2d;
    --link: #9fd8bb;
    --panel: #173f31;
    --panel-ink: #f3f3ed;
    --panel-ink-2: #c3d3c8;
    --stripe: #c99232;
    --focus: #f0b45a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.25);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Gantari, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}

/* Awning stripe used as a divider: the stall mark's awning, flattened. */
.awning {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 28px, var(--stripe) 28px 56px);
}
@media (prefers-color-scheme: dark) {
  .awning {
    background: repeating-linear-gradient(90deg, var(--panel) 0 28px, var(--stripe) 28px 56px);
  }
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.logo svg {
  width: 1.6rem;
  height: auto;
  fill: currentColor;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover {
  text-decoration: underline;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-actions .text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}
.header-actions .text-link:hover {
  text-decoration: underline;
}
@media (max-width: 820px) {
  .site-nav {
    display: none;
  }
}
@media (max-width: 420px) {
  .header-actions .btn {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  text-align: center;
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn-primary:hover {
  filter: brightness(1.15);
}
@media (prefers-color-scheme: dark) {
  .btn-primary:hover {
    filter: brightness(0.92);
  }
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-small {
  min-height: 42px;
  padding: 0.5rem 1.05rem;
  font-size: 0.95rem;
}
.btn-light {
  background: var(--panel-ink);
  color: #133b2d;
}
.btn-light:hover {
  filter: brightness(0.94);
}
.btn-outline-light {
  border-color: var(--panel-ink);
  color: var(--panel-ink);
}
.btn-outline-light:hover {
  background: rgb(255 255 255 / 0.08);
}
.panel :focus-visible {
  outline-color: #f0b45a;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}
.fine {
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* Phone illustration. Always drawn in the app's light colors. */
.phone {
  justify-self: center;
  width: min(100%, 340px);
  padding: 12px;
  border-radius: 40px;
  background: #0d1512;
  box-shadow: 0 30px 60px rgb(19 59 45 / 0.25), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
  color: #172b23;
}
.screen {
  border-radius: 30px;
  overflow: hidden;
  background: #f5f5ee;
  font-size: 0.85rem;
  line-height: 1.3;
}
.screen-top {
  background: #173d32;
  color: #fff;
  padding: 1.1rem 1rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.screen-top strong {
  font-size: 1rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #fff4e0;
  color: #8a3d05;
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b45309;
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}
.tile {
  background: #fff;
  border: 1px solid #d5dcd0;
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
}
.tile b {
  font-weight: 700;
}
.tile .meta {
  display: flex;
  justify-content: space-between;
  color: #4b5a50;
  font-size: 0.78rem;
}
.tile .low {
  color: #8a3d05;
  font-weight: 700;
}
.tile.out {
  background: #f1f1ea;
  color: #6b766e;
}
.tile.out .meta span:last-child {
  color: #a1281d;
  font-weight: 700;
}
.cart {
  background: #fff;
  border-top: 1px solid #d5dcd0;
  padding: 0.8rem 1rem 1rem;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  color: #4b5a50;
  margin-bottom: 0.25rem;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0.4rem 0 0.7rem;
}
.pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pay span {
  display: block;
  text-align: center;
  padding: 0.7rem 0;
  border-radius: 12px;
  font-weight: 700;
  background: #173d32;
  color: #fff;
}
.pay span + span {
  background: #e8efe6;
  color: #173d32;
}

/* Sections */
section {
  scroll-margin-top: 1rem;
}
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-head {
  max-width: 40em;
  margin-bottom: 2.5rem;
}
.section-head p {
  color: var(--ink-2);
  font-size: 1.1rem;
}
.alt {
  background: var(--surface-2);
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature p {
  color: var(--ink-2);
  margin: 0;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.alt .feature-icon {
  background: var(--bg);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Offline band */
.panel {
  background: var(--panel);
  color: var(--panel-ink);
}
.panel .section-head p,
.panel .step p {
  color: var(--panel-ink-2);
}
.panel a:not(.btn) {
  color: var(--panel-ink);
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.step {
  counter-increment: step;
  border-top: 2px solid rgb(243 243 237 / 0.35);
  padding-top: 1.25rem;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--stripe);
  color: #1d1a0f;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.note {
  border-left: 4px solid var(--stripe);
  padding: 0.25rem 0 0.25rem 1.1rem;
  max-width: 46em;
  color: var(--panel-ink-2);
  margin: 0;
}
.note strong {
  color: var(--panel-ink);
}

/* Team */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
.checklist li {
  position: relative;
  padding: 1rem 1.1rem 1rem 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 1.3rem;
  width: 1rem;
  height: 0.55rem;
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(-45deg);
}
.checklist strong {
  display: block;
}
.checklist span {
  color: var(--ink-2);
}

/* Pricing */
.plans {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  max-width: 900px;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.plan h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.plan-for {
  color: var(--ink-2);
  margin-bottom: 1.25rem;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0;
}
.price strong {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price span {
  color: var(--ink-2);
}
.price-year {
  color: var(--ink-2);
  margin: 0.5rem 0 1.5rem;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.6rem;
}
.plan li {
  position: relative;
  padding-left: 1.6rem;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.plan .btn {
  margin-top: auto;
}
.plan-featured {
  border: 2px solid var(--ink);
}
.tag {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
@media (max-width: 400px) {
  .tag {
    position: static;
    align-self: flex-start;
    margin-bottom: 0.9rem;
  }
}
.pricing-notes {
  margin-top: 1.75rem;
  color: var(--ink-2);
  max-width: 46em;
}

/* Story strip */
.story > * {
  max-width: 40rem;
}
.story p {
  font-size: 1.15rem;
  color: var(--ink-2);
}

/* Closing CTA */
.closing {
  text-align: center;
}
.closing .wrap {
  max-width: 760px;
}
.closing .cta-row {
  justify-content: center;
}
.closing p {
  color: var(--panel-ink-2);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer a {
  color: var(--ink);
}
.site-footer p {
  margin: 0;
}

/* Plain text pages */
.doc {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem;
}
.doc .wrap {
  max-width: 720px;
}
.doc h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}
.doc h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}
.doc ul {
  padding-left: 1.25rem;
}
.doc li {
  margin-bottom: 0.4rem;
}
.updated {
  color: var(--ink-2);
}
.callout {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.not-found {
  padding: clamp(4rem, 12vw, 8rem) 0;
  text-align: center;
}
.not-found .cta-row {
  justify-content: center;
}
.not-found p {
  color: var(--ink-2);
}

.in-short {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--stripe);
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
}
.doc-toc ol {
  columns: 2 16rem;
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
}
.doc-toc a {
  color: inherit;
}
.doc section {
  scroll-margin-top: 5rem;
}
