:root {
    color-scheme: light;
    --ink: #20242b;
    --muted: #626a77;
    --line: #e2e5e9;
    --surface: #ffffff;
    --background: #f7f8fa;
    --accent: #9b7621;
    --accent-dark: #765a16;
    font-family: Raleway, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--background); }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-header { min-height: 82px; padding: 10px max(24px, calc((100vw - 1200px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: block; width: min(250px, 55vw); flex: 0 1 auto; }
.brand img { display: block; width: 100%; height: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 10px 12px; color: #414854; font-size: .92rem; font-weight: 650; text-decoration: none; border-radius: 6px; }
.nav-link:hover { background: #f4f1e9; color: var(--accent-dark); }
.install-button { min-height: 42px; padding: 9px 16px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.install-button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

main { flex: 1; width: min(100% - 40px, 1120px); margin: 0 auto; }
.hero { padding: clamp(58px, 10vw, 112px) 0 clamp(52px, 7vw, 80px); text-align: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-family: Cinzel, Georgia, serif; font-size: clamp(2.2rem, 6vw, 4.25rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.hero-copy { max-width: 610px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); line-height: 1.7; }
.hero-install { margin-top: 25px; }
.tools-section { padding: 30px 0 76px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 4px; }
h2 { margin-bottom: 0; font-size: 1.55rem; }
.free-label { padding: 7px 11px; color: #4e5966; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.tool-card { min-height: 128px; padding: 22px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgb(25 34 48 / 4%); text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.tool-card:hover { border-color: #c5b47f; box-shadow: 0 12px 32px rgb(25 34 48 / 8%); transform: translateY(-2px); }
.tool-card-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--accent); background: #f4f1e9; border-radius: 12px; font-size: 1.8rem; }
.tool-card-copy { display: grid; gap: 5px; }
.tool-card-copy strong { font-size: 1.05rem; }
.tool-card-copy span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.tool-card-arrow { color: var(--accent-dark); font-size: 1.35rem; }
.site-footer { min-height: 64px; padding: 16px max(24px, calc((100vw - 1120px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); font-size: .84rem; }
.site-footer a { color: var(--accent-dark); font-weight: 650; text-decoration: none; }
.install-hint { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 5; max-width: min(420px, calc(100vw - 32px)); padding: 14px 42px 14px 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 32px rgb(25 34 48 / 16%); font-size: .9rem; line-height: 1.5; }
.install-hint button { position: absolute; top: 5px; right: 8px; padding: 0 5px; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
[hidden] { display: none !important; }

@media (max-width: 620px) {
    .site-header { min-height: 68px; padding: 8px 14px; gap: 8px; }
    .brand { width: min(200px, 48vw); }
    .header-actions { gap: 2px; }
    .nav-link { padding: 9px 7px; font-size: .8rem; }
    .header-actions .install-button { width: 42px; padding: 0; overflow: hidden; color: transparent; position: relative; }
    .header-actions .install-button::after { content: "↓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.15rem; }
    main { width: min(100% - 28px, 1120px); }
    .section-heading { align-items: start; flex-direction: column; }
    .site-footer { padding: 16px 14px; }
}
