/* Scrapnote website: the app's colors (AppColors), Kumbh Sans, light + dark following the device.
   Layout ideas from Stagetimer (centered nav, product shots beside the text, hover cards,
   a "get started" band with three steps); the look is Scrapnote's. */

:root {
  --background: #FFFFFF;
  --card: #F1F1F3;
  --divider: #DEDEE2;
  --line: #C9C9CF;
  --text: #111111;
  --text-secondary: #5E5E63;
  --text-muted: #8E8E93;
  --section-header: #8E8E8E;
  --yellow: #FFE788;      /* fills only, black text on it */
  --accent: #B08600;      /* yellow text, icons and borders */
  --done-green: #A8E6A3;
  --done-text: #2E8B47;
  --divider-soft: #E6E6EA;
  --link: #1A73C8;
  --red: #D93636;
  --inverse: #111111;     /* Save-style pills */
  --on-inverse: #FFFFFF;
  --footer: #F1F1F3;
  --frame: #111111;       /* phone frame */
  --frame-edge: #2A2A2A;
  --phone-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.45), 0 24px 40px -24px rgba(0, 0, 0, 0.35);
  --lift-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.28);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --card: #272727;
    --divider: #383838;
    --line: #454545;
    --text: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #707070;
    --accent: #FFE788;
    --done-text: #A8E6A3;
    --divider-soft: #2E2E2E;
    --link: #64B5F6;
    --red: #FF6B6B;
    --inverse: #FFFFFF;
    --on-inverse: #000000;
    --footer: #111111;
    --frame: #1A1A1A;
    --frame-edge: #4A4A4A;
    --phone-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9);
    --lift-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

/* Space between the content and the screen edges (Stagetimer: 16 / 48) */
:root { --gutter: 24px; }
@media (min-width: 768px) { :root { --gutter: 48px; } }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Kumbh Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; }

.sprite { display: none; }

/* Light / dark wordmark */
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .on-dark { display: block !important; }
  .on-light { display: none !important; }
}

/* ---------------------------------------------------------------------------
   Header: logo left, links centered, one button right. Once you scroll it blends
   into the page (blurred background, no line)
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  transition: background 0.2s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.header-inner {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1180px;
  margin: 0 auto;
  height: 76px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; flex: 1 1 0; }
/* The wordmark PNG has empty space on its left (5.6% of its width): pull it back so the letters
   line up with the text */
.brand img { height: 32px; width: auto; display: block; margin-left: -7px; }

.site-nav { display: flex; gap: 4px; justify-content: center; }
.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--card); }

.header-actions { flex: 1 1 0; display: flex; justify-content: flex-end; }

@media (max-width: 820px) {
  .site-nav { display: none; }
}
@media (max-width: 520px) {
  .brand img { height: 26px; margin-left: -6px; }
  .header-inner { height: 66px; padding-top: 6px; }
}

/* ---------------------------------------------------------------------------
   Pills (buttons)
   --------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 23px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-2px); text-decoration: none; }
.pill-yellow { background: var(--yellow); color: #000000; }
.pill-yellow:hover { box-shadow: 0 10px 22px -10px rgba(176, 134, 0, 0.7); }
.pill-dark { background: #111111; color: #FFFFFF; }
.pill-outline { border-color: var(--line); color: var(--text); }
.pill-outline:hover { border-color: var(--accent); }
.pill-sm { min-height: 38px; padding: 7px 18px; font-size: 14px; border-radius: 19px; }
.pill svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   Legal pages: one reading column
   --------------------------------------------------------------------------- */
.doc {
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
}

.doc h1 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

.effective { color: var(--text-muted); font-size: 13px; font-weight: 600; margin: 0 0 32px; }

.doc h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 56px 0 12px;
  padding-top: 40px;
  border-top: 1px solid var(--divider);
}

.doc h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 28px 0 6px;
}

.doc p, .doc li { color: var(--text-secondary); font-size: 15px; }
.doc strong { color: var(--text); font-weight: 700; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--accent); }

/* "The short version" and other cards */
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
}
.card h2, .card h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

