/* The style sheet of the homepage and the sources page. System fonts only,
   and no url() to another host (R681). */

/* The colors are the dark forms of the app (Theme.swift), so that the page
   and the pictures of the app are one thing. The page is dark only, because
   the pictures are. */
:root {
  --ground: #0f1115;
  --surface: #1a1e26;
  --line: #262a33;
  --text: #e8eaf0;
  --soft: #c3c9d4;
  --muted: #9aa3b2;
  --accent: #c4b5fd;
  --accent-bright: #d8cdfe;
  --on-accent: #0f1115;
  /* The ember of the app icon. Only the lights of the page use it: the
     light of the icon and the light of the agent part. */
  --ember: #ff8a32;

  /* The page has two edges. Words start at the left one, and the pictures
     of the app end at the right one, in a rail of this width. The top bar
     keeps its name and its button on the same two edges. */
  --page: 1120px;
  --gutter: 24px;
  --rail: clamp(380px, 41.5vw, 480px);
  --gap: clamp(40px, 5vw, 64px);
  --bar: 56px;
  --section: clamp(104px, 13vw, 184px);
  --row: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  scroll-padding-top: calc(var(--bar) + 32px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgb(196 181 253 / 0.3); }

a { color: var(--accent); text-decoration: none; border-radius: 4px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }

/* The type scale. The face is the one of the app, so the weight and the
   tight spacing of the large sizes carry the look. */
h1, h2 { margin: 0; font-weight: 650; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 660; line-height: 1.03; letter-spacing: -0.026em; word-spacing: 0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.privacy h2, .get h2, .feature.spot h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.032em; }
.lead { color: var(--soft); font-size: clamp(1.125rem, 1rem + 0.55vw, 1.3125rem); line-height: 1.5; text-wrap: pretty; }
.fine { color: var(--muted); font-size: 0.875rem; line-height: 1.5; text-wrap: balance; }
/* Each fact of the small line stays whole and keeps the dot after it, so
   that a narrow screen breaks the line only after a dot. The last word stays
   with the fact before it, so that it is never alone on a line. */
.fine span { white-space: nowrap; }

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

/* Words on the left and the app on the right, from a width that leaves the
   words a column of their own. Below it, the two stack. */
.split { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr) var(--rail); column-gap: var(--gap); }
  .split > .shot, .split > .show { justify-self: end; }
}

/* The top bar. Its markup is release.SiteTopBar, which the sources page
   holds too, so only this sheet may change its look. */
.bar {
  position: sticky; top: 0; z-index: 10; height: var(--bar);
  background-color: rgb(15 17 21 / 0.8);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  backdrop-filter: saturate(150%) blur(20px);
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}
.bar-in {
  max-width: calc(var(--page) + 2 * var(--gutter)); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 650; letter-spacing: -0.015em; }
.bar nav { display: flex; align-items: center; gap: 28px; }
/* The padding of a link adds no space that shows. It makes the link easier
   to hit with a finger. */
.bar nav a { padding: 8px 0; color: var(--muted); font-size: 0.9375rem; }
.bar nav a:hover { color: var(--text); }
.bar nav a.button, .bar nav a.button:hover { color: var(--on-accent); }

/* The script marks the page while it is at its top and while a large
   download button shows. The bar is then clear, so that the light of the
   hero runs up to the edge of the window, and its small button is quiet, so
   that one button leads at a time. Without the script the bar is solid, as
   on the sources page. */
