/* sunny.site — the app's tokens (apps/app/lib/ui/tokens): navy canvas, Nunito,
   3D buttons on a 4 px darker edge, r20 / r28 corners, 4-pt grid. */
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/fonts/nunito-regular.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/fonts/nunito-semibold.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/nunito-extrabold.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(/fonts/nunito-black.woff2) format('woff2'); }

:root {
  --navy: #101b34;
  --navy-deep-top: #161429;
  --navy-deep-bottom: #151626;
  --card: #232b45;
  --card-border: #3a4262;
  --teal: #7cd1e4;
  --teal-edge: #5cb2c6;
  --yellow: #fdb809;
  --yellow-edge: #e39d00;
  --navy-button: #25365d;
  --navy-button-edge: #172443;
  --ink: #1b2236;
  --white: #fff;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-10: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 17px/1.6 Nunito, ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--white);
  background: var(--navy) linear-gradient(180deg, var(--navy-deep-top) 0%, var(--navy) 480px) no-repeat;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* Top bar */
.top { padding: 20px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 900; font-size: 24px; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--white-70); text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--white); background: var(--white-10); }

/* Hero */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.01em; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .sub { margin: 20px 0 0; font-size: 20px; font-weight: 600; color: var(--white-70); max-width: 32em; }
.hero .art { position: relative; justify-self: center; width: min(100%, 400px); }
.hero .art::before { content: ''; position: absolute; inset: 8% 4% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 209, 228, 0.28), transparent); }
.hero .art img { position: relative; }
.cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--white-50); }

/* 3D button (BSButton): face on a 4 px darker edge, pressed = the edge collapses */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 20px;
  font: 900 16px/1 Nunito, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-edge);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-edge); }
.btn.navy { color: var(--white); background: var(--navy-button); box-shadow: 0 4px 0 var(--navy-button-edge); }
.btn.navy:active { box-shadow: 0 2px 0 var(--navy-button-edge); }

/* Cards */
.cards { padding: 0 0 72px; }
.cards .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 28px; padding: 24px; }
.card img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 16px; }
.card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.card p { margin: 0; color: var(--white-70); font-size: 16px; }

/* Documents (privacy, terms, support) */
.doc { padding: 24px 0 72px; }
.doc h1 { margin: 0 0 12px; font-weight: 900; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
.doc .meta { margin: 0 0 32px; color: var(--white-50); font-size: 15px; font-weight: 600; }
.doc h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 900; line-height: 1.25; scroll-margin-top: 24px; }
.doc p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.86); }
.doc address { font-style: normal; color: rgba(255, 255, 255, 0.86); }
.doc .toc { margin: 0 0 8px; padding: 20px 24px; background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; columns: 2; column-gap: 32px; list-style: none; font-size: 15px; font-weight: 600; }
.doc .toc li { margin: 0 0 6px; break-inside: avoid; }
.doc .toc a { text-decoration: none; }
.doc .panel { background: var(--card); border: 1px solid var(--card-border); border-radius: 28px; padding: 24px; margin: 0 0 16px; scroll-margin-top: 24px; }
.doc .panel h2 { margin-top: 0; }
.doc .panel p:last-child, .doc .panel ol:last-child { margin-bottom: 0; }
.doc ol { margin: 0 0 16px; padding-left: 24px; color: rgba(255, 255, 255, 0.86); }
.doc ol li { margin-bottom: 6px; }

/* Footer */
.foot { margin-top: auto; border-top: 1px solid var(--white-10); padding: 32px 0 40px; font-size: 14px; color: var(--white-50); }
.foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; align-content: flex-start; }
.foot a { color: var(--white-70); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--white); }

@media (max-width: 760px) {
  .hero { padding-top: 16px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero .art { order: -1; width: min(72%, 300px); }
  .hero .sub { margin-inline: auto; font-size: 18px; }
  .cta { justify-content: center; }
  .cards .wrap { grid-template-columns: 1fr; }
  .doc .toc { columns: 1; }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { padding: 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
