@import url('/css/style.css');

:root {
  --primary-color: var(--f4-signature);
  --secondary-color: var(--f4-carbon);
  --light-bg: #f4f5f8;
  --text-color: var(--f4-fg);
  --muted-color: var(--f4-fg-muted);
  --card-bg: rgba(255, 255, 255, 0.9);
  --heading-font: var(--f4-font-sans);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background:
    radial-gradient(circle at 12% -6%, rgba(168, 85, 247, 0.12) 0, transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.1) 0, transparent 34%),
    linear-gradient(180deg, #f8f9fc 0%, #eef2f9 52%, #f7f9fd 100%);
  line-height: 1.6;
}

.hero {
  padding: 4.5rem 1rem 3rem;
}

.hero-content {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.hero-text { padding-top: 0.75rem; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 18%, #fff);
  color: var(--secondary-color);
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.hero-title-main {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}

.hero-logo {
  height: auto;
}

.hero-logo--inline {
  height: 1em;
  width: auto;
  vertical-align: baseline;
}

.hero-logo--below {
  display: block;
  margin-top: 0.45rem;
  width: clamp(120px, 14vw, 180px);
}

.hero p {
  max-width: 650px;
  margin: 1rem 0 0;
  color: var(--muted-color);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-cta-btn,
.hero-secondary-link {
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.hero-cta-btn {
  background: #111827;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.2);
}

.hero-secondary-link {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

.hero-metrics {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 640px;
}

.hero-metrics div {
  border: 1px solid #d4dded;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.86));
  border-radius: 14px;
  padding: 0.85rem 0.8rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hero-metrics strong {
  display: block;
  font-size: 1rem;
  color: var(--secondary-color);
}

.hero-metrics span {
  font-size: 0.84rem;
  color: var(--muted-color);
}

.auth-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  border: 1px solid #dbe1ec;
  backdrop-filter: blur(12px);
}

.tab-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #edf0f7;
  border-radius: 999px;
  padding: 0.25rem;
  margin-bottom: 0.9rem;
}

.tab-nav a {
  text-align: center;
  text-decoration: none;
  color: #4b5563;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 999px;
}

.tab-nav a.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-card label { display: block; margin-bottom: 0.45rem; font-size: 0.92rem; }

.auth-card input {
  width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
  border: 1px solid #cdd5e1;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
}

.auth-card button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.68rem;
  background: #e7d7b6;
  color: #3d2f1a;
  font-weight: 700;
  cursor: pointer;
}

.auth-card button:hover {
  background: #ddc9a2;
}

.auth-switch-row { margin-top: 0.65rem; text-align: right; }
.auth-switch-link { background: none !important; color: #374151 !important; width: auto !important; padding: 0 !important; text-decoration: underline; box-shadow: none !important; }
.auth-back-link { margin-top: 0.7rem; text-align: center; }
.auth-back-link button { width: auto; background: #e7d7b6; color: #3d2f1a; text-decoration: none; padding: 0.5rem 1rem; }
.auth-back-link button:hover { background: #ddc9a2; }
.auth-hint { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--muted-color); }

.platform-highlights,
.journey,
.cta-band {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.section-kicker {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334155;
  background: #e8eefc;
  border: 1px solid #cfdbf5;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.65rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  color: #0f172a;
}

.section-head p {
  margin: 0.6rem 0 0;
  color: var(--muted-color);
}

.features-grid,
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-item,
.journey-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe4f3;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.feature-item .icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2ff;
}

.feature-item h3 { margin: 0.7rem 0 0.35rem; }
.feature-item p,
.journey-card span { margin: 0; color: var(--muted-color); font-size: 0.94rem; }
.feature-item ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: #334155;
  font-size: 0.88rem;
}
.feature-item li + li { margin-top: 0.25rem; }
.journey-card strong { display: block; margin-bottom: 0.35rem; color: #111827; }

.cta-band {
  margin-bottom: 1.3rem;
  background: radial-gradient(circle at 14% 8%, rgba(56, 189, 248, 0.3), transparent 42%), linear-gradient(130deg, #111827, #1e1b4b 58%, #312e81);
  border-radius: 20px;
  padding: 1.5rem;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.cta-band-content h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.cta-band p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-features {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.92rem;
}

.cta-features li {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  backdrop-filter: blur(2px);
}

.cta-store-buttons {
  display: grid;
  gap: 0.6rem;
  min-width: 252px;
}

.cta-band-link {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.98);
  color: #111827;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.cta-band-link-emoji {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  flex: 0 0 auto;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: min(720px, calc(100vw - 1.4rem));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
  z-index: 9999;
  animation: cookieSlideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

@keyframes cookieSlideUp { to { transform: translateX(-50%) translateY(0); } }

.banner-header { background: var(--f4-signature); padding: 1rem 1.3rem; display: flex; gap: 0.7rem; align-items: center; }
.banner-header h2 { margin: 0; font-size: 1rem; color: #fff; }
.banner-sub { margin: 0; font-size: 0.78rem; color: rgba(255,255,255,0.85); }
.banner-body { padding: 1rem 1.3rem 0.7rem; }
.banner-text { margin: 0 0 0.9rem; font-size: 0.88rem; }
.banner-text a { color: #111827; }
.cookie-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cookie-category { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0.65rem; display: flex; justify-content: space-between; gap: 0.5rem; }
.category-info strong { font-size: 0.82rem; }
.category-info p { margin: 0.2rem 0 0; font-size: 0.75rem; color: #6b7280; }
.badge-required { font-size: 0.65rem; background: #111827; color: #fff; border-radius: 999px; padding: 1px 6px; }
.cookie-toggle { appearance: none; width: 38px; height: 22px; background: #d1d5db; border-radius: 999px; cursor: pointer; position: relative; }
.cookie-toggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform 0.2s ease; }
.cookie-toggle:checked { background: #111827; }
.cookie-toggle:checked::after { transform: translateX(16px); }
.banner-actions { display: flex; gap: 0.5rem; padding: 0.7rem 1.3rem 1.2rem; }
.cookie-btn { border: 0; border-radius: 10px; padding: 0.65rem 0.9rem; font-weight: 700; cursor: pointer; flex: 1; }
.btn-accept { background: #f3f4f6; color: #111827; }
.btn-save { background: #f3f4f6; color: #111827; }
.btn-reject { background: #f3f4f6; color: #111827; }
#cookie-success { display: none; position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 0.75rem 1.5rem; border-radius: 999px; z-index: 9999; }
#cookie-reopen { display: none; position: fixed; bottom: 1.2rem; right: 1.2rem; border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 0.45rem 0.9rem; }

.site-footer {
  max-width: 1140px;
  margin: 1rem auto 2rem;
  padding: 1.1rem 1.2rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.9));
  border: 1px solid #dbe1ec;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  text-decoration: none;
  color: #111827;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-nav a {
  text-decoration: none;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid #e3e8f2;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  transition: all 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #111827;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
}

.site-footer p {
  margin: 0.85rem 0 0;
  color: var(--muted-color);
  font-size: 0.84rem;
}

@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-metrics { grid-template-columns: 1fr; }
  .cookie-categories { grid-template-columns: 1fr; }
  .banner-actions { flex-direction: column; }
  .cta-band {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }
  .cta-store-buttons { width: 100%; }
  .cta-band-link { width: 100%; text-align: center; }
  .site-footer { margin: 0.6rem 1rem 1.4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Old Money Luxury Theme */
.start-old-money {
  --om-bg: #f4f7ff;
  --om-surface: #ffffff;
  --om-panel: rgba(255, 255, 255, 0.9);
  --om-ink: #102345;
  --om-muted: #3a4c70;
  --om-gold: #d4b068;
  --om-gold-deep: #ae8741;
  --om-forest: #1f3f8b;
  --om-border: #c7d6f5;
  --om-shadow: rgba(15, 37, 78, 0.14);
  color: var(--om-ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(31, 63, 139, 0.22) 0, transparent 40%),
    radial-gradient(circle at 90% 8%, rgba(212, 176, 104, 0.18) 0, transparent 32%),
    linear-gradient(180deg, #f7faff 0%, #e8efff 52%, #fdfefe 100%);
  font-family: "Garamond", "Times New Roman", serif;
}

.start-old-money .hero {
  padding-top: 5rem;
}

.start-old-money .hero h1,
.start-old-money .section-head h2,
.start-old-money .cta-band-content h2 {
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: 0.01em;
  color: var(--om-forest);
}

.start-old-money .hero p,
.start-old-money .section-head p,
.start-old-money .feature-item p,
.start-old-money .journey-card span,
.start-old-money .site-footer p,
.start-old-money .auth-hint {
  color: var(--om-muted);
}

.start-old-money .hero-pill {
  background: linear-gradient(135deg, rgba(31, 63, 139, 0.18), rgba(212, 176, 104, 0.2));
  color: var(--om-forest);
  border: 1px solid rgba(31, 63, 139, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.start-old-money .hero-metrics div,
.start-old-money .feature-item,
.start-old-money .journey-card,
.start-old-money .site-footer {
  border: 1px solid var(--om-border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 245, 255, 0.94) 100%);
  box-shadow: 0 14px 28px var(--om-shadow);
}

.start-old-money .hero-metrics strong,
.start-old-money .feature-item h3,
.start-old-money .journey-card strong {
  color: var(--om-forest);
}

.start-old-money .auth-card {
  background: var(--om-panel);
  border: 1px solid var(--om-border);
  box-shadow: 0 18px 40px var(--om-shadow);
  backdrop-filter: blur(6px);
}

.start-old-money .tab-nav {
  background: rgba(31, 63, 139, 0.08);
}

.start-old-money .tab-nav a {
  color: #31456b;
  font-weight: 700;
}

.start-old-money .tab-nav a.active {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(236, 244, 255, 0.95));
  color: var(--om-forest);
  box-shadow: 0 4px 12px rgba(24, 43, 82, 0.12);
}

.start-old-money .auth-card input {
  border: 1px solid #b9cbed;
  background: rgba(255, 255, 255, 0.95);
}

.start-old-money .auth-card button {
  background: linear-gradient(135deg, var(--om-forest), #2f5bb8);
  color: #f8fbff;
}

.start-old-money .auth-switch-link,
.start-old-money .auth-back-link button {
  color: var(--om-forest) !important;
}

.start-old-money .section-kicker,
.start-old-money .cta-badge {
  background: rgba(31, 63, 139, 0.12);
  border: 1px solid rgba(31, 63, 139, 0.3);
  color: #213f7d;
}

.start-old-money .feature-item .icon {
  background: rgba(31, 63, 139, 0.12);
}

.start-old-money .cta-band {
  background:
    radial-gradient(circle at 12% 12%, rgba(212, 176, 104, 0.28), transparent 40%),
    linear-gradient(130deg, #1c366f, #1f3f8b 56%, #2b55ad);
  border: 1px solid rgba(199, 214, 245, 0.6);
}

.start-old-money .cta-store-buttons .cta-band-link {
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  border: 1px solid #c4d4f2;
  color: #173369;
}

.start-old-money #cookie-banner {
  border: 1px solid #c4d3f0;
  background: #f6f9ff;
}

.start-old-money .banner-header {
  background: linear-gradient(135deg, #1f3f8b, #2b55ad);
}

.start-old-money .cookie-category {
  background: #f2f7ff;
  border: 1px solid #cddbf5;
}

.start-old-money .btn-accept,
.start-old-money .btn-save {
  background: #ece2cd;
  color: #111827;
}

.start-old-money .btn-reject {
  background: #ece2cd;
}

.start-old-money .footer-logo,
.start-old-money .footer-nav a {
  color: var(--om-forest);
}

.start-old-money .footer-nav a {
  background: #fcf6ea;
  border-color: #dbc9a5;
}
