/* ---------- SOLEIL (self-hosted, licensed from TypeTogether) ----------
   Generated by scripts/build-fonts.sh from the .otf masters in the gimlet
   repo. Three faces only — every extra weight is another file to fetch. */
@font-face {
  font-family: 'Soleil';
  src: url('/assets/fonts/soleil-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Soleil';
  src: url('/assets/fonts/soleil-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Soleil';
  src: url('/assets/fonts/soleil-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Soleil';
  src: url('/assets/fonts/soleil-semibold-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --teal: #3F8089;
  --teal-dark: #2D5C62;
  --ink: #111111;
  --cream: #F5EEE3;
  --cream-deep: #EDE3D3;
  --white: #FFFFFF;
  --amber: #C97A2B;
  --terracotta: #993C1D;
  --text-soft: #55544D;
  --border: #DDD3C2;

  /* Brand gradient, from the logo mark. */
  --cyan-light: #87E6EE;
  --cyan: #0ECDDC;
  --cyan-deep: #43A1A8;

  /* One family, three faces. --font-display is kept separate from --font-body
     so a distinct display face can be reintroduced by changing one line. */
  --font-display: 'Soleil', system-ui, sans-serif;
  --font-body: 'Soleil', system-ui, sans-serif;
  /* System monospace — costs zero bytes and keeps the technical texture on the
     small uppercase labels. Set to var(--font-body) to go Soleil-only. */
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  /* Headline weight. Section headings match the h1 — hierarchy is carried by
     size, colour and spacing rather than by weight. */
  --weight-h1: 600;
  --weight-display: 600;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 238, 227, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  /* The wordmark's letterforms inherit this via currentColor. */
  color: var(--ink);
}
/* Wordmark lockup: 1025x260 in the source, so height drives the width. */
.brand-logo {
  height: 30px;
  width: calc(30px * 1025 / 260);
  display: block;
}
.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  background: var(--ink);
  color: var(--cream);
  padding: 11px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--teal-dark); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
/* The service-night pulse. Sits low and behind everything, and never takes
   the pointer — the hero itself listens, so the canvas can't block a click.
   --pulse-opacity is the dial for how present it is. */
.hero-pulse {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 72%;
  z-index: 0;
  pointer-events: none;
  opacity: var(--pulse-opacity, 1);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  /* Top-aligned rather than centred: the phone is much taller than the copy,
     so centring pushed the headline down into the middle of the hero. */
  align-items: start;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}
h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-h1);
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 24px;
}
h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 460px;
  margin-bottom: 34px;
  line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; gap: 20px; }
/* Used on both <a> and <button>, so it resets the browser button defaults
   that would otherwise make the two render differently. */
.btn-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.5;
  background: var(--teal);
  color: var(--white);
  padding: 15px 28px;
  border: 0;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.hero-note {
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ---------- iPHONE / iOS MESSAGES MOCKUP (signature element) ----------
   Everything inside the screen uses Apple's system font and system colors,
   not the site's. The point of the mock is that it reads as a real text
   message, and Soleil or the cream palette inside the screen would break
   that immediately. */
.iphone {
  --ios-blue: #007AFF;
  --ios-bubble: #E9E9EB;
  --ios-gray: #8E8E93;
  --ios-bar: #F7F7F7;
  --ios-hairline: #D2D2D6;
  --ios-screen: #FFFFFF;
  --font-ios: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;

  width: 100%;
  max-width: 314px;
  margin: 0 auto;
  padding: 11px;
  background: #1c1c1e;
  border-radius: 54px;
  /* The thin bright ring reads as the polished edge of the titanium band. */
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.16),
    0 30px 60px -20px rgba(17,17,17,0.45),
    0 8px 20px -8px rgba(17,17,17,0.25);
}
.iphone-screen {
  position: relative;
  /* Own stacking context, so the glass header's backdrop-filter samples only
     the thread behind it. Without this its backdrop is the whole page, and the
     animating hero canvas forces a full recomposite on every frame. */
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 630px;
  background: var(--ios-screen);
  border-radius: 43px;
  overflow: hidden;
  font-family: var(--font-ios);
  -webkit-font-smoothing: antialiased;
}

