/*
 * Unitly public website.
 * Colours and type follow the owner app: Project.Maui.OwnerApp/Resources/Styles/Colors.xaml and
 * docs/design-standards.md. Mint means good news only (paid, collected, vacant and ready to let);
 * a status is always colour + icon + word together.
 * No inline style attributes anywhere: the Content-Security-Policy allows stylesheets from the site only.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #004b72;
  --navy-dark: #003754;
  --navy-tint: #e6eff4;
  --mint: #32cd99;
  --mint-tint: #e3f6ee;
  --paid: #0a6e4d;
  --ink: #102a3a;
  --slate: #52616b;
  --line: #e1e7eb;
  --line-soft: #eef2f4;
  --field-line: #cbd5db;
  --ground: #f4f6f8;
  --surface: #ffffff;
  --amber-tint: #fff1d6;
  --amber-text: #8a4b00;
  --red: #b42318;
  --red-tint: #fde7e4;
  --orange-tint: #ffebdd;
  --orange-text: #9a3f07;
  --vacant-fill: #f9fafb;
  --vacant-line: #8795a0;
  --hero-subtle: #cfe0ea;
  --hero-track: #2a6788;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 42, 58, 0.05), 0 10px 30px rgba(16, 42, 58, 0.07);
  --container: 1140px;
  --gutter: 16px;
  --header-h: 68px;

  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --header-h: 76px;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-dark);
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A one-column grid is as wide as the screen, never as wide as its widest child (the phone mockup) */
.hero-grid,
.problem-grid,
.value-grid,
.pricing-grid,
.footer-grid,
.legal-layout {
  grid-template-columns: minmax(0, 1fr);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
}

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

/* The design's line icons (Project.Maui.OwnerApp/Controls/Icons.cs), drawn from one sprite */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

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

.btn-secondary {
  background: var(--surface);
  border-color: var(--field-line);
  color: var(--navy);
}

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

.btn-small {
  min-height: 48px;
  padding: 10px 18px;
  font-size: 1rem;
}

.btn .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

/*
 * Store badges. Placeholders until the listings are live: to use the official artwork, replace
 * the contents of each .store-badge with the badge image from Google's and Apple's badge pages
 * (see Project.Web.Landing/README.md). The link itself comes from assets/js/site-config.js.
 */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  flex: 1 1 150px;
  flex-direction: column;
  justify-content: center;
  max-width: 210px;
  min-height: 60px;
  padding: 8px 16px;
  border: 1px solid #a6a6a6;
  border-radius: 12px;
  background: #000;
  color: #fff;
  line-height: 1.15;
  text-decoration: none;
}

.store-badge:hover {
  color: #fff;
  background: #1a1a1a;
}

