/* ==========================================================================
   Sillby — palette lifted from the app itself: #2A9D8A is the launcher icon
   background, #0B2A26 the notification cards drawn on it.
   ========================================================================== */

:root {
  /* Straight from the launcher icon vector (ic_launcher_foreground.xml v2
     over ic_launcher_background.xml), so the site and the store listing are
     the same green. */
  --teal: #2a9d8a;
  --teal-bright: #3edcc0;
  --ink: #0b2a26;
  --paper: #e8f5f0;

  --text: #e8f5f0;
  --muted: #9fbdb5;
  --line: rgba(62, 220, 192, 0.2);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--teal-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  padding-block: 22px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  color: #fff;
}

/* The icon's bottom band is #0B2A26, the same colour as the page, so without
   a ring its lower edge dissolves into the background. */
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(62, 220, 192, 0.35);
}

.by {
  margin-left: auto;
  font-size: 0.84rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(36px, 7vw, 76px) clamp(48px, 8vw, 88px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.hero h1,
.hero--flip h2 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
}

.hero p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--teal);
  color: #04201b;
  border: 1px solid var(--teal);
  transition: all 0.22s var(--ease);
}

.btn:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  color: #04201b;
  transform: translateY(-2px);
}

.btn[aria-disabled="true"] {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

.cta small {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ==========================================================================
   The mockups — six drawn lock screens: the two heroes and the four in the
   comparison. Drawn, never screenshotted: three of those interfaces belong to
   other companies.

   Every number below is the output of tools/hero-editor.html, which draws
   these same components and reports where each one sits. Two units carry the
   whole system:

     --p   one screen pixel — where a layer sits
     --u   one content pixel — everything drawn inside a layer. The small
           screens draw their content at 62%, so there --u is 0.62 × --p.

   Both are container units declared on the layers, not on the screen: an
   element can't query its own size, so cqw has to be used one level in. That
   makes every screen scale as a whole with its own width, and none of this
   needs a media query.
   ========================================================================== */

.screen {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  border: 1px solid var(--line);
}

.layer {
  position: absolute;
  margin: 0;
  top: calc(var(--y) * var(--p));
  left: calc(var(--x, 0) * var(--p));
}

/* Centred by its own box rather than by a hardcoded x: the clock is text, and
   its width depends on whichever font the visitor's system hands us. */
.layer--c {
  left: 50%;
  transform: translateX(-50%);
}

.phone {
  justify-self: center;
  width: min(100%, 252px);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  background:
    radial-gradient(120% 80% at 20% 15%, #1d5449, transparent 60%),
    radial-gradient(100% 70% at 85% 90%, #123c35, transparent 60%),
    linear-gradient(180deg, #14453d, #0a231f);
}

/* 250, not 252: the container query box is the padding box, so the 1px border
   is outside it — and that inner box is also where the editor's origin sits.
   Same reason the small screens divide by 136 instead of 138. */
.phone .layer {
  --p: calc(100cqw / 250);
  --u: var(--p);
}

.mini {
  width: 100%;
  max-width: 138px;
  margin-inline: auto;
  aspect-ratio: 9 / 17;
  border-radius: 18px;
  background:
    radial-gradient(120% 70% at 25% 12%, #23615a, transparent 62%),
    linear-gradient(180deg, #14453d, #0a231f);
}

.mini .layer {
  --p: calc(100cqw / 136);
  --u: calc(0.62 * 100cqw / 136);
}

/* --- The pieces ----------------------------------------------------------- */

.clock {
  display: grid;
  justify-items: center;
  white-space: nowrap;
  font-size: calc(var(--fs) * var(--u));
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #fff;
}

.clock--one {
  display: block;
}

.note {
  display: flex;
  align-items: center;
  width: calc(var(--cw) * var(--u));
  gap: calc(9 * var(--u));
  padding: calc(var(--pad) * var(--u)) calc(10 * var(--u));
  border-radius: calc(13 * var(--u));
  background: rgba(11, 42, 38, 0.82);
  border: 1px solid var(--line);
}

.note + .note {
  margin-top: calc(var(--gap, 7) * var(--u));
}

.note span {
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
  border-radius: 50%;
  background: var(--teal-bright);
  flex: none;
}

.note + .note span {
  opacity: 0.55;
}

.note div {
  flex: 1;
  display: grid;
  gap: calc(5 * var(--u));
}

.note i {
  display: block;
  height: calc(5 * var(--u));
  border-radius: calc(3 * var(--u));
  background: rgba(232, 245, 240, 0.5);
}

.note i:last-child {
  width: 58%;
  background: rgba(232, 245, 240, 0.24);
}

/* A system widget: neutral, and behind everything — which is the whole point
   of the third comparison panel, where the cards land on top of it. */
.widget {
  width: calc(var(--ww) * var(--u));
  height: calc(var(--wh) * var(--u));
  padding: calc(7 * var(--u)) calc(8 * var(--u));
  border-radius: calc(9 * var(--u));
  background: rgba(232, 245, 240, 0.1);
  border: 1px solid rgba(232, 245, 240, 0.14);
  display: grid;
  align-content: start;
  gap: calc(5 * var(--u));
}

.widget i,
.widget s {
  display: block;
  border-radius: calc(3 * var(--u));
  text-decoration: none;
}

.widget i {
  height: calc(5 * var(--u));
  width: 52%;
  background: rgba(232, 245, 240, 0.5);
}

.widget s {
  height: calc(4 * var(--u));
  width: 78%;
  background: rgba(232, 245, 240, 0.26);
}

.widget s + s {
  width: 60%;
}

/* Everything that arrived, reduced to a row of identical dots. */
.pill {
  display: flex;
  align-items: center;
  gap: calc(5 * var(--u));
  padding: calc(5 * var(--u)) calc(9 * var(--u));
  border-radius: 999px;
  background: rgba(232, 245, 240, 0.14);
}

.pill i {
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  border-radius: 50%;
  background: rgba(232, 245, 240, 0.72);
}

.pill i.pill-dim {
  width: calc(4 * var(--u));
  height: calc(4 * var(--u));
  opacity: 0.6;
}

/* The tab: the thing the app is named for. The silhouette is the app's own
   FLARE_INTENSE curve, ported from buildTabPath in AccessibilityTab.kt — a
   shoulder and a ramp meeting at a 24.8-degree shared tangent, which no corner
   radius reproduces. The curve comes from the tab's height alone; widening it
   only stretches the flat top, as on the device.

   Drawn as SVG rather than a clip-path so it can carry the same fill and 1px
   edge as the cards above — a CSS border would be clipped away. The edge path
   skips the bottom segment, matching buildTabOutlinePathExcludingBottom: that
   side sits against the screen and a line there says nothing. And it has to
   sit flush with the bottom edge, or that skipped side reappears as a border
   floating above it. */
.tab {
  width: calc(var(--tw) * var(--u));
  height: calc(var(--th) * var(--u));
  color: var(--teal-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--u));
  padding-inline: calc(21 * var(--u));
}

.tab-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tab-fill {
  fill: rgba(11, 42, 38, 0.82);
}

.tab-edge {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.tab svg:not(.tab-shape) {
  position: relative;
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  flex: none;
}

.tab b {
  position: relative;
  font-size: calc(7 * var(--u));
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Where each piece sits, screen by screen ------------------------------ */

/* Hero 1 — wallpaper, clock, tab. Nothing else. */
.sc-h1 .clock { --y: 141; --fs: 90; }
.sc-h1 .tab { --y: 423; --tw: 134; --th: 25; }

/* Hero 2 — the panel open, so the clock is behind it. */
.sc-h2 .cards { --y: 36; --cw: 216; --pad: 15; --gap: 8; }
.sc-h2 .tab { --y: 423; --tw: 134; --th: 25; }

/* 1 — everything the system had, piled into the top half. */
.sc-p1 .clock { --x: 17; --y: 42; --fs: 30; }
.sc-p1 .cards { --x: 10; --y: 66; --cw: 168; --pad: 9; --gap: 6; }

/* 2 — the screen back, and no idea what arrived. */
.sc-p2 .clock { --y: 39; --fs: 43; }
.sc-p2 .pill { --y: 74; }

/* 3 — the widget you chose, with notifications landing on it. */
.sc-p3 .widget { --y: 170; --ww: 114; --wh: 40; }
.sc-p3 .clock { --y: 84; --fs: 59; }
.sc-p3 .cards { --y: 160; --cw: 112; --pad: 9; --gap: 8; }

/* 4 — ours. */
.sc-p4 .clock { --x: 14; --y: 29; --fs: 38; }
.sc-p4 .cards { --y: 58; --cw: 176; --pad: 9; }
.sc-p4 .pill { --x: 18; --y: 87; }

/* Hero 2 puts the phone on the left, so the two screens face each other
   across the page instead of stacking on the same side. */
.hero--flip .wrap {
  grid-template-columns: 0.95fr 1.05fr;
}

.hero--flip .phone {
  order: -1;
}

/* Prose sections: one idea, centred, nothing competing with it. */
.essay {
  padding-block: clamp(40px, 6vw, 68px);
  border-top: 1px solid var(--line);
}

.essay .wrap {
  max-width: 720px;
  text-align: center;
}

.essay h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
}

.essay p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.essay p + p {
  margin-top: 16px;
}

.essay-link {
  margin-top: 20px;
}

/* The no-internet section is the page's strongest claim — the mint edge marks
   it without shouting. */
.essay--mark {
  border-left: 2px solid var(--teal);
  background: rgba(18, 64, 58, 0.28);
}

.cta--center {
  justify-content: center;
  margin-top: 26px;
}


/* --------------------------------------------------------------------------
   Comparison — four drawn lock screens. Deliberately illustrated, never
   screenshotted: those are other companies' interfaces. The shapes are
   faithful to what was measured across four devices — everything crowds the
   top third, the bottom edge stays empty, and the system's cards are
   translucent enough that the wallpaper muddies the text behind them.
   -------------------------------------------------------------------------- */

.compare {
  padding-block: clamp(40px, 6vw, 68px);
  border-top: 1px solid var(--line);
}

.compare > .wrap > h2 {
  margin: 0 0 clamp(28px, 4vw, 44px);
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
}

.compare ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px 20px;
}

.compare li {
  text-align: center;
}

/* No manufacturer names and no version numbers under these, on purpose: naming
   the phones turns the section into an accusation against specific brands, and
   versions date it the moment the next one ships. */
.compare li p {
  margin: 14px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
  padding-bottom: clamp(44px, 7vw, 80px);
}

.features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.features li {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 44, 38, 0.6);
}

.features h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
}

.features p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Legal pages — privacy.html. It reuses this stylesheet rather than carrying
   its own: the CSP serves style-src 'self', so an inline <style> would be
   dropped and Play Console would fetch an unformatted page.
   -------------------------------------------------------------------------- */

.legal {
  padding-block: clamp(28px, 5vw, 52px) clamp(50px, 8vw, 84px);
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4.4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
}

.legal h2 {
  margin: 40px 0 10px;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: #fff;
}

.legal h3 {
  margin: 24px 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal .meta {
  margin: 0 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

/* Same mint edge as the no-internet block on the landing: it's the same claim,
   and this is where it gets proved. */
.legal .lead {
  margin: 0 0 34px;
  padding: 18px 20px;
  border-left: 2px solid var(--teal);
  border-radius: 4px;
  background: rgba(18, 64, 58, 0.28);
}

.legal .lead p:last-child {
  margin-bottom: 0;
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84em;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(62, 220, 192, 0.08);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 26px 34px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-footer .spacer {
  margin-left: auto;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .phone {
    order: -1;
    width: min(100%, 240px);
  }

  .hero p {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