/* Outlined note: the app's "selected" style (yellow border on the normal card, never a tinted fill) */
.card.outlined { border: 1.2px solid var(--accent); }

/* Contents */
.toc { columns: 2; column-gap: 32px; padding-left: 22px; margin: 0; }
.toc li { break-inside: avoid; margin: 0; padding: 3px 0; }
.toc a { color: var(--text-secondary); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--text); }
@media (max-width: 560px) { .toc { columns: 1; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--divider); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--divider); }
tr:last-child td { border-bottom: 0; }
th { background: var(--card); font-weight: 700; color: var(--text); font-size: 13px; }
td { color: var(--text-secondary); }
td:first-child { color: var(--text); font-weight: 600; }

/* Numbered steps on the delete page */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000000;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Closing block on the legal pages */
.closing {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1180px;
  margin: 0 auto 72px;
}
.closing-inner {
  background: var(--card);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
}
.closing-inner img { width: 44px; height: 44px; }
.closing-inner h2 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 14px 0 8px;
}
.closing-inner p { color: var(--text-secondary); margin: 0 auto 22px; max-width: 460px; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer { background: var(--footer); }
.footer-inner {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img { height: 24px; width: auto; display: block; margin-left: -5px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 12px 0 0; max-width: 300px; line-height: 1.6; }
.footer-col h3 { font-size: 13px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 14px; padding: 3px 0; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid var(--divider-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------------
   Home page
   --------------------------------------------------------------------------- */
/* Margin, not padding, so section lines end exactly where the content ends */
.section { width: calc(100% - 2 * var(--gutter)); max-width: 1180px; margin: 0 auto; }

.label {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}

/* 1. Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 72px;
}
.hero-text h1 {
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.hero-text h1 span { color: var(--accent); }
.hero-sub { color: var(--text-secondary); font-size: 16.5px; line-height: 1.65; max-width: 470px; margin: 0 0 24px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-cta small { font-size: 13px; color: var(--text-muted); font-weight: 600; padding-left: 4px; }

/* Store buttons: Google Play (with its logo) and iOS (white, Apple's look) */
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.pill.store { min-height: 44px; padding: 9px 20px 9px 16px; font-size: 14px; }
.pill.store svg { width: 20px; height: 20px; }
.pill-white { background: #FFFFFF; color: #000000; border-color: #D2D2D7; }
.pill-white svg { fill: #000000; }
.pill-white:hover { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.45); }
@media (prefers-color-scheme: dark) { .pill-white { border-color: #FFFFFF; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; gap: 8px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { align-items: center; }
  .store-buttons { justify-content: center; }
}

/* ---------------------------------------------------------------------------
   Phone mockups. The screen is drawn at 360 x 773 (the app's dp) and scaled to the
   frame, so the app's own sizes (from the Flutter code) are used inside.
   --------------------------------------------------------------------------- */
.device {
  --s: 0.6611;
  position: relative;
  width: 256px;
  height: 530px;
  padding: 9px;
  border-radius: 41px;
  background: var(--frame);
  box-shadow: var(--phone-shadow), inset 0 0 0 1.5px var(--frame-edge);
  flex-shrink: 0;
}
/* Side buttons */
.device::before, .device::after {
  content: '';
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--frame-edge);
}
.device::before { top: 106px; height: 62px; }
.device::after { top: 185px; height: 40px; }

.screen {
  width: 238px;
  height: 512px;
  border-radius: 33px;
  overflow: hidden;
  position: relative;
  background: var(--background);
}

/* Smaller phones for the feature rows */
.device.small { --s: 0.5889; width: 228px; height: 472px; padding: 8px; border-radius: 37px; }
.device.small::before { top: 94px; height: 54px; }
.device.small::after { top: 165px; height: 34px; }
.device.small .screen { width: 212px; height: 456px; border-radius: 30px; }

@media (max-width: 560px) {
  .device, .device.small { --s: 0.6222; width: 240px; height: 497px; padding: 8px; border-radius: 38px; }
  .device::before, .device.small::before { top: 100px; height: 58px; }
  .device::after, .device.small::after { top: 175px; height: 36px; }
  .screen, .device.small .screen { width: 224px; height: 481px; border-radius: 31px; }
}

.ui {
  width: 360px;
  height: 776px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  overflow: hidden;
}
.ui svg { fill: currentColor; flex-shrink: 0; }

.ui-status {
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 26px 0;
  font-size: 13.5px;
  font-weight: 700;
}
.ui-status .icons { display: flex; gap: 5px; align-items: center; }
.ui-status .icons svg { width: 15px; height: 15px; }
.ui-cam {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: #000000;
  box-shadow: 0 0 0 2px #1E1E1E;
}

/* Tab app bar: logo 26 + title 22/w900, icon buttons 22 */
.ui-appbar { display: flex; align-items: center; gap: 1px; height: 56px; padding: 0 4px 0 16px; flex-shrink: 0; }
.ui-appbar img { width: 26px; height: 26px; }
.ui-appbar .title { font-size: 22px; font-weight: 900; letter-spacing: -0.6px; }
.ui-appbar .acts { margin-left: auto; display: flex; color: var(--text); }
.ui-appbar .acts svg { width: 22px; height: 22px; margin: 0 13px; }
.ui-appbar .acts svg:last-child { width: 24px; height: 24px; margin-right: 12px; }

/* Sub-screen app bar: back arrow + title */
.ui-subbar { display: flex; align-items: center; gap: 18px; height: 56px; padding: 0 16px; flex-shrink: 0; }
.ui-subbar svg { width: 24px; height: 24px; }
.ui-subbar .title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.ui-subbar .acts { margin-left: auto; color: var(--text); display: flex; }
.ui-subbar .acts svg { width: 22px; height: 22px; }

/* Workspace bar: pill left, members right (teams) */
.ui-wsbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 14px; }
.ui-ws {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px 5px 8px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.ui-ws .badge {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}
.ui-ws .badge.teal { background: #009AA6; color: #FFFFFF; }
.ui-ws .badge svg { width: 13px; height: 13px; }
.ui-ws > svg { width: 16px; height: 16px; margin-left: 3px; color: var(--text-secondary); }
.ui-members { display: flex; align-items: center; gap: 3px; color: var(--text-secondary); font-size: 11.5px; white-space: nowrap; }
.ui-members svg { width: 16px; height: 16px; }

/* "Today" (18/w700) and the section headers with a line ("No reminder (1) ———") */
.ui-today { font-size: 18px; font-weight: 700; padding: 8px 16px; }
.ui-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--section-header);
}
.ui-head svg { width: 18px; height: 18px; margin-left: -4px; }
.ui-head::after { content: ''; flex: 1; height: 1px; background: var(--divider-soft); }
.ui-list { flex: 1; overflow: hidden; }

/* The app's scrap card (ScrapCard): margin 16/6, padding 16/14, radius 14 */
.app-card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 6px 16px;
  position: relative;
}
.app-card .top { display: flex; align-items: flex-start; gap: 8px; }
.app-card .t { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); }
.app-card .pin { width: 15px; height: 15px; color: var(--accent); margin-top: 3px; }
.app-card .d { color: var(--text-secondary); font-size: 12.5px; font-weight: 300; line-height: 1.35; margin-top: 8px; }
.app-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; min-height: 22px; }
.app-card .when { color: var(--text-secondary); font-size: 11.5px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: auto; }
.app-card .when.due { color: var(--red); }
.app-card .reminder { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.app-card .reminder svg { width: 14px; height: 14px; }
.app-card .reminder svg.rep { width: 13px; height: 13px; }
.app-card .creator { width: 20px; height: 20px; font-size: 10px; border: 0; margin: 0; }
.pills { display: flex; gap: 8px; flex-shrink: 0; }
.mini-pill { font-size: 11.5px; font-weight: 600; padding: 4px 14px; border-radius: 20px; color: #000000; white-space: nowrap; }
.mini-pill.done { background: var(--done-green); }
.mini-pill.snooze { background: var(--yellow); }
.mini-pill.outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 3px 14px; }
.you-confirmed { display: flex; align-items: center; gap: 4px; color: var(--done-text); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.you-confirmed svg { width: 14px; height: 14px; }

/* Checklist inside a card */
.check { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 12.5px; padding: 3px 0; }
.box { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--text-muted); flex-shrink: 0; position: relative; }
.box.on { background: var(--yellow); border-color: var(--yellow); }
.box.on::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #000000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check.on span { text-decoration: line-through; color: var(--text-muted); }

/* Team bits: teal initials (white letter), "Confirmed [M][J]   2/3" */
.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #009AA6;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatars { display: flex; align-items: center; gap: 3px; }
.confirmed { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 11.5px; margin-top: 10px; }
.confirmed .count { margin-left: auto; }

/* Bottom bar: navSurface, round top corners, docked yellow + (56) */
.ui-nav {
  margin-top: auto;
  height: 81px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr 64px 1fr 1fr;
  align-items: start;
  padding: 12px 8px 0;
  position: relative;
}
.ui-nav .item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 400; color: var(--text-muted); }
.ui-nav .item.on { color: var(--text); font-weight: 600; }
.ui-nav .item svg { width: 24px; height: 24px; }
.ui-nav .fab {
  position: absolute;
  left: 50%;
  top: -16px;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.ui-nav .fab svg { width: 30px; height: 30px; fill: #000000; }

/* Snackbar with Undo and the draining bar */
.ui-snack {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  background: var(--card);
  border-radius: 10px;
  padding: 14px 16px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.ui-snack b { color: var(--accent); font-weight: 700; }
.ui-snack::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 64%;
  background: var(--yellow);
  animation: drain 6s linear infinite;
}
@keyframes drain { from { width: 100%; } to { width: 0%; } }

/* New Scrap form (padding 20) */
.ui-form { padding: 4px 20px 0; flex: 1; display: flex; flex-direction: column; }
.kind { display: flex; gap: 8px; margin: 4px 0 10px; }
.kind span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border-radius: 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--line);
}
.kind span svg { width: 15px; height: 15px; }
.kind span.on { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.ui-title { font-size: 16.5px; font-weight: 600; padding: 12px 0 6px; border-bottom: 1.5px solid var(--accent); }
.ui-title .qa { color: var(--accent); }
.caret { display: inline-block; width: 2px; height: 19px; background: var(--accent); vertical-align: -4px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}
.ui-desc { margin-top: 10px; height: 110px; color: var(--text-muted); font-size: 13px; font-weight: 300; }
.ui-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 12px; }
.ui-attach { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--section-header); }
.ui-attach::after { content: ''; order: 1; flex: 1; height: 1px; background: var(--divider); }
.ui-attach .plus { order: 2; width: 17px; height: 17px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.ui-attach .plus svg { width: 13px; height: 13px; fill: #000000; }
.ui-sep { height: 1px; background: var(--divider-soft); margin: 14px 0 8px; }
.ui-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13.5px; font-weight: 600; }
.ui-row > svg { width: 17px; height: 17px; }
.ui-row .sum { margin-left: auto; color: var(--accent); font-size: 12px; font-weight: 600; }
.ui-row .chev { width: 19px; height: 19px; }
.ui-save { margin: auto 0 16px; height: 44px; border-radius: 22px; background: var(--inverse); color: var(--on-inverse); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; }

/* Lock screen with reminders (always dark, like a real lock screen). Android shows the action
   buttons in plain text; the app's yellow only tints the small icon */
.ui.lock { background: linear-gradient(165deg, #0E4447 0%, #06272A 40%, #000000 100%); color: #FFFFFF; }
.lock-time { text-align: center; font-size: 76px; font-weight: 300; letter-spacing: -2px; margin-top: 40px; line-height: 1; }
.lock-date { text-align: center; font-size: 15px; font-weight: 600; color: #D8D8D8; margin-top: 10px; }
.notif {
  margin: 34px 12px 0;
  background: rgba(38, 38, 38, 0.94);
  border-radius: 24px;
  padding: 15px 16px 6px;
  color: #FFFFFF;
}
.notif + .notif { margin-top: 8px; padding-bottom: 14px; }
.notif-app { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #BDBDBD; font-weight: 600; }
.notif-app img { width: 16px; height: 16px; }
.notif-title { font-size: 15.5px; font-weight: 700; margin-top: 8px; }
.notif-body { font-size: 13.5px; color: #CFCFCF; margin-top: 2px; }
.notif-actions { display: flex; gap: 26px; margin-top: 10px; padding: 8px 0 6px; font-size: 13.5px; font-weight: 600; color: #E8E8E8; }

/* ---------------------------------------------------------------------------
   Tilt + float: phones lean and drift; pointing at them straightens them
   --------------------------------------------------------------------------- */
.tilt { transform: perspective(1600px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) rotate(var(--r, 0deg)); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (hover: hover) {
  .tilt:hover, .feature-row:hover .tilt { transform: perspective(1600px) rotateY(0deg) rotateX(0deg) rotate(0deg) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .float, .caret, .ui-snack::after { animation: none; }
  .tilt { transition: none; }
}

/* Hero: two phones over a yellow circle */
.hero { grid-template-columns: 1fr 1.1fr; }
.hero-phones { position: relative; height: 540px; margin-top: -8px; }
.hero-phones .block {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 380px;
  height: 380px;
  margin: -180px 0 0 -190px;
  border-radius: 50%;
  background: var(--yellow);
}
.hero-phones .back { position: absolute; left: 50%; top: 18px; margin-left: 2px; }
.hero-phones .back .device { transform: scale(0.94); transform-origin: top left; }
.hero-phones .back .tilt { --r: 7deg; --ry: -10deg; }
.hero-phones .back .float { animation-delay: -3.5s; }
.hero-phones .front { position: absolute; left: 50%; top: 44px; margin-left: -222px; z-index: 1; }
.hero-phones .front .tilt { --r: -6deg; --ry: 12deg; --rx: 3deg; }

@media (max-width: 1080px) {
  .hero-phones .block { width: 350px; height: 350px; margin: -165px 0 0 -175px; }
  .hero-phones .front { margin-left: -212px; }
  .hero-phones .back { margin-left: -8px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}
/* Phones: one phone, centered (two would crowd the screen) */
@media (max-width: 560px) {
  .hero-phones { height: 580px; margin-top: 16px; }
  .hero-phones .block { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .hero-phones .back { display: none; }
  .hero-phones .front { margin-left: -120px; top: 30px; }
  .hero-phones .front .tilt { --r: -4deg; --ry: 8deg; --rx: 2deg; }
}

/* 2. Feature rows (text one side, phone the other, alternating) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.feature-row.flip .feature-text { order: 2; }
.feature-text { max-width: 500px; }
.feature-row.flip .feature-text { justify-self: end; }
.feature-text p { color: var(--text-secondary); font-size: 15px; margin: 0 0 12px; }
.feature-text ul { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-text li { color: var(--text-secondary); padding: 4px 0 4px 28px; position: relative; font-size: 14.5px; }
.feature-text li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 12px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.feature-text .pro { font-size: 11px; font-weight: 800; color: #000000; background: var(--yellow); border-radius: 10px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }

/* The yellow square behind each phone */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.phone-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 330px;
  margin: -165px 0 0 -150px;
  border-radius: 36px;
  background: var(--yellow);
  transform: rotate(var(--bg-r, 6deg));
}
.phone-stage .tilt { --r: -5deg; --ry: 10deg; }
.feature-row.flip .phone-stage { --bg-r: -6deg; }
.feature-row.flip .phone-stage .tilt { --r: 5deg; --ry: -10deg; }
.feature-row:nth-of-type(odd) .float { animation-delay: -2s; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
  .feature-row.flip .feature-text { order: 0; justify-self: start; }
  .feature-text { max-width: none; }
}
@media (max-width: 560px) {
  .phone-stage::before { width: 270px; height: 320px; margin: -160px 0 0 -135px; border-radius: 32px; }
}

/* 3. Little things: cards that lift when pointed at */
.extras { padding-top: 72px; padding-bottom: 40px; text-align: center; }
.extras .h2 { margin-bottom: 36px; }
.extra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.extra {
  background: var(--card);
  border: 1.2px solid transparent;
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}
.extra:hover { transform: translateY(-6px) scale(1.02); border-color: var(--accent); box-shadow: var(--lift-shadow); }
.extra-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}
.extra:hover .extra-icon { background: var(--yellow); border-color: var(--yellow); color: #000000; }
.extra-icon svg { width: 20px; height: 20px; fill: currentColor; }
.extra h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; margin: 16px 0 4px; }
.extra p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .extra-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .extra-grid { grid-template-columns: 1fr; } }

/* 4. Android beta: three cards like "The little things", each with its button at the bottom.
   .waiting (until Google approves the closed test) shows "Opens soon" instead of steps 2-3's buttons. */
.beta { padding-top: 72px; padding-bottom: 8px; text-align: center; }
.beta .h2 { margin-bottom: 12px; }
.beta-sub { color: var(--text-secondary); max-width: 640px; margin: 0 auto 18px; }
.beta-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 32px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}
.beta-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.beta:not(.waiting) .beta-sub { margin-bottom: 36px; }
.beta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.beta-step {
  background: var(--card);
  border: 1.2px solid transparent;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}
.beta-step:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--lift-shadow); }
.beta-step .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000000;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.beta-step h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; margin: 16px 0 4px; }
.beta-step p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; margin: 0 0 18px; flex: 1; }
.pill-soon { background: transparent; border-color: var(--line); color: var(--text-muted); cursor: default; }
.pill-soon:hover { transform: none; }
.beta.waiting .when-open, .beta:not(.waiting) .when-waiting { display: none; }
.beta-foot { color: var(--text-muted); font-size: 13.5px; margin: 24px 0 0; }
@media (max-width: 900px) { .beta-grid { grid-template-columns: 1fr; } }

/* 5. FAQ */
.faq { max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) 88px; }
.faq .h2 { text-align: center; margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--divider); }
.faq details:first-of-type { border-top: 1px solid var(--divider); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  transition: color 0.15s;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 27px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--text-secondary); margin: 0 0 20px; }

