/* Where Is The Sun — marketing site
   Palette: warm sun on deep dark. Restrained, editorial, honest.
*/
:root {
  --bg: #0a0a0b;
  --bg-elev: #121214;
  --bg-card: #17171a;
  --line: #26262b;
  --ink: #f5f4f1;
  --ink-dim: #a8a6a1;
  --ink-mute: #6e6c67;
  --sun: #ffb800;
  --sun-soft: #fff4e0;
  --sun-glow: rgba(255, 184, 0, 0.18);
  --danger: #ff453a;
  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --serif: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sun); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.brand img { height: 26px; width: 26px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-dim); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); opacity: 1; }
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: var(--sun); color: #1a1407;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 8px 24px var(--sun-glow); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  border-top: 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--sun-glow) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center; position: relative;
}
@media (max-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--sun-glow); color: var(--sun);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
h1.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h1.display em { color: var(--sun); font-style: normal; }
.lede {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-dim);
  max-width: 52ch;
  margin-bottom: 32px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px;
  background: #000; border: 1px solid #2a2a2a;
  color: var(--ink); font-weight: 500;
}
.badge-appstore .small { font-size: 10.5px; color: var(--ink-dim); display: block; line-height: 1; margin-bottom: 2px; }
.badge-appstore .big { font-size: 17px; font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; }
.hero-phone {
  position: relative; display: flex; justify-content: center;
}
.hero-phone img {
  width: 100%; max-width: 360px;
  border-radius: 40px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8),
              0 0 60px rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- The problem strip ---------- */
.strip {
  background: linear-gradient(to bottom, #0c0c0e, var(--bg));
  padding: 80px 0;
}
.strip h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18; letter-spacing: -0.015em;
  max-width: 22ch;
  color: var(--ink);
}
.strip h2 .pale { color: var(--ink-mute); }

/* ---------- Section headings ---------- */
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.section-head p { color: var(--ink-dim); font-size: 18px; max-width: 58ch; }

/* ---------- Audience cards ---------- */
.audience-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 800px) { .audience-grid { grid-template-columns: 1fr; } }
.aud-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.aud-card .tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sun);
}
.aud-card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.01em;
}
.aud-card ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.aud-card li {
  padding-left: 26px; position: relative;
  color: var(--ink-dim); font-size: 16px; line-height: 1.5;
}
.aud-card li strong { color: var(--ink); font-weight: 600; }
.aud-card li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 2px; background: var(--sun); border-radius: 2px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feat {
  display: flex; flex-direction: column; gap: 14px;
}
.feat-shot {
  border-radius: 18px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line);
  aspect-ratio: 9/16;
}
.feat-shot img { width: 100%; height: 100%; object-fit: cover; }
.feat h4 {
  font-family: var(--serif); font-weight: 500;
  font-size: 19px; letter-spacing: -0.005em; margin-top: 6px;
}
.feat p { color: var(--ink-dim); font-size: 15px; line-height: 1.55; }

/* ---------- How it works ---------- */
.how {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  position: relative;
}
@media (max-width: 800px) { .how { grid-template-columns: 1fr; } }
.step { padding-top: 24px; border-top: 2px solid var(--sun); }
.step .num {
  font-family: var(--serif); font-size: 44px; color: var(--sun);
  line-height: 1; margin-bottom: 12px;
}
.step h4 { font-size: 20px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--ink-dim); font-size: 15px; }

/* ---------- Precision strip ---------- */
.precision {
  background: linear-gradient(to bottom, var(--bg-elev), var(--bg));
}
.precision-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left;
}
@media (max-width: 800px) { .precision-grid { grid-template-columns: 1fr 1fr; } }
.stat .k {
  font-family: var(--serif); font-size: 34px; color: var(--sun);
  letter-spacing: -0.01em; line-height: 1; margin-bottom: 10px;
}
.stat .v { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- CTA section ---------- */
.cta-box {
  background: radial-gradient(ellipse at top, rgba(255,184,0,0.08), transparent 60%), var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 72px 40px; text-align: center;
}
.cta-box h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1; letter-spacing: -0.015em;
  max-width: 22ch; margin: 0 auto 16px;
}
.cta-box p { color: var(--ink-dim); max-width: 48ch; margin: 0 auto 32px; font-size: 17px; }

/* ---------- Footer ---------- */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: #08080a;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand { margin-bottom: 12px; font-size: 18px; }
.foot-brand p { color: var(--ink-mute); font-size: 14px; max-width: 34ch; line-height: 1.6; }
.foot-col h5 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px;
}
.foot-col a {
  display: block; color: var(--ink-dim); font-size: 14.5px;
  padding: 4px 0; font-weight: 500;
}
.foot-col a:hover { color: var(--ink); opacity: 1; }
.foot-legal {
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--ink-mute);
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px; padding: 80px 24px 120px; margin: 0 auto;
}
.legal h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.legal .updated { color: var(--ink-mute); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em;
}
.legal p, .legal li {
  color: var(--ink-dim); font-size: 16px; line-height: 1.7; margin-bottom: 14px;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--sun); }
.legal strong { color: var(--ink); font-weight: 600; }
