/* =========================================================================
   Caleo marketing site — single stylesheet, no framework.
   Designed to mirror the iOS app's "Sunrise" aesthetic:
     * dark warm background with radial sunrise gradient on the home hero
     * serif display type (system "New York" → Georgia fallback)
     * accent gradient amber → orange → red
     * generous spacing, calm typography, panel cards over background
   ========================================================================= */

:root {
  --bg:           #150a0d;
  --bg-2:         #1c0f12;
  --bg-3:         #2a181b;
  --panel:        rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.10);
  --border-strong:rgba(255, 255, 255, 0.18);
  --text:         #f7f5f2;
  --text-muted:   rgba(247, 245, 242, 0.7);
  --text-faint:   rgba(247, 245, 242, 0.45);
  --amber:        #ffb86b;
  --orange:       #ff7a45;
  --red:          #ff3859;
  --green:        #2ea463;
  --hero-shadow:  0 20px 60px rgba(255, 122, 69, 0.35);
  --serif:        "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:         -apple-system, BlinkMacSystemFont, "SF Pro Display",
                  "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(120% 70% at 70% 0%, rgba(255, 188, 117, 0.95), rgba(255, 156, 90, 0.5) 35%, rgba(40, 18, 22, 0) 70%),
    radial-gradient(60% 60% at 18% 100%, rgba(255, 102, 86, 0.45), rgba(38, 14, 19, 0) 65%),
    linear-gradient(160deg, var(--bg-3) 0%, var(--bg-2) 70%, var(--bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Layout ===== */

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

.section {
  padding: 96px 0;
  position: relative;
}

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

/* ===== Type ===== */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin: 0 0 16px 0;
}

h1 { font-size: clamp(40px, 7vw, 88px); }
h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 20px; }
h3 { font-size: clamp(20px, 2.5vw, 26px); }

p { margin: 0 0 16px 0; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.55;
}

/* ===== Nav ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(21, 10, 13, 0.62);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-image: url("/assets/img/AppIcon-1024.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(255, 122, 69, 0.4);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 12px 30px rgba(255, 122, 69, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--panel-strong); }

.btn-lg {
  padding: 16px 26px;
  font-size: 15px;
}

/* ===== Hero ===== */

.hero {
  padding: 96px 0 80px 0;
  text-align: left;
  position: relative;
}

.hero h1 {
  background: linear-gradient(180deg, #fff 0%, #ffd9b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.hero p.lead { font-size: clamp(18px, 1.8vw, 22px); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}

.app-store-badge {
  display: inline-block;
  height: 56px;
}
.app-store-badge img { height: 56px; display: block; }

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 14px;
}
.stars { letter-spacing: 1px; color: var(--amber); font-size: 16px; }

/* ===== Phone mockup (CSS-only, no image needed) ===== */

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: linear-gradient(180deg, #181014 0%, #100709 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 100px rgba(255, 122, 69, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.6),
    inset 0 0 0 6px rgba(0, 0, 0, 0.6);
  padding: 14px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .phone { margin: 24px auto 0 auto; }
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 188, 117, 0.7), rgba(255, 156, 90, 0.18) 50%, rgba(0, 0, 0, 0) 80%),
    linear-gradient(180deg, #2a181b 0%, #150a0d 100%);
  padding: 18px;
  font-size: 11px;
}

.phone-screen .eyebrow-mini {
  font-size: 9px;
  letter-spacing: 2.4px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.phone-screen .greeting {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.phone-screen .big-num {
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 4px;
}
.phone-screen .label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.phone-screen .ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 6px solid transparent;
  background:
    conic-gradient(var(--orange) 0 25%, var(--amber) 25% 50%, var(--green) 50% 75%, transparent 75% 100%),
    rgba(255, 255, 255, 0.05);
  background-clip: padding-box;
  margin: 14px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-screen .ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: #1c0f12;
  border-radius: 50%;
}
.phone-screen .ring span {
  position: relative;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
}
.phone-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}
.phone-chip {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 9px;
  text-align: center;
}
.phone-chip strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 2px;
}
.phone-pro {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  padding: 3px 7px;
  border-radius: 999px;
}

/* ===== Phone screen v2 — mirrors the real Caleo home screen.
   Toolbar pills + greeting + remaining-calories ring + macro chips
   + recent meal + tab bar.
   ============================================================== */

.ph-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.ph-toolbar-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.ph-pill-circle {
  width: 22px; height: 22px; padding: 0;
  justify-content: center;
  font-size: 11px;
}
.ph-pro-pill {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  border: 0;
}
.ph-streak {
  background: rgba(255, 255, 255, 0.10);
}
.ph-flame { font-size: 10px; }

