/* "Sunrise climb" — the lighter look Gavin and Mason picked (2026-12-02). Loaded after app.css on pages with
   <body class="sunrise">. The page starts at dusk at the very top and is daylight from the first scroll on;
   scrolling is the climb. Scroll-linked motion uses CSS scroll timelines where the browser has them, and
   everything still reads correctly (and still reveals) where it doesn't. Reduced motion turns it all off. */

body.sunrise {
  --ink-0: #ffffff; --ink-1: #ffffff; --ink-2: #f6f5ff; --ink-3: #efedff; --ink-4: #e6e3ff;
  --white: #141936; --text: #2b3050; --muted: #4c5274; --faint: #686d8f;
  --line: rgba(38, 41, 107, .10); --line-2: rgba(38, 41, 107, .18);
  --violet: #5b4bd6; --blue: #0e7490; --green: #0f8a68; --indigo: #26296b;
  --shadow: 0 1px 2px rgba(20, 25, 54, .05), 0 24px 50px -30px rgba(38, 41, 107, .35);
  color-scheme: light; background: #ffffff; color: var(--text);
}
body.sunrise ::selection { background: rgba(91, 75, 214, .2); }
body.sunrise .eyebrow { font: 600 15px/1.2 var(--font); letter-spacing: 0; text-transform: none; color: var(--violet); }
body.sunrise .h2 { letter-spacing: -.04em; }
body.sunrise .btn { background: #fff; }
body.sunrise .btn:hover { border-color: rgba(38, 41, 107, .35); }
body.sunrise .btn-primary { background: var(--indigo); color: #fff; border-color: transparent; box-shadow: 0 16px 34px -16px rgba(38, 41, 107, .75); }
body.sunrise .btn-primary:hover { background: #33379a; box-shadow: 0 20px 40px -16px rgba(38, 41, 107, .85); }
body.sunrise .btn-ghost { background: transparent; color: var(--muted); }
body.sunrise .badge.sample { color: #8a4b00; background: #fff3e2; border-color: #f1d3a8; }
body.sunrise .card, body.sunrise .panel-card { background: #fff; border-color: var(--line); }
body.sunrise .sr-tint { background: #f7f6ff; }

/* Header: on pages that open with a sky (home, and pages with a .page-hero) the bar is see-through with white
   text until you scroll; everywhere else it's a white bar from the start. */
body.sunrise .site-header { --sky: 0; }
body.sunrise .site-header.scrolled, body.sunrise:not(:has(.sr-hero, .page-hero)) .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
body.sunrise:has(.sr-hero, .page-hero) .site-header:not(.scrolled) { --white: #fff; --muted: #dcd9ff; }
body.sunrise:has(.sr-hero, .page-hero) .site-header:not(.scrolled) .nav-cta { background: #fff; color: var(--indigo); box-shadow: 0 10px 24px -12px rgba(10, 10, 50, .6); }
body.sunrise:has(.sr-hero, .page-hero) .site-header:not(.scrolled) .nav-links a:not(.nav-cta):hover { background: rgba(255, 255, 255, .1); }
body.sunrise .lockup .logo-v { fill: var(--white); }
body.sunrise .nav-links { gap: 2px; }
body.sunrise .nav-links a:not(.nav-cta):hover { background: rgba(38, 41, 107, .06); color: var(--white); }
body.sunrise .nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--white); background: rgba(38, 41, 107, .07); }
body.sunrise:has(.sr-hero, .page-hero) .site-header:not(.scrolled) .nav-links a[aria-current="page"]:not(.nav-cta) { background: rgba(255, 255, 255, .14); }
body.sunrise .nav-links .nav-login { margin-left: 10px; padding: 8px 12px; border: 0; background: transparent; color: var(--white); font-weight: 500; }
body.sunrise .nav-links .nav-cta { margin-left: 6px; height: 40px; padding: 0 16px; font-size: 14.5px; }
@media (max-width: 1140px) {
  body.sunrise .nav-links, body.sunrise:has(.sr-hero, .page-hero) .site-header:not(.scrolled) .nav-links { --white: #141936; --muted: #4c5274; background: #fff; border-color: var(--line-2); box-shadow: var(--shadow); }
  body.sunrise .nav-links a { font-size: 16px; padding: 12px 14px; }
  body.sunrise .nav-links .nav-login { margin: 6px 0 0; }
  body.sunrise .nav-links .nav-cta, body.sunrise:has(.sr-hero, .page-hero) .site-header:not(.scrolled) .nav-links .nav-cta { margin: 6px 0 0; height: 48px; background: var(--indigo); color: #fff; justify-content: center; }
  body.sunrise:has(.sr-hero, .page-hero) .site-header:not(.scrolled) .menu-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
}

/* Inner pages: a short dusk sky with a ridge line, then daylight */
body.sunrise .page-hero { position: relative; overflow: hidden; margin-top: -72px; padding: calc(72px + clamp(56px, 7vw, 100px)) 0 clamp(120px, 12vw, 170px);
  --white: #fff; --text: #ecebff; --muted: #dcd9ff; --violet: #cfe9ff;
  background: linear-gradient(180deg, #26296b 0%, #36348f 42%, #6457cf 78%, #9b8df2 100%); }
body.sunrise .page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0 50 L210 15 L380 45 L560 8 L760 55 L930 20 L1110 55 L1290 22 L1440 45 L1440 110 L0 110 Z' fill='%23c9c0ff' fill-opacity='.75'/%3E%3Cpath d='M0 80 L250 42 L470 76 L700 34 L940 82 L1180 46 L1440 72 L1440 110 L0 110 Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
body.sunrise .page-hero .aurora, body.sunrise .page-hero .grid-bg { display: none; }
body.sunrise .grad-text { background: none; color: var(--white); }
body.sunrise .page-hero .container { position: relative; z-index: 1; }
body.sunrise .page-hero .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
body.sunrise .page-hero .btn-primary { background: #fff; color: var(--indigo); border-color: transparent; }

/* Status colors that were tuned for the dark theme */
body.sunrise .badge.ok, body.sunrise .msg.ok, body.sunrise .notice.own { color: #0b6b4f; }
body.sunrise .badge.ok, body.sunrise .notice.own { background: #e6f7f0; border-color: #b5e5d3; }
body.sunrise .msg.err, body.sunrise .sev-high { color: #a3192e; } body.sunrise .sev-high { background: #fde8eb; }
body.sunrise .sev-medium, body.sunrise .notice.concept, body.sunrise .notice.draft { color: #8a4b00; } body.sunrise .sev-medium { background: #fff3e2; }
body.sunrise .notice.concept, body.sunrise .notice.draft { background: #fff7ec; border-color: #f1d3a8; }
body.sunrise .sev-low { color: #0e5a70; background: #e4f6fa; }
body.sunrise .btn-danger { color: #a3192e; }
body.sunrise .plan { background: #fff; box-shadow: var(--shadow); }
body.sunrise .plan.featured { background: linear-gradient(180deg, #f2f0ff, #fff); border-color: rgba(91, 75, 214, .45); box-shadow: 0 30px 60px -34px rgba(91, 75, 214, .55); }
body.sunrise .plan .name .badge, body.sunrise .badge.status { color: #4a3cc0; background: #ebe7ff; border-color: rgba(91, 75, 214, .3); }
body.sunrise .plan li svg { color: var(--green); }

/* Full-screen app bars (example viewer, private previews) */
body.sunrise .app-top { background: rgba(255, 255, 255, .92); border-color: var(--line); }
body.sunrise .actionbar { background: rgba(255, 255, 255, .94); border-color: var(--line-2); box-shadow: 0 -16px 40px -28px rgba(38, 41, 107, .45); }
body.sunrise .btn[disabled], body.sunrise .btn:disabled { opacity: .6; }
body.sunrise .input, body.sunrise select.input, body.sunrise textarea.input { background: #fff; }
body.sunrise select.input option, body.sunrise .try-ind option { background: #fff; color: #141936; }

/* Hero: dusk sky, a rising sun and three ridges */
.sr-hero { position: relative; margin-top: -72px; padding: calc(72px + clamp(56px, 8vw, 104px)) 0 0; min-height: 1190px; overflow: hidden; text-align: center;
  --white: #fff; --text: #ecebff; --muted: #dcd9ff;
  background: linear-gradient(180deg, #26296b 0%, #34338f 34%, #5e52c9 62%, #9b8df2 84%, #c9c0ff 100%); }
.sr-sun { position: absolute; left: 50%; top: 690px; width: 620px; height: 620px; margin-left: -310px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff6dd 0 34%, rgba(255, 216, 170, .55) 52%, rgba(255, 216, 170, 0) 70%); }
.sr-hero-copy { position: relative; z-index: 3; max-width: 1000px; }
.sr-kicker { margin: 0 0 22px; font-weight: 600; color: #cfe9ff; }
.sr-title { font-size: clamp(48px, 8vw, 118px); line-height: .95; letter-spacing: -.05em; font-weight: 800; color: #fff; text-wrap: balance; }
.sr-lead { margin: 28px auto 0; max-width: 36em; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: #e9e7ff; }
.sr-hero .try { margin-top: 36px; background: rgba(255, 255, 255, .97); border-color: transparent; box-shadow: 0 30px 70px -30px rgba(10, 10, 50, .65); }
.sr-hero .try-name { color: #141936; } .sr-hero .try-name::placeholder { color: #6b7092; }
.sr-hero .try-ind { background: #f4f3ff; color: #141936; border-color: rgba(38, 41, 107, .14); }
.sr-hero .try-ind option { background: #fff; }
.sr-hero .promises { color: #fff; font-weight: 600; font-size: 14.5px; text-shadow: 0 1px 10px rgba(20, 18, 70, .55); }
.sr-hero .promises svg { color: #9ef0d2; }
.sr-ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 420px; z-index: 2; pointer-events: none; }
.sr-r1 { fill: #7e72e6; opacity: .55; } .sr-r2 { fill: #b6abff; opacity: .75; } .sr-r3 { fill: #ffffff; }

/* The live sample site rises out of the mountains */
.sr-stage-sec { position: relative; z-index: 4; margin-top: -330px; padding: 0 0 40px; }
.sr-stage { border-radius: 22px; background: #fff; border: 1px solid rgba(38, 41, 107, .14); box-shadow: 0 70px 140px -60px rgba(30, 30, 90, .55); overflow: hidden; transform-origin: 50% 0; }
.sr-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #f6f6fb; border-bottom: 1px solid rgba(38, 41, 107, .08); }
.sr-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e6e3f5; } .sr-bar i:nth-child(1) { background: #f2b8b5; } .sr-bar i:nth-child(2) { background: #f5d98e; } .sr-bar i:nth-child(3) { background: #a8e2b9; }
.sr-bar em { margin-left: 14px; font: 500 13px var(--font); font-style: normal; color: #5a5f82; }
.sr-screen { height: clamp(320px, 46vw, 640px); }
.sr-tag { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--faint); }

/* Industries slide sideways as you scroll */
.sr-marquee { border-color: var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sr-marquee .marquee-track span { color: var(--text); font-size: 17px; font-weight: 500; }

/* How it works */
.sr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sr-step { padding: 34px; border-radius: 26px; background: #f7f6ff; border: 1px solid var(--line); }
.sr-step h3 { margin: 14px 0 10px; font-size: 30px; letter-spacing: -.03em; }
.sr-step p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.sr-step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ebe7ff; color: var(--violet); font-weight: 700; }
.sr-step-dark { background: var(--indigo); border-color: var(--indigo); --white: #fff; --muted: #d6d3ff; }
.sr-step-dark .sr-step-n { background: rgba(255, 255, 255, .14); color: #fff; }
@media (max-width: 900px) { .sr-steps { grid-template-columns: 1fr; } }

/* Examples + viewers in daylight */
body.sunrise .tab[aria-selected="true"] { background: #ebe7ff; border-color: rgba(91, 75, 214, .35); }
body.sunrise .tab:hover { background: rgba(38, 41, 107, .04); }
body.sunrise .viewer { background: #fff; border-color: var(--line-2); box-shadow: var(--shadow); }
body.sunrise .viewer-stage { background: radial-gradient(600px 300px at 50% 0%, rgba(91, 75, 214, .08), transparent 70%), #eef0f8; }
body.sunrise .viewer-stage .frame-shell { border-color: var(--line); }
body.sunrise .viewer-stage[data-device="mobile"] .frame-shell { border-color: #1a1d2c; }
body.sunrise .seg { background: #f4f3ff; }
body.sunrise .seg button[aria-pressed="true"] { background: #fff; color: var(--white); box-shadow: 0 1px 3px rgba(20, 25, 54, .15); }

/* The climb, in daylight */
.sr-climb { background: radial-gradient(760px 460px at 4% 0%, rgba(91, 75, 214, .09), transparent 70%), #fff; }
body.sunrise .trail-all { stroke: rgba(38, 41, 107, .25); }
body.sunrise .trail-lit { stroke: var(--violet); filter: drop-shadow(0 0 6px rgba(91, 75, 214, .4)); }
body.sunrise .pin { background: #fff; border-color: rgba(38, 41, 107, .3); }
body.sunrise .stn.climbed .pin { background: var(--violet); border-color: var(--violet); }
body.sunrise .stn[aria-checked="true"] { background: #f1eeff; border-color: rgba(91, 75, 214, .4); }
body.sunrise .stn[aria-checked="true"] .pin { box-shadow: 0 0 0 6px rgba(91, 75, 214, .15), 0 0 18px rgba(91, 75, 214, .5); }
body.sunrise .stn:hover { background: rgba(38, 41, 107, .04); }
body.sunrise .stn-rec { color: #4a3cc0; background: #ebe7ff; }
body.sunrise .climb-detail, body.sunrise .climb-ads { background: #fff; box-shadow: var(--shadow); }
body.sunrise .cd-cols li svg { color: var(--violet); }

/* Before/after, ads, audit, promises */
body.sunrise .ba { border-color: var(--line-2); box-shadow: var(--shadow); }
body.sunrise .inline-form { background: #fff; box-shadow: var(--shadow); }
body.sunrise .promise-grid div { background: #fff; }

/* The summit: the sun is up */
.sr-summit { position: relative; overflow: hidden; text-align: center; padding: clamp(110px, 14vw, 180px) 0;
  background: linear-gradient(180deg, #ffffff 0%, #eef8ff 55%, #e4defe 100%); }
.sr-summit-sun { position: absolute; left: 50%; bottom: -380px; width: 760px; height: 760px; margin-left: -380px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff1d6 0 30%, rgba(255, 210, 160, .5) 50%, rgba(255, 210, 160, 0) 70%); }
.sr-summit .container { position: relative; }
.sr-summit-title { margin: 0 auto 18px; max-width: 13ch; font-size: clamp(42px, 6vw, 84px); line-height: .98; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; }
body.sunrise .site-footer { background: #fff; }

/* Scroll-linked motion */
@keyframes sr-sun { from { transform: translateY(160px) scale(.9); } to { transform: translateY(-60px) scale(1.08); } }
@keyframes sr-r1 { to { transform: translateY(60px); } } @keyframes sr-r2 { to { transform: translateY(130px); } } @keyframes sr-r3 { to { transform: translateY(40px); } }
@keyframes sr-flat { from { transform: perspective(1800px) rotateX(26deg) scale(.86); } to { transform: none; } }
@keyframes sr-rail { from { transform: translateX(0); } to { transform: translateX(-38%); } }
@keyframes sr-rise { from { transform: translateY(80px) scale(.9); } to { transform: none; } }
@supports (animation-timeline: scroll()) {
  .sr-sun { animation: sr-sun linear both; animation-timeline: scroll(); animation-range: 0 800px; }
  .sr-r1 { animation: sr-r1 linear both; animation-timeline: scroll(); animation-range: 0 800px; }
  .sr-r2 { animation: sr-r2 linear both; animation-timeline: scroll(); animation-range: 0 800px; }
  .sr-r3 { animation: sr-r3 linear both; animation-timeline: scroll(); animation-range: 0 800px; }
  .sr-stage { animation: sr-flat linear both; animation-timeline: scroll(); animation-range: 0 560px; }
  .sr-marquee .marquee-track { animation: sr-rail linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  .sr-summit-sun { animation: sr-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
}
@media (max-width: 720px) {
  .sr-hero { min-height: 1060px; }
  .sr-stage-sec { margin-top: -280px; }
  .sr-sun { width: 420px; height: 420px; margin-left: -210px; top: 820px; }
}
@media (prefers-reduced-motion: reduce) {
  .sr-sun, .sr-r1, .sr-r2, .sr-r3, .sr-stage, .sr-marquee .marquee-track, .sr-summit-sun { animation: none !important; }
}

/* Accessibility fixes from the pre-launch check (2026-12-02): small grey text on tinted cards needs 4.5:1. */
body.sunrise .stn-price small { color: #565b7e; }
.viewer-bar .meta h1 { margin: 0; font: 700 14.5px/1.3 var(--font); letter-spacing: 0; color: var(--white); }
