/* HamroPoints website. Colours and type follow the app (mobileapp/lib/core/theme/colors/app_colors.dart). */

@font-face { font-family: "Google Sans Flex"; src: url("/assets/fonts/google-sans-flex-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Google Sans Flex"; src: url("/assets/fonts/google-sans-flex-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Google Sans Flex"; src: url("/assets/fonts/google-sans-flex-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Google Sans Flex"; src: url("/assets/fonts/google-sans-flex-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --primary: #7a1434;          /* Imperial Burgundy */
  --primary-hover: #62102a;
  --deep: #5c0a28;             /* Deep Burgundy */
  --plum: #8a1c3d;             /* Plum Burgundy, the app header */
  --crimson: #b02e56;          /* Crimson Berry */
  --blush: #e4b6c2;
  --rose: #cbb7c2;
  --lilac: #ede7ea;
  --tint: #f2e8eb;             /* primaryLightest */
  --frost: #f7f4f6;            /* Silk Frost White, the app scaffold */
  --white: #fff;
  --text: #121212;
  --text-2: #6f6e6f;
  --text-3: #949294;
  --border: #e8e1e4;
  --gold: #aa7f2c;
  --gold-bg: #fcf6eb;
  --success: #3fa56b;
  --success-bg: #ecf6f0;
  --info: #4a6fa5;
  --info-bg: #edf1f6;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(92, 10, 40, .06), 0 8px 24px rgba(92, 10, 40, .06);
  --wrap: 1120px;
  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 36em; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 600 1rem/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { border-color: var(--rose); color: var(--primary); background: var(--white); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--tint); color: var(--primary); }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Store badges */
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px; background: var(--text); color: #fff; text-decoration: none; line-height: 1.1; min-width: 168px; }
.store:hover { background: #000; color: #fff; }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: .68rem; opacity: .8; }
.store strong { font-size: 1.05rem; font-weight: 600; }
.on-dark .store { background: #fff; color: var(--text); }
.on-dark .store:hover { background: var(--tint); color: var(--text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { background: var(--frost); color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav .btn { margin-left: 8px; padding: 10px 18px; color: #fff; }
.nav .btn:hover { background: var(--primary-hover); color: #fff; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 26px; height: 26px; }
.menu[open] summary { background: var(--frost); }
.menu-panel { position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 20px 20px; }
.menu-panel a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 500; }
.menu-panel a:last-child { border: 0; margin-top: 14px; text-align: center; justify-content: center; color: #fff; display: flex; }

@media (max-width: 880px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Sections */
section { padding: 88px 0; }
.section-tint { background: var(--frost); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(1200px 520px at 85% 0%, var(--tint), transparent 60%), var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--primary); }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--text-3); }
@media (max-width: 880px) { .hero { padding: 48px 0 64px; } .hero .wrap { grid-template-columns: 1fr; } .hero-art { order: 2; } }

.page-hero { padding: 72px 0 56px; background: radial-gradient(900px 400px at 90% 0%, var(--tint), transparent 60%), var(--white); }
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 640px) { .page-hero { padding: 48px 0 40px; } }

/* Phone frame around the app screenshot */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: 300px; max-width: 100%; border-radius: 44px; background: #1b1b1b; padding: 10px; box-shadow: 0 30px 60px -20px rgba(92, 10, 40, .35), 0 0 0 1px rgba(0, 0, 0, .05); }
.phone-screen { display: block; width: 100%; height: auto; border-radius: 35px; background: #fff; }
.mini-card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.mini-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mini-card .k { font-size: 11px; color: var(--text-2); }
.mini-card .t { font-weight: 600; font-size: 13.5px; }
.stamps { display: flex; gap: 5px; margin-top: 9px; }
.stamps i { width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); }
.stamps i.on { background: var(--primary); box-shadow: inset 0 0 0 5px var(--primary), inset 0 0 0 7px #fff; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--tint); color: var(--primary); white-space: nowrap; }
.pill.green { background: var(--success-bg); color: var(--success); }
.pill.gold { background: var(--gold-bg); color: var(--gold); }
.float { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.float svg { width: 18px; height: 18px; color: var(--gold); }
.float-1 { top: 22%; right: -6px; background: var(--gold-bg); color: var(--gold); }
.float-2 { bottom: -32px; left: 4px; color: var(--primary); }
@media (max-width: 480px) { .float-1 { right: 0; top: -16px; } .float-2 { left: 0; } }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.section-tint .card { border-color: transparent; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--text-2); margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--text-2); margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } .split + .split { margin-top: 64px; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a1434' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Panel used beside split text */
.panel { background: var(--frost); border-radius: 24px; padding: 28px; }
.panel .mini-card + .mini-card { margin-top: 10px; }
.panel-title { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-weight: 500; font-size: .95rem; }
.section-tint .chips li { border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }

/* Program type list */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.program { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 18px; border: 1px solid var(--border); }
.program .icon { width: 40px; height: 40px; margin: 0; flex: none; border-radius: 10px; }
.program .icon svg { width: 19px; height: 19px; }
.program h3 { font-size: 1.02rem; margin: 2px 0 2px; }
.program p { margin: 0; font-size: .93rem; color: var(--text-2); }
@media (max-width: 960px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .programs { grid-template-columns: 1fr; } }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tier { border-radius: 14px; padding: 18px; text-align: center; }
.tier b { display: block; font-size: 1.05rem; }
.tier span { font-size: .88rem; }
.tier-bronze { background: #fbf4f6; color: var(--crimson); }
.tier-silver { background: var(--info-bg); color: var(--info); }
.tier-gold { background: var(--gold-bg); color: var(--gold); }
.tier-platinum { background: var(--success-bg); color: var(--success); }
@media (max-width: 640px) { .tiers { grid-template-columns: repeat(2, 1fr); } }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .97rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--plum); color: #fff; font-weight: 600; }
.compare tbody th { font-weight: 600; width: 30%; }
.compare td.yes { color: var(--primary); font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-scroll .compare { min-width: 600px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details > div { padding: 0 0 22px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }
.faq h2 { font-size: 1.4rem; margin: 48px 0 4px; }
.faq h2:first-child { margin-top: 0; }

/* CTA band */
.cta { background: var(--primary); color: #fff; border-radius: 28px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%; border: 1.5px dashed rgba(242, 223, 180, .45); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 34em; margin: 0 auto; font-size: 1.1rem; }
.cta .actions { justify-content: center; }
@media (max-width: 640px) { .cta { padding: 48px 24px; border-radius: 22px; } }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose p, .prose li { color: #333; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--frost); }
.updated { color: var(--text-3); font-size: .95rem; }

/* Contact */
.contact-cards .card { display: flex; flex-direction: column; }
.contact-cards .card a.big { font-size: 1.1rem; font-weight: 600; margin-top: auto; padding-top: 14px; word-break: break-word; }

/* Invite */
.invite-code { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 14px 14px 22px; border-radius: 14px; background: #fff; border: 1.5px dashed var(--rose); font-size: 1.4rem; font-weight: 700; letter-spacing: .08em; color: var(--primary); }
.invite-code button { font: 600 .9rem var(--font); border: 0; background: var(--tint); color: var(--primary); padding: 9px 14px; border-radius: 10px; cursor: pointer; letter-spacing: 0; }
.invite-code button:hover { background: var(--lilac); }

/* Footer */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, .78); padding: 64px 0 32px; margin-top: 88px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-grid h2 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 22em; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.cta-section { padding-bottom: 0; }
.cta-section + .site-footer { margin-top: 88px; }

/* Breadcrumb */
.crumbs { font-size: .9rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Small helpers */
.stats { gap: 10px; margin-bottom: 10px; }
.mini-card .stat { font-size: 22px; }
.stats .mini-card { margin: 0; }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { color: inherit; border-color: var(--rose); transform: translateY(-2px); }
.more { margin: 28px 0 0; font-weight: 600; }
.note { margin: 28px 0 0; }
.actions-center { justify-content: center; }

/* Guides */
.guide { max-width: 760px; }
.guide h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2em 0 .6em; }
.guide h2:first-child { margin-top: 0; }
.guide h3 { margin: 1.5em 0 .4em; }
.guide p, .guide li { color: #333; }
.guide li { margin-bottom: .5em; }
.guide .card { margin: 1.5em 0; }
.guide .card p { color: var(--text-2); }
.toc { background: var(--frost); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 2.5em; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; }
.toc li { margin: 0 0 4px; }
.byline { font-size: .92rem; color: var(--text-3); margin-top: 18px; }