.store-badge small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.store-badge strong {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* No store link yet: the badge says so and is not a link */
.store-badge.is-soon {
  background: var(--surface);
  border: 2px dashed var(--vacant-line);
  color: var(--slate);
  cursor: default;
}

.store-badge.is-soon strong {
  color: var(--ink);
}

.on-navy .store-badge.is-soon {
  background: transparent;
  border-color: var(--hero-subtle);
  color: var(--hero-subtle);
}

.on-navy .store-badge.is-soon strong {
  color: #fff;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 6px 0;
}

.brand img {
  width: auto;
  height: 34px;
}

.header-download {
  gap: 0;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .header-download .wide-only {
    display: none;
  }
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--field-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.menu-button .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.menu-button .icon-close,
.menu-button[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-button[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(16, 42, 58, 0.1);
}

.site-nav ul {
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

@media (max-width: 380px) {
  .brand img {
    height: 28px;
  }

  .header-download {
    padding-inline: 10px;
  }

  /* Out of sight but still the button's name: display:none would leave it nameless */
  .menu-button .menu-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

@media (min-width: 1040px) {
  .menu-button {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .site-nav ul {
    display: flex;
    gap: 2px;
  }

  .site-nav a {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    font-size: 1rem;
  }

  .site-nav a:hover {
    background: var(--ground);
  }

  .site-nav a[aria-current="page"] {
    background: var(--navy-tint);
  }

  .header-inner {
    gap: 16px;
  }

  .brand img {
    height: 38px;
  }

  .header-download {
    min-height: 48px;
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* ------------------------------------------------------------------ sections */

.section {
  padding-block: clamp(64px, 10vw, 112px);
}

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

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 6vw, 56px);
  text-align: center;
}

.section-head p {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--slate);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--navy-tint);
  color: var(--navy);
}

.icon-tile .icon {
  width: 26px;
  height: 26px;
}

.tag-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber-tint);
  color: var(--amber-text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-soon .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 8vw, 96px) clamp(64px, 9vw, 104px);
  background: linear-gradient(180deg, var(--ground) 0%, var(--surface) 100%);
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero h1 .accent {
  display: block;
  color: var(--navy);
}

.hero .lead {
  max-width: 34ch;
  margin-bottom: 32px;
  color: var(--slate);
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  line-height: 1.55;
}

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

.hero-actions .btn {
  flex: 1 1 220px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  list-style: none;
  color: var(--ink);
  font-weight: 700;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  width: 22px;
  height: 22px;
  color: var(--paid);
  stroke-width: 2.6;
}

.hero .store-badges {
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* The roof line from the logo, faint, behind the phone - as on Home's navy card in the app */
.roof {
  position: absolute;
  pointer-events: none;
}

.hero-visual .roof {
  top: 4%;
  width: 150%;
  max-width: 640px;
  color: var(--navy-tint);
}

.roof-mint {
  color: var(--mint-tint);
}

@media (min-width: 640px) {
  .hero-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

/* ------------------------------------------------------------------ phone mockup */

/*
 * The app's Home screen: marketing/play-screenshots/png/bare/01-home.png at 600 px wide, the same
 * screen as the store screenshots. Swap in a real screenshot the same way; the .phone element
 * carries the description for screen readers.
 */
.phone {
  position: relative;
  width: 304px;
  max-width: 100%;
  padding: 10px;
  border-radius: 46px;
  background: #0e2230;
  box-shadow: 0 40px 80px -30px rgba(0, 55, 84, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 20px;
  background: #0e2230;
  z-index: 2;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 612px;
  overflow: hidden;
  border-radius: 36px;
  background: var(--ground);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meter {
  position: relative;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hero-track);
}

/* 74%: ₱63,000 collected of ₱85,000 expected, the sample figures used throughout the page */
.meter span {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

@media (max-width: 359px) {
  .phone-screen {
    height: 580px;
  }
}

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

.problem-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.problem-intro p {
  color: var(--slate);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
}

.problem-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.problem-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-weight: 700;
}

.problem-list .icon {
  color: var(--slate);
}

/* The answer, in the list's last cell: good news, so mint */
.problem-list .problem-turn {
  border-color: transparent;
  background: var(--mint-tint);
  color: var(--paid);
  font-weight: 800;
}

.problem-list .problem-turn .icon {
  color: var(--paid);
  stroke-width: 2.8;
}

@media (min-width: 720px) {
  .problem-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .problem-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }

  .problem-intro {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

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

.feature-grid {
  display: grid;
  gap: 16px;
  list-style: none;
}

.feature-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.feature-card p {
  margin: 0;
  color: var(--slate);
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 26px;
  }
}

/* ------------------------------------------------------------------ value + dashboard */

.band-navy {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.band-navy h2 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.band-navy .eyebrow {
  color: var(--mint);
}

.band-navy .lead {
  max-width: 36ch;
  color: var(--hero-subtle);
  font-size: clamp(1.2rem, 2.2vw, 1.35rem);
}

.band-navy .roof {
  top: -60px;
  right: -140px;
  width: 620px;
  color: rgba(255, 255, 255, 0.05);
}

.band-navy .roof-mint {
  color: rgba(50, 205, 153, 0.12);
}

.band-navy :focus-visible {
  outline-color: #fff;
}

.value-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  list-style: none;
  font-weight: 700;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(50, 205, 153, 0.18);
  color: var(--mint);
  stroke-width: 3;
}

.dash {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background: var(--ground);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.dash-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.dash-label {
  margin: 0 0 4px;
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-big {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
}

.chip .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.chip-occupied {
  background: var(--navy-tint);
  color: var(--navy);
}

.chip-vacant {
  border: 1.5px dashed var(--vacant-line);
  background: var(--mint-tint);
  color: var(--paid);
}

.chip-unpaid {
  background: var(--red-tint);
  color: var(--red);
}

.figures {
  display: grid;
  gap: 2px;
  margin: 8px 0 0;
}

.figures div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.figures div:last-child {
  border-bottom: 0;
}

.figures dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.figures dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.figures .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.figure-paid,
.figure-paid dd {
  color: var(--paid);
}

.figure-unpaid,
.figure-unpaid dd {
  color: var(--red);
}

.dash .meter {
  margin: 10px 0 14px;
  background: var(--line);
}

.dash .meter span {
  background: var(--paid);
}

.dash-actions {
  display: grid;
  gap: 10px;
}

.dash-actions .btn {
  min-height: 52px;
  padding: 10px 14px;
  cursor: default;
}

@media (min-width: 440px) {
  .dash {
    padding: 22px;
  }

  /* The main action on its own row, the other two side by side - never a caption broken in two */
  .dash-actions {
    grid-template-columns: 1fr 1fr;
  }

  .dash-actions .btn-primary {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

/* ------------------------------------------------------------------ how it works */

.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--slate);
}

.steps-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

.steps-footer p {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  font-weight: 800;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ------------------------------------------------------------------ audience */

.audience-grid {
  display: grid;
  gap: 14px;
  list-style: none;
}

.audience-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.audience-card h3 {
  margin: 0 0 2px;
  font-size: 1.2rem;
}

.audience-card p {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .audience-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .audience-card {
    padding: 22px 24px;
  }
}

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

.pricing-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.plan-free {
  padding: clamp(24px, 4vw, 36px);
  border: 2px solid var(--navy);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 1.4rem;
}

.plan-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mint-tint);
  color: var(--paid);
  font-size: 0.85rem;
  font-weight: 800;
}

.plan-price {
  margin: 0;
  font-size: clamp(3rem, 8vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-price small {
  color: var(--slate);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.plan-limit {
  margin: 8px 0 20px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.plan-features {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  list-style: none;
  font-weight: 700;
}

.plan-features li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.plan-features .icon {
  width: 22px;
  height: 22px;
  color: var(--paid);
  stroke-width: 2.6;
}

.plan-note {
  color: var(--slate);
  font-size: 1rem;
}

.plan-free .btn {
  width: 100%;
}

.unit-count {
  padding: clamp(22px, 4vw, 32px);
  border-radius: 26px;
  background: var(--ground);
}

.unit-count h3 {
  margin-bottom: 8px;
}

.unit-count > p {
  color: var(--slate);
}

.count-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  font-size: 1.05rem;
}

.count-table th,
.count-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

.count-table td {
  text-align: right;
  font-weight: 800;
}

.count-table th {
  font-weight: 700;
}

.count-table tfoot th,
.count-table tfoot td {
  border-bottom: 0;
  background: var(--mint-tint);
  color: var(--paid);
  font-weight: 800;
}

.count-result {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-weight: 800;
}

.count-result .icon {
  color: var(--paid);
  stroke-width: 2.6;
}

.paid-plans {
  margin-top: 40px;
}

.paid-plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 16px;
}

.paid-plans-head h3 {
  margin: 0;
}

.paid-grid {
  display: grid;
  gap: 14px;
  list-style: none;
}

.paid-plan {
  padding: 22px;
  border: 2px dashed var(--field-line);
  border-radius: 20px;
  background: var(--surface);
}

.paid-plan h4 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.paid-plan .units {
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 800;
}

.paid-plan .price {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.paid-plan .price small {
  color: var(--slate);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.paid-plans-note {
  margin: 14px 0 0;
  color: var(--slate);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .paid-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ------------------------------------------------------------------ FAQ */

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 4px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .icon {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
  stroke-width: 2.4;
  transition: transform 0.2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--navy);
}

.faq-answer {
  padding: 0 4px 22px;
  color: var(--slate);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ download */

.download-card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 72px) clamp(22px, 6vw, 72px);
  border-radius: 32px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.download-card .roof {
  bottom: -120px;
  left: 50%;
  width: 760px;
  margin-left: -380px;
  color: rgba(255, 255, 255, 0.05);
}

.download-card .roof-mint {
  color: rgba(50, 205, 153, 0.12);
}

.download-card h2 {
  position: relative;
  color: #fff;
}

.download-card p {
  position: relative;
  max-width: 40ch;
  margin-inline: auto;
  color: var(--hero-subtle);
  font-size: clamp(1.15rem, 2.2vw, 1.3rem);
}

.download-card .store-badges {
  position: relative;
  justify-content: center;
  margin-top: 32px;
}

.download-card .free-line {
  margin-top: 20px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.download-card :focus-visible {
  outline-color: #fff;
}

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

.site-footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  background: var(--ground);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand img {
  width: auto;
  height: 36px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 36ch;
  color: var(--slate);
}

.footer-links h2 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-links ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--slate);
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* ------------------------------------------------------------------ legal page */

.legal-hero {
  padding-block: clamp(40px, 7vw, 72px) clamp(28px, 4vw, 40px);
  background: var(--ground);
}

.legal-hero h1 {
  font-size: clamp(2.3rem, 7vw, 3.5rem);
}

.legal-meta {
  margin: 0;
  color: var(--slate);
  font-weight: 700;
}

.legal-layout {
  display: grid;
  gap: 40px;
  padding-block: 40px clamp(64px, 9vw, 104px);
}

.legal-body {
  min-width: 0;
  max-width: 760px;
}

.legal-body h2 {
  margin-top: 2.2em;
  padding-top: 0.2em;
  font-size: clamp(1.45rem, 3.4vw, 1.8rem);
}

.legal-body > h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin-top: 1.6em;
  font-size: 1.2rem;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.legal-body li {
  margin-bottom: 0.45em;
}

.legal-body li::marker {
  color: var(--navy);
}

.legal-body p,
.legal-body li {
  overflow-wrap: anywhere;
}

.toc {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.toc h2 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.toc ol {
  display: grid;
  gap: 2px;
  padding-left: 1.6em;
  font-size: 1rem;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--amber-tint);
  color: var(--amber-text);
  font-weight: 700;
}

.notice p {
  margin: 0;
}

.notice .icon {
  margin-top: 2px;
  stroke-width: 2.4;
}

.notice-info {
  background: var(--navy-tint);
  color: var(--navy-dark);
}

/* Text still to be settled before the store release: easy to spot on the page and in the source */
.review {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--amber-tint);
  color: var(--amber-text);
  font-weight: 800;
}

.contact-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ground);
  font-style: normal;
}

.contact-card p {
  margin: 0 0 0.4em;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
  }
}

/* A legal page with no contents list: the text alone, one column */
.legal-layout.legal-single {
  grid-template-columns: minmax(0, 1fr);
}

.delete-steps li {
  margin-bottom: 0.8em;
  padding-left: 0.2em;
}

.legal-body .btn {
  margin: 4px 0 8px;
  color: #fff;
  text-decoration: none;
}

/* ------------------------------------------------------------------ not found */

.not-found {
  padding-block: clamp(72px, 14vw, 140px);
  text-align: center;
}

.not-found p {
  color: var(--slate);
  font-size: 1.25rem;
}

.not-found .btn {
  margin-top: 12px;
}

/* ------------------------------------------------------------------ motion + print */

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip-link {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }

  .legal-body a::after {
    content: " (" attr(href) ")";
    font-weight: 500;
  }
}
