/* Longest Labs. Quiet, typographic; dark or light with the system. Titles are an upright serif
   (New York where the system has it); the one italic is the Wardro wordmark. */
/* One set of tokens, two sets of values: dark (as designed) and light,
   chosen by the visitor's system setting. No colour below this block is
   written as a literal. */
:root {
  color-scheme: dark light;
  --page: #050506;
  --raised: #0d0d10;
  --fg: #ededf0;
  --fg-hover: #ffffff;
  --on-fg: #050506;
  --soft: #b4b4bc;
  --muted: #7d7d87;
  --rule: rgba(255, 255, 255, 0.09);
  --rule-strong: rgba(255, 255, 255, 0.16);
  --wash: rgba(255, 255, 255, 0.04);
  --accent: #2fbf98;
  --glow: rgba(47, 191, 152, 0.13);
  --glow-wide: rgba(47, 191, 152, 0.14);
  --stage: var(--raised);
  --shot-bg: #000;
  --shot-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --wordmark: "Hoefler Text", ui-serif, "Iowan Old Style", Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Light: warm paper, near-black ink, the same pine taken darker so it
   reads as text (AA on the page and on raised panels). */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --page: #fafaf9;
    --raised: #f3f3f0;
    --fg: #18181b;
    --fg-hover: #000000;
    --on-fg: #fafaf9;
    --soft: #45454d;
    --muted: #66666e;
    --rule: rgba(24, 24, 27, 0.1);
    --rule-strong: rgba(24, 24, 27, 0.18);
    --wash: rgba(24, 24, 27, 0.04);
    --accent: #087459;
    --glow: rgba(8, 116, 89, 0.09);
    --glow-wide: rgba(8, 116, 89, 0.09);
    --stage: #ecebe6;
    --shot-bg: #f2f2f0;
    --shot-shadow: 0 40px 80px -30px rgba(24, 24, 27, 0.4), 0 0 0 1px rgba(24, 24, 27, 0.05), 0 2px 8px rgba(24, 24, 27, 0.08);
  }
}
* { box-sizing: border-box; }
img { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--fg);
  font: 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
