/* ==========================================================================
   HomeWay marketing site
   Design tokens live in tokens/*.css — everything below composes them.
   Section order matches the document order in index.html.
   ========================================================================== */

@import url("tokens/fonts.css");
@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/elevation.css");

/* ---------------------------------------------------------------- base --- */

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

html { scroll-behavior: smooth; }

/* Clear the sticky nav when jumping to an anchor. */
[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--surface-app);
  color: var(--text-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: #D9E2D2; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 100;
  transform: translate(-50%, -140%);
  background: var(--green-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Icons are <use> refs into the inlined Lucide sprite. */
.ico {
  width: 20px; height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* -------------------------------------------------------------- layout --- */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap--1140 { max-width: 1140px; }
.wrap--1080 { max-width: 1080px; }

.section { padding: 72px 0; }
.section--sunken { background: var(--surface-sunken); }

.section-head { text-align: center; margin: 0 auto 48px; }

.eyebrow {
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-track);
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 14px;
}
.eyebrow--rule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow--rule::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--gold-accent);
}

.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.h3 { font-size: 18px; line-height: 1.3; letter-spacing: 0; }

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 auto;
}

.rule-gold {
  width: 26px; height: 2px;
  background: var(--gold-accent);
  border: 0;
  margin: 16px 0;
}

/* ------------------------------------------------------------- buttons --- */
/* Mirrors HomeWayDesignSystem.Button — green leads, gold is never a button. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: var(--type-button-size);
  font-weight: var(--type-button-weight);
  line-height: var(--type-button-line);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
  white-space: nowrap;
  user-select: none;
}

.btn--primary   { background: var(--green-primary); color: #fff; }
.btn--primary:hover { background: var(--green-pressed); }

.btn--secondary {
  background: var(--surface-card);
  color: var(--text-ink);
  border-color: var(--border-strong);
}
.btn--secondary:hover { background: var(--surface-sunken); }

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(241, 239, 232, 0.4);
}
.btn--ghost:hover { background: rgba(241, 239, 232, 0.12); }

/* Page-level size overrides, matching the design's per-slot button styles. */
.btn--nav { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.btn--lg  { height: 56px; padding: 0 30px; font-size: 16px; border-radius: 14px; }
.btn--lg.btn--secondary,
.btn--lg.btn--ghost { padding: 0 26px; }
.btn--lg.btn--primary + .btn--lg { padding: 0 26px; }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Text link with a nudging arrow. */
.link-arrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 12px; }

/* ------------------------------------------------------------- reveals --- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.8s cubic-bezier(0.16, 0.84, 0.44, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* No JS? Never leave the page blank. */
.no-js [data-reveal] { opacity: 1; transform: none; }

@keyframes hw-float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hw-float-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes hw-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(42, 68, 52, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(42, 68, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 68, 52, 0); }
}

/* ----------------------------------------------------------------- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface-app);
  border-bottom: 1px solid var(--border-hairline);
  transition: box-shadow 0.3s ease;
}
.nav.is-stuck { box-shadow: 0 6px 24px rgba(28, 46, 35, 0.07); }

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__logo { flex-shrink: 0; }
.nav__logo img { width: auto; height: 27px; }

.nav__links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav__links a { transition: color 0.18s ease; }
.nav__links a:hover { color: var(--green-primary); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.nav__signin {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.nav__signin:hover { color: var(--green-primary); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: 11px;
  color: var(--text-ink);
  cursor: pointer;
}
.nav__toggle .ico { width: 22px; height: 22px; }
.nav__toggle .ico--close,
.nav__toggle[aria-expanded="true"] .ico--open { display: none; }
.nav__toggle[aria-expanded="true"] .ico--close { display: block; }

.nav__panel { display: none; }

/* ---------------------------------------------------------------- hero --- */

.hero { position: relative; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 74px;
  padding-bottom: 40px;
}

.hero__title { margin-bottom: 22px; }

.hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  color: var(--text-faint);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.hero__note span { display: inline-flex; align-items: center; gap: 7px; }
.hero__note .ico { width: 16px; height: 16px; color: var(--sage); }
.hero__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}

.hero__demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------- phone demo --- */

