/* Locus website: "Terracotta & Paper", mirroring mobile/src/ui/theme.ts.
   --tint-ink and --ink-2 are slightly deeper than the app tokens so small
   text and links meet WCAG AA contrast on the paper canvas. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F7F2EC;
  --cream: #FFFDF9;
  --muted: #F1EBE3;
  --line: #E4DACE;
  --ink: #2B2420;
  --ink-2: #6F635B;
  --tint: #D9603B;
  --tint-ink: #B5482B;
  --tint-soft: rgba(217, 96, 59, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 3px 10px rgba(90, 62, 43, 0.07);
  --radius: 14px;
  --radius-xl: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--tint-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--tint-ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 10;
  background: var(--cream);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.skip:focus { left: 16px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tint-ink); }
.lede { font-size: 19px; color: var(--ink-2); }

.pill {
  display: inline-flex;
  align-items: center;
  background: var(--tint-ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 999px;
}
a.pill { text-decoration: none; }
a.pill:hover { background: #9E3D23; }

/* Header and footer */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 23px/1 var(--serif);
  letter-spacing: -0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 23%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(43, 36, 32, 0.08), 0 4px 14px rgba(90, 62, 43, 0.12);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); margin-top: 32px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 30px;
  font-size: 14px;
  color: var(--ink-2);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--ink-2); }

/* Home: hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: 28px 0 60px;
}
.hero-copy { display: grid; justify-items: start; gap: 18px; max-width: 580px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Home: phone illustration of a Timeline day */
.phone {
  width: 290px;
  background: var(--ink);
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 24px 50px rgba(90, 62, 43, 0.18);
}
.screen { display: grid; gap: 10px; background: var(--paper); border-radius: 37px; padding: 24px 14px 20px; }
.screen-title { font: 600 27px/1.1 var(--serif); padding: 0 4px 2px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat, .visit { background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 10px 12px; }
.stat b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-2); }
.visit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.visit strong { font-weight: 600; }
.visit time { grid-row: span 2; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tag { justify-self: start; font-size: 11.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; }
.tag-home { color: #664A90; background: rgba(123, 94, 167, 0.13); }
.tag-work { color: #335F92; background: rgba(62, 111, 168, 0.13); }
.tag-restaurant { color: #A8501F; background: rgba(224, 122, 63, 0.15); }
.road { margin-left: 22px; padding: 2px 0 2px 12px; border-left: 2px dotted var(--tint); font-size: 12.5px; color: var(--ink-2); }

/* Home: features and privacy promise */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 36px; }
.card { background: var(--cream); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow); }
.card h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 16px 0 6px; }
.card p { font-size: 16px; color: var(--ink-2); }
.badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tint-soft);
  color: var(--tint-ink);
}
.badge svg { width: 22px; height: 22px; }

.promise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 24px 48px;
  background: var(--muted);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 24px;
}
.promise .intro { display: grid; align-content: start; gap: 12px; }
.promise h2 { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: -0.01em; }
.promise .intro p { color: var(--ink-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5482B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Home: beta waitlist */
.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px 48px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 36px;
  margin-bottom: 24px;
  scroll-margin-top: 16px;
}
.join-copy { display: grid; align-content: start; gap: 12px; }
.join h2 { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: -0.01em; }
.join-copy p:last-child { color: var(--ink-2); }
.join-form { display: grid; align-content: start; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input {
  width: 100%;
  font: 17px/1.3 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid #DDD2C5;
  border-radius: 12px;
  padding: 12px 14px;
}
.field input::placeholder { color: #8C8178; }
.field input:focus-visible { outline: 2px solid var(--tint-ink); outline-offset: 1px; border-color: transparent; }
button.pill { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
button.pill:hover { background: #9E3D23; }
.fine { font-size: 14px; color: var(--ink-2); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Legal pages */
.legal { max-width: 740px; margin: 0 auto; padding: 16px 24px 8px; }
.legal-head { display: grid; gap: 10px; margin-bottom: 28px; }
.legal h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 5vw, 48px); letter-spacing: -0.02em; }
.updated { font-size: 15px; color: var(--ink-2); }
.summary { background: var(--cream); border-radius: var(--radius-xl); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
.summary h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.summary ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc { margin-bottom: 36px; }
.toc h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  display: inline-block;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.toc a:hover { border-color: var(--tint); }
.prose section { scroll-margin-top: 16px; margin-bottom: 34px; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 27px; letter-spacing: -0.01em; margin-bottom: 12px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 20px 0 6px; }
.prose p + p, .prose ul + p, .prose .table-wrap + p { margin-top: 12px; }
.prose ul { margin: 10px 0; padding-left: 22px; display: grid; gap: 6px; }
.table-wrap { overflow-x: auto; margin: 14px 0; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--muted); }
.prose tr:last-child td { border-bottom: 0; }

.not-found { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 72px 24px 56px; }
.not-found .lede { max-width: 34em; }
.not-found h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5vw, 46px); letter-spacing: -0.02em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 12px; }
  .phone { margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; padding: 26px 22px; }
  .join { grid-template-columns: 1fr; padding: 26px 22px; }
}
@media (max-width: 380px) {
  body { font-size: 16px; }
  .wrap, .legal { padding-left: 18px; padding-right: 18px; }
  .phone { width: 100%; }
}
@media print {
  body { background: #fff; }
  .skip, .site-nav, .site-footer, .toc { display: none; }
  .summary, .table-wrap { box-shadow: none; border: 1px solid #ccc; }
}
