/* UpkeepVault — "Keyhouse" theme, matching the app (Assets.xcassets colour sets used by
   UpkeepVault/Services/DesignSystem.swift). Pine + mint, warm mint surfaces, status colours. */

:root {
  --bg: #f3f6f4;              /* VaultGround */
  --surface: #ffffff;
  --text: #0b2a23;
  --muted: #47605a;
  --line: #d6e4dd;
  --soft: #ddf3e8;            /* VaultSurfaceWarm */
  --accent: #0f6b4f;          /* VaultAccent */
  --accent-ink: #0f6b4f;
  --on-accent: #ffffff;       /* VaultOnAccent */
  --mint: #6fd6a8;            /* VaultMint */
  --pine: #123d33;            /* VaultPine */
  --overdue: #b42318;
  --due-soon: #b54708;
  --good: #1a7f37;
  --shadow: 0 1px 2px rgb(11 42 35 / 0.06), 0 16px 40px -18px rgb(11 42 35 / 0.25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1512;
    --surface: #10201b;
    --text: #ffffff;
    --muted: #b9d3c8;
    --line: #23413a;
    --soft: #1c3a31;
    --accent: #6fd6a8;
    --accent-ink: #6fd6a8;
    --on-accent: #0b2a23;
    --overdue: #f97066;
    --due-soon: #fdb022;
    --good: #3fb950;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 44px -18px rgb(0 0 0 / 0.7);
  }
}

/* Header and hero sit on pine in both light and dark mode. */
@media (prefers-color-scheme: dark) { .uv-top { border-bottom: 1px solid var(--line); } }
.uv-top { background: radial-gradient(90% 120% at 85% 0%, #1b5547 0%, #123d33 45%, #0b2a23 100%); color: #ffffff; }
.uv-top .site-header { background: rgb(11 42 35 / 0.72); border-bottom-color: rgb(255 255 255 / 0.08); }
.uv-top .brand, .uv-top .nav a[aria-current="page"], .uv-top .nav a:hover { color: #ffffff; }
.uv-top .nav a { color: #b9dccb; }
.uv-top .bm-tile { fill: #ffffff; }
.uv-top .bm-c { stroke: #0b2a23; }
.uv-top .bm-dot { fill: #6fd6a8; }
.uv-top :focus-visible { outline-color: #6fd6a8; }

.uv-hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.uv-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.uv-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 34px -12px rgb(0 0 0 / 0.6); margin-bottom: 1.75rem; }
.uv-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.uv-hero .eyebrow { color: #b9dccb; }
.uv-hero .eyebrow::before { background: #6fd6a8; }
.uv-hero .lede { color: #b9dccb; }
.uv-hero .button { background: #6fd6a8; color: #0b2a23; }
.uv-hero .button.ghost { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 0.25); }
.uv-hero .button.ghost:hover { border-color: #ffffff; }
.store-badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.35rem; border-radius: 999px; background: #ffffff; color: #0b2a23; font: 700 0.98rem/1 var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.chips li { padding: 0.42rem 0.85rem; border-radius: 999px; font: 700 0.82rem/1 var(--body); background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); color: #ffffff; }
@media (max-width: 860px) { .uv-hero-grid { grid-template-columns: 1fr; } }

/* Hero illustration: an example appliance with its reminders */
.vault { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12); border-radius: 26px; padding: clamp(1.1rem, 3vw, 1.6rem); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7); }
.vault-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.vault-head strong { font: 700 1.15rem/1 var(--display); }
.vault-head span, .vault-label { font: 700 0.75rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: #9fc2b3; }
.appliance { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; align-items: center; background: #ffffff; color: #0b2a23; border-radius: 18px; padding: 1rem 1.1rem; }
.appliance .glyph { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: #ddf3e8; color: #0f6b4f; display: grid; place-items: center; }
.appliance .glyph svg { width: 26px; height: 26px; }
.appliance strong { font: 700 1.05rem/1.2 var(--display); }
.appliance .meta { font-size: 0.85rem; color: #47605a; }
.scan { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.9rem 0 1.25rem; }
.scan span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.7rem; border-radius: 8px; font: 700 0.78rem/1 var(--body); background: rgb(111 214 168 / 0.14); border: 1px dashed rgb(111 214 168 / 0.6); color: #e4f6ed; }
.tasks { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.tasks li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.75rem 0.9rem; border-radius: 12px; background: rgb(255 255 255 / 0.06); font-weight: 600; font-size: 0.92rem; }
.status { flex: none; padding: 0.25rem 0.6rem; border-radius: 999px; font: 700 0.72rem/1.2 var(--body); }
.status.overdue { background: #f97066; color: #2b0703; }
.status.soon { background: #fdb022; color: #2e1a00; }
.status.good { background: #3fb950; color: #04210d; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature p { margin: 0; color: var(--muted); }
.ficon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1.25rem; background: var(--soft); color: var(--accent-ink); }
.ficon svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Privacy split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.4rem; font-weight: 600; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--accent-ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { margin-bottom: 0.25rem; }
.plan .price { font: 700 clamp(1.9rem, 3.4vw, 2.4rem)/1.1 var(--display); white-space: nowrap; letter-spacing: -0.03em; margin: 0.75rem 0 0.25rem; }
.plan .price small { font: 600 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.plan li { display: flex; gap: 0.65rem; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--mint); transform: translateY(-0.1em); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 32rem; } }

/* Notes, FAQ and policy pages */
.callout { background: var(--soft); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.callout p:last-child { margin-bottom: 0; }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.4rem; }
.page-hero p { color: #b9dccb; margin: 0; }
.policy h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin-bottom: 0.35rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.2rem 0; font: 600 1.08rem/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font: 600 1.2rem/1 var(--body); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 40rem; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.contact-box .big-link { border-bottom-color: var(--mint); font-size: clamp(1.2rem, 3vw, 1.6rem); }
.contact-box .big-link:hover { color: var(--accent-ink); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
