/* Die Hard marketing site. Colors and type mirror the app
   (die-hard-app/lib/app/core/constants/colors.dart, Be Vietnam Pro). */

@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("../fonts/BeVietnamPro-Regular.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("../fonts/BeVietnamPro-Medium.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("../fonts/BeVietnamPro-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("../fonts/BeVietnamPro-Bold.ttf") format("truetype"); }

:root {
    --primary: #08511a;
    --primary-light: #347043;
    --dark-green: #012e0c;
    --deep: #06200c;
    --light-green-bg: #e6eee8;
    --green-2: #c4d5c8;
    --gold: #f4b83f;
    --ink: #121212;
    --muted: #6a6a6a;
    --divider: #e7e7e7;
    --off-white: #f6f7f8;
    --white: #fff;
    --radius: 18px;
    --wrap: 1120px;
    --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-light); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--dark-green);
    color: var(--white);
    padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--white); }
.brand img { width: 22px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 14px; font-weight: 500; }
.nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .btn { color: var(--dark-green); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- Buttons & badges ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border-radius: 999px;
    background: var(--gold); color: var(--dark-green);
    font-weight: 600; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: #f7c865; color: var(--dark-green); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a { display: block; line-height: 0; }
/* Apple's badge is drawn edge to edge; Google's PNG carries its own padding,
   so it is sized taller to read at the same visual height. */
.badges .apple img { height: 48px; width: auto; }
.badges .google img { height: 70px; width: auto; margin: -11px -10px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--white);
    background: var(--deep) url("../img/hero-fans.jpg") center 30% / cover no-repeat;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(1, 46, 12, 0.96) 0%, rgba(1, 46, 12, 0.82) 45%, rgba(1, 46, 12, 0.35) 100%),
        linear-gradient(0deg, rgba(1, 46, 12, 0.9) 0%, rgba(1, 46, 12, 0) 40%);
}
.hero .wrap { padding-block: clamp(72px, 14vw, 160px); }
.hero-copy { max-width: 600px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 700; }
.hero h1 span { color: var(--gold); }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, 0.88); margin: 0 0 32px; max-width: 520px; }

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 10vw, 112px); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.tint { background: var(--off-white); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius); padding: 26px; }
.feature .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--light-green-bg); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.feature .dot svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.sports { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sport { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--deep); }
.sport img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sport::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(1, 46, 12, 0.85), rgba(1, 46, 12, 0)); }
.sport span { z-index: 1; position: absolute; left: 16px; bottom: 14px; color: var(--white); font-weight: 700; font-size: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
/* Too narrow for five across: swipe through them instead. */
@media (max-width: 900px) {
    .sports { grid-template-columns: repeat(5, 38%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .sport { scroll-snap-align: start; }
}
@media (max-width: 560px) {
    .sports { grid-template-columns: repeat(5, 70%); }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 700; font-size: 14px; color: var(--primary); letter-spacing: 0.08em; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.steps h3 { font-size: 17px; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.cta { background: var(--primary) url("../img/logo-bg.jpg") center / cover no-repeat; color: var(--white); border-radius: calc(var(--radius) + 6px); padding: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* ---------- Legal / text pages ---------- */
.page-head { background: var(--dark-green); color: var(--white); }
.page-head .wrap { padding-block: clamp(40px, 7vw, 72px); }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.page-head p { margin: 0; color: rgba(255, 255, 255, 0.75); }
.prose { max-width: 760px; padding-block: clamp(40px, 6vw, 72px); }
.prose h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2b2b2b; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--primary); }

.contact-card { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card div { background: var(--off-white); border-radius: var(--radius); padding: 24px; }
.contact-card h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.contact-card p { margin: 0; font-size: 17px; }

.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.center-page .badges { justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, 0.7); font-size: 14px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer .wrap { padding-block: 48px; display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer h2 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
