/* ti-me website
   Brand tokens from ti-me-brand-foundation.md
   No third-party requests. Fonts are self-hosted. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --blue-900: #123C67;
  --blue-700: #1F5D99;
  --blue-100: #E6EFF8;
  --off-white-50: #F7F6F2;
  --off-white-100: #ECEDEB;
  --grey-700: #4D5B6A;
  --grey-400: #9CA8B5;
  --grey-100: #E5E9ED;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  --measure: 62ch;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 60, 103, 0.04), 0 8px 24px rgba(18, 60, 103, 0.05);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--off-white-50);
  color: var(--blue-900);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 1.35rem + 3vw, 3.1rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem); }
h3 { font-size: 1.0625rem; letter-spacing: -0.005em; }
p { margin: 0 0 1rem; }
p, li { max-width: var(--measure); }
strong { font-weight: 500; }

a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-900); }

:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--blue-900); color: var(--off-white-50);
  padding: 0.75rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--grey-100);
  background: color-mix(in srgb, var(--off-white-50) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { display: block; height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.9375rem; }
.nav a { color: var(--grey-700); text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--blue-900); }
.nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 660px) {
  .site-header .wrap { min-height: 60px; gap: 14px; flex-wrap: nowrap; }
  .nav { gap: 16px; font-size: 0.875rem; white-space: nowrap; }
  .nav .hide-sm { display: none; }
  .brand img { height: 20px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0.7rem 1.15rem; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn-primary { background: var(--blue-700); color: var(--off-white-50); }
.btn-primary:hover { background: var(--blue-900); color: var(--off-white-50); }
.btn-secondary { background: transparent; color: var(--blue-900); border-color: var(--grey-400); }
.btn-secondary:hover { border-color: var(--blue-700); color: var(--blue-900); background: var(--blue-100); }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.875rem; }

/* ---------- sections ---------- */

section { padding-block: clamp(56px, 7vw, 92px); }
section + section { border-top: 1px solid var(--grey-100); }
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--grey-700); margin: 0 0 1rem;
}
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); color: var(--grey-700); max-width: 58ch; }
.section-intro { max-width: 60ch; margin-bottom: 40px; }
.section-intro p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-bottom: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }
.meta {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--grey-700);
  margin: 0; max-width: none;
}

/* ---------- cards ---------- */

.card {
  background: #fff; border: 1px solid var(--grey-100);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-700); display: inline-block; }

/* ---------- app mock: the Today screen, as the application draws it ---------- */

.appmock {
  background: #fff; border: 1px solid var(--grey-100);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; font-size: 12px; line-height: 1.4;
}
.appmock__chrome {
  display: flex; gap: 6px; align-items: center;
  padding: 10px 12px; background: var(--off-white-100);
  border-bottom: 1px solid var(--grey-100);
}
.appmock__chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-400); opacity: 0.7; }
.appmock__body { display: grid; grid-template-columns: 148px 1fr; }

.appmock__side {
  background: var(--off-white-100); border-right: 1px solid var(--grey-100);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 14px; min-height: 340px;
}
.appmock__side img { height: 14px; width: auto; display: block; align-self: flex-start; margin: 2px 0 0 8px; }
.appmock__group { display: grid; gap: 2px; }
.appmock__grouplabel {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--grey-400); margin: 0 0 4px 8px;
}
.appmock__nav {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 6px; color: var(--grey-700); font-size: 11.5px;
}
.appmock__nav.is-active { background: var(--blue-100); color: var(--blue-900); font-weight: 500; }
.appmock__badge {
  margin-left: auto; background: var(--blue-700); color: var(--off-white-50);
  font-family: var(--mono); font-size: 9px; line-height: 15px;
  min-width: 15px; height: 15px; border-radius: 8px; text-align: center; padding: 0 4px;
}
.appmock__privacy {
  margin-top: auto; display: flex; gap: 7px; align-items: flex-start;
  font-size: 10px; color: var(--grey-700); line-height: 1.35;
}
.appmock__privacy .dot { width: 6px; height: 6px; margin-top: 3px; flex: none; }
.appmock__privacy b { display: block; color: var(--blue-900); font-weight: 500; }