/* --- status bar --- */
/* Grid rather than space-between: the 1fr columns are equal regardless of
   how wide the clock and the icons are, so the island lands dead centre. */
.ios-statusbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 26px 0;
  color: #000;
  flex-shrink: 0;
}
.ios-clock {
  justify-self: start;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-left: 4px;
}
/* Dynamic Island. Sits in the status bar row so the clock and icons
   flow around it exactly as they do on device. */
.ios-island {
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 100px;
  margin-top: -4px;
}
.ios-status-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- navigation bar --- */
/* iOS 26 "Liquid Glass" header: the controls float as translucent circles
   over the thread rather than sitting on an opaque bar, and the contact name
   rides in a capsule that overlaps the avatar. */
.ios-navbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 4px 13px 9px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  flex-shrink: 0;
}
/* Shared treatment for the back and FaceTime buttons. The inset highlight is
   what sells the glass — a lit top edge over a soft drop shadow. */
.ios-navbtn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C1C1E;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.9),
    0 0 0 0.5px rgba(0, 0, 0, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.10);
}
.ios-back { justify-self: start; }
.ios-facetime { justify-self: end; }
.ios-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ios-avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #EFEFF0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F1919;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}
.ios-avatar svg { width: 25px; height: 22px; }
/* Rides up over the bottom of the avatar, as it does on device. */
.ios-name-pill {
  position: relative;
  z-index: 1;
  margin-top: -7px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 11px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.95),
    0 0 0 0.5px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.09);
}
.ios-name-pill svg { color: #8E8E93; margin-top: 0.5px; }

/* --- message thread --- */
.ios-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* messages settle at the bottom, as on device */
  padding: 0 14px 8px;
  overflow: hidden;
}
.ios-daystamp {
  text-align: center;
  font-size: 11px;
  color: var(--ios-gray);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.ios-daystamp strong { color: var(--ios-gray); font-weight: 600; }
.ios-bubble + .ios-daystamp { margin-top: 16px; }

/* Incoming bubble. Grey and left-aligned is the single strongest signal
   that this is a received message rather than a UI card. */
.ios-bubble {
  position: relative;
  align-self: flex-start;
  max-width: 83%;
  background: var(--ios-bubble);
  color: #000;
  font-size: 14.5px;
  line-height: 1.32;
  letter-spacing: -0.012em;
  padding: 8px 13px 9px;
  border-radius: 18px;
}
/* The tail: ::before extends the bubble down-left, ::after carves it back
   out in the screen colour. Painted in source order, so no z-index needed. */
.ios-bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 14px;
  height: 18px;
  background: var(--ios-bubble);
  border-bottom-right-radius: 15px;
}
.ios-bubble::after {
  content: "";
  position: absolute;
  left: -13px;
  bottom: 0;
  width: 13px;
  height: 18px;
  background: var(--ios-screen);
  border-bottom-right-radius: 12px;
}
.ios-link {
  display: block;
  margin-top: 2px;
  color: var(--ios-blue);
  text-decoration: underline;
  text-underline-offset: 1.5px;
}

/* --- messages arriving ---
   Bubbles scale up from the corner the tail sits in, which is how a received
   iMessage lands. The easing overshoots slightly to imitate Apple's spring.
   Only opacity and transform animate, so nothing reflows and the thread never
   shifts under the reader. */