.demo { position: relative; }

/* Soft ground shapes behind the device. */
.demo::before,
.demo::after {
  content: "";
  position: absolute;
  z-index: 0;
}
.demo::before {
  inset: -6% -14% -10% -14%;
  background: var(--sage-soft);
  border-radius: 36px;
}
.demo::after {
  left: -12%; top: -7%;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--gold-pale);
  opacity: 0.7;
}

.demo__card {
  position: absolute;
  z-index: 3;
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo__card-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.demo__card-title { display: block; font-size: 13px; font-weight: 600; }
.demo__card-sub   { display: block; font-size: 11.5px; }

.demo__card--top {
  right: -46px; top: 46px;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 14px 34px rgba(28, 46, 35, 0.14);
  animation: hw-float 5.5s ease-in-out infinite;
}
.demo__card--top .demo__card-icon {
  background: var(--status-success-bg);
  color: var(--status-success-fg);
}
.demo__card--top .demo__card-title { color: var(--text-ink); }
.demo__card--top .demo__card-sub   { color: var(--text-faint); }

.demo__card--bottom {
  left: -52px; bottom: 78px;
  background: var(--green-deep);
  box-shadow: 0 14px 34px rgba(28, 46, 35, 0.22);
  animation: hw-float-2 6.5s ease-in-out infinite;
}
.demo__card--bottom .demo__card-icon {
  background: rgba(201, 168, 108, 0.18);
  color: var(--gold-soft);
}
.demo__card--bottom .demo__card-title { color: var(--text-on-dark); }
.demo__card--bottom .demo__card-sub   { color: var(--gold-soft); }

.phone {
  position: relative;
  z-index: 2;
  width: 318px; height: 642px;
  background: var(--surface-app);
  border-radius: 46px;
  border: 11px solid #11201A;
  box-shadow: 0 30px 70px rgba(28, 46, 35, 0.30);
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  display: flex;
  flex-direction: column;
  background: var(--surface-app);
}
.screen.is-active { opacity: 1; pointer-events: auto; }

.screen__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px 4px;
  color: var(--text-ink);
  font-size: 13px;
  font-weight: 600;
}
.screen__status-icons { display: inline-flex; gap: 6px; }
.screen__status-icons .ico { width: 14px; height: 14px; }

.screen__body {
  flex: 1;
  overflow: hidden;
  padding: 6px 16px 0;
}

.screen__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 14px;
}
.screen__head img { width: auto; height: 24px; }
.screen__title {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text-ink);
}
.screen__title small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-faint);
}
.screen__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}
.screen__iconbtn {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.screen__iconbtn .ico { width: 18px; height: 18px; }

.screen__label {
  margin: 18px 2px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pcard {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.pcard--list { padding: 2px 12px; box-shadow: none; }
.pcard--flush { padding: 0; overflow: hidden; }

.pcard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
}
.pcard__big {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  color: var(--text-ink);
  margin-top: 8px;
}
.pcard__sub { font-size: 13px; color: var(--text-faint); margin-top: 2px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}
.pill--sm { font-size: 10.5px; padding: 3px 8px; }
.pill--success { background: var(--status-success-bg); color: var(--status-success-fg); }
.pill--pending { background: var(--status-pending-bg); color: var(--status-pending-fg); }
.pill--info    { background: var(--status-info-bg);    color: var(--status-info-fg); }
.pill--neutral { background: var(--sage-soft);         color: var(--text-muted); }
.pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: hw-pulse 2s infinite;
}

.pbtn {
  margin-top: 14px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-sunken);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
}
.pbtn--primary {
  height: 48px;
  background: var(--green-primary);
  color: #fff;
  font-size: 15px;
}
.pbtn .ico { width: 17px; height: 17px; }

.prow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
}
.prow + .prow { border-top: 1px solid var(--border-hairline); }
.prow__icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--sage-soft);
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prow__icon--sm { width: 32px; height: 32px; border-radius: 10px; }
.prow__icon--success { background: var(--status-success-bg); color: var(--status-success-fg); }
.prow__icon .ico { width: 19px; height: 19px; }
.prow__icon--sm .ico { width: 17px; height: 17px; }
.prow__text { flex: 1; }
.prow__title { display: block; font-size: 14.5px; font-weight: 600; }
.prow__sub   { display: block; font-size: 12px; color: var(--text-muted); }
.prow__when  { font-size: 11.5px; color: var(--text-faint); }

