/* Time Flies — marketing site
   One stylesheet shared by the home, terms and privacy pages.
   Palette taken from the app: dark-indigo ink, indigo primary, the six
   activity accent colours, and the icon's sky-blue-into-water gradient. */

:root {
  --ink: #211c3d;
  --ink-soft: #4a4568;
  --ink-faint: #7b7796;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --line: #e7e8f0;
  --primary: #5d7dee;
  --primary-ink: #3a55c0;
  --sky-a: #a9c6f5;
  --sky-b: #e8edf7;

  /* activity accents */
  --green: #43a047;
  --red: #da1d1d;
  --teal: #00bcd4;
  --purple: #9c27b0;
  --orange: #fa6039;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(33, 28, 61, 0.04),
    0 8px 30px rgba(33, 28, 61, 0.06);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceaf5;
    --ink-soft: #b7b3cd;
    --ink-faint: #837f9c;
    --bg: #0e1016;
    --surface: #171a22;
    --line: #262a36;
    --primary: #8aa2f4;
    --primary-ink: #a9bcf8;
    --sky-a: #2c3f66;
    --sky-b: #171a22;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top nav ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}

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

/* On narrow screens the inline links would crowd the bar; drop to brand + CTA
   (every section is still reachable by scrolling, and the hero's "See what it
   does" jumps to the features anchor). */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

.nav-cta {
  font-weight: 700;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.nav-cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  text-decoration: none;
  background: var(--surface);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 0 84px;
  background: radial-gradient(
    120% 80% at 50% -10%,
    var(--sky-a) 0%,
    var(--sky-b) 55%,
    var(--bg) 100%
  );
}

.hero-mark {
  width: 108px;
  height: 108px;
  margin: 0 auto 26px;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 8px;
}

.hero .tagline {
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-ink);
  margin: 0 0 20px;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ── Sections ────────────────────────────────────────────────────────── */

section {
  padding: 76px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 14px;
}

.section-head p {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
}

/* thesis band */
.thesis {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.thesis .big {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.thesis .big span {
  color: var(--primary-ink);
}

.thesis .sub {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 18px;
  color: var(--ink-soft);
}

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.card .pro {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary-ink);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  padding: 3px 9px;
  border-radius: 999px;
}

/* tint helpers for feature icons */
.t-teal {
  background: color-mix(in srgb, var(--teal) 16%, transparent);
  color: var(--teal);
}
.t-red {
  background: color-mix(in srgb, var(--red) 14%, transparent);
  color: var(--red);
}
.t-indigo {
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary-ink);
}
.t-green {
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green);
}
.t-purple {
  background: color-mix(in srgb, var(--purple) 16%, transparent);
  color: var(--purple);
}
.t-orange {
  background: color-mix(in srgb, var(--orange) 16%, transparent);
  color: var(--orange);
}

/* types row */
.types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid;
}

/* pricing */
.pricing {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--bg);
}

.plan.pro {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.plan h3 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.plan .price {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 0 0 18px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  border-top: 1px solid var(--line);
}

.plan li:first-child {
  border-top: none;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--green);
  font-weight: 800;
}

.plan .fine {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* closing CTA */
.closer {
  text-align: center;
}

.closer h2 {
  margin-bottom: 24px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 44px 0;
}

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

footer .fbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}

footer .fbrand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

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

footer nav a {
  color: var(--ink-soft);
  font-size: 15px;
}

footer .copy {
  width: 100%;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ── Legal pages ─────────────────────────────────────────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal .updated {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 0 0 8px;
}

.legal h1 {
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}

.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
}

.legal h3 {
  font-size: 17px;
  margin: 26px 0 8px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 16px;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin: 6px 0;
}

.legal a {
  color: var(--primary-ink);
}

.legal .callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 15px;
  color: var(--ink);
}

.backlink {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 600;
}

