/* ============================================================
   UMBRAA product site
   Shared by index.html, faq.html, privacy.html
   ============================================================ */

:root {
  --bg: #eef5fd;
  --bg-2: #dcebfb;
  --surface: #ffffff;
  --surface-2: #f4f8fe;
  --text: #10233a;
  --muted: #566274;
  --faint: #8b96a6;
  --line: rgba(16,35,58,0.12);
  --line-soft: rgba(16,35,58,0.07);
  --blue: #0a84ff;
  --blue-deep: #0060df;
  --orange: #ff7a1a;
  --orange-soft: #ff9a4d;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-ui: "Space Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* soft sky glow behind the light areas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(100% 70% at 50% -15%, var(--bg-2) 0%, transparent 60%),
    radial-gradient(60% 45% at 88% 6%, rgba(255,154,77,0.10) 0%, transparent 60%),
    radial-gradient(70% 50% at 8% 20%, rgba(10,132,255,0.08) 0%, transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 30px;
  border: 1px solid var(--line);
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 10px 24px -8px rgba(10,132,255,0.6); }
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--ghost { color: var(--text); background: rgba(255,255,255,0.6); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(238,245,253,0.7);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav__brand span { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: var(--text); padding: 9px 16px; }
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ============================================================
   HERO: calm, informational
   ============================================================ */
.hero2 {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 90px;
}
.hero2__inner { max-width: 660px; }
.hero2__icon {
  width: 96px; height: 96px; border-radius: 24px;
  margin: 0 auto 28px;
  box-shadow: 0 22px 46px -16px rgba(10,132,255,0.55);
}
.hero2 h1 {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 110px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 0.94;
}
.hero2__tag {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px); font-weight: 500;
  color: var(--blue-deep); margin: 12px 0 22px;
}
.hero2__lead {
  font-size: 18px; line-height: 1.62; color: var(--muted);
  max-width: 52ch; margin: 0 auto 34px;
}
.hero2__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero2__note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--faint); margin-top: 22px; }
.hero2__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,0.5);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }
@media (prefers-reduced-motion: reduce) { .hero2__scroll { animation: none; } }

/* ============================================================
   FEATURE SECTIONS: full height, gradient, MacBook + control
   ============================================================ */