.photo-slot {
  height: 96px;
  background: var(--surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  gap: 8px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 12.5px;
}
.photo-slot .ico { width: 22px; height: 22px; }

.request { padding: 13px 14px; }
.request__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.request__meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.steps { display: flex; align-items: center; margin-top: 14px; }
.steps__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.steps__bullet {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.steps__bullet .ico { width: 11px; height: 11px; }
.steps__bullet--todo {
  background: var(--surface-sunken);
  border: 1.5px solid var(--border-strong);
}
.steps__label { font-size: 10px; color: var(--text-muted); }
.steps__label--now { color: var(--text-ink); font-weight: 600; }
.steps__label--todo { color: var(--text-faint); }
.steps__bar {
  height: 2px;
  flex: 1;
  background: var(--green-primary);
  margin-bottom: 14px;
}
.steps__bar--todo { background: var(--border-strong); }

.assignee {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  font-size: 12.5px;
  color: var(--text-muted);
}
.assignee__avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}
.assignee strong { color: var(--text-ink); }

.glance {
  background: var(--green-deep);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.glance__label {
  font-size: 12px;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.glance__grid { display: flex; margin-top: 12px; }
.glance__cell { flex: 1; }
.glance__cell + .glance__cell {
  border-left: 1px solid rgba(241, 239, 232, 0.14);
  padding-left: 14px;
}
.glance__n {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-on-dark);
}
.glance__k { font-size: 11px; color: var(--sage); }

.tabbar {
  display: flex;
  background: var(--green-deep);
  padding: 9px 8px 11px;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}
.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--sage);
  font-size: 10.5px;
  font-weight: 600;
}
.tabbar__item .ico { width: 21px; height: 21px; }
.tabbar__item::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: transparent;
}
.tabbar__item.is-on { color: var(--gold-soft); }
.tabbar__item.is-on::after { background: var(--gold-soft); }

.demo__controls {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.demo__dots { display: flex; gap: 8px; align-items: center; }
.demo__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.demo__dot.is-on { width: 26px; background: var(--gold-accent); }
.demo__caption { font-size: 12.5px; color: var(--text-faint); }

/* ------------------------------------------------------------- problem --- */

.problem { padding: 64px 0 24px; }
.problem__head { text-align: center; }
.problem__head .h2 { margin: 0 auto 18px; max-width: 620px; }
.problem__head .lede { max-width: 660px; }

.problem__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}

.scatter { position: relative; height: 280px; }
.scatter__chip {
  position: absolute;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0.78;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--text-muted);
}
.scatter__chip .ico { width: 16px; height: 16px; color: var(--text-faint); }
.scatter__chip:nth-child(1) { left: 6%;  top: 6%;    transform: rotate(-6deg); }
.scatter__chip:nth-child(2) { right: 2%; top: 0;     transform: rotate(5deg); }
.scatter__chip:nth-child(3) { left: 14%; top: 42%;   transform: rotate(3deg); }
.scatter__chip:nth-child(4) { right: 8%; top: 46%;   transform: rotate(-4deg); }
.scatter__chip:nth-child(5) { left: 24%; bottom: 2%; transform: rotate(7deg); }

.problem__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--gold-accent);
}
.problem__arrow .ico { width: 22px; height: 22px; }

.solution {
  background: var(--green-deep);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 18px 40px rgba(28, 46, 35, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.solution img { width: auto; height: 46px; }
.solution__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text-on-dark);
}
.solution__text { font-size: 13.5px; color: var(--sage); line-height: 1.5; }

/* ------------------------------------------------------------ features --- */

.features { padding: 72px 0 24px; }
.features__head .lede { max-width: 560px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(28, 46, 35, 0.10);
  border-color: var(--border-strong);
}
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--sage-soft);
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature__icon .ico { width: 23px; height: 23px; }
.feature .h3 { margin-bottom: 8px; }
.feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.feature__more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feature__more .ico { width: 15px; height: 15px; }

