/* GoPerk website. Colours, radii and font are the app's design tokens (lib/core/theme/app_colors.dart). */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/Manrope-400.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../fonts/Manrope-500.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/Manrope-600.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/Manrope-700.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("../fonts/Manrope-800.ttf") format("truetype"); }

:root {
  /* GoPerk palette (Option 1: Fresh Green + Navy + Gold). The scales map onto it like the app's AppColors. */
  --navy: #0b2d4a;
  --green: #00b386;
  --light-green: #34d399;
  --gold: #ffc629;
  --mint: #e8f9f1;
  --deep-green: #008060;
  --soft-white: #f7fcf9;
  --brand-50: var(--mint);
  --brand-100: #cff3e3;
  --brand-200: #a6e8cb;
  --brand-300: var(--light-green);
  --brand-500: var(--green);
  --brand-600: var(--deep-green);
  --brand-700: var(--navy);
  --brand-800: #08243c;
  --brand-900: #061b2e;
  --gold-50: #fff9e5;
  --gold-100: #fff0c2;
  --gold-200: #ffe089;
  --gold-300: var(--gold);
  --gold-400: #f5b800;
  --gold-500: #d99e00;
  --surface: #ffffff;
  --surface-muted: var(--soft-white);
  --cream: var(--soft-white);
  --ink: var(--navy);
  --ink-muted: #5b6b7a;
  --line: #e2eae6;
  --radius-control: 14px;
  --radius-card: 24px;
  --shadow-card: 0 1px 2px rgb(11 45 74 / 5%), 0 8px 24px rgb(11 45 74 / 7%);
  --shadow-raised: 0 18px 50px rgb(11 45 74 / 18%);
  --page: min(1160px, 100% - 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-600); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand-700); color: #fff; padding: 10px 16px; border-radius: var(--radius-control);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

.container { width: var(--page); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

.lead { font-size: 1.15rem; color: var(--ink-muted); max-width: 38em; }

/* Buttons: pills, like the app. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 8px 20px rgb(1 82 61 / 25%); }
.btn-primary:hover { background: var(--brand-800); }
.btn-gold { background: var(--gold-300); color: var(--ink); box-shadow: 0 8px 20px rgb(223 154 10 / 25%); }
.btn-gold:hover { background: var(--gold-400); }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.72rem; opacity: 0.75; line-height: 1.2; }
.store-badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(254 253 249 / 88%); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .logo { width: auto; height: 44px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--brand-600); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--brand-50);
  color: var(--brand-700); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: 12px; }
}

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Coin drawn in CSS, the gold star coin of the brand. */
.coin {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--gold-200), var(--gold-400) 60%, var(--gold-500));
  box-shadow: inset 0 -2px 0 rgb(168 111 5 / 45%);
  color: #fff; font-size: 0.9em;
}

/* Sections */
.section { padding: 96px 0; }
.section-muted { background: var(--surface-muted); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Pricing */
.pricing-note { text-align: center; color: var(--ink-muted); font-size: 0.92rem; margin-top: 20px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-card); padding: 4px 22px; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-weight: 800; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-600); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-muted); margin: 0 0 18px; }

/* Footer */
.site-footer { background: var(--deep-green); color: var(--mint); padding: 56px 0 32px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: auto; height: 44px; }
.footer-tagline { color: #fff; font-weight: 700; margin: 0 0 8px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 12%); font-size: 0.9rem;
}

/* Legal and help pages */
.page-hero { padding: 64px 0 24px; }
.page-hero p { color: var(--ink-muted); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-muted); }
.callout {
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 18px; padding: 18px 20px; margin: 1.5em 0;
}
.todo { background: var(--gold-100); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.steps-inline { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-inline li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.steps-inline li::before {
  content: counter(s); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-700); color: #fff; font-weight: 800;
}

/* Small screens */

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Email confirmation page */
.confirm { padding-block: 64px 32px; }
.confirm-card { max-width: 640px; text-align: center; }
.confirm-card img { width: 160px; margin: 0 auto 12px; }
.confirm-card .lead { margin-inline: auto; }
.confirm-note { color: var(--ink-muted); font-size: 0.92rem; }
.confirm-state[hidden] { display: none; }