.js.top .bar {
  background-color: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.js.cta .bar nav a.button { background-color: rgb(196 181 253 / 0.14); color: var(--accent); box-shadow: none; }
.js.cta .bar nav a.button:hover { background-color: rgb(196 181 253 / 0.22); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  background-color: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.button:hover { background-color: var(--accent-bright); }
.button.small { min-height: 32px; padding: 0 14px; border-radius: 8px; font-size: 0.875rem; letter-spacing: 0; }

/* The hero. It starts under the bar, so that the light is not cut where the
   bar ends, and it clips the light, so that the page never gets wider. */
.hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  margin-top: calc(-1 * var(--bar));
  padding: calc(var(--bar) + clamp(40px, 6.5vw, 88px)) 0 clamp(64px, 8vw, 112px);
}
.hero .split { align-items: center; row-gap: 56px; }
.hero .words { min-width: 0; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: 24px; max-width: 27em; }
.hero .act { margin-top: 36px; }
.hero .fine { margin-top: 18px; }
/* The icon stands above the popover, as the menu bar icon does on the Mac. */
.show { display: grid; justify-items: center; width: fit-content; max-width: 100%; }
.hero .lamp { margin-bottom: 14px; }

/* The icon is the main light of the page: a soft glow behind it, with its
   center on the ember of the icon. The part of agent access has a weaker
   light of the same ember (.feature.spot). */
.lamp { --halo: 760px; position: relative; width: fit-content; }
.lamp::before {
  content: ""; position: absolute; z-index: -1; left: 66%; top: 29%;
  width: var(--halo); height: var(--halo); transform: translate(-50%, -50%); pointer-events: none;
  /* The steps follow the fall of a real light: strong next to its source,
     and soon weak. Fewer steps look like fog. */
  background: radial-gradient(closest-side,
    rgb(255 150 60 / 0.34), rgb(255 132 46 / 0.25) 8%, rgb(245 112 34 / 0.16) 16%,
    rgb(232 96 26 / 0.095) 26%, rgb(214 82 22 / 0.052) 38%, rgb(190 68 18 / 0.026) 52%,
    rgb(170 56 16 / 0.011) 68%, rgb(150 48 14 / 0.004) 84%, transparent);
}

/* A picture of the app. The owner asked for no box around the pictures, so
   a picture has no frame and no line around it: the box is only as large as
   the picture, with the round corners of a popover and a soft shadow. */
.shot {
  position: relative; width: fit-content; max-width: 100%; border-radius: 14px;
  box-shadow: 0 28px 56px -20px rgb(0 0 0 / 0.6), 0 10px 20px -10px rgb(0 0 0 / 0.45);
}
.shot img { border-radius: inherit; }
/* The top edge of the popover catches the light of the icon above it. */
.hero .shot::before {
  content: ""; position: absolute; z-index: 1; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent); opacity: 0.55;
}
/* A picture that is the top of a longer view fades out at its cut edge, so
   that a line of text that the cut goes through does not look like a fault. */
.shot.cut {
  --fade: 96px; box-shadow: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(#000 calc(100% - var(--fade)), transparent);
}
.shot.cut.short { --fade: 56px; }

/* What Flare checks: three short blocks under a hairline each. From a wide
   window the third block starts where the rail of the pictures starts. */
.cols { display: grid; }
.cols > div { border-top: 1px solid var(--line); padding: 20px 0 30px; }
.cols h2 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
.cols p { margin-top: 6px; max-width: 22em; color: var(--muted); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
@media (min-width: 720px) {
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .cols > div { padding-bottom: 0; }
}
@media (min-width: 1160px) {
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--rail); column-gap: var(--gap); }
}

/* The parts. Each one keeps its distance as a margin and not as padding, so
   that a link of the bar scrolls to the first words of the part. */
.features, .privacy, .faq { margin-top: var(--section); }
.feature + .feature { margin-top: var(--row); }
.feature .words { align-self: start; min-width: 0; }
.feature p {
  margin-top: 16px; max-width: 25em; color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); line-height: 1.55; text-wrap: pretty;
}
.privacy p { max-width: 34em; color: var(--soft); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem); line-height: 1.65; text-wrap: pretty; }
.faq h2 { align-self: start; }
/* Agent access sets Flare apart, so its part has more room, larger words
   and a light of its own behind its picture (owner, 2026-11-18). The light
   is the ember of the icon (owner, 2026-11-18), and its middle is weaker
   than the light of the icon, so the icon stays the main light of the page. The parts clip
   the light at their sides, so that the page never gets wider; a clip makes
   no scroll box, so the words still stay in view. The part sits below the
   parts next to it (z-index), so that the light that reaches past it goes
   behind their words and pictures and not over them. */
.features { overflow-x: clip; }
.feature.spot, .feature.spot + .feature { margin-top: calc(var(--row) * 1.5); }
.feature.spot { position: relative; isolation: isolate; z-index: -1; }
.feature.spot p { color: var(--soft); }
/* Under the words, the picture starts at the left edge and is at most
   480 px wide, so min(50%, 240px) is its middle across. 170 px above its
   bottom is its middle at full size; a smaller picture has the light a
   little higher, which does not show. */
.feature.spot::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  /* The picture covers the middle of the light, so the light is wide and
     still clear at the edges of the picture, about a third of the way out.
     The steps follow 0.32 × (1 − r)³: the curve reaches zero with no bend,
     so the eye sees no edge where the light ends. */
  width: 1400px; height: 1400px; left: min(50%, 240px); bottom: 170px; transform: translate(-50%, 50%);
  background: radial-gradient(closest-side,
    rgb(255 150 60 / 0.32), rgb(247 142 56 / 0.249) 8%, rgb(238 134 53 / 0.19) 16%,
    rgb(230 126 49 / 0.14) 24%, rgb(221 117 45 / 0.101) 32%, rgb(213 109 42 / 0.069) 40%,
    rgb(205 101 38 / 0.045) 48%, rgb(196 93 34 / 0.027) 56%, rgb(188 85 31 / 0.015) 64%,
    rgb(179 77 27 / 0.007) 72%, rgb(171 68 23 / 0.003) 80%, rgb(163 60 20 / 0.001) 88%,
    transparent 96%);
}
/* The top edge of the picture catches the light, as the popover of the
   hero catches the light of the icon. */