/* --------------------------------------------------------------- stats --- */

.stats { padding: 64px 0; }
.stats__band {
  background: var(--green-deep);
  border-radius: 28px;
  padding: 54px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid rgba(241, 239, 232, 0.12); }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 62px);
  font-weight: 600;
  line-height: 1;
  color: var(--text-on-dark);
}
.stat .rule-gold { margin: 16px auto; }
.stat__k {
  font-size: 14.5px;
  color: var(--sage);
  max-width: 220px;
  margin: 0 auto;
}

/* --------------------------------------------------------------- roles --- */

.roles { padding: 48px 0; }
.roles__head { margin-bottom: 44px; }
.roles__head .lede { max-width: 560px; }

.roles__grid {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.role {
  position: relative;
  padding: 38px 30px 36px;
  transition: background 0.25s ease;
}
.role:hover { background: var(--surface-sunken); }
.role + .role { border-left: 1px solid var(--border-hairline); }
.role__n {
  position: absolute;
  top: 32px; right: 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-accent);
  letter-spacing: 0.08em;
}
.role__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.role__icon .ico { width: 25px; height: 25px; }
.role .h3 { font-size: 18.5px; margin-top: 24px; }
.role p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ----------------------------------------------------------------- how --- */

.how__head { margin-bottom: 52px; }
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step { text-align: center; padding: 0 8px; }
.step__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  color: var(--green-primary);
}
.step__icon .ico { width: 24px; height: 24px; }
.step__n {
  position: absolute;
  top: -6px; right: -6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step .h3 { margin-bottom: 8px; }
.step p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* -------------------------------------------------------------- digest --- */

.digest { padding: 80px 0; }
.digest__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.digest__copy .h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.12; margin-bottom: 18px; }
.digest__copy p:not(.eyebrow) {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.digest__copy p:last-child { margin-bottom: 0; }

.digest__preview { display: flex; justify-content: center; }
.digest-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(28, 46, 35, 0.10);
  overflow: hidden;
}
.digest-card__head {
  background: var(--green-deep);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.digest-card__head img { width: auto; height: 30px; }
.digest-card__label {
  font-size: 11px;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.digest-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-top: 3px;
}
.digest-card__body { padding: 8px 22px 18px; }
.digest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.digest-row + .digest-row { border-top: 1px solid var(--border-hairline); }
.digest-row__icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-soft);
  color: var(--green-primary);
}
.digest-row__icon--success { background: var(--status-success-bg); color: var(--status-success-fg); }
.digest-row__icon--pending { background: var(--status-pending-bg); color: var(--status-pending-fg); }
.digest-row__icon .ico { width: 19px; height: 19px; }
.digest-row__title { flex: 1; font-size: 14.5px; font-weight: 600; }
.digest-row__value { font-size: 13px; color: var(--text-faint); }
.digest-row__value--total {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-ink);
}

/* --------------------------------------------------------------- story --- */

.story { padding: 0 0 80px; }
.story__card {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.story__photo {
  min-height: 340px;
  background-image: url("../photos/pantry.avif");
  background-size: cover;
  background-position: center;
}
.story__copy { padding: 52px 48px; }
.story__copy .h2 { font-size: clamp(26px, 2.8vw, 32px); line-height: 1.14; margin-bottom: 18px; }
.story__copy p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* ------------------------------------------------------------ security --- */

.security { padding: 0 0 76px; }
.security__head { margin-bottom: 44px; }
.security__head .lede { max-width: 620px; }

.security__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.security__card {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.security__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(28, 46, 35, 0.10);
  border-color: var(--border-strong);
}
.security__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--sage-soft);
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.security__icon .ico { width: 23px; height: 23px; }
.security__card .h3 { margin-bottom: 8px; }
.security__card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.security__pledge {
  margin-top: 20px;
  background: var(--green-deep);
  border-radius: 24px;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.security__pledge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201, 168, 108, 0.16);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.security__pledge-icon .ico { width: 24px; height: 24px; }
