/*
  Linger's website. One stylesheet for every page, no web fonts, nothing the pages need a script for.

  The colours are the app's own (Theme/ThemeColors.swift): Porcelain by day, the one night look after
  dark, Azzurro as the accent. New York is Linger's voice: `ui-serif` is New York on Apple's devices,
  where nearly every visitor will be; the rest get Iowan Old Style, Charter or Georgia. It sets the
  headlines and the large figures; the system sans sets everything else.

  The landing page was rebuilt on 7 November 2026 around one promise, one picture and one action
  (Website/README.md). The greys are set for contrast: --ink-2 and --ink-3 both pass 4.5:1 on the ground
  and on a card, and --accent-ink is the accent dark enough to be read as text.
*/

:root {
  --ground: #FCFAF8;           /* Porcelain */
  --surface: #FFFFFF;          /* what is raised off it */
  --sunk: #F3F0EB;
  --ink: #0B0D10;
  --ink-2: rgba(11, 13, 16, 0.70);
  --ink-3: rgba(11, 13, 16, 0.60);
  --rule: rgba(11, 13, 16, 0.12);
  --accent: #007AFF;           /* Azzurro */
  --accent-ink: #0060C7;       /* Azzurro as text */
  --accent-soft: rgba(0, 122, 255, 0.10);
  --raise: 0 1px 2px rgba(11, 13, 16, 0.05), 0 8px 24px rgba(11, 13, 16, 0.06);

  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;

  --page: 1120px;
  --gutter: 24px;
  --section: 96px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B0D10;         /* the night look */
    --surface: #171A1F;
    --sunk: #14171B;
    --ink: #F3F2EF;
    --ink-2: rgba(243, 242, 239, 0.74);
    --ink-3: rgba(243, 242, 239, 0.62);
    --rule: rgba(243, 242, 239, 0.14);
    --accent: #0A84FF;
    --accent-ink: #5AA9FF;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --raise: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;    /* anchors land under the sticky header */
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html, body { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

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

@media (max-width: 767px) {
  :root { --gutter: 20px; --section: 56px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Focus: always visible to the keyboard ---------- */

a:focus-visible,
summary:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.button:focus-visible { border-radius: 999px; }
main:focus { outline: none; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}

.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 3.2vw + 18px, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

/* Each sentence starts its own line, and wraps evenly inside it. */
h1 span { display: block; text-wrap: balance; }

h2 {
  font-size: clamp(32px, 3.6vw + 4px, 52px);
  line-height: 1.06;
}

h3 {
  font-size: clamp(21px, 1.6vw + 2px, 25px);
  line-height: 1.2;
}

.lede {
  font-size: clamp(18px, 1vw + 8px, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 30em;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.small { font-size: 15px; color: var(--ink-2); }

/* ---------- The wordmark: LINGER in the tracked serif, the dot in the accent ---------- */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.19em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.wordmark i {
  display: inline-block;
  width: 0.245em;
  height: 0.245em;
  border-radius: 50%;
  background: var(--accent);
  margin-left: -0.08em;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
}

.top.ruled { border-bottom-color: var(--rule); }

.top .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.top nav a {
  text-decoration: none;
  color: var(--ink-2);
}

.top nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .top nav { gap: 18px; }
  .top .status-chip { display: none; }
}

@media (max-width: 350px) {
  .top nav a[href$="#faq"] { display: none; }
}

/* ---------- The action, and the launch's state ---------- */

/* The one action: strong contrast, no shadow. Ink on the ground by day, the reverse at night. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover { opacity: 0.86; }

/* Not a button: where Linger can be had, said as a fact. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}

.status-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

/* ---------- Sections ---------- */

section { padding: var(--section) 0; }
main > section + section { border-top: 1px solid var(--rule); }

/* ---------- Hero: copy left, one picture right, centred together ---------- */

.hero { padding: 64px 0; }

.hero .page {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 48px;
  align-items: center;
}

.hero h1 { margin-bottom: 22px; font-size: clamp(40px, 2.6vw + 18px, 56px); }
/* The headline's second sentence in the accent, as the App Store's titles set theirs (20 November, the user's asking:
   "make the Don't get stuck scrolling blue like in appstore"): #007AFF there and here, 3.9:1 on the ground, above the 3:1 text this large needs. */
.hero h1 span:last-child { color: var(--accent); }

/* Two lines where they fit (Enjoy your apps. / Don’t get stuck scrolling.); on a narrow phone the words run on and wrap
   as they come, not balanced, which split "Enjoy your apps." The second needs 423 px at 40 px, which a 463 px window
   gives it. */
@media (max-width: 462px) {
  .hero h1 { text-wrap: wrap; }
  .hero h1 span { display: inline; }
}
.hero .actions { margin-top: 30px; }

.hero-shot { display: flex; justify-content: center; }

/* Two phones over one feed, as on Cal AI's page: Keep going? behind and turned, How much longer? in front. */
.hero-shot.duo { display: grid; justify-items: center; align-items: center; padding: 12px 0 28px; }
.duo .phone { grid-area: 1 / 1; width: min(250px, 54%); }
.duo .back { transform: translate(-36%, -5%) rotate(-5deg); }
.duo .front { transform: translate(30%, 5%); }

/* An iPhone round the screenshot (20 November, the user's asking: "make the iphone itself look more real instead of just
   black sides"): a band of brushed metal with its buttons, a thin black edge round the glass, and the Dynamic Island the
   simulator leaves out. The band is the border, painted with a gradient; the black edge is the padding. The buttons
   stand a few pixels out of the band, drawn by ::before behind the phone where an iPhone 17 Pro has them, as shares of
   its height: on the left the Action button and the two volume buttons, on the right the side button. 320 px of
   screen, 340 with the edge: the whole phone stands in a 900 px window under the header. */
.phone {
  --band: 3px;
  --key: 3px;
  --metal: linear-gradient(150deg, #F2F3F5 0%, #A8ACB1 12%, #E5E7EA 28%, #888C92 48%, #D7DADD 66%, #91959B 84%, #EBEDEF 100%);
  --key-metal: #9EA2A8;
  --edge: calc(10px - var(--band));
  position: relative;
  isolation: isolate;
  width: min(320px, 100%);
  aspect-ratio: 599 / 1304;
  box-sizing: content-box;
  padding: var(--edge);
  border: var(--band) solid transparent;
  border-radius: 46px;
  background: linear-gradient(#050506, #050506) padding-box, var(--metal) border-box;
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.22),
    0 0 0 0.5px rgba(11, 13, 16, 0.32),
    0 1px 2px rgba(11, 13, 16, 0.12),
    0 18px 36px -16px rgba(11, 13, 16, 0.4);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--band));
  bottom: calc(-1 * var(--band));
  left: calc(-1 * (var(--band) + var(--key)));
  right: calc(-1 * (var(--band) + var(--key)));
  background:
    linear-gradient(to bottom, transparent 18.4%, var(--key-metal) 18.4% 23.1%, transparent 23.1% 28.3%,
      var(--key-metal) 28.3% 35.7%, transparent 35.7% 38.3%, var(--key-metal) 38.3% 45.7%, transparent 45.7%)
      left / calc(var(--key) + 1px) 100% no-repeat,
    linear-gradient(to bottom, transparent 21%, var(--key-metal) 21% 32.4%, transparent 32.4%)
      right / calc(var(--key) + 1px) 100% no-repeat;
}

.phone picture,
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  object-fit: cover;
}

/* The Dynamic Island, as the iPhone 17 Pro Max simulator's own screenshot draws it (20 November, the user's word: "dynamic
   island is wrong now"): 125.3 × 36.7 pt, 14 pt from the top of a screen 440 pt wide. It was a fixed 25 px, 12 px down,
   which stood low and large on every screen, under the time beside it. Now it is drawn as shares of the screen's width,
   so it sits on the status bar at every size: width and margin-top both measure against the phone's width, which the
   black edge is taken off. */
.phone::after {
  content: "";
  position: absolute;
  top: var(--edge);
  margin-top: calc((100% - 2 * var(--edge)) * 14 / 440);
  left: 50%;
  width: calc((100% - 2 * var(--edge)) * 125.5 / 440);
  aspect-ratio: 125.5 / 37;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

@media (prefers-color-scheme: dark) {
  .phone {
    --metal: linear-gradient(150deg, #C9CCD0 0%, #7D8187 12%, #B9BCC0 28%, #63676D 48%, #ADB0B4 66%, #6B6F75 84%, #C2C5C9 100%);
    --key-metal: #7A7E84;
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
  }
}

/* Below 768 px: the copy first, the picture under it. */
@media (max-width: 767px) {
  .hero { padding: 40px 0 56px; }
  .hero .page { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .phone { --band: 2px; --key: 2px; --edge: calc(8px - var(--band)); width: min(260px, 72%); border-radius: 38px; }
  .phone picture, .phone img { border-radius: 31px; }
  .duo .phone { width: min(200px, 50%); }
  .phone .screen { border-radius: 31px; }
}

/* ---------- How it works: the demonstration, and the steps following it ---------- */

/* On a phone: the phone, then the steps. On a wide screen the steps stand left of the phone. */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.demo-shot {
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.demo-shot .phone { width: min(280px, 76%); }

.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #F7F5F2;
}

.phone .screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A tap where the recording was tapped. */
.tap {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(11, 13, 16, 0.28), 0 4px 12px rgba(11, 13, 16, 0.2);
  opacity: 0;
  pointer-events: none;
}

.tap.is-on { animation: tap 0.7s ease-out; }

@keyframes tap {
  0% { opacity: 0; transform: scale(1.4); }
  25% { opacity: 1; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(0.9); }
}

.demo-toggle {
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}

.demo-toggle:hover { color: var(--ink); }

.demo-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.step { counter-increment: step; }

.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--accent-ink);
}

.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); max-width: 30em; }

/* The step's line, filling while the demonstration is in it. */
.step-time {
  display: none;
  height: 2px;
  margin-top: 14px;
  max-width: 30em;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.step-time i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.js .step-time { display: block; }
/* The steps not playing, dimmed (20 November, the user's asking: "the non-actives are too grey out, somewhat less to
   make reading easier. Especially important for reading on iphone"): 0.45 left their text at 2.1:1 on the light
   ground. 0.7 beside the video (3.5:1 light, 5.2:1 dark), so the step playing still stands out; 0.82 on a phone, where
   the steps are read under the video (4.6:1 light, above the 4.5:1 body text needs). */
.js .step { opacity: 0.7; }
.js .step.is-active { opacity: 1; }
@media (max-width: 767px) {
  .js .step { opacity: 0.82; }
  .js .step.is-active { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .step { transition: opacity 0.3s ease; }
}

@media (min-width: 900px) {
  .demo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 64px;
    align-items: center;
  }

  .demo-shot { order: 0; }
  .demo-shot .phone { width: min(290px, max(220px, calc((100vh - 300px) * 640 / 1390))); }
  .steps { gap: 40px; }
  .step h3 { font-size: clamp(26px, 1.6vw + 8px, 32px); }
}

.faq details a { color: var(--accent-ink); }

/* Folded details: the questions. */

details summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 40px 20px 0;
  font-weight: 600;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
}

details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

@media (prefers-reduced-motion: no-preference) {
  details summary::after { transition: transform 0.2s ease; }
}

/* ---------- FAQ ---------- */

.faq .page {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
}

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }

.faq details p {
  padding: 0 40px 22px 0;
  font-size: 17px;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .faq .page { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

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

footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 48px;
  font-size: 15px;
  color: var(--ink-2);
}

footer .page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Text pages: privacy, terms, support ---------- */

.doc {
  max-width: 720px;
  padding-top: 64px;
  padding-bottom: 112px;
}

.doc h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 20px;
}

.doc .updated {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 48px;
}

.doc .draft {
  border-radius: 14px;
  background: var(--accent-soft);
  padding: 14px 18px;
  font-size: 15px;
  margin-bottom: 40px;
}

.doc h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin: 56px 0 16px;
}

.doc h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 28px 0 8px;
}

.doc p,
.doc li { color: var(--ink-2); }

.doc p + p { margin-top: 14px; }

.doc ul { padding-left: 20px; margin: 12px 0; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.doc th { color: var(--ink); font-weight: 600; }

/* The press page (20 November): the icons, then the six screenshots, each a link to its full size. */
.doc .lede { margin: 8px 0 8px; color: var(--ink-2); }
.press-icons,
.press-shots {
  display: grid;
  gap: 20px;
  margin: 18px 0;
}
.press-icons { grid-template-columns: repeat(2, minmax(0, 160px)); }
.press-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.press-icons a,
.press-shots a {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.press-icons a:hover span,
.press-shots a:hover span { color: var(--ink); text-decoration: underline; }
.press-icons img,
.press-shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
.press-icons img { border-radius: 22.5%; }
.press-shots img { border-radius: 14px; }
@media (max-width: 560px) {
  .press-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 600px) {
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; }
  .doc thead { display: none; }
  .doc tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { color: var(--ink); font-weight: 600; }
}

