/* sonday.ai: the public homepage and the privacy policy. Plain CSS, no build step.
   The look is the app's (apps/app/src/app.css, D119), so the site and the product read as one: the
   Sunday P/ALE can, a white page (the lid), the can's orange as one bold block with black type on
   it (the body), near-black for structure (the pull tab), and one family, Archivo, whose width
   setting gives the wide capitals of the can's label. The font is served from this site (fonts/,
   SIL Open Font License), never from a third party. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  --ink: #121212; --text: #2B2B2B; --muted: #666666;
  --line: #DADADA; --line2: #ECECEC; --bg: #FAFAF9; --bg2: #F2F2F0; --surface: #FFFFFF;
  --accent: #E5621F;
  --accent-text: #B8470F;
  --stage: #121212; --stage-line: transparent;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5F5F4; --text: #D9D9D6; --muted: #A3A3A0;
    --line: #333333; --line2: #282828; --bg: #141414; --bg2: #1A1A1A; --surface: #1F1F1F;
    --accent-text: #FF8A4C;
    --stage: #0C0C0C; --stage-line: #282828;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: 'kern', 'liga';
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-weight: 650; font-stretch: 108%; letter-spacing: -.02em; }
h3 { font: 600 1.125rem/1.35 var(--sans); }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 10; background: var(--surface); color: var(--ink); padding: 8px 12px; }

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

/* Header: the mark, the name, the way into the app (Sign in) and the way to reach us (an email).
   On the narrowest phones the two links wrap under the name rather than overflow. */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand span { font-size: 1.25rem; font-weight: 650; line-height: 1; font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; }
.links { display: flex; align-items: center; gap: 8px 20px; margin-left: auto; }
.signin { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; color: var(--ink); text-decoration: none; }
.signin:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .links { gap: 8px 14px; }
  .top .button.quiet { padding: 0 12px; }
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
}
.button.quiet { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); color: var(--ink); background: transparent; }
.button.quiet:hover { border-color: var(--ink); }

/* Hero: the claim and what Sonday is, then the stage where Daybreak rises: the mark's sun and its
   two offset horizon strokes, drawn large in the mark's proportions (a unit --u is one of the
   mark's 32), over the words "Coming soon". */
.hero { padding-top: clamp(32px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem); line-height: 1.02; letter-spacing: -.025em;
  max-width: 13em; text-wrap: balance;
}
.hero .lead { margin-top: 26px; max-width: 36em; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.55; color: var(--text); }

.stage {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--stage); border: 1px solid var(--stage-line);
  border-radius: clamp(18px, 2.5vw, 32px);
  padding: clamp(72px, 12vw, 160px) var(--gutter) clamp(56px, 9vw, 120px);
  display: flex; flex-direction: column; align-items: center;
}
.daybreak { --u: clamp(12px, 2.6vw, 30px); width: calc(18 * var(--u)); }
/* The sun rises from behind the first stroke: the sky clips it while it is below the horizon. */
.sky { margin-left: calc(2 * var(--u)); width: calc(16 * var(--u)); height: calc(8 * var(--u)); overflow: hidden; }
.sun {
  width: 100%; height: 100%; background: var(--accent); border-radius: 999px 999px 0 0;
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) .2s both;
}
.horizon { height: calc(3 * var(--u)); border-radius: calc(1.5 * var(--u)); background: var(--accent); }
.horizon:nth-child(2) { margin-top: calc(2 * var(--u)); width: calc(14 * var(--u)); }
.horizon:nth-child(3) { margin-top: var(--u); margin-left: calc(3 * var(--u)); width: calc(15 * var(--u)); }
.soon {
  margin-top: clamp(40px, 6vw, 72px); color: #F5F5F4;
  font-size: clamp(.875rem, .75rem + .5vw, 1.125rem); font-weight: 600; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .24em; font-stretch: 118%;
  animation: appear 1s ease 1.4s both;
}
@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sun, .soon { animation: none; } }

/* Footer: the company, and the two strokes of the mark's horizon. */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-top: 32px; padding-bottom: 40px; }
.foot address { font-style: normal; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot strong { color: var(--ink); font-weight: 600; }

/* The privacy policy: one readable column. */
.doc { max-width: calc(44rem + 2 * var(--gutter)); padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.05; }
.doc .updated { margin-top: 12px; color: var(--muted); }
.doc h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.15; font-weight: 600; font-stretch: 104%; letter-spacing: -.01em; margin-top: 48px; }
.doc h3 { margin-top: 28px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent-text); }
.doc .limited { margin-top: 20px; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--bg2); border-radius: 0 8px 8px 0; color: var(--ink); }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
