:root {
  --navy: #14243b;
  --navy-soft: #1d3354;
  --ink: #17263c;
  --muted: #4d5d72;
  --line: #e3e8ef;
  --soft: #f3f5f8;
  --white: #ffffff;
  --orange: #ff852e;
  --orange-deep: #f0761c;
  --shadow: 0 16px 40px rgba(20, 36, 59, 0.08);
  --radius: 18px;
  --header: 76px;
  --max: 1120px;
  --font: "Segoe UI", "Nirmala UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
  border-radius: 8px;
}

.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(20, 36, 59, 0.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img { height: 42px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #c65a10; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn.header-cta { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-deep); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: #d5dce6;
}

.btn-secondary:hover { border-color: var(--navy); }

.btn-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-light:hover { background: rgba(255, 255, 255, 0.08); }

.btn-sm { min-height: 42px; padding-inline: 16px; font-size: 0.95rem; }

.btn.is-disabled,
.store-card.is-disabled {
  opacity: 0.72;
  pointer-events: none;
  cursor: default;
  transform: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 36px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 133, 46, 0.18), transparent 28%),
    linear-gradient(180deg, #f6f8fb 0%, #ffffff 78%);
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split { align-items: start; }

.eyebrow {
  margin: 0 0 12px;
  color: #c65a10;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}

h3 { margin-bottom: 8px; color: var(--navy); font-size: 1.25rem; }

.lede { font-size: 1.22rem; color: var(--muted); max-width: 40rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

.fine { color: var(--muted); font-size: 0.95rem; }

.board {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.board-top, .row, .stat, .person, .order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.board-top { margin-bottom: 16px; font-weight: 700; color: var(--navy); }

.pill, .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff1e6;
  color: #9a4b12;
  font-size: 0.82rem;
  font-weight: 700;
}

.stats, .balances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }

.stat, .balance, .person, .entry, .order {
  background: var(--soft);
  border-radius: 14px;
  padding: 12px;
}

.stat strong, .balance strong { display: block; color: var(--navy); font-size: 1.15rem; }
.stat span, .balance span, .muted { color: var(--muted); font-size: 0.88rem; }

.rows, .people, .entries, .orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.row, .person, .entry { font-weight: 600; color: var(--navy); }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d2de;
  flex: none;
}

.dot.ok { background: var(--orange); }

.row span:first-child, .person-name { display: flex; align-items: center; gap: 8px; }

.caption { margin: 10px 0 0; text-align: center; }

section { padding: 72px 0; }

.section-soft { background: var(--soft); }

.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p:last-child { color: var(--muted); }

.grid-3, .grid-2, .plans, .stores { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.plans { grid-template-columns: repeat(4, 1fr); align-items: stretch; }

.card, .plan, .store-card, .help-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(20, 36, 59, 0.02);
}

.card a, .text-link { color: #9a4b12; font-weight: 700; }

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff1e6;
  color: #c65a10;
  margin-bottom: 14px;
}

.icon-badge svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.problem-list li {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 16px 14px 46px;
  position: relative;
  border: 1px solid var(--line);
}
.problem-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  left: 18px;
  top: 20px;
}

.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.band {
  background: var(--navy);
  color: var(--white);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.band h2, .band p { color: var(--white); }
.band p { color: rgba(255, 255, 255, 0.82); max-width: 40rem; }

.billing {
  display: inline-flex;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 8px 0 22px;
}

.billing button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}

.billing button.is-active { background: var(--navy); color: var(--white); }

.plan { display: flex; flex-direction: column; position: relative; }
.plan.is-featured { border-color: var(--orange); box-shadow: var(--shadow); }
.plan-badge { margin-bottom: 8px; }
.plan-price {
  font-size: 2.3rem;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin: 8px 0 0;
}
.plan ul { padding-left: 18px; margin: 12px 0 20px; color: var(--muted); flex: 1; }
.plan .btn { width: 100%; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--navy); }
td:first-child { font-weight: 700; color: var(--navy); }

.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.faq-item button::after { content: "+"; color: #c65a10; font-size: 1.3rem; line-height: 1; }
.faq-item button[aria-expanded="true"]::after { content: "–"; }
.faq-panel { padding: 0 18px 16px; color: var(--muted); }
.faq-panel p { margin-bottom: 0; }

.page-hero { padding: 56px 0 12px; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.crumbs { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.crumbs a { color: #9a4b12; }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.subnav a {
  text-decoration: none;
  background: var(--soft);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.92rem;
}
.subnav a[aria-current="page"] { background: var(--navy); color: var(--white); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before {
  content: "";
  width: 14px;
  height: 8px;
  border-left: 2px solid #c65a10;
  border-bottom: 2px solid #c65a10;
  position: absolute;
  left: 2px;
  top: 8px;
  transform: rotate(-45deg);
}

.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day { background: var(--soft); border-radius: 12px; padding: 10px; text-align: center; }
.day strong { display: block; color: var(--navy); font-size: 0.85rem; }
.day span { font-size: 0.78rem; font-weight: 700; color: #9a4b12; }

.stores { grid-template-columns: repeat(3, 1fr); }
.store-card { text-decoration: none; color: inherit; display: block; }
.store-card h3 { margin-top: 8px; }
.kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; color: #c65a10; }

.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; color: var(--navy); }
input, select, textarea {
  width: 100%;
  border: 1px solid #d5dce6;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255, 133, 46, 0.55);
  outline-offset: 2px;
}
.form-status { min-height: 1.4em; font-weight: 700; color: var(--navy); }

.notice {
  background: #fff7f0;
  border: 1px solid #ffd7b8;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--navy);
}

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 32px; }
.prose ul { color: var(--muted); }
.prose p { color: var(--muted); }
.prose strong { color: var(--navy); }

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer h2 { color: white; font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; }
.legal-line { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 16px; font-size: 0.92rem; }

@media (max-width: 980px) {
  .hero-grid, .split, .grid-3, .plans, .stores, .footer-grid { grid-template-columns: 1fr 1fr; }
  .plans, .footer-grid, .stores { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle, .btn.header-cta { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .site-nav a { width: 100%; padding: 10px 0; }
  body.nav-open .site-nav {
  display: flex;
  z-index: 40;
  box-shadow: 0 18px 40px rgba(20, 36, 59, 0.12);
}
  .site-nav .btn { display: none; }
  .band { flex-direction: column; align-items: flex-start; padding: 32px 22px; }
}

@media (max-width: 700px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding-top: 36px; }
  section { padding: 52px 0; }
  .hero-grid, .split, .grid-3, .grid-2, .plans, .stores, .footer-grid, .stats, .week { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  h1 { font-size: 2.35rem; }
}

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