:root {
  /* Kept in sync with the app's palette in styles.css so the marketing site
     and the product don't drift into two subtly different brand colors. */
  --ink: #172026;
  --muted: #66727d;
  --panel: #ffffff;
  --line: #d7dde2;
  --accent: #1b766f;
  --accent-strong: #135a55;
  --gold: #f2c94c;
  --danger: #a63d40;
  --wash: #eef6f4;
  --shadow: 0 22px 70px rgba(16, 33, 38, 0.16);
}

* {
  box-sizing: border-box;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7faf9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: linear-gradient(to bottom, rgba(10, 24, 28, 0.86), rgba(10, 24, 28, 0.22));
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.site-header nav {
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.login-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
}

.login-link,
.primary-action {
  color: #ffffff;
  background: var(--accent);
}

.login-link {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 112px clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
  color: #ffffff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 24, 0.92), rgba(8, 20, 24, 0.54) 48%, rgba(8, 20, 24, 0.12)),
    url("assets/brand/dashboard-banner.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-content p,
.section-heading p,
.product-band > div > p:first-child {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.92;
}

.hero-content span {
  display: block;
  max-width: 520px;
  margin-top: 20px;
  color: #d9eeee;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-action {
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(12, 84, 79, 0.28);
}

.secondary-action {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.section,
.product-band {
  padding: 76px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading > span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.section-heading h2,
.product-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.feature-grid,
.beta-grid,
.plan-grid {
  display: grid;
  gap: 14px;
}

.feature-grid,
.beta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.beta-grid article,
.plan-card {
  padding: 20px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(16, 33, 38, 0.08);
}

.plans-section {
  background: #ffffff;
}

.plan-card {
  display: grid;
  gap: 20px;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  position: relative;
}

.featured-plan {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 48%),
    #ffffff;
}

.plan-card p {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.plan-card h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.plan-price span {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
}

.plan-card div > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.plan-card li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.plan-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #102126;
  background: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-action,
.secondary-plan-action {
  width: 100%;
  margin-top: 4px;
}

.secondary-plan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #ffffff;
  font-weight: 800;
}

.feature-grid span {
  color: var(--accent);
  font-weight: 800;
}

.feature-grid h3,
.beta-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.24rem;
}

.feature-grid p,
.beta-grid p,
.product-band p,
footer {
  color: var(--muted);
  line-height: 1.62;
}

.preview-section {
  background:
    linear-gradient(180deg, #ffffff, #eef6f4);
  overflow: hidden;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  gap: 22px;
  align-items: end;
}

.app-preview-frame {
  display: grid;
  grid-template-columns: minmax(170px, 0.24fr) minmax(0, 1fr);
  min-height: 520px;
  border: 1px solid rgba(16, 33, 38, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #f7faf9;
  box-shadow: var(--shadow);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 16px;
  color: #ffffff;
  background: #102126;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.preview-brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.preview-brand strong,
.preview-brand span,
.preview-nav {
  display: block;
}

.preview-brand span {
  color: #b5c5ca;
  font-size: 0.82rem;
}

.preview-nav {
  padding: 12px;
  border-radius: 8px;
  color: #d9e7e9;
  font-weight: 800;
}

.preview-nav.active {
  background: #1d343b;
  color: #ffffff;
}

.preview-main {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
}

.preview-topbar {
  min-height: 132px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.9), rgba(3, 8, 18, 0.44)),
    url("assets/brand/dashboard-banner.jpg") center / cover no-repeat;
}

.preview-topbar span {
  display: block;
  color: #77e7e2;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-topbar strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.preview-topbar button,
.phone-screen button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
}

.preview-metrics,
.preview-content-grid {
  display: grid;
  gap: 14px;
}

.preview-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-metrics div,
.preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 33, 38, 0.08);
}

.preview-metrics div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.preview-metrics span,
.preview-panel-heading span,
.preview-property span,
.phone-screen span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-metrics strong {
  color: var(--ink);
  font-size: 1.8rem;
}

.preview-content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.preview-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 184px;
  padding: 18px;
}

.preview-panel-heading,
.preview-property {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-panel-heading strong {
  color: var(--accent-strong);
}

.preview-property,
.preview-check {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.preview-property strong,
.preview-check {
  color: var(--ink);
  font-weight: 800;
}

.preview-check.done {
  color: var(--accent-strong);
}

.phone-preview {
  min-height: 438px;
  padding: 12px;
  border-radius: 34px;
  border: 1px solid rgba(16, 33, 38, 0.16);
  background: #102126;
  box-shadow: 0 22px 70px rgba(16, 33, 38, 0.22);
}

.phone-speaker {
  width: 70px;
  height: 6px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: #355158;
}

.phone-screen {
  min-height: 390px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px 18px;
  border-radius: 24px;
  background: #f7faf9;
}

.phone-screen strong {
  display: block;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1;
}

.phone-screen p {
  margin: 0;
  color: var(--muted);
}

.phone-screen div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.product-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: center;
  background: var(--wash);
}

.product-band img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.beta-section {
  background: #ffffff;
}

.value-section {
  background:
    linear-gradient(135deg, rgba(27, 118, 111, 0.09), rgba(242, 201, 76, 0.08)),
    #f7faf9;
}

.value-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.value-card,
.value-breakdown div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(16, 33, 38, 0.08);
}

.value-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 240px;
  padding: 22px;
}

.value-card span,
.value-breakdown span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.value-card strong {
  color: var(--ink);
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.95;
}

.value-card p,
.value-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.value-price {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background:
    linear-gradient(135deg, rgba(27, 118, 111, 0.12), rgba(242, 201, 76, 0.1)),
    #ffffff;
}

.value-savings strong {
  color: var(--accent-strong);
}

.value-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.value-breakdown div {
  display: grid;
  gap: 10px;
  min-height: 124px;
  padding: 18px;
}

.value-breakdown strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.value-note {
  margin-top: 16px;
  max-width: 860px;
  font-size: 0.95rem;
}

.legal-note {
  max-width: 940px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.58;
}

.lease-disclaimer-section {
  background: #ffffff;
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 4px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page .legal-note {
  margin: 20px 0 32px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.beta-section .primary-action {
  margin-top: 24px;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  text-align: center;
}

footer span {
  color: var(--ink);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
}

.footer-meta,
.footer-copyright {
  margin: 0;
}

.footer-copyright {
  font-size: 0.85rem;
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  .feature-grid,
  .beta-grid,
  .plan-grid,
  .value-layout,
  .value-breakdown,
  .preview-layout,
  .app-preview-frame,
  .preview-metrics,
  .preview-content-grid,
  .product-band {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    width: min(100%, 340px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .site-header nav a:not(.login-link) {
    display: none;
  }

  .hero {
    min-height: 88svh;
    padding-top: 130px;
  }

  .hero-actions a,
  .beta-section .primary-action {
    width: 100%;
  }

  .app-preview-frame {
    min-height: auto;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-main {
    padding: 14px;
  }

  .preview-topbar {
    min-height: 112px;
    padding: 16px;
    align-items: end;
  }

  .preview-topbar button {
    display: none;
  }

  .preview-metrics strong {
    font-size: 1.45rem;
  }

  .feature-grid article,
  .beta-grid article {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }
}