header.site, main, footer.site {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
main { flex: 1; }

/* Top bar */
header.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.mark {
  font: 600 1.05rem/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
header.site nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.9rem; }
header.site nav a, footer.site a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
header.site nav a:hover, footer.site a:hover, header.site nav a[aria-current] { color: var(--fg); }

footer.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(4rem, 10vw, 8rem);
  padding-top: 1.5rem;
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Type */
h1 {
  font: 600 clamp(2.6rem, 7vw, 4.75rem)/1.02 var(--serif);
  letter-spacing: -0.025em;
  margin: clamp(3rem, 9vw, 6.5rem) 0 1.25rem;
  text-wrap: balance;
}
h1.wordmark, .wordmark {
  font-family: var(--wordmark);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
}
h1.wordmark { font-size: clamp(3.5rem, 11vw, 7.5rem); }
.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: var(--soft);
  max-width: 34ch;
  margin: 0 0 2rem;
}
.meta { color: var(--muted); margin: 0 0 3rem; }
p, ul, ol { margin: 0 0 0.8rem; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.3rem; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--fg); font-weight: 600; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--on-fg);
  font: 500 0.95rem/1 var(--text);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--fg-hover); border-color: var(--fg-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn.quiet { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.btn.quiet:hover { border-color: var(--soft); background: var(--wash); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Home and 404: one statement, centred. Centred by text-align, not as a flex
   column: a flex item is as wide as its content, so the panel below was sized
   to its pictures (606px on any phone) instead of to the screen, and Safari
   showed it cut off on both sides. */
.hero { text-align: center; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.center .actions { justify-content: center; }

/* The product panel: one lit card with pictures of the thing itself. */
.panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: clamp(2.5rem, 7vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 0;
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  background:
    radial-gradient(80% 60% at 50% 0%, var(--glow), transparent 70%),
    var(--stage);
  overflow: hidden;
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s;
}
a.panel:hover { border-color: var(--rule-strong); }
.panel h2 { font: 600 clamp(1.6rem, 3.4vw, 2.4rem)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.panel h2.wordmark { font: italic 900 clamp(2.4rem, 5vw, 3.6rem)/1.1 var(--wordmark); }
.panel p { color: var(--soft); max-width: 30ch; margin: 0 0 1.25rem; }
.panel .go { color: var(--accent); font-weight: 500; }
.panel .go .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
a.panel:hover .go .arrow { transform: translateX(4px); }
.panel-copy { padding-bottom: clamp(0rem, 2vw, 2rem); align-self: center; }
@media (min-width: 48rem) {
  .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: end; }
}

/* Phone pictures: screenshots of the demo. */
.shots {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.shot {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 1.75rem;
  background: var(--shot-bg);
  box-shadow: var(--shot-shadow);
}
/* Each picture is a <picture> with a light version; the <picture> is the flex item. */
.shots > picture { display: block; flex: 0 1 17rem; min-width: 0; max-width: 17rem; }
.shots .shot { width: auto; max-width: 100%; }
.panel .shots { margin-bottom: -3rem; }
.panel .shots > picture { flex-basis: 14rem; }
.panel .shots > * + * .shot { margin-bottom: -2.5rem; }
.showcase {
  margin: clamp(2.5rem, 7vw, 5rem) auto 0;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 3rem) 0;
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  background:
    radial-gradient(70% 55% at 50% 0%, var(--glow-wide), transparent 70%),
    var(--stage);
  overflow: hidden;
}
.showcase .shots { margin-bottom: -4rem; }
.showcase .shots > :nth-child(2) .shot { margin-bottom: 2.5rem; }
@media (max-width: 40rem) {
  .showcase .shots > :nth-child(3) { display: none; }
  .panel .shots { margin-bottom: -2rem; }
}

/* Features: a ruled grid of short facts. */
.eyebrow {
  font: 500 0.78rem/1 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: clamp(4rem, 10vw, 7rem) 0 1.25rem;
}
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  overflow: hidden;
}
.cols > div { background: var(--page); padding: 1.5rem 1.5rem 1.75rem; transition: background 0.3s; }
.cols > div:hover { background: var(--raised); }
.cols { text-align: left; margin-top: clamp(3rem, 8vw, 6rem); }
.cols h2 { font: 600 1.15rem/1.3 var(--serif); letter-spacing: -0.01em; margin: 0 0 0.4rem; }
.cols p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Closing call. */
.closing { text-align: center; margin-top: clamp(4rem, 10vw, 7rem); }
.closing h2 { font: 600 clamp(1.8rem, 4.5vw, 3rem)/1.08 var(--serif); letter-spacing: -0.02em; margin: 0 0 0.75rem; text-wrap: balance; }
.closing p { color: var(--muted); margin: 0 auto 1.5rem; max-width: 36ch; }
.closing .actions { justify-content: center; }

/* Documents (support, privacy, terms): heading left, content right. */
section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  color: var(--soft);
}
section > h2 { font: 600 1.05rem/1.4 var(--serif); letter-spacing: -0.005em; color: var(--fg); margin: 0; }
section > div { max-width: 44rem; }
section > div.wide { max-width: none; }
@media (min-width: 52rem) {
  section { grid-template-columns: minmax(11rem, 1fr) 3fr; padding: 2rem 0; }
}
section > div > :last-child { margin-bottom: 0; }

.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 1.5rem 0.6rem 0; border-top: 1px solid var(--rule); }
tr:first-child > * { border-top: 0; padding-top: 0; }
th { font-weight: 600; color: var(--fg); white-space: nowrap; }
tbody th { width: 28%; white-space: normal; }
thead th { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

/* Quiet motion: the first screen rises into place once. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  main > h1, main > .lede, main > .meta, main > .actions, main > .panel, main > .showcase {
    animation: rise 0.9s var(--ease) both;
  }
  main > .lede, main > .meta { animation-delay: 0.08s; }
  main > .actions { animation-delay: 0.16s; }
  main > .panel, main > .showcase { animation-delay: 0.26s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