.appmock__main { padding: 14px 16px 18px; display: grid; gap: 12px; }
.appmock__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.appmock__context { font-family: var(--mono); font-size: 10px; color: var(--grey-700); margin: 0 0 3px; }
.appmock__title { font-size: 15px; font-weight: 500; margin: 0 0 3px; letter-spacing: -0.01em; }
.appmock__desc { font-size: 11px; color: var(--grey-700); margin: 0; max-width: 34ch; }
.appmock__pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  border: 1px solid var(--grey-100); background: var(--off-white-100);
  border-radius: 20px; padding: 4px 10px; font-size: 10.5px; color: var(--blue-900);
}

.appmock__hero {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--off-white-100); border: 1px solid var(--grey-100);
  border-radius: 8px; padding: 14px;
}
.appmock__total strong {
  display: block; font-family: var(--mono); font-size: 22px;
  line-height: 1; letter-spacing: -0.03em; font-weight: 500;
}
.appmock__total span { font-size: 10px; color: var(--grey-700); }
.appmock__now { flex: 1 1 11rem; min-width: 0; border-left: 1px solid var(--grey-100); padding-left: 14px; }
.appmock__now b { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 2px; }
.appmock__now span { font-size: 10.5px; color: var(--grey-700); }
.appmock__buttons { display: flex; gap: 6px; flex: none; }
.appmock__btn {
  border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 500;
  border: 1px solid var(--grey-400); color: var(--blue-900);
}
.appmock__btn.is-primary { background: var(--blue-700); border-color: var(--blue-700); color: var(--off-white-50); }