.ph-eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ph-greeting {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

/* Calorie ring — multi-coloured outer arc, dark inner disc, big number */
.ph-ring-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 14px 0;
}
.ph-ring {
  position: relative;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      var(--orange) 0% 26%,
      transparent 26% 30%,
      #ffc857 30% 56%,
      transparent 56% 60%,
      var(--green) 60% 80%,
      transparent 80% 84%,
      #5fa9ff 84% 96%,
      transparent 96% 100%
    );
  padding: 8px;
}
.ph-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(255, 156, 90, 0.18), transparent 70%),
    #1a0e11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ph-ring-label {
  font-size: 7px;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.52);
}
.ph-ring-num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -1.2px;
  line-height: 1;
}
.ph-ring-sub {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
}

/* Macro chips — four squares with mini-rings */
.ph-macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}
.ph-macro {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 4px 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ph-macro-ring {
  --c: var(--orange);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    conic-gradient(var(--c) 0% 25%, rgba(255, 255, 255, 0.10) 25% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ph-macro-ring::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #1a0e11;
}
.ph-macro-ring span {
  position: relative;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 10px;
  color: white;
}
.ph-macro-label {
  font-size: 7.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

/* Recent meal section */
.ph-section-label {
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.ph-meal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
}
.ph-meal-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255, 184, 107, 0.18);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.ph-meal-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ph-meal-text strong {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
}
.ph-meal-text span {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
}
.ph-meal-kcal {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
}
.ph-meal-kcal small {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 2px;
}

/* Tab bar — five-up with the central FAB highlighted */
.ph-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 4px;
  padding: 8px 6px 4px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
}
.ph-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}
.ph-tab small {
  font-size: 7px;
  letter-spacing: 0.4px;
  font-weight: 700;
}
.ph-tab-active { color: white; }
.ph-tab-fab {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  font-weight: 700;
  font-size: 18px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 122, 69, 0.55);
  margin-bottom: 8px;
}

/* ===== Stats strip ===== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
.stat {
  text-align: left;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  background: linear-gradient(180deg, #fff, #ffc89c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span {
  font-size: 12px;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ===== Feature grid ===== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  padding: 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, background 0.18s ease;
}
.feature:hover {
  transform: translateY(-2px);
  background: var(--panel-strong);
}
.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 107, 0.15);
  margin-bottom: 14px;
}
.feature .icon svg { width: 20px; height: 20px; color: var(--amber); }
.feature h3 { margin-bottom: 8px; font-family: var(--sans); font-size: 17px; font-weight: 700; }
.feature p { font-size: 14px; margin: 0; line-height: 1.55; }

/* ===== Testimonials ===== */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

.quote {
  padding: 26px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
}
.quote .stars {
  font-size: 14px;
  margin-bottom: 12px;
}
.quote blockquote {
  margin: 0 0 18px 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}
.quote .author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.quote .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

/* ===== Steps ===== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 26px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.step h3 { font-family: var(--sans); font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.step p { font-size: 14px; margin: 0; line-height: 1.55; }

/* ===== Pricing ===== */

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
}
.price-card.featured {
  border-color: rgba(255, 122, 69, 0.65);
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.18), rgba(255, 122, 69, 0.04));
  box-shadow: 0 24px 60px rgba(255, 122, 69, 0.18);
}
.price-card .ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  color: white;
}
.price-card h3 { margin-bottom: 4px; }
.price {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-top: 12px;
}
.price small { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-left: 6px; }
.price-card .trial {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--amber);
  text-transform: uppercase;
}
.price-card ul {
  margin: 18px 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.price-card ul li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-card ul li:first-child { border-top: 0; }
.price-card ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== Press / trust strip ===== */

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.trust > span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; opacity: 0.8; }

/* ===== CTA banner ===== */

.banner {
  margin-top: 48px;
  padding: 56px 36px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(255, 188, 117, 0.55), rgba(255, 122, 69, 0.18) 50%, transparent 80%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 122, 69, 0.4);
}
.banner h2 {
  background: linear-gradient(180deg, #fff, #ffd9b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== FAQ ===== */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  cursor: pointer;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq details summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  margin-left: 12px;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Footer ===== */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 56px 0 40px 0;
  background: rgba(0, 0, 0, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: 6px 0; font-size: 14px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ===== Legal page (privacy / terms) ===== */

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px 24px;
}
.legal-wrap h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 8px;
}
.legal-wrap .meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 32px;
  letter-spacing: 0.4px;
}
.legal-wrap h2 {
  font-size: 22px;
  margin-top: 38px;
  margin-bottom: 12px;
  font-family: var(--sans);
  letter-spacing: 0;
}
.legal-wrap h3 {
  font-size: 17px;
  margin-top: 26px;
  margin-bottom: 8px;
  font-family: var(--sans);
}
.legal-wrap p, .legal-wrap li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; margin: 0 0 16px 0; }
.legal-wrap li { padding: 4px 0; }
.legal-wrap strong { color: var(--text); font-weight: 700; }
.legal-wrap blockquote {
  border-left: 3px solid var(--orange);
  padding: 8px 16px;
  margin: 16px 0;
  background: var(--panel);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}
.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.legal-wrap table th, .legal-wrap table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.legal-wrap table th { color: var(--text); font-weight: 700; font-size: 13px; }
.legal-wrap a { color: var(--amber); }
.legal-wrap hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