.security__pledge-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin: 0;
}
.security__pledge p:not(.security__pledge-title) {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sage);
  margin: 12px 0 0;
  max-width: 640px;
}
.security__pledge-link {
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}
.security__pledge-link:hover { gap: 12px; }
.security__pledge-link .ico { width: 16px; height: 16px; }

/* ------------------------------------------------------------- pricing --- */

.pricing { padding: 16px 0 80px; }
.pricing__head { margin-bottom: 44px; }
.pricing__head .lede { max-width: 560px; }

.pricing__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.plan {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
}
.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.plan__name {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.plan__name img { width: auto; height: 30px; }

.toggle {
  display: flex;
  background: var(--surface-sunken);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}
.toggle__btn {
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.toggle__btn.is-on { background: var(--green-primary); color: #fff; }

.plan__price {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 30px;
}
.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 66px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text-ink);
}
.plan__per { font-size: 16px; color: var(--text-muted); padding-bottom: 9px; }
.plan__note {
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 12px;
  min-height: 21px;
}
.plan__rule { width: 34px; height: 2px; background: var(--gold-accent); border: 0; margin: 26px 0; }

.plan__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.plan__features .ico {
  width: 17px; height: 17px;
  color: var(--green-primary);
  margin-top: 2px;
}

.plan__cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.plan__fineprint { font-size: 13.5px; color: var(--text-faint); }

.addon {
  background: var(--green-deep);
  border-radius: 24px;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(28, 46, 35, 0.20);
}
.addon__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(201, 168, 108, 0.16);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.addon__icon .ico { width: 24px; height: 24px; }
.addon__eyebrow { color: var(--gold-soft); margin: 26px 0 12px; }
.addon__price { display: flex; align-items: flex-end; gap: 8px; }
.addon__amount {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.addon__per { font-size: 15px; color: var(--sage); padding-bottom: 5px; }
.addon__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-top: 18px;
}
.addon p:not(.eyebrow) { font-size: 14.5px; line-height: 1.6; color: var(--sage); margin: 10px 0 0; }
.addon__list {
  margin: 0;
  padding: 28px 0 0;
  margin-top: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.addon__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--sage);
}
.addon__list .ico { width: 16px; height: 16px; color: var(--gold-soft); }

.pricing__footnote {
  text-align: center;
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 26px;
}

/* ---------------------------------------------------------------- book --- */

.book { padding: 0 0 80px; }
.book__head { margin-bottom: 44px; }
.book__head .lede { max-width: 560px; }

.book__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  overflow: hidden;
}
.book__copy { padding: 52px 48px; }
.book__copy .h3 { margin-bottom: 20px; }
.book__list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
}
.book__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.book__list .ico {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--green-primary);
}
.book__fineprint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-faint);
  margin: 0;
}
.book__fineprint a {
  color: var(--green-primary);
  font-weight: 500;
}
.book__embed {
  border-left: 1px solid var(--border-hairline);
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book__embed .calendly-inline-widget {
  width: 100%;
  height: 680px;
  min-width: 320px;
}

/* ----------------------------------------------------------------- cta --- */

.cta { padding: 0 0 80px; }
.cta__band {
  position: relative;
  background: var(--green-deep);
  border-radius: 28px;
  padding: 72px 40px;
  text-align: center;
  overflow: hidden;
}
.cta__band::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(201, 168, 108, 0.08);
}
.cta__inner { position: relative; z-index: 1; }
.cta__rule { width: 34px; height: 2px; background: var(--gold-accent); border: 0; margin: 0 auto 24px; }
.cta .h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
  margin: 0 auto 18px;
  max-width: 640px;
}
.cta__lede {
  font-size: 17px;
  color: var(--sage);
  margin: 0 auto 34px;
  max-width: 480px;
}
.cta .btn-row { justify-content: center; }
.cta__fineprint { font-size: 13px; color: var(--sage); margin-top: 24px; }

/* -------------------------------------------------------------- footer --- */

.footer { background: var(--green-deep); padding: 60px 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(241, 239, 232, 0.12);
}
.footer__brand img { width: auto; height: 28px; margin-bottom: 18px; }
.footer__brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sage);
  margin: 0;
  max-width: 280px;
}
.footer__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  color: var(--sage);
}
.footer__links a { transition: color 0.18s ease; }
.footer__links a:hover { color: var(--text-on-dark); }
.footer__base {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--sage);
}

