/* Tarot by Andy — the Padel Amigos page layout in the app's Forest palette (Theme.swift: Palette.forest):
   deep green-black, muted gold, regular serif titles, spaced-out monospaced labels, glow and star dust. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  --primary:        #CCB17B;               /* accent */
  --primary-light:  #DCC79B;
  --primary-dark:   #A79165;               /* goldDeep: accent 18% darker */
  --bg:             #111814;               /* background */
  --surface:        rgba(26, 34, 29, 0.85); /* panel #1A221D at 85% */
  --surface-solid:  #1A221D;
  --surface-alt:    rgba(26, 34, 29, 0.45);
  --elevated:       #252E26;               /* elevated */
  --text:           #F0EBDD;               /* text */
  --text-secondary: #A9B1A4;               /* secondary */
  --text-light:     #7F887B;
  --border:         rgba(70, 80, 67, 0.55); /* line #465043, as panelStroke */
  --footer:         #0C120F;
  --on-primary:     #111814;               /* gold buttons: background-coloured text */
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* CandleBackground: a soft glow of the elevated colour and faint gold star dust, fixed behind the page. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 38%, rgba(37, 46, 38, 0.72), transparent 72%),
    url("stardust.svg") center / 1000px 1000px repeat;
}

a { color: var(--primary); }
a:hover { color: var(--primary-light); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 24, 20, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.nav-brand-name { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--surface-solid); color: var(--text); }
.nav-cta {
  background: var(--primary); color: var(--on-primary) !important;
  border-radius: 12px; padding: 9px 16px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  transition: background 0.15s; margin-left: 4px;
}
.nav-cta:hover { background: var(--primary-light); }
.nav-back { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-back:hover { color: var(--primary-light); }

/* ── TITLES ── */
h1, h2, .section-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.section-title span, .hero h1 span { color: var(--primary); font-style: italic; }

/* ── HERO ── */
.hero {
  max-width: 1120px; margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
}
.hero-icon {
  width: 80px; height: 80px; border-radius: 20px;
  box-shadow: 0 8px 28px rgba(204, 177, 123, 0.16), 0 4px 12px rgba(0,0,0,0.45);
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(40px, 5vw, 58px); line-height: 1.05; margin-bottom: 20px; }
.hero-sub {
  font-size: clamp(17px, 2vw, 19px); color: var(--text-secondary);
  max-width: 480px; margin: 0 0 36px; line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.btn-appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--primary); color: var(--on-primary) !important; text-decoration: none;
  min-height: 54px; padding: 10px 28px; border-radius: 16px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.btn-appstore svg path { fill: currentColor; }
.btn-appstore.soon svg { color: var(--primary); }
.btn-appstore.soon {
  background: var(--surface-solid); color: var(--text) !important;
  border: 1px solid rgba(70, 80, 67, 0.7); box-shadow: none; cursor: default;
}
.btn-appstore-label { line-height: 1.2; text-align: left; }
.btn-appstore-label small { display: block; font-size: 11px; font-weight: 400; opacity: 0.8; }
.hero-meta { font-size: 13px; color: var(--text-light); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta span::before { content: '✦'; color: var(--primary); margin-right: 6px; }

/* ── CARDS ── */
.tarot-card {
  aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(204, 177, 123, 0.35);
  background: var(--surface-solid);
}
.tarot-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-fan { display: flex; justify-content: center; align-items: center; padding: 20px 0; }
.card-fan .tarot-card { width: 220px; flex-shrink: 0; position: relative; z-index: 2; }
.card-fan .card-left  { width: 180px; z-index: 1; margin-right: -56px; transform: rotate(-10deg); opacity: 0.92; }
.card-fan .card-right { width: 180px; z-index: 1; margin-left: -56px; transform: rotate(10deg); opacity: 0.92; }

.deck-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.deck-strip figure { text-align: center; }
.deck-strip figcaption { margin-top: 12px; font-size: 14px; color: var(--text-secondary); }

/* ── SECTIONS ── */
section { padding: 96px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 64px; }
/* Eyebrow: small uppercase monospaced label with wide tracking. */
.section-label, .page-label {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.23em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}
.section-title { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.15; margin-bottom: 16px; }
.section-body { font-size: 17px; color: var(--text-secondary); line-height: 1.65; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.deck-strip figcaption, .hero-meta { font-family: var(--mono); letter-spacing: 0.08em; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.feature-icon, .contact-icon {
  width: 48px; height: 48px; background: var(--elevated); border-radius: 12px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.feature-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.faq-item summary {
  padding: 20px 24px; cursor: pointer; font-weight: 500; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--primary); transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item-body { padding: 0 24px 20px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

/* ── CTA ── */
.cta-section { text-align: center; padding: 96px 24px 120px; }
.cta-inner { max-width: 580px; margin: 0 auto; }
.cta-icon { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 8px 24px rgba(204, 177, 123, 0.16); margin-bottom: 24px; }

/* ── SUPPORT + LEGAL PAGES ── */
main { max-width: 860px; margin: 0 auto; padding: 64px 24px 96px; }
main.legal { max-width: 760px; }
.page-header { text-align: center; margin-bottom: 56px; }
main.legal .page-header { text-align: left; margin-bottom: 48px; }
.page-header h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.15; margin-bottom: 14px; }
.page-header p { color: var(--text-secondary); font-size: 17px; max-width: 520px; margin: 0 auto; }
.updated { color: var(--text-secondary); font-size: 14px; }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 64px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px; text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); color: inherit; }
.contact-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 16px; }
.contact-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 6px; }
.contact-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }
.contact-card .link { color: var(--primary); font-size: 14px; font-weight: 500; }

main h2 { font-size: 28px; margin-top: 48px; margin-bottom: 18px; }
main.legal h2 { font-size: 24px; margin-top: 40px; margin-bottom: 12px; }
main.legal p { color: var(--text-secondary); margin-bottom: 14px; font-size: 16px; }
main.legal ul { color: var(--text-secondary); margin: 0 0 14px 20px; font-size: 16px; }
main.legal li { margin-bottom: 6px; }
main.legal strong { color: var(--text); }

.notice {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  padding: 16px 20px; border-radius: 12px; margin: 24px 0;
  font-size: 15px; color: var(--text-secondary);
}
.table-wrap { overflow-x: auto; margin: 16px 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--text-secondary); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 500; color: var(--text); background: var(--surface-solid); }

.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; margin-top: 32px; }
.info-box h3 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.23em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.info-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }

/* ── FOOTER ── */
footer { background: var(--footer); color: var(--text-secondary); padding: 64px 24px 32px; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1080px; margin: 0 auto 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; text-decoration: none; }
.footer-icon { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand-name { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--text); }
.footer-about p { font-size: 14px; line-height: 1.65; max-width: 320px; }
.footer-col h4 {
  color: var(--primary); font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.23em; margin-bottom: 18px;
}
.footer-col a {
  display: block; color: var(--text-secondary); text-decoration: none;
  font-size: 14px; margin-bottom: 10px; transition: color 0.15s;
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1080px; margin: 0 auto; padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text-light);
}
.footer-bottom a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 56px 24px 64px; gap: 40px; text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .deck-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links .nav-link:not(.nav-cta) { display: none; }
  section { padding: 72px 20px; }
  .hero-icon { width: 72px; height: 72px; border-radius: 18px; }
  .card-fan .tarot-card { width: 150px; }
  .card-fan .card-left  { width: 122px; margin-right: -40px; }
  .card-fan .card-right { width: 122px; margin-left: -40px; }
  .features-grid { grid-template-columns: 1fr; }
  .deck-strip { gap: 12px; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
