/* SunnyOrbit — shared styles for every company page.
 *
 * Tokens are the `so-*` variables from the pen.dev document, verbatim. Page-
 * specific layout lives in assets/css/pages/<page>.css; this file holds only
 * what two or more pages share: type, buttons, cards, the nav pill, the
 * footer, the legal-page layout and the scroll motion.
 *
 * Nothing here loads anything from anywhere else.
 */

/* ------------------------------------------------------------ tokens */

:root {
  --bg: #F1F2F4;
  --surface: #FFFFFF;
  --ink: #0D0F12;
  --ink-2: #6A7280;
  --ink-3: #A3A9B3;
  --line: #E6E8EC;

  --sun: #FF6B35;
  --amber: #FFC24B;
  --violet: #8B5CF6;
  --sky: #3BBDF5;
  --mint: #34D399;

  /* 135deg pairs, as drawn on the design's icon tiles. */
  --g-sun: linear-gradient(135deg, #FF6B35, #FFC24B);
  --g-amber: linear-gradient(135deg, #FFC24B, #FF6B35);
  --g-violet: linear-gradient(135deg, #8B5CF6, #3BBDF5);
  --g-sky: linear-gradient(135deg, #3BBDF5, #34D399);
  --g-mint: linear-gradient(135deg, #34D399, #3BBDF5);
  --g-mint-amber: linear-gradient(135deg, #34D399, #FFC24B);
  --g-sky-violet: linear-gradient(135deg, #3BBDF5, #8B5CF6);

  --shadow: 0 8px 32px rgba(13, 15, 18, 0.08);
  --shadow-nav: 0 6px 24px rgba(13, 15, 18, 0.08);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Space Grotesk', var(--font);

  --content: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Anything the owner still has to supply. Loud on purpose. */
.fill {
  background: #FFF1C9; border-bottom: 2px solid var(--sun); color: var(--ink);
  padding: .05em .3em; border-radius: 3px; font-weight: 600;
}

/* -------------------------------------------------------- typography */

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h1 { font-family: var(--display); font-size: clamp(42px, 6.6vw, 88px); letter-spacing: -0.04em; line-height: 1.0; }
.h2 { font-family: var(--display); font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.035em; line-height: 1.04; }
.h3 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-3);
}
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sun); }
.lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--ink-2); }

/* Heading on the left, a short paragraph on the right, bottom-aligned. */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 60px;
}
.sec-head > p { max-width: 440px; color: var(--ink-2); font-size: 17px; line-height: 1.65; }

/* ----------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 51px; padding: 14px 30px; border-radius: 28px;
  border: 1px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sun { background: var(--sun); color: #fff; box-shadow: 0 8px 24px rgba(255, 107, 53, .28); }
.btn--sun:hover { background: #FF7A49; }
.btn--light { background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 600; }
.btn--light:hover { border-color: var(--ink-3); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #20242B; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 24px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .15s ease;
}
.pill-btn--soft { background: var(--bg); color: var(--ink); }
.pill-btn--soft:hover { background: #E6E8EC; }
.pill-btn--ink { background: var(--ink); color: #fff; }
.pill-btn--ink:hover { background: #20242B; }

/* Small status pill: "Available", "In design", "Coming later". */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  background: var(--bg); color: var(--ink-2);
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status--live { background: #E5F8F0; color: #0F7A55; }
.status--live::before { background: var(--mint); }

/* ------------------------------------------------------ cards, tiles */

.card {
  background: var(--surface); border-radius: 30px; box-shadow: var(--shadow);
  padding: 32px;
}
.panel {
  background: var(--surface); border-radius: 32px; box-shadow: var(--shadow);
}
.panel--dark { background: var(--ink); color: #F6F7F9; }
.panel--dark .muted, .panel--dark .lede { color: #A3A9B3; }

/* The gradient icon tiles. Size via --s. */
.tile {
  --s: 60px;
  width: var(--s); height: var(--s); flex: none;
  display: grid; place-items: center;
  border-radius: calc(var(--s) * .36);
  color: #fff; background: var(--g-sun);
  box-shadow: 0 10px 24px rgba(13, 15, 18, .12);
}
.tile svg { width: calc(var(--s) * .42); height: calc(var(--s) * .42); }
.tile--amber { background: var(--g-amber); }
.tile--violet { background: var(--g-violet); }
.tile--sky { background: var(--g-sky); }
.tile--mint { background: var(--g-mint); }
.tile--mint-amber { background: var(--g-mint-amber); }
.tile--sky-violet { background: var(--g-sky-violet); }
.tile--neutral { background: var(--bg); color: var(--ink-3); box-shadow: none; }

.pooled-icon { flex: none; filter: drop-shadow(0 10px 22px rgba(13, 15, 18, .18)); }

/* ---------------------------------------------------------------- nav */

.site-header { padding: 28px var(--gutter) 0; position: relative; z-index: 20; }
.nav-pill {
  position: relative;
  width: max-content; max-width: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: 30px;
  padding: 10px 10px 10px 24px;
  background: var(--surface); border-radius: 40px; box-shadow: var(--shadow-nav);
}
.so-lockup {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
}
.sun-mark {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #FFC24B, #FF6B35);
}
.so-wordmark { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.so-lockup--lg { gap: 9px; }
.so-lockup--lg .sun-mark { width: 28px; height: 28px; }
.so-lockup--lg .so-wordmark { font-size: 20px; letter-spacing: -0.5px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.nav-links a[aria-current='page'] { font-weight: 700; }
.nav-actions { display: flex; gap: 8px; }
.nav-actions a[aria-current='page'] { box-shadow: inset 0 0 0 1.5px var(--ink); }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--bg); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-panel {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  flex-direction: column; padding: 10px; gap: 2px;
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow);
}
.nav-panel a:not(.pill-btn) {
  padding: 14px 16px; border-radius: 14px; font-weight: 600; text-decoration: none;
}
.nav-panel a:not(.pill-btn):hover { background: var(--bg); }
.nav-panel .pill-btn { justify-content: center; padding: 14px; margin-top: 6px; }

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

.site-footer { padding: 40px 40px 28px; }
.footer-panel {
  position: relative; overflow: hidden;
  max-width: 1360px; margin-inline: auto;
  background: var(--surface); border-radius: 32px;
  padding: 60px 60px 0;
}
.footer-row { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 48px; }
.footer-brand { width: 320px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.footer-email { font-size: 15px; font-weight: 600; text-decoration: none; }
.footer-email:hover { color: var(--sun); }
.footer-col { display: flex; flex-direction: column; gap: 13px; min-width: 120px; }
.footer-col h2 { font-family: var(--font); font-size: 15px; font-weight: 700; line-height: 1.4; }
.footer-col a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  position: relative; z-index: 1;
  margin-top: 40px; max-width: 640px; font-size: 13px; line-height: 1.6; color: var(--ink-3);
}

/* The giant wordmark at the foot of the card. It rises into the panel and
   comes into focus as the footer scrolls into view: site.js sets --p from 0
   (footer just entering) to 1 (bottom of the page), and blur and offset are
   both read from it. With no script, or with reduced motion, --p stays 1 and
   the wordmark is simply sharp.

   It sits in normal flow rather than absolutely positioned, so the panel
   grows to fit it at every width; only the descender of the "y" is cut by
   the panel's bottom edge, which is what makes it read as a sunrise. */
.footer-wordmark {
  --p: 1;
  position: relative; display: block;
  margin: 36px 0 -0.13em -0.04em;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(52px, 14.5vw, 210px); letter-spacing: -0.04em; line-height: 1;
  color: var(--sun);
  filter: blur(calc((1 - var(--p)) * 18px));
  transform: translateY(calc((1 - var(--p)) * 0.35em));
  opacity: calc(0.35 + var(--p) * 0.65);
  white-space: nowrap; pointer-events: none; user-select: none;
  will-change: filter, transform;
}
.footer-bar {
  max-width: 1360px; margin: 20px auto 0; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.footer-domain { font-weight: 600; color: var(--ink-2); }

/* ------------------------------------------------- page top + CTA */

.page-hero { padding-top: clamp(56px, 7vw, 92px); }

/* ----------------------------------------------------- legal pages */

/* padding-block only: the hero usually also carries .wrap, whose side gutter
   a padding shorthand here would silently remove. */
.legal-hero { padding-block: clamp(56px, 7vw, 88px) clamp(36px, 4vw, 56px); }
.legal-hero .h1 { font-size: clamp(40px, 5.6vw, 72px); margin-top: 14px; }
.legal-hero p { margin-top: 16px; color: var(--ink-2); }

.legal {
  display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start;
  padding-bottom: 40px;
}
.legal-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.legal-aside .card { padding: 24px; border-radius: 24px; }
.legal-aside h2 { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-3); }
.legal-aside ol, .legal-aside ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.legal-aside a { font-size: 14px; color: var(--ink-2); text-decoration: none; line-height: 1.4; display: block; }
.legal-aside a:hover { color: var(--sun); }

.prose { background: var(--surface); border-radius: 32px; box-shadow: var(--shadow); padding: clamp(28px, 4vw, 56px); }
.prose > section + section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.prose > .summary + section { margin-top: 36px; }
.prose h2 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -0.02em; scroll-margin-top: 24px; }
.prose h3 { font-size: 17px; margin-top: 24px; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.prose li { position: relative; padding-left: 22px; }
.prose ul > li::before {
  content: ''; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px;
  background: var(--sun); border-radius: 2px;
}
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; padding-left: 28px; }
.prose ol > li::before { content: counter(n) '.'; position: absolute; left: 0; font-weight: 700; color: var(--sun); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--sun); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose th { color: var(--ink); font-weight: 700; background: var(--bg); }
.prose .summary { background: var(--bg); border-radius: 20px; padding: 22px 24px; margin-top: 0; }
.prose .summary p:first-child { margin-top: 0; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--bg); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ motion */

/* Reveal-on-scroll, per the design's motion sheet. Hidden only once the
   script has marked the page `js`, so with no script everything is simply
   there. site.js adds .is-in when about 15% of the element is visible. */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal='nav'] { transform: translateY(-12px); transition-duration: .5s; }
.js [data-reveal='pop'] { transform: scale(.9); }
.js [data-reveal='card'] { transform: translateY(32px) scale(.97); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* -------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .footer-row { flex-wrap: wrap; }
  .footer-brand { width: 100%; }
  .legal { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
}

@media (max-width: 860px) {
  .nav-pill { width: 100%; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-pill[data-open='true'] .nav-panel { display: flex; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer { padding: 24px 12px 20px; }
  .footer-panel { padding: 40px 24px 0; border-radius: 28px; }
  .footer-row { gap: 32px 40px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .card { padding: 24px; border-radius: 24px; }
  .prose { border-radius: 24px; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose td { border: 0; padding: 4px 0; }
  .prose tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}

@media print {
  .site-header, .site-footer, .legal-aside, .skip-link { display: none; }
  body { background: #fff; }
  .prose { box-shadow: none; padding: 0; }
}