.feat {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 110px 24px;
  color: #fff;
  position: relative; overflow: hidden;
}
.feat--dim   { background: linear-gradient(155deg, #2a4c8c 0%, #14264a 55%, #0a1428 100%); }
.feat--color { background: linear-gradient(155deg, #c05a2c 0%, #6a3a5e 52%, #241a3a 100%); }
.feat--timer { background: linear-gradient(155deg, #3b3186 0%, #1a1442 55%, #0b0a24 100%); }
.feat--now   { background: linear-gradient(155deg, #182036 0%, #0a0d18 55%, #04050b 100%); }

.feat__inner {
  width: 100%; max-width: 1080px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.feat__copy .eyebrow { color: rgba(255,255,255,0.72); }
.eyebrow--new::before { content: "●"; color: #43e08a; font-size: 9px; vertical-align: 2px; margin-right: 7px; }
.feat__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 54px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.02; margin: 14px 0 18px;
}
.feat__copy p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 32px; }

/* feature-section buttons read as light pills on the dark gradients */
.feat .btn--primary { background: #fff; color: #141416; border-color: #fff; box-shadow: 0 12px 26px -12px rgba(0,0,0,0.6); }
.feat .btn--primary:hover { background: #eef2f8; border-color: #eef2f8; }

/* stage + ambient glow behind the laptop */
.feat__stage { position: relative; }
.feat__stage::before {
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.16), transparent 60%);
  filter: blur(22px); z-index: 0;
}

@media (max-width: 860px) {
  .feat__inner, .feat__inner--rev { grid-template-columns: 1fr; gap: 38px; }
  .feat__inner .feat__copy, .feat__inner--rev .feat__copy { order: 1; }
  .feat__inner .feat__stage, .feat__inner--rev .feat__stage { order: 2; }
}

/* ---------- controls ---------- */
.control { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.control__ico { font-size: 16px; color: rgba(255,255,255,0.72); }
.control__slider {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 170px; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, #fff 0, #fff var(--fill,35%), rgba(255,255,255,0.25) var(--fill,35%));
  cursor: pointer; outline: none;
}
.control__slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); cursor: grab; }
.control__slider::-moz-range-thumb { width: 20px; height: 20px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); cursor: grab; }
.control__val { font-family: var(--font-mono); font-size: 13px; color: #fff; min-width: 44px; }
.control--seg { gap: 8px; }
.seg {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); color: #fff;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.seg:hover { background: rgba(255,255,255,0.16); }
.seg.is-on { background: #fff; color: #141416; border-color: #fff; }

/* ---------- CSS MacBook ---------- */
.laptop { width: min(520px, 80vw); margin: 0 auto; position: relative; z-index: 1; }
.laptop__lid {
  background: #050507;
  padding: 12px;
  border-radius: 20px;
  border: 2px solid #3b3f47;
  box-shadow: 0 30px 60px -18px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.laptop__lid::before { /* camera dot */
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #23262c;
}
.laptop__screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden;
  background: #000;
}
/* isolation is only needed to contain the color section's blend */
.feat--color .laptop__screen { isolation: isolate; }
.laptop__base {
  height: 15px; width: 112%; margin: 0 -6%;
  background: linear-gradient(#cbd0d9, #a9aeb9 42%, #868c98);
  border-radius: 2px 2px 13px 13px;
  box-shadow: 0 14px 22px -6px rgba(0,0,0,0.4);
  position: relative;
}
.laptop__base::before { /* opening lip */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 15%; height: 7px; background: #8b909c; border-radius: 0 0 8px 8px;
}

/* screen content */
.screen__wall { position: absolute; inset: 0; }
.laptop__screen[data-wall="dim"]   .screen__wall { background: linear-gradient(145deg, #58a0ff 0%, #8f6bff 52%, #ff8f6b 100%); }
.laptop__screen[data-wall="color"] .screen__wall { background: linear-gradient(145deg, #7cccff 0%, #c9a3ff 50%, #ffce8a 100%); }
.laptop__screen[data-wall="timer"] .screen__wall { background: linear-gradient(145deg, #6ea8ff 0%, #9a7bff 54%, #f0a0c8 100%); }
.laptop__screen[data-wall="now"]   .screen__wall { background: linear-gradient(145deg, #6cb2ff 0%, #a6d2ff 50%, #dbe8ff 100%); }
.screen__bar { position: absolute; top: 0; left: 0; right: 0; height: 6.5%; background: rgba(255,255,255,0.18); }
.screen__dock { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); width: 48%; height: 8%; background: rgba(255,255,255,0.24); border-radius: 9px; }

.screen__tint { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease, background-color 0.35s ease; }
/* the multiply blend is only needed where the tint is actually used */
.feat--color .screen__tint { mix-blend-mode: multiply; }
.screen__dim { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 0.12s linear; }
.screen__black {
  position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.5); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  transition: opacity 0.5s ease;
}
.screen__black.is-on { opacity: 1; pointer-events: auto; cursor: pointer; }
.screen__black.is-arming { transition: opacity var(--fade,5000ms) linear; }

/* sleep-timer countdown on the screen */
.screen__countdown { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.screen__countdown.is-on { opacity: 1; }
.screen__countdown::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.4), transparent 58%); }
.cd__ring { position: relative; width: 42%; aspect-ratio: 1; transform: rotate(-90deg); filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45)); }
.cd__track { fill: none; stroke: rgba(255,255,255,0.25); stroke-width: 5; }
.cd__prog { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.cd__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 3px; }
.cd__time { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(20px, 4.4vw, 34px); line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,0.5); font-variant-numeric: tabular-nums; }
.cd__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.72); }

/* sleep-now sequence: countdown, goodnight, wake hint.
   Inactive overlays are visibility:hidden so they never paint over the
   active one; z-index keeps the active text above the black layer. */
.screen__count { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.screen__count.is-on { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
.screen__count span { display: inline-block; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(52px, 13vw, 96px); line-height: 1; text-shadow: 0 4px 24px rgba(0,0,0,0.55); animation: countPop 0.35s ease; }
@keyframes countPop { from { transform: scale(1.35); opacity: 0.2; } to { transform: scale(1); opacity: 1; } }
.screen__goodnight { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; opacity: 0; visibility: hidden; pointer-events: none; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 7.5vw, 58px); letter-spacing: -0.01em; text-shadow: 0 4px 24px rgba(0,0,0,0.55); transition: opacity 1.5s ease, visibility 0s linear 1.5s; }
.screen__goodnight.is-in { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }
.screen__wake { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; opacity: 0; visibility: hidden; pointer-events: none; color: rgba(255,255,255,0.45); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.screen__wake.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; }
/* promote each overlay to its own layer so the light text composites
   cleanly above the opaque black screen */
.screen__count, .screen__goodnight, .screen__wake { transform: translateZ(0); }
@media (prefers-reduced-motion: reduce) { .screen__count span { animation: none; } }

/* ============================================================
   Built for macOS + closing (dark finale on home)
   ============================================================ */
.macos2 { background: #0a1120; color: #fff; padding: 96px 0; }
.macos2 .eyebrow { color: #6db2ff; }
.macos2 h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 16px; }
.macos2__lead { max-width: 60ch; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.72); margin-bottom: 40px; }
.macos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.macos__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 15px; color: rgba(255,255,255,0.9); }
.macos__item::before { content: "▸"; color: #6db2ff; }
@media (max-width: 640px) { .macos__grid { grid-template-columns: 1fr; } }

.closing { text-align: center; padding: 100px 0; }
.closing h2 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 56px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 28px; }
.home .closing { background: #060810; color: #fff; }
.home .closing h2 { color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq { border-bottom: 1px solid var(--line-soft); }
.faq > summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 18px; font-weight: 600;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq__sign { color: var(--blue); font-size: 22px; transition: transform 0.2s; flex: none; }
.faq[open] .faq__sign { transform: rotate(45deg); }
.faq__answer { padding: 0 0 24px; color: var(--muted); font-size: 15.5px; max-width: 64ch; }
.faq__answer a { color: var(--blue); }

/* section head (faq page) */
section { padding: 60px 0; }
.section-head { max-width: 40ch; margin-bottom: 46px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; margin-top: 12px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 720px; padding: 60px 0 40px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 56px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.prose .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 40px; }
.prose h2 { font-size: 15px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 38px 0 12px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose strong { color: var(--text); }
.prose a { color: var(--blue); }
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  background: var(--surface); border-radius: 10px; padding: 20px 22px; margin: 8px 0 26px;
  font-size: 16px; color: var(--text);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 46px 0; margin-top: 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer__brand { font-family: var(--font-display); font-size: 20px; }
.footer__brand b { color: var(--blue); font-weight: 600; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }
.home .footer { background: #060810; border-top-color: rgba(255,255,255,0.08); }
.home .footer__brand { color: #fff; }
.home .footer__links a { color: rgba(255,255,255,0.7); }
.home .footer__links a:hover { color: #fff; }
.home .footer__copy { color: rgba(255,255,255,0.4); }
