/* ─────────────────────────────────────────
   PASTIMES  |  Site Styles
   ───────────────────────────────────────── */

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

:root {
  --bg: #00373B;
  --hero-gradient: linear-gradient(to top right, #B6E3E6 0%, #EBFFFE 100%);
  --orange: #e05c1a;
  --white: #ffffff;
  --body-text: #F0F4F4;
  --muted: #F0F4F4;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

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

/* ─── SHARED ─── */

.app-store-badge {
  height: 44px;
  width: auto;
}

.badge-link {
  display: inline-block;
}

/* ─── NAV ─── */

.site-nav {
  background: #2F5456;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 0;
  height: 30px;
  border-radius: 7px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease, width 0.25s ease;
  pointer-events: none;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-icon.visible {
  width: 30px;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.nav-brand {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

/* hide badge in nav on mobile — hero has its own */
@media (max-width: 600px) {
  .nav-badge { display: none; }
}

/* ─── HERO ─── */

.hero-wrapper {
  background: var(--bg);  /* dark mode: solid */
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 64px 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: flex-start;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  color: var(--white);
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--orange);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 420px;
}

.hero-sub strong {
  display: block;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-phone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-phone .phone-img {
  width: 300px;
  filter: drop-shadow(0 20px 48px rgba(0, 40, 50, 0.28));
}

/* ─── FIND / REMEMBER ─── */

.find-section {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.find-copy {
  text-align: center;
  max-width: 640px;
}

.find-copy h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.find-copy h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--orange);
}

.find-copy p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.find-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  width: 100%;
  max-width: 680px;
}

.phone-img {
  width: 48%;
  max-width: 320px;
  border-radius: 4px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}

.phone-back {
  transform: translateX(30px) translateY(24px) rotate(-3deg);
  z-index: 1;
}

.phone-front {
  transform: translateX(-30px) rotate(3deg);
  z-index: 2;
}

/* ─── PRIVACY ─── */

.privacy-section {
  background: var(--bg);
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.privacy-icon {
  width: 80px;
  height: 80px;
}

.privacy-section h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.25;
  color: var(--white);
  max-width: 600px;
}

.privacy-section h2 .white-italic {
  color: var(--white);
}

.privacy-section h2 em {
  color: var(--orange);
  font-style: italic;
}

.privacy-sub {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ─── FOOTER ─── */

.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 40px 40px;
    gap: 32px;
    text-align: left;
  }

  .hero-text {
    align-items: flex-start;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-phone .phone-img {
    max-width: 80%;
  }

  .find-section {
    padding: 80px 32px;
  }

  .privacy-section {
    padding: 80px 32px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .nav-inner {
    padding: 12px 20px;
  }

  .hero {
    padding: 36px 24px 70px;
    gap: 28px;
  }

  .app-icon {
    width: 60px;
    height: 60px;
  }

  .hero-phone .phone-img {
    max-width: 90%;
  }

  .find-section {
    padding: 64px 20px;
    gap: 48px;
  }

  .find-phones {
    max-width: 100%;
  }

  .phone-back {
    transform: translateX(20px) translateY(16px) rotate(-2deg);
  }

  .phone-front {
    transform: translateX(-20px) rotate(2deg);
  }

  .privacy-section {
    padding: 64px 20px;
    gap: 22px;
  }

  .privacy-icon {
    width: 64px;
    height: 64px;
  }

  .site-footer {
    padding: 32px 20px;
  }
}

/* ─── THEME TOGGLE ─── */

.theme-toggle-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 100px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: transparent;
  transition: background 0.18s, color 0.18s, opacity 0.18s;
}

.theme-btn:hover {
  opacity: 0.75;
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(183, 227, 228, 0.12);
}

html[data-theme="dark"] .theme-btn {
  color: rgba(183, 227, 228, 0.45);
}

html[data-theme="dark"] .theme-btn.active {
  background: #B7E3E4;
  color: #1E2C2C;
  opacity: 1;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(0, 55, 59, 0.1);
}

html[data-theme="light"] .theme-btn {
  color: rgba(0, 55, 59, 0.35);
}

html[data-theme="light"] .theme-btn.active {
  background: #00373B;
  color: #F0F4F4;
  opacity: 1;
}

/* ─────────────────────────────────────────
   LIGHT MODE
   ───────────────────────────────────────── */

html[data-theme="light"] {
  --bg: #DFF4F5;
  --white: #0D2B2B;
  --muted: #3A5A5A;
  --body-text: #3A5A5A;
}

html[data-theme="light"] body {
  background: var(--bg);
  color: var(--white);
}

html[data-theme="light"] .find-section,
html[data-theme="light"] .privacy-section,
html[data-theme="light"] .site-footer {
  background: var(--bg);
}

html[data-theme="light"] .find-copy h2,
html[data-theme="light"] .privacy-section h2 .white-italic {
  color: var(--white);
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* ── Light mode hero ── */
html[data-theme="light"] .hero-wrapper {
  background: var(--hero-gradient);
}

html[data-theme="light"] .hero h1 {
  color: #0D2B2B;
}

html[data-theme="light"] .hero-sub {
  color: #2E4A4A;
}

html[data-theme="light"] .hero-sub strong {
  color: #0D2B2B;
}