/* ---------------------------------------------------------- stickybar --- */
/* Mobile-only bottom CTA bar. Hidden on desktop, where the nav already
   carries both actions. It ships visible: only site.js tucks it away while
   the hero or the closing CTA is on screen, so a no-JS visitor keeps it. */

.stickybar { display: none; }

/* ==================================================== responsive =========
   The design is specified at desktop; below 1024px the multi-column bands
   collapse in the order that keeps the reading sequence intact.
   ========================================================================= */

@media (max-width: 1080px) {
  /* Three nav actions now: buy back the room from the gaps. */
  .nav__links { gap: 22px; }
  .nav__actions { gap: 12px; }

  .hero__inner { gap: 32px; }
  .roles__grid { grid-template-columns: repeat(2, 1fr); }
  .role:nth-child(odd) { border-left: 0; }
  .role:nth-child(n + 3) { border-top: 1px solid var(--border-hairline); }
  .security__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav__links,
  .nav__actions { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid transparent;
    background: var(--surface-app);
  }
  .nav__panel.is-open {
    max-height: 560px;
    border-top-color: var(--border-hairline);
  }
  .nav__panel-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav__panel a {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-hairline);
  }
  .nav__panel .btn { margin-top: 16px; }
  .nav__panel .btn + .btn { margin-top: 10px; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 56px;
  }
  .hero__copy { max-width: 640px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }

  .digest__inner { grid-template-columns: 1fr; gap: 40px; }

  .story__card { grid-template-columns: 1fr; }
  .story__photo { min-height: 240px; }
  .story__copy { padding: 40px 32px; }

  .security__pledge { padding: 34px 32px; gap: 22px; }

  .pricing__grid { grid-template-columns: 1fr; }

  .book__card { grid-template-columns: 1fr; }
  .book__copy { padding: 40px 32px; }
  .book__embed { border-left: 0; border-top: 1px solid var(--border-hairline); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .problem__grid { grid-template-columns: 1fr; gap: 20px; }
  .problem__arrow { transform: rotate(90deg); margin: 0 auto; }

  .stats__band { grid-template-columns: 1fr; padding: 40px 28px; gap: 36px; }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid rgba(241, 239, 232, 0.12);
    padding-top: 32px;
  }

  .how__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav__inner { padding: 0 20px; height: 66px; }
  .nav__panel-inner { padding: 18px 20px 24px; }
  .section { padding: 56px 0; }

  .demo__card { display: none; }
  .demo::after { display: none; }

  .features__grid { grid-template-columns: 1fr; }
  .roles__grid { grid-template-columns: 1fr; }
  .role + .role { border-left: 0; border-top: 1px solid var(--border-hairline); }

  .security__grid { grid-template-columns: 1fr; }
  .security__pledge {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 24px;
  }

  .plan { padding: 32px 24px 28px; }
  .plan__features { grid-template-columns: 1fr; }
  .addon { padding: 32px 24px; }

  .book__copy { padding: 32px 24px; }

  .cta__band { padding: 52px 24px; }
  .btn-row .btn { flex: 1 1 auto; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { justify-content: flex-start; }

  /* Sticky CTA bar: phone-sized screens only. Sits under the nav (z-index 60). */
  .stickybar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 55;
    background: var(--surface-card);
    border-top: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-lg);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    transition: transform 0.28s ease, visibility 0s linear 0s;
  }
  .stickybar__inner {
    display: flex;
    gap: 10px;
  }
  .stickybar .btn {
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
  }
  /* Tucked away by site.js only. visibility follows the slide out so the
     hidden buttons leave the tab order, and leads it coming back. */
  .stickybar.is-tucked {
    transform: translateY(120%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
  }

  body.has-stickybar { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* The device mock is fixed-width by construction — scale it to fit instead
   of reflowing its internals. */
@media (max-width: 420px) {
  .hero__demo { transform: scale(0.85); transform-origin: top center; }
  .hero__inner { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