.feature.spot .shot::before {
  content: ""; position: absolute; z-index: 1; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent); opacity: 0.55;
}
@media (min-width: 880px) {
  /* Next to the words, the center of the light is the middle of the rail. */
  .feature.spot::before { left: auto; bottom: auto; right: calc(var(--rail) / 2); top: 50%; transform: translate(50%, -50%); }
}

@media (min-width: 880px) {
  /* The words stay in view while a tall picture goes by. */
  .feature .words, .faq h2 { position: sticky; top: calc(var(--bar) + 40px); }
  .feature .words { padding-top: 10px; }
}

/* The questions */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; border-radius: 6px; cursor: pointer; list-style: none; font-weight: 500; letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
/* The plus is two lines. The upright one shrinks to nothing when the answer
   is open, which leaves a minus. */
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; color: var(--muted);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
}
.faq details[open] summary::after { background-size: 12px 1.5px, 1.5px 0; }
.faq summary:hover::after { color: var(--accent); }
.faq details p { max-width: 34em; padding: 0 44px 24px 0; color: var(--muted); text-wrap: pretty; }
/* A link inside a sentence has a line under it, because its color alone is
   too close to the color of the words around it. */
.faq p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(196 181 253 / 0.5); }
.faq p a:hover { text-decoration-color: currentColor; }

/* The last part: the download again, in the middle, under the icon. The
   part clips the light, so the room above the icon is never less than the
   light needs to fade out: a smaller room shows the cut as a line. */
.get {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding: max(var(--section), 172px) 0 calc(var(--section) * 0.8); text-align: center;
}
.get .lamp { --halo: 520px; margin: 0 auto 24px; }
.get .act { margin-top: 36px; }
.get .fine { margin-top: 18px; }

/* The footer */
.foot { border-top: 1px solid var(--line); padding: 22px 0 42px; }
.foot-in {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; gap: 0 32px; justify-content: center;
}
.foot a { padding: 6px 0; color: var(--muted); font-size: 0.9375rem; }
.foot a:hover { color: var(--text); }

/* The sources page: a text column and its parts */
.doc { max-width: 760px; margin: 0 auto; padding: 96px var(--gutter) 120px; }
.doc h1 { font-size: 2.4rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.7rem; margin: 80px 0 24px; }
.doc h3 { font-size: 1.25rem; margin: 56px 0 14px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--soft); overflow-wrap: anywhere; }
.doc p + p { margin-top: 18px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 10px; }
.doc li p { margin-top: 10px; }
.doc a:hover { text-decoration: underline; }
.doc code { background: var(--surface); border-radius: 5px; padding: 1px 6px; font-size: 0.9em; }

/* Moving parts: only with the script, and only when the person has not asked
   for less motion. With either missing, every part shows and nothing moves,
   not even a color. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  a, .faq summary::after {
    transition: color 0.2s ease, background-color 0.2s ease, text-decoration-color 0.2s ease, background-size 0.25s var(--ease), transform 0.1s ease;
  }
  .bar { transition: background-color 0.3s ease, border-color 0.3s ease; }
  .button:active { transform: scale(0.98); }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.shown { opacity: 1; transform: none; }

  /* The one moment of the page: the words come in line by line, the icon
     lights up, and the popover opens downward from it, as on the Mac. */
  .js .hero .lead.reveal { transition-delay: 0.07s; }
  .js .hero .act.reveal { transition-delay: 0.14s; }
  .js .hero .fine.reveal { transition-delay: 0.21s; }
  .js .hero .lamp.reveal { transform: scale(0.86); transition-duration: 1.1s; transition-delay: 0.1s; }
  .js .hero .lamp.reveal.shown { transform: none; }
  .js .hero .shot.reveal { transform: translateY(-16px) scale(0.96); transform-origin: 50% 0; transition-delay: 0.3s; }
  .js .hero .shot.reveal.shown { transform: none; }

  .js .cols > .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .cols > .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .feature .shot.reveal { transition-delay: 0.1s; }

  /* An answer opens over a short time where the browser can do that. */
  @supports (interpolate-size: allow-keywords) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0; overflow: hidden; overflow: clip;
      transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

@media (max-width: 860px) {
  .bar nav { gap: 18px; }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .bar nav a[href$="#features"] { display: none; }
  .lamp { --halo: 560px; }
}