/* 5. Get started: the band with three steps (black text on the app's yellow-to-green) */
.get-started {
  background: linear-gradient(125deg, #FFE788 0%, #FFF1B3 45%, #BDEFC3 100%);
  color: #111111;
  padding: 80px 0 88px;
}
.get-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.get-head .h2 { margin: 0; }
.get-head p { margin: 8px 0 0; color: #3D3D3D; font-weight: 600; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--card);
  color: var(--text);
  border-radius: 20px;
  padding: 14px 14px 22px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.35);
}
.step:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.5); }
.step h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; margin: 18px 8px 6px; display: flex; align-items: center; gap: 10px; }
.step h3 .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000000;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 0 8px; }
@media (max-width: 900px) { .step-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Step pictures: a piece of the app's screen */
.step-pic {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--background);
  overflow: hidden;
}
.step-pic > * { transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* 1: the + menu (the app's bottom sheet over the dimmed screen) */
.step-pic.sheetpic { background: color-mix(in srgb, var(--background) 45%, #000000); }
.pic-sheet {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 0;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  padding: 10px 6px 10px;
}
.pic-sheet .opt { display: flex; align-items: center; gap: 16px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.pic-sheet .opt .sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--text-muted); margin-top: 1px; }
.pic-sheet .opt .lock { width: 14px; height: 14px; color: var(--accent); fill: currentColor; vertical-align: -2px; margin-left: 6px; }
.pic-sheet .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pic-sheet .ico svg { width: 16px; height: 16px; fill: #000000; }
.pic-sheet .ico.gray { background: color-mix(in srgb, var(--text) 10%, transparent); }
.pic-sheet .ico.gray svg { fill: var(--text); }
.pic-sheet .div { height: 1px; background: var(--divider); margin: 2px 0; }
.step:hover .pic-sheet { transform: translateY(-8px); }

/* 2: a reminder on the lock screen */
.step-pic.lockpic { background: linear-gradient(165deg, #0E4447 0%, #06272A 55%, #000000 100%); display: flex; align-items: center; padding: 0 6%; }
.step-pic.lockpic .notif { margin: 0; width: 100%; }
.step:hover .lockpic .notif { transform: translateY(-6px) scale(1.03); }

/* 3: swipe right = Done (the green is drawn behind the card, like the app) */
.pic-swipe { position: absolute; left: 5%; right: 30%; top: 50%; height: 84px; margin-top: -42px; }
.pic-swipe .bg {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--done-green);
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  font-weight: 700;
  font-size: 13px;
}
.pic-swipe .bg svg { width: 20px; height: 20px; fill: #000000; }
.pic-swipe .bg { right: -40%; }
.pic-swipe .app-card { position: absolute; inset: 0; margin: 0; transform: translateX(44%); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.step:hover .pic-swipe .app-card { transform: translateX(54%); }

/* ---------------------------------------------------------------------------
   Phones: Stagetimer's phone sizes (title ~26-30px in a lighter weight, text 14-15px)
   --------------------------------------------------------------------------- */
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .brand img { height: 24px; margin-left: -5px; }
  .pill { min-height: 40px; padding: 8px 18px; font-size: 14px; }
  .pill-sm { min-height: 34px; padding: 6px 14px; font-size: 13px; }
  .pill.store { min-height: 40px; padding: 8px 16px 8px 13px; font-size: 13px; }
  .pill.store svg { width: 18px; height: 18px; }

  .label { font-size: 11px; margin-bottom: 6px; }
  .h2 { font-size: 22px; letter-spacing: -0.5px; margin-bottom: 12px; }
  .hero-text h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.2; }
  .hero-sub { font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
  .hero-cta small { font-size: 12px; }
  .feature-row { padding-top: 32px; padding-bottom: 32px; }
  .feature-text p { font-size: 14.5px; }
  .feature-text li { font-size: 14px; padding-left: 26px; }
  .feature-text li::before { top: 11px; }
  .extras { padding-top: 48px; padding-bottom: 24px; }
  .extras .h2 { margin-bottom: 24px; }
  .extra { padding: 18px; }
  .extra h3 { font-size: 15px; margin-top: 12px; }
  .extra p { font-size: 13.5px; }
  .faq { padding-top: 48px; padding-bottom: 56px; }
  .faq summary { font-size: 14.5px; padding: 16px 36px 16px 0; }
  .faq summary::after { top: 22px; }
  .faq details[open] summary::after { top: 26px; }
  .faq details p { font-size: 14px; }
  .get-started { padding: 52px 0 60px; }
  .get-head { margin-bottom: 28px; }
  .get-head p { font-size: 13.5px; }
  .step h3 { font-size: 16px; margin-top: 14px; }
  .step p { font-size: 13.5px; }

  /* Legal pages: the same sizes as the home page features (title 22, text 14.5 / 14) */
  .doc { padding-top: 28px; }
  .doc h1 { font-size: 22px; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 8px; }
  .effective { font-size: 12px; margin-bottom: 20px; }
  .doc h2 { font-size: 17px; letter-spacing: -0.3px; margin: 36px 0 8px; padding-top: 24px; }
  .doc h3 { font-size: 14.5px; margin-top: 20px; }
  .doc p { font-size: 14.5px; line-height: 1.65; }
  .doc li { font-size: 14px; line-height: 1.6; }
  .card { padding: 16px 18px; }
  .card-title { font-size: 11px; }
  .toc a { font-size: 14px; }
  .steps li { padding-left: 38px; }
  .steps li::before { width: 24px; height: 24px; font-size: 12.5px; }
  .not-found { padding: 80px var(--gutter); }
  .not-found h1 { font-size: 22px; }
  .not-found p { font-size: 14.5px; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
  .closing-inner { padding: 32px 20px; }
  .closing-inner h2 { font-size: 21px; }
  .closing-inner p { font-size: 14px; }

  .footer-brand p { font-size: 13px; }
  .footer-col a { font-size: 13.5px; }
}