.appmock__sectiontitle { font-size: 11px; font-weight: 500; margin: 2px 0 0; }
.appmock__tl { border: 1px solid var(--grey-100); border-radius: 8px; overflow: hidden; }
.appmock__row {
  display: grid; grid-template-columns: 3.1rem 0.4rem 1fr auto;
  gap: 10px; align-items: center; padding: 8px 11px;
  border-bottom: 1px solid var(--grey-100);
}
.appmock__row:last-child { border-bottom: 0; }
.appmock__time { font-family: var(--mono); font-size: 10px; color: var(--grey-700); font-variant-numeric: tabular-nums; }
.appmock__swatch { width: 6px; height: 26px; border-radius: 3px; background: var(--blue-700); }
.appmock__swatch.is-alt { background: var(--blue-900); }
.appmock__swatch.is-quiet { background: var(--grey-400); }
.appmock__what { min-width: 0; }
.appmock__what b { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appmock__what span { font-size: 10px; color: var(--grey-700); }
.appmock__dur { font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .appmock__body { grid-template-columns: 1fr; }
  .appmock__side { display: none; }
}

/* ---------- ledger ---------- */

.ledger { overflow-x: auto; }
.ledger table { border-collapse: collapse; width: 100%; min-width: 540px; font-family: var(--mono); font-size: 0.8125rem; }
.ledger th {
  text-align: left; font-weight: 400; color: var(--grey-700);
  text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.6875rem;
  padding: 0 14px 10px 0; border-bottom: 1px solid var(--grey-100);
}
.ledger td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--grey-100); vertical-align: top; color: var(--blue-900); }
.ledger td:first-child { color: var(--grey-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .revoked { color: var(--grey-700); }
.caption { font-size: 0.875rem; color: var(--grey-700); margin-top: 18px; max-width: 58ch; }

/* ---------- grids ---------- */

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid .card { padding: 24px; }
.grid .card p:last-child { margin-bottom: 0; }
.grid .card p { color: var(--grey-700); font-size: 0.9375rem; }
.card__no {
  font-family: var(--mono); font-size: 0.75rem; color: var(--grey-400);
  display: block; margin-bottom: 12px;
}

/* ---------- lists ---------- */

.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain li { padding: 12px 0; border-bottom: 1px solid var(--grey-100); max-width: 64ch; }
.plain li:first-child { border-top: 1px solid var(--grey-100); }
.plain li strong { display: block; }
.plain li span { color: var(--grey-700); font-size: 0.9375rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tags li {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--blue-900);
  background: var(--off-white-100); border: 1px solid var(--grey-100);
  padding: 6px 10px; border-radius: 8px; max-width: none;
}

/* ---------- blue band ---------- */

.band { background: var(--blue-900); color: var(--off-white-50); border-top: 0; }
.band h2, .band h3 { color: var(--off-white-50); }
.band p { color: color-mix(in srgb, var(--off-white-50) 82%, var(--blue-900)); }
.band a { color: var(--off-white-50); }
.band .pull {
  font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.2; color: var(--off-white-50); max-width: 20ch; margin: 0 0 1.25rem;
}
.band .tags li {
  background: rgba(247, 246, 242, 0.08); border-color: rgba(247, 246, 242, 0.22);
  color: var(--off-white-50);
}
.band .eyebrow { color: var(--grey-400); }

/* ---------- form ---------- */

.signup { max-width: 520px; }
.field { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.field label { position: absolute; left: -9999px; }
.field input[type='email'] {
  flex: 1 1 240px; min-width: 0;
  padding: 0.7rem 0.9rem; font: inherit; font-size: 0.9375rem;
  color: var(--blue-900); background: #fff;
  border: 1px solid var(--grey-400); border-radius: 10px;
}
.field input[type='email']::placeholder { color: var(--grey-400); }
.field input[type='email']:focus-visible { border-color: var(--blue-700); }
.fine { font-size: 0.875rem; color: var(--grey-700); max-width: 52ch; }

.form { display: grid; gap: 18px; max-width: 520px; }
.form__row { display: grid; gap: 6px; }
.form__row label { font-size: 0.9375rem; font-weight: 500; }
.form__row .optional { font-weight: 400; color: var(--grey-700); font-size: 0.8125rem; }
.form input[type='text'],
.form input[type='email'],
.form textarea {
  width: 100%; font: inherit; font-size: 0.9375rem;
  padding: 0.7rem 0.9rem; color: var(--blue-900); background: #fff;
  border: 1px solid var(--grey-400); border-radius: 10px;
}
.form textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.form input:focus-visible, .form textarea:focus-visible { border-color: var(--blue-700); }
.form .hint { font-size: 0.8125rem; color: var(--grey-700); margin: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- price ---------- */

.price-card { padding: 28px; max-width: 460px; }
.price-card .amount {
  font-family: var(--mono); font-size: 2.75rem; line-height: 1;
  letter-spacing: -0.02em; display: block; margin-bottom: 4px;
}
.price-card .amount span { font-size: 0.9375rem; color: var(--grey-700); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 0; }
.price-card li { padding: 10px 0; border-top: 1px solid var(--grey-100); font-size: 0.9375rem; }

table.compare { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
table.compare caption { text-align: left; color: var(--grey-700); font-size: 0.875rem; padding-bottom: 12px; }
table.compare th, table.compare td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
table.compare th { font-weight: 500; }
table.compare thead th {
  font-family: var(--mono); font-weight: 400; font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--grey-700);
}
table.compare td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }

/* ---------- article ---------- */

.article h2 { margin-top: 48px; }
.article h2:first-of-type { margin-top: 0; }
.article h3 { margin-top: 32px; }
.note {
  background: var(--blue-100); border-radius: var(--radius);
  padding: 20px 22px; margin: 28px 0; max-width: var(--measure);
}
.note p:last-child { margin-bottom: 0; }
.note p { font-size: 0.9375rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--blue-900); color: var(--off-white-50); padding-block: 56px 40px; }
.site-footer img { height: 20px; width: auto; display: block; margin-bottom: 20px; }
.site-footer .tagline { font-family: var(--serif); font-size: 1.25rem; color: var(--off-white-50); margin-bottom: 28px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9375rem; }
.site-footer a { color: var(--off-white-50); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .small {
  font-size: 0.8125rem; color: var(--grey-400); margin: 32px 0 0;
  padding-top: 20px; border-top: 1px solid rgba(247, 246, 242, 0.14); max-width: none;
}