/* Account-deletion form */
#del-form {
  max-width: 420px;
  margin-top: 8px;
}

#del-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

#del-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px; /* >=16px stops iOS Safari zooming the field on focus */
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  margin-bottom: 16px;
}

#del-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

/* Honeypot — off-screen, never shown, but not display:none (some bots skip
   those). Real users never see or fill it. */
#del-form #company {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#del-form .btn {
  width: 100%;
  justify-content: center;
}

#del-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  font-size: 15px;
  margin: 16px 0 0;
  min-height: 1.2em;
}

.form-status.ok {
  color: var(--green);
}

.form-status.error {
  color: var(--red);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

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

@media (max-width: 560px) {
  .features,
  .plans {
    grid-template-columns: 1fr;
  }
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 52px 0 60px;
  }
}

/* ── App icons ───────────────────────────────────────────────────────────
   The same Material icon set Flutter renders in the app (Rounded variant) —
   notifications_active, alarm, event, photo_library, straighten, and the rest.
   Inlined as SVG rather than loaded from an icon font on purpose: a webfont
   from Google Fonts is silently blocked by common privacy/ad-block extensions,
   which left the raw ligature text ("straighten", "hourglass_top") showing in
   place of the glyph. Inline SVG has no external dependency, cannot be blocked,
   and inherits its colour from the parent via currentColor. */
.mi {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.card .ico .mi {
  width: 26px;
  height: 26px;
}

.pill .mi {
  width: 20px;
  height: 20px;
}

/* ── Feature showcase (alternating image + text) ─────────────────────────
   Each screenshot sits beside its own caption, the pairs alternating sides
   down the page and stacking (image first) on narrow screens. The frame holds
   an <img> over a labelled placeholder; until the real file exists at
   /assets/shots/<name>, the img 404s and its onerror hides it, revealing the
   placeholder that names which screenshot belongs there. Drop the file in and
   it simply appears. */
.showcase-wrap {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.show-row {
  display: flex;
  align-items: center;
  gap: 56px;
}

.show-row.rev {
  flex-direction: row-reverse;
}

.show-media {
  /* flex-basis 0 (not auto) so each column is a definite 50% of the row — the
     frame's min() width then resolves against a real number. Kept a plain
     block (NOT a nested flex): as a flex item the frame stretched on the
     cross axis and, with its aspect-ratio, collapsed to a sliver. */
  flex: 1 1 0;
  min-width: 0;
}

.show-text {
  flex: 1 1 0;
  min-width: 0;
}

.show-text .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.show-text .ico .mi {
  width: 26px;
  height: 26px;
}

.show-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.show-text h3 {
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 12px;
}

.show-text p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 460px;
}

.show-text .pro {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary-ink);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  padding: 3px 9px;
  border-radius: 999px;
}

/* No decorative frame: the screenshots already carry their own device bezel,
   so a second gradient/border/rounded box behind them showed through at the
   corners. The screenshot stands on its own. */
.show-frame {
  width: min(300px, 100%);
  margin-inline: auto;
}

.show-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* The rest, without a screen of their own — the same visual language as a
   show-text column, laid two-up under the last row rather than beside a frame. */
.show-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.show-note .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.show-note .ico .mi {
  width: 22px;
  height: 22px;
}

.show-note h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 10px;
}

.show-note p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 460px;
}

/* Pro badge sitting inline in the eyebrow, rather than block below the copy as
   it is beside a frame — resets the block layout .pro carries elsewhere. */
.show-eyebrow .pro {
  display: inline-block;
  margin: 0 0 0 6px;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary-ink);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  padding: 2px 7px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .show-row,
  .show-row.rev {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .show-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .show-text p {
    max-width: 520px;
  }
  .showcase-wrap {
    gap: 56px;
  }
  .show-notes {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 56px;
    padding-top: 48px;
    text-align: center;
  }
  .show-note {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .show-note p {
    max-width: 520px;
  }
}
