/* Public pages: landing (/) and install (/install). Light brand look only. */
:root {
  /* Same palette and fonts as the signed-in portal (styles.css). */
  --navy: #1e3a8a;
  --navy-deep: #172554;
  --teal: #1e3a8a;
  --teal-soft: #eff6ff;
  --paper: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #cbd5e1;
  --light-accent: #93c5fd;
  --ring: 0 0 0 3px rgba(30, 58, 138, .28);
  color-scheme: light;
  font-family: Lato, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(100%, 1120px); margin: 0 auto; padding-inline: 20px; }

/* Top bar */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(247, 248, 245, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 1.15rem; }
.wordmark img { width: 34px; height: 34px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 14px; border-radius: 6px; border: 1px solid transparent; font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--navy); }
.btn-primary:hover { background: #1d4ed8; }
.btn-teal { color: #fff; background: var(--teal); }
.btn-teal:hover { background: #1d4ed8; }
.btn-ghost { color: var(--navy-deep); background: #fff; border-color: #94a3b8; }
.btn-ghost:hover { border-color: var(--navy); background: #eff6ff; }
.btn-light { color: var(--navy); background: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; }

.eyebrow { margin-bottom: 10px; color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }

/* Hero */
.hero { background: radial-gradient(circle at 20% 0%, #dbeafe 0, var(--paper) 42%); padding-block: clamp(48px, 9vw, 104px) clamp(40px, 7vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero h1 .accent { color: #1d4ed8; }
.hero .lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; color: var(--ink-soft); font-size: .86rem; }

/* Hero visual: a captured-time sheet */
.sheet { min-width: 0; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 12px; box-shadow: 0 18px 44px rgba(15, 23, 42, .12); overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--navy-deep); color: #fff; font-size: .85rem; font-weight: 700; }
.sheet-head span:last-child { color: var(--light-accent); font-variant-numeric: tabular-nums; }
.sheet-row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.sheet-row:first-of-type { border-top: 0; }
.sheet-time { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: .82rem; }
.sheet-what { min-width: 0; }
.sheet-what strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-what small { display: block; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-hours { font-weight: 800; font-variant-numeric: tabular-nums; }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--teal-soft); font-weight: 800; font-size: .9rem; }
.sheet-foot span:last-child { font-variant-numeric: tabular-nums; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
.section-head .lead { margin-top: 14px; }

/* The problem: stats on navy */
.problem { background: var(--navy-deep); color: #fff; }
.problem .section-head .lead { color: #c5d0e3; }
.problem .eyebrow { color: var(--light-accent); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stat { min-width: 0; padding: 28px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; background: rgba(255, 255, 255, .06); }
.stat-figure { font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--light-accent); font-variant-numeric: tabular-nums; font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
.stat-figure small { font-size: .38em; font-weight: 800; color: #fff; margin-left: 6px; font-family: Lato, ui-sans-serif, system-ui, sans-serif; }
.stat p { margin-top: 14px; color: #dfe6f2; }
.stat cite { display: block; margin-top: 16px; color: #9fb0cc; font-size: .8rem; font-style: normal; }
.stat cite a { color: #c5d0e3; }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.reason { min-width: 0; padding-top: 18px; border-top: 2px solid var(--light-accent); }
.reason h3 { font-size: 1.1rem; }
.reason p { margin-top: 8px; color: #c5d0e3; font-size: .95rem; }

/* Who it is for */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.audience-card { min-width: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px rgba(15, 23, 42, .04); }
.audience-card h3 { font-size: 1.15rem; }
.audience-card p { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }
.tag { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--navy); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { min-width: 0; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; }
.steps h3 { font-size: 1.12rem; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: .95rem; }

/* Closing call-to-action */
.cta { padding-block: clamp(48px, 7vw, 80px); }
.cta-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 5vw, 48px); border-radius: 12px; background: var(--navy-deep); color: #fff; }
.cta-box h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cta-box p { margin-top: 8px; color: #c5d0e3; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-foot { padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-foot nav { display: flex; gap: 18px; }

/* Install page */
.install-hero { background: radial-gradient(circle at 20% 0%, #dbeafe 0, var(--paper) 42%); padding-block: clamp(40px, 7vw, 72px) 28px; }
.install-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.install-hero .lead { margin-top: 14px; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: clamp(48px, 7vw, 80px); }
.platform { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: clamp(22px, 4vw, 32px); background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 12px; box-shadow: 0 4px 16px rgba(15, 23, 42, .04); }
.platform-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.platform h2 { font-size: 1.6rem; }
.version { color: var(--ink-soft); font-size: .86rem; font-variant-numeric: tabular-nums; }
.file-name { color: var(--ink-soft); font-size: .86rem; overflow-wrap: anywhere; }
.platform .btn { align-self: flex-start; }
.install-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 10px; }
.install-steps li { padding-left: 4px; }
.install-steps li::marker { color: var(--navy); font-weight: 800; }
.install-steps b { color: var(--navy); }
.callout { padding: 14px 16px; border-radius: 10px; background: var(--teal-soft); color: var(--navy-deep); border: 1px solid #bfdbfe; font-size: .9rem; }
.help { padding-bottom: 64px; color: var(--ink-soft); }
.help p + p { margin-top: 6px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .reasons, .audience, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .stats, .platforms { grid-template-columns: minmax(0, 1fr); }
  .head-actions .btn { padding: 8px 12px; min-height: 40px; }
  .wordmark span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Privacy policy */
.privacy { padding-block: 8px 48px; max-width: 760px; }
.privacy h2 { margin-top: 28px; font-size: 1.25rem; color: var(--navy); }
.privacy p, .privacy li { color: var(--ink-soft); line-height: 1.6; }
.privacy ul { padding-left: 1.3rem; display: grid; gap: 8px; }

/* Pricing (/pricing and the "not an authorized user" page) */
.pricing { padding-block: 8px clamp(48px, 7vw, 80px); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: clamp(22px, 4vw, 30px); background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 12px; box-shadow: 0 4px 16px rgba(15, 23, 42, .04); }
.tier .tag { align-self: flex-start; margin-bottom: 0; }
.tier h3 { font-size: 1.35rem; }
.tier-featured { border-color: var(--navy); box-shadow: 0 18px 44px rgba(15, 23, 42, .12); }
.tier-featured .tag { background: var(--navy); color: #fff; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.price .amount { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: clamp(2.4rem, 5vw, 3rem); line-height: 1; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.price .per { color: var(--ink-soft); font-size: .92rem; font-weight: 700; }
.tier-note { color: var(--ink-soft); font-size: .95rem; }
.included { margin-top: 28px; padding: clamp(20px, 4vw, 28px); background: var(--teal-soft); border: 1px solid #bfdbfe; border-radius: 12px; }
.included h3 { font-size: 1.15rem; color: var(--navy-deep); }
.included ul { margin: 12px 0 0; padding-left: 1.3rem; display: grid; gap: 6px; color: var(--ink-soft); }
.pricing-contact { margin-top: 18px; color: var(--ink-soft); font-size: .92rem; }
.pricing-contact a { color: var(--navy); font-weight: 700; }
.notice-card { max-width: 760px; padding: clamp(22px, 4vw, 32px); background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: 12px; box-shadow: 0 4px 16px rgba(15, 23, 42, .06); }
.notice-card h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.notice-card .lead { margin-top: 12px; }
@media (max-width: 900px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
}

/* Billing switch (monthly / yearly) */
.billing-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 16px rgba(15, 23, 42, .04); }
.billing-option { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; }
.billing-option.is-active { background: var(--navy); color: #fff; }
.billing-option:focus-visible { outline: none; box-shadow: var(--ring); }
.save-badge { padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .72rem; font-weight: 800; }
.billing-option.is-active .save-badge { background: #bbf7d0; }
.billing-note { color: var(--navy); font-size: .82rem; font-weight: 700; }
.billing-switch-compact { margin-bottom: 0; box-shadow: none; }
.billing-switch-compact .billing-option { min-height: 36px; padding: 6px 14px; }

/* Lead form on /pricing */
.lead-section { padding-block: 8px clamp(56px, 8vw, 96px); scroll-margin-top: 80px; }
.lead-intro { max-width: 720px; margin-bottom: 28px; }
.lead-intro h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
.lead-intro .lead { margin-top: 12px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lead-form { display: grid; gap: 16px; min-width: 0; padding: clamp(22px, 4vw, 32px); background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 12px; box-shadow: 0 4px 16px rgba(15, 23, 42, .04); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; color: var(--ink); font-size: .9rem; font-weight: 800; }
.field legend { padding: 0; margin-bottom: 6px; font-weight: 800; }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; font-size: 1rem; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
.field-help, .optional { color: var(--ink-soft); font-size: .8rem; font-weight: 400; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 12px 14px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .9rem; }
.lead-submit { justify-self: start; min-width: 160px; }
.lead-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.estimate { position: sticky; top: 88px; min-width: 0; padding: clamp(22px, 4vw, 28px); border-radius: 12px; background: var(--navy-deep); color: #fff; }
.estimate .eyebrow { color: var(--light-accent); }
.estimate-tier { color: #c5d0e3; font-weight: 700; }
.estimate-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.estimate-big span:first-child { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: clamp(2.4rem, 5vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.estimate-big .per { color: #c5d0e3; font-weight: 700; font-size: .95rem; }
.estimate-lines { display: grid; gap: 8px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); }
.estimate-lines div { display: flex; justify-content: space-between; gap: 12px; }
.estimate-lines dt { color: #c5d0e3; }
.estimate-lines dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.estimate-note { margin-top: 16px; color: #9fb0cc; font-size: .85rem; }
.lead-done { grid-column: 1 / -1; padding: clamp(24px, 4vw, 36px); background: var(--card); border: 1px solid var(--line); border-left: 5px solid #16a34a; border-radius: 12px; }
.lead-done h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.lead-done .lead { margin-top: 10px; }
@media (max-width: 900px) {
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .estimate { position: static; order: -1; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .billing-switch { display: flex; }
  .billing-option { flex: 1; justify-content: center; padding-inline: 10px; }
}

.field-label { display: block; }
