/* FocusBerry: brand colours (brand/colors.json), system type (the brand's rule). */
:root {
  --ink: #18234A;
  --ink-soft: #4A5474;
  --cobalt: #3867E8;
  --violet: #6F42C1;
  --pearl: #F6F8FF;
  --mist: #DDE3F6;
  --card: #FFFFFF;
  --bar: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 60px -20px rgba(24, 35, 74, 0.28);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EEF1FC;
    --ink-soft: #A9B2D0;
    --cobalt: #8DAAFF;
    --violet: #B79BF2;
    --pearl: #0F1630;
    --mist: #2A3458;
    --card: #182042;
    --bar: rgba(24, 32, 66, 0.72);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* The Mac's menu bar, with Focus Berry's ring counting down. */
.menubar {
  position: sticky; top: 0; z-index: 2;
  height: 32px;
  background: var(--bar);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 0.5px solid var(--mist);
  font-size: 13px;
}
.menubar .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.menubar .brand { display: flex; align-items: center; height: 100%; }
.menubar .brand img { height: 15px; width: auto; }
@media (prefers-color-scheme: dark) { .menubar .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.6); } }
.menubar nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.menubar nav a { color: var(--ink); text-decoration: none; }
.menubar nav a:hover { color: var(--cobalt); }
.ring { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 600; }
.ring svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.ring .track { stroke: var(--mist); }
.ring .fill { stroke: var(--cobalt); stroke-dasharray: 44; stroke-dashoffset: 9; }
@media (prefers-reduced-motion: no-preference) {
  .ring .fill { animation: drain 2.4s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes drain { from { stroke-dashoffset: 0; } }
}

/* Hero: the headline on the left; on the right, the start sheet hangs from the ring. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 56px; align-items: start; padding: 72px 0 96px; }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 750;
  max-width: 11ch;
}
.hero .lede { margin: 28px 0 0; font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 34ch; }
.status { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: var(--pearl);
  font-weight: 600; font-size: 15px;
}
.status .note { color: var(--ink-soft); font-size: 15px; }
.sheet { position: relative; margin-top: -40px; }
.sheet img.ui { border-radius: 20px; box-shadow: var(--shadow); }
.sheet .owl {
  position: absolute; width: 180px; left: -168px; bottom: -64px;
  filter: drop-shadow(0 16px 24px rgba(24, 35, 74, 0.25));
}

/* A session, in order. */
section { padding: 88px 0; border-top: 0.5px solid var(--mist); }
section h2 { margin: 0 0 44px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; max-width: 18ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 50%; border: 1.5px solid var(--cobalt); color: var(--cobalt);
  font-weight: 700; font-size: 15px;
}
.steps h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 32ch; }

/* Leaving early: the app's own strictness meter. */
.modes { margin: 0; padding: 0; list-style: none; max-width: 760px; }
.modes li { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 0.5px solid var(--mist); }
.modes li:last-child { border-bottom: 0; }
.modes b { font-size: 18px; }
.modes .pro { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--violet); }
.modes span.d { display: block; color: var(--ink-soft); }
.meter { display: flex; align-items: flex-end; gap: 4px; height: 22px; }
.meter i { width: 5px; border-radius: 2px; background: var(--mist); }
.meter i:nth-child(1) { height: 7px; } .meter i:nth-child(2) { height: 10px; } .meter i:nth-child(3) { height: 14px; }
.meter i:nth-child(4) { height: 18px; } .meter i:nth-child(5) { height: 22px; }
.meter i.on { background: var(--cobalt); }

.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.promise p { margin: 0 0 16px; color: var(--ink-soft); max-width: 46ch; }

footer { padding: 40px 0 56px; border-top: 0.5px solid var(--mist); font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }

/* Legal pages. */
.doc { padding: 64px 0 96px; }
.doc article { max-width: 68ch; }
.doc h1 { margin: 0 0 8px; font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.035em; line-height: 1.05; }
.doc .updated { color: var(--ink-soft); margin: 0 0 40px; }
.doc h2 { margin: 44px 0 12px; font-size: 22px; letter-spacing: -0.015em; }
.doc h3 { margin: 28px 0 8px; font-size: 18px; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-left: 1.2em; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 0.5px solid var(--mist); }
.doc th { font-weight: 600; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; }
  .sheet { margin: 0 auto; max-width: 380px; }
  .sheet .owl { width: 104px; left: -14px; bottom: -64px; }
  .steps, .promise { grid-template-columns: 1fr; gap: 32px; }
  .menubar nav a.hide-sm { display: none; }
  section { padding: 64px 0; }
}
