/* ==========================================================================
   OffPeak — Marketing Website
   ========================================================================== */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F1ECE3;
  --text: #14213D;
  --text-muted: #5B6478;
  --border: #E7E1D6;
  --primary: #0E9A99;
  --primary-strong: #0B7E7D;
  --accent: #FF7A45;
  --accent-strong: #E4632F;
  --success: #2FA36B;

  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 33, 61, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", -apple-system, sans-serif;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A1220;
  --surface: #101B2E;
  --surface-2: #16233A;
  --text: #EDF1F9;
  --text-muted: #93A1BD;
  --border: #22314D;
  --primary: #2FD4CE;
  --primary-strong: #4FE0DA;
  --accent: #FF9466;
  --accent-strong: #FFAA85;
  --success: #4CC98A;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1220;
    --surface: #101B2E;
    --surface-2: #16233A;
    --text: #EDF1F9;
    --text-muted: #93A1BD;
    --border: #22314D;
    --primary: #2FD4CE;
    --primary-strong: #4FE0DA;
    --accent: #FF9466;
    --accent-strong: #FFAA85;
    --success: #4CC98A;
  
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-strong);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #062725;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-strong); }

.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .nav-links.is-open a { padding: 10px 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 72px;
  padding-bottom: 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
}

/* Hero mock illustration */
.hero-visual {
  position: relative;
}
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  z-index: 2;
}
.mock-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mock-card__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.mock-card__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-strong);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}
.mock-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}
.mock-calendar span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--surface-2);
}
.mock-calendar span.low { background: color-mix(in srgb, var(--success) 35%, var(--surface-2)); }
.mock-calendar span.mid { background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); }
.mock-calendar span.high { background: color-mix(in srgb, #E5484D 45%, var(--surface-2)); }
.mock-calendar span.active {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.mock-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.mock-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.mock-legend .low i { background: var(--success); }
.mock-legend .mid i { background: var(--accent); }
.mock-legend .high i { background: #E5484D; }

.mock-destinations { display: flex; flex-direction: column; gap: 10px; }
.mock-dest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.mock-dest__name { font-weight: 600; font-size: 14px; }
.mock-dest__meta { font-size: 12px; color: var(--text-muted); }
.mock-dest__badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-strong);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  padding: 3px 9px;
  border-radius: 999px;
}

.hero-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  filter: blur(90px);
  opacity: 0.28;
  top: -60px;
  right: -80px;
  z-index: 1;
}

/* ---------- Logos / trust strip ---------- */
.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.trust-strip strong { color: var(--text); }

/* ---------- Section headers ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { font-size: 17px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #06231F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 20px;
}
:root[data-theme="dark"] .step-number { color: #06231F; }

.step-card h3 { font-size: 18px; margin-bottom: 10px; }
.step-card p { font-size: 15px; margin-bottom: 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary-strong);
  margin-bottom: 16px;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin-bottom: 0; }

.callout {
  margin-top: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  font-size: 15px;
  color: var(--text);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--accent-strong); }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  transition: transform 0.2s ease;
}
.faq-item summary .plus::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.faq-item summary .plus::after { width: 2px; height: 14px; top: 4px; left: 10px; }
.faq-item[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item p { padding: 0 4px 20px; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: #06231F;
}
:root[data-theme="dark"] .cta-band { color: #06231F; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.cta-band p { color: #123C3A; margin-bottom: 28px; font-size: 16px; }
.cta-band .btn-primary { background: #06231F; color: #fff; box-shadow: none; }
.cta-band .btn-primary:hover { background: #0A2E29; }
@media (max-width: 640px) { .cta-band { padding: 40px 24px; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h4 {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------- Simple page (imprint/privacy) ---------- */
.simple-page { padding: 64px 0 96px; }
.simple-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.simple-page .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.simple-page h2 { font-size: 20px; margin-top: 36px; margin-bottom: 12px; }
.simple-page p, .simple-page li { color: var(--text-muted); font-size: 15px; }
.simple-page .todo {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px dashed var(--accent-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  margin: 8px 0 20px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