@keyframes ios-arrive {
  from { opacity: 0; transform: translateY(12px) scale(0.84); }
  70%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
@keyframes ios-stamp-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ios-bubble {
  transform-origin: bottom left;
  animation: ios-arrive 0.5s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.ios-daystamp {
  animation: ios-stamp-in 0.4s ease-out both;
}
/* Yesterday's brief lands first, then a beat, then today's — the pause is
   what sells the every-morning cadence. */
.ios-thread > *:nth-child(1) { animation-delay: 0.35s; }
.ios-thread > *:nth-child(2) { animation-delay: 0.50s; }
.ios-thread > *:nth-child(3) { animation-delay: 1.35s; }
.ios-thread > *:nth-child(4) { animation-delay: 1.50s; }

/* --- input bar --- */
.ios-inputbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 6px;
  flex-shrink: 0;
}
.ios-plus {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #E9E9EB;
  color: #6E6E73;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* "Text Message", not "iMessage" — Marlon delivers over SMS. */
.ios-field {
  flex: 1;
  border: 1px solid var(--ios-hairline);
  border-radius: 17px;
  padding: 7px 13px;
  font-size: 13.5px;
  color: #AEAEB2;
  letter-spacing: -0.01em;
}

/* --- home indicator --- */
.ios-home {
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #000;
  margin: 3px auto 8px;
  flex-shrink: 0;
}

/* ---------- PROBLEM ---------- */
.problem {
  background: var(--white);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-soft); font-size: 16.5px; line-height: 1.6; }

.tool-scatter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
}
.tool-card .tool-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-dark);
  margin-bottom: 10px;
}
.tool-card p { font-size: 14px; color: var(--text-soft); }

/* ---------- HOW IT WORKS ---------- */
.how { padding: 96px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
}
/* White cards on the cream ground, inverting the Problem section above where
   cream cards sit on white. Keeps the two card sections from reading as the
   same block twice. */
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px 30px;
  transition:
    transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(63, 128, 137, 0.45);
  box-shadow: 0 18px 34px -18px rgba(17, 17, 17, 0.28);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
/* The numeral is what makes the three read as a sequence rather than three
   unrelated features. */
.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--teal-dark);
  background: var(--cream);
  border: 1px solid var(--border);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.step:hover .step-num {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.step-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--amber);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.62;
}

/* ---------- WHY US ---------- */
.why {
  background: var(--ink);
  color: var(--cream);
  padding: 96px 0;
}
.why .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.why h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 34px;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--white);
}
.why-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--cream);
  border-left: 2px solid var(--amber);
  padding-left: 24px;
}
.why-credentials {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.credential-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid rgba(245,238,227,0.25);
  color: rgba(245,238,227,0.75);
  padding: 6px 12px;
  border-radius: 100px;
}

/* ---------- CTA ---------- */
.cta {
  padding: 110px 0;
  text-align: center;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 40px;
  letter-spacing: -0.01em;
  max-width: 560px;
  margin: 0 auto 18px;
  line-height: 1.15;
}
.cta p { color: var(--text-soft); font-size: 16.5px; margin-bottom: 34px; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-soft);
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); color: var(--ink); }
.footer-mark {
  height: 20px;
  width: calc(20px * 290 / 260);
  flex-shrink: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  h1 { font-size: 38px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 64px; text-align: left; }
  .tool-scatter { grid-template-columns: repeat(2, 1fr); }
  /* Let the night bleed well past the viewport. Constrained to the column the
     curve gets squeezed into a narrow, steep hump; running it wide keeps the
     shallow horizon that made the shape read as a service night in the first
     place. The hero clips the overflow, so no horizontal page scroll. */
  .hero-pulse {
    left: -55%;
    right: auto;
    width: 210%;
    height: 320px;
  }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .why .wrap { grid-template-columns: 1fr; gap: 36px; }
  .why-quote { font-size: 19px; }
  .cta h2 { font-size: 30px; }
  footer .wrap { flex-direction: column; gap: 10px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Killing the animation also drops its fill-mode, so the messages simply
     render in their final state rather than staying stuck at opacity 0. */
  * { transition: none !important; animation: none !important; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
