/* 4arcs.app — the app's own site. Same night and snow blue as the app
   (src/shared/theme/colors) and its emails (functions/src/authEmails.ts). */

:root {
  --night: #05070F;
  --night-2: #0B1020;
  --card: #0E1322;
  --line: rgba(242, 245, 250, 0.08);
  --text: #F2F5FA;
  --muted: #9AA3B5;
  --faint: #6B7385;
  --snow: #8FCBEB;
  --spring: #C9B5F4;
  --summer: #A9D095;
  --autumn: #F2AE86;
  --radius: 22px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--snow); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: 0.3px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- the home page: the hero alone, filling the screen ---------- */

body.home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.home main { flex: 1; display: flex; }
body.home .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 560px; z-index: -1;
  background: radial-gradient(closest-side, rgba(143, 203, 235, 0.18), transparent 70%);
}
#snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-icon { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 20px 60px rgba(143, 203, 235, 0.18), 0 0 0 1px var(--line); }
.eyebrow { color: var(--snow); font-weight: 700; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.04; letter-spacing: -1.5px; margin: 0 auto 20px; max-width: 14ch; font-weight: 800; }
.hero h1 span { color: var(--snow); white-space: nowrap; }
.hero p.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 34em; margin: 0 auto 34px; }

.store-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.store-logo { height: 52px; width: auto; }
.soon-note { color: var(--faint); font-size: 14px; margin: 14px 0 0; letter-spacing: 0.4px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--snow); color: var(--night); font-weight: 700; font-size: 16px;
}
.store-badge:hover { text-decoration: none; filter: brightness(1.06); }
.store-badge.soon { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(242, 245, 250, 0.22); cursor: default; }
.store-badge svg { width: 18px; height: 18px; }
.hero small { display: block; color: var(--faint); font-size: 14px; margin-top: 14px; }

/* ---------- seasons ---------- */

.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 auto; max-width: 760px; }
.season { padding: 18px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.season .glyph { font-size: 24px; line-height: 1; }
.season .name { font-weight: 700; margin-top: 8px; font-size: 15px; }
.season .months { color: var(--faint); font-size: 13px; }
.season.winter .glyph, .season.winter .name { color: var(--snow); }
.season.spring .glyph, .season.spring .name { color: var(--spring); }
.season.summer .glyph, .season.summer .name { color: var(--summer); }
.season.autumn .glyph, .season.autumn .name { color: var(--autumn); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.12; letter-spacing: -0.8px; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--card), var(--night-2)); border: 1px solid var(--line); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(143, 203, 235, 0.12); color: var(--snow); margin-bottom: 18px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature .icon img { width: 26px; height: 26px; filter: invert(84%) sepia(18%) saturate(700%) hue-rotate(170deg) brightness(98%); }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { padding: 26px 24px; border-left: 2px solid var(--snow); }
.principle h3 { margin: 0 0 6px; font-size: 18px; }
.principle p { margin: 0; color: var(--muted); font-size: 15.5px; }

.cta { text-align: center; padding: 80px 0 96px; }
.cta h2 { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -0.8px; margin: 0 0 14px; }
.cta p { color: var(--muted); margin: 0 0 28px; }

/* ---------- documents (privacy, terms, support) ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -1px; line-height: 1.1; margin: 0 0 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; letter-spacing: -0.2px; }
.doc h3 { font-size: 17px; margin: 26px 0 6px; }
.doc p, .doc li { color: #C9CFDB; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc .summary { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 0 0 8px; }
.doc .summary p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: #C9CFDB; }
.doc th { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 8px 0 12px; }
.contact-card .label { color: var(--muted); font-size: 14px; }
.contact-card .address { font-size: 20px; font-weight: 700; color: var(--text); }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 4px; top: 13px; color: var(--snow); font-size: 22px; font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .features, .principles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-nav { gap: 16px; }
  .site-nav a.hide-sm { display: none; }
  .hero { padding: 64px 0 52px; }
  .hero-icon { width: 92px; height: 92px; border-radius: 22px; }
  .seasons { grid-template-columns: repeat(2, 1fr); }
  .features, .principles { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .doc { padding: 44px 16px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #snow { display: none; }
}
