/* ============================================================
   CoupoNest brand system — shared by every landing variant.

   Tokens mirror app/src/main/java/com/coupounest/app/ui/theme/Color.kt
   and the app ships Poppins (app/src/main/res/font/poppins_*.ttf), so the
   faces here are those exact files rather than a web lookalike. A variant
   may compose anything it likes out of these; it may not introduce a new
   hue, a new face, or a new radius. That is the whole point of the file:
   three pages that look like three designs and one company.
   ============================================================ */

/* --- Faces: the app's own Poppins, self-hosted ------------------------- */
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins_regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins_medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins_semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primary — teal/emerald. Never violet: CLAUDE.md hard constraint. */
  --teal-deep: #0F766E;
  --teal-mid: #14B8A6;
  --teal-soft: #CCFBF1;
  --teal-pale: #F0FDFA;

  /* Warm accent. Functional, not brand: urgency and highlight only.
     --amber fails contrast on light surfaces for text, so text on
     --amber-soft uses --amber-deep, exactly as the app does. */
  --amber: #F59E0B;
  --amber-soft: #FEF3C7;
  --amber-deep: #92400E;

  /* Brand mark navy, sampled from the logo artwork. */
  --navy: #0F3057;

  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --success: #16A34A;
  --success-soft: #DCFCE7;

  /* Neutrals */
  --surface: #FFFFFF;
  --bg: #F8FAFC;
  --outline: #E2E8F0;
  --ink: #0F172A;
  --ink-2: #64748B;
  --ink-3: #94A3B8;

  --font: 'Poppins', ui-sans-serif, system-ui, sans-serif;

  /* Radii — the app's card language. */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Depth. Offset + soft blur, never a zero-offset halo. */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-2: 0 2px 4px rgba(15, 23, 42, .06), 0 10px 28px rgba(15, 23, 42, .09);
  --shadow-3: 0 6px 12px rgba(15, 23, 42, .08), 0 24px 60px rgba(15, 23, 42, .14);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.03em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* --- Browser surfaces. The parts nobody draws still carry the brand. --- */
::selection {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

html { scrollbar-color: var(--teal-mid) var(--teal-pale); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--teal-pale); }
::-webkit-scrollbar-thumb {
  background: var(--teal-mid);
  border-radius: var(--r-pill);
  border: 3px solid var(--teal-pale);
}
::-webkit-scrollbar-thumb:hover { background: var(--teal-deep); }

:where(p, li) a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--teal-mid);
}

/* Numerals line up in anything tabular. */
.tnum { font-variant-numeric: tabular-nums; }

/* --- Shared primitive: the Play Store button -------------------------- */
/* Every variant ships this control, because every variant's job is the
   install. Variants restyle the surface around it; the badge itself is one
   mark so the brand does not fork across three pages. */
.gp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px 13px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: var(--shadow-2);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .25s var(--ease);
}
.gp-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  background: #1E293B;
}
.gp-btn:active { transform: translateY(0); }
.gp-btn svg { flex: none; }
.gp-btn span { display: block; }
.gp-btn .gp-sm {
  font-size: .68rem;
  font-weight: 500;
  opacity: .72;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gp-btn .gp-lg { font-size: 1.05rem; letter-spacing: -.02em; }

.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;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
