:root {
  color-scheme: light;
  --ink: #17211a;
  --muted: #667069;
  --line: #dfe5df;
  --paper: #fbfcfa;
  --card: #ffffff;
  --accent: #d8ff66;
  --accent-dark: #21320d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }

.site-header, footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}
.site-header { min-height: 76px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: -0.04em; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: .88rem; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

main { width: min(820px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 112px 0 88px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: #506238; font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin: 0 auto 22px; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.065em; }
h2 { margin-bottom: 8px; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.045em; }
h3 { font-size: 2rem; letter-spacing: -.04em; }
.lede { max-width: 650px; margin: 0 auto 12px; color: #3f4942; font-size: 1.25rem; line-height: 1.6; }
.support { margin-bottom: 30px; color: var(--muted); }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 9px; padding: 0 20px; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:disabled { cursor: wait; opacity: .55; }
.button-dark { background: var(--ink); color: white; }
.button-accent { background: var(--accent); color: var(--accent-dark); }
.button-secondary { border: 1px solid #9da79f; background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); }

.flow-card { margin-bottom: 28px; padding: clamp(24px, 5vw, 46px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 40px rgba(22, 35, 25, .045); }
.step-heading { display: flex; align-items: flex-start; gap: 16px; }
.step-number { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--accent); font-weight: 800; }
.flow-card > p { color: var(--muted); line-height: 1.6; }
.beta-note { display: inline-block; margin: 4px 0 16px; border-radius: 999px; padding: 6px 10px; background: #f1f6df; color: #506238 !important; font-size: .82rem; font-weight: 750; }
.setup-instructions { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.setup-instructions summary { cursor: pointer; color: var(--ink); font-weight: 750; }
.setup-instructions ol { margin: 12px 0 0; padding-left: 20px; }
.setup-instructions ul { margin: 6px 0 0; padding-left: 20px; }
.setup-instructions li + li { margin-top: 6px; }
.trust-line { margin: -2px 0 4px; color: var(--muted) !important; font-size: .82rem; }
.benefit-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.benefit-card .eyebrow { grid-column: 1 / -1; }
.benefit-list { margin: 2px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.benefit-list li::marker { color: #739436; }
form { display: grid; gap: 18px; margin-top: 26px; }
label { display: grid; gap: 8px; font-weight: 700; }
input { width: 100%; border: 1px solid #cbd3cc; border-radius: 9px; padding: 13px 14px; background: white; color: var(--ink); }
input:focus { outline: 3px solid rgba(123, 165, 46, .22); border-color: #739436; }
.security-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.security-note strong { display: block; margin-bottom: 6px; color: var(--ink); }
.security-note p { margin: 0; }
.form-status { min-height: 22px; margin: 0; color: #9b2c2c; font-size: .92rem; }
.form-status.success { color: #2c681c; }

.app-list { display: grid; gap: 10px; }
.app-option { grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.app-option:has(input:checked) { border-color: #709136; background: #f8fce9; }
.app-option input { width: auto; }
.app-option span { display: grid; gap: 4px; }
.app-option small { color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }

.profile-card { padding: clamp(24px, 5vw, 44px); border-radius: 15px; background: var(--ink); color: white; }
.verified-badge { display: inline-block; margin-bottom: 22px; border-radius: 999px; padding: 7px 11px; background: rgba(216, 255, 102, .14); color: var(--accent); font-size: .82rem; font-weight: 750; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 28px 0; background: rgba(255,255,255,.14); }
.metric { display: grid; gap: 6px; padding: 20px 18px; background: var(--ink); }
.metric strong { font-size: 1.5rem; letter-spacing: -.035em; }
.metric span { color: #aeb8b0; font-size: .85rem; }
.verified-date { margin: 0; color: #aeb8b0; font-size: .86rem; }
#publish-button { margin-top: 20px; }
.public-link { display: block; margin-top: 12px; color: #345f13; font-weight: 700; overflow-wrap: anywhere; }

.report-section { width: min(1040px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.summary-card { display: grid; align-content: start; gap: 7px; min-height: 116px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fcfdfb; }
.summary-card strong { font-size: clamp(1.25rem, 2.5vw, 1.75rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.summary-card span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.review-total { margin: 0 0 22px; border-radius: 10px; padding: 14px 16px; background: #f1f6df; color: #41562b !important; font-weight: 750; }
.table-wrap { overflow-x: auto; }
.spend-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spend-table th, .spend-table td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.spend-table th { color: var(--muted); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.spend-table .app-name-cell { min-width: 210px; white-space: normal; font-weight: 750; }
.flag-reason { display: block; max-width: 330px; margin-top: 6px; color: var(--muted); font-weight: 500; line-height: 1.45; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 9px; background: #eef2ee; color: #536057; font-size: .76rem; font-weight: 750; }
.status-badge::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.status-looks-normal { background: #edf6e9; color: #39712c; }
.status-review { background: #fff2d6; color: #a45a0a; }
.status-high-spend { background: #ffe8e3; color: #a33b2c; }
.analysis-disclaimer { margin: 24px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.share-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-panel strong { display: block; margin-bottom: 5px; }
.share-panel p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.share-fallback { display: flex; grid-column: 1 / -1; align-items: center; gap: 16px; color: #345f13; font-size: .88rem; font-weight: 700; }
.text-button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.share-status { grid-column: 1 / -1; min-height: 20px; color: #2c681c !important; }
.profile-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.button-profile-share { border: 1px solid rgba(255,255,255,.52); background: transparent; color: white; }
.button-profile-share:hover { border-color: white; }
.profile-share-fallback { color: var(--accent); }
.profile-share-status { width: 100%; color: #c7d0c9 !important; }

footer { min-height: 100px; margin-top: 70px; border-top: 1px solid var(--line); font-size: .85rem; }
.public-main { padding: 90px 0; }
.public-profile h1 { margin: 0; text-align: left; font-size: clamp(2.4rem, 7vw, 4.8rem); }
.disclaimer { color: var(--muted); text-align: center; font-size: .82rem; }

[hidden] { display: none !important; }
@media (max-width: 620px) {
  footer span { display: none; }
  .site-header { gap: 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .site-nav { gap: 12px; font-size: .78rem; }
  .site-nav a:first-child { display: none; }
  .hero { padding: 76px 0 64px; }
  .metric-grid { grid-template-columns: 1fr; }
  .benefit-card { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card { padding: 14px; }
  .summary-card strong { font-size: 1.15rem; overflow-wrap: normal; }
  .share-panel { grid-template-columns: 1fr; }
  .share-panel .button { width: 100%; }
  .share-fallback { grid-column: 1; flex-wrap: wrap; }
  .flow-card { border-radius: 14px; }
}
