/*
  HalterLink website.
  Layout: a long scroll of chapters on the app's cream "paper", each marked by the logo's
  dot-and-line link. One light look on purpose, matching the app.
*/

:root {
  color-scheme: light;

  /* Brand (from the app theme and the logo) */
  --paper: #F6F3EE;
  --paper-2: #EFEAE1;
  --card: #FFFFFF;
  --ink: #1B2A41;
  --ink-2: #4F5B6B;
  --ink-3: #7A8492;
  --navy: #1F3A5F;
  --navy-deep: #13253C;
  --link: #56748E;
  --link-soft: #A9BFD3;
  --line: #E4DDD1;
  --tile: #EDEAE5;
  --on-dark: #F6F3EE;
  --on-dark-2: #C3CFDB;

  /* Horse colors (the app's palette) */
  --chestnut: #9A5B3C;
  --navy-2: #2F4E73;
  --sage: #5E7D5A;
  --plum: #7A4F7A;
  --teal: #2F6E6B;
  --ochre: #A8792A;

  /* States */
  --ok: #3F6E3B;
  --ok-bg: #E4EDE0;
  --free: #DCE8D6;
  --wait: #8A5F17;
  --wait-bg: #F5EAD3;
  --alert: #A0412C;
  --alert-bg: #F6E3DC;

  /* Whiteboard props */
  --board: #FCFCFA;
  --board-frame: #C6CBD1;
  --marker: #262C35;
  --marker-red: #B8392A;
  --marker-blue: #2A5BA6;
  --sticky: #F5E37C;
  --sms: #E9E9EB;

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Marker Felt", cursive;

  --step-small: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(3.4rem, 1.6rem + 6.4vw, 6.75rem);

  --radius: 16px;
  --shadow-1: 0 1px 2px rgba(27, 42, 65, 0.05), 0 6px 20px -8px rgba(27, 42, 65, 0.12);
  --shadow-2: 0 2px 6px rgba(27, 42, 65, 0.06), 0 28px 60px -18px rgba(27, 42, 65, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base ------------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
}

h3 { text-wrap: balance; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--on-dark); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

[hidden] { display: none !important; }

/* The logo's link: two dots joined by a line */
.link-mark {
  display: inline-block;
  flex: none;
  width: 30px;
  height: 10px;
  background:
    radial-gradient(circle at 4px 50%, var(--link) 3.2px, transparent 3.8px),
    radial-gradient(circle at 26px 50%, var(--link) 3.2px, transparent 3.8px),
    linear-gradient(var(--link), var(--link)) center / 22px 1.5px no-repeat;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--link);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow.on-dark { color: var(--link-soft); }
.eyebrow.on-dark .link-mark {
  background:
    radial-gradient(circle at 4px 50%, var(--link-soft) 3.2px, transparent 3.8px),
    radial-gradient(circle at 26px 50%, var(--link-soft) 3.2px, transparent 3.8px),
    linear-gradient(var(--link-soft), var(--link-soft)) center / 22px 1.5px no-repeat;
}

/* Buttons ------------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: var(--on-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px -10px rgba(31, 58, 95, 0.7);
}
.btn-primary:hover { background: var(--navy-deep); }

.btn-quiet { color: var(--navy); border-color: var(--line); background: transparent; }
.btn-quiet:hover { background: var(--card); border-color: var(--card); box-shadow: var(--shadow-1); }

.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--on-dark); }

.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { background: var(--card); }

.btn-ghost-light { color: var(--on-dark); border-color: rgba(246, 243, 238, 0.35); }
.btn-ghost-light:hover { border-color: var(--on-dark); }

.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.94rem; }

.text-link { text-decoration: none; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header ------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(246, 243, 238, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand { flex: none; display: block; }
.brand img { height: 36px; width: auto; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-inline: auto;
  font-size: 0.95rem;
}
.site-nav a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 20px;
  height: 1.75px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu-inner { display: grid; padding-block: 8px 16px; }
.mobile-menu-inner a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}
.mobile-menu-inner a:last-child { border-bottom: 0; }

@media (max-width: 920px) {
  .site-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .header-actions { gap: 10px; }
}
@media (max-width: 520px) {
  .login-link { display: none; }
  .brand img { height: 30px; }
}

/* Hero --------------------------------------------------------------------------------- */

.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy { display: grid; gap: 28px; justify-items: start; }

.hero-title {
  font-size: var(--step-4);
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
}
.hero-line { display: block; }
.hero-accent {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--navy);
  padding-bottom: 0.16em;
}
/* The logo's line under "LINK", drawn under "Connected." */
.hero-underline {
  position: absolute;
  left: 0.05em;
  right: 0.12em;
  bottom: 0;
  height: 0.11em;
}
.hero-underline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.11em;
  height: 0.11em;
  border-radius: 50%;
  background: var(--link);
}
.hero-underline::after {
  content: "";
  position: absolute;
  left: 0.09em;
  right: 0;
  top: 50%;
  height: max(2px, 0.024em);
  margin-top: calc(max(2px, 0.024em) / -2);
  border-radius: 2px;
  background: var(--link);
  transform-origin: left center;
}

.lead {
  max-width: 33em;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--link);
}

/* Hero visual: the phone, with updates plugged into it */
.hero-visual {
  --phone-w: 296px;
  position: relative;
  width: min(100%, 540px);
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.phone {
  position: relative;
  z-index: 1;
  width: var(--phone-w);
  max-width: 100%;
  aspect-ratio: 9 / 19.2;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(160deg, #2A3341, #10161F 40%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(16, 22, 31, 0.15),
    0 50px 80px -30px rgba(27, 42, 65, 0.45),
    0 30px 40px -30px rgba(27, 42, 65, 0.4);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--paper);
  padding: 0 14px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink);
}

.island {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0B0F15;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
  padding: 4px 10px 0 14px;
  font-weight: 600;
  font-size: 12.5px;
}
.status-svg { width: 52px; height: 11px; fill: currentColor; }

.app-top { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.app-top img { width: 82px; height: auto; }
.app-top-right { display: flex; align-items: center; gap: 8px; }
.bell { position: relative; width: 18px; height: 18px; }
.bell svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 1.5px var(--paper);
}
.avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--backgroundSelected, #E2E8F0);
  color: var(--navy);
  font-weight: 700;
  font-size: 11px;
}

.app-greeting {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.app-date { color: var(--ink-3); margin-top: 2px; }

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-block: 10px 10px;
}
.week-strip li {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 5px 0;
  border-radius: 8px;
  background: var(--tile);
  color: var(--ink-2);
}
.week-strip span { font-size: 8.5px; }
.week-strip b { font-size: 12px; font-weight: 600; color: var(--ink); }
.week-strip .is-today { background: var(--navy); color: var(--link-soft); }
.week-strip .is-today b { color: var(--on-dark); }

.app-card {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(27, 42, 65, 0.05);
}
.app-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 13.5px;
}
.app-card-head em { font-family: var(--font-body); font-style: normal; font-size: 9.5px; color: var(--link); }

.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--horse, var(--navy-2));
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
}
.tile.small { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.tile.big { width: 58px; height: 58px; border-radius: 16px; font-size: 30px; }
.tile.you { background: var(--backgroundSelected, #E2E8F0); color: var(--navy); font-family: var(--font-body); font-weight: 700; font-size: 10px; border-radius: 50%; }

.sched li {
  display: grid;
  grid-template-columns: 14px 44px 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-top: 1px solid var(--tile);
}
.sched li:first-child { border-top: 0; }
.sched-time { color: var(--ink-2); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.sched-what { display: grid; min-width: 0; }
.sched-what b { font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-what small { color: var(--ink-3); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.done-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #C9C2B6;
}
.done-circle.is-done {
  border-color: var(--sage);
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.pill {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }

.tasks li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--tile);
}
.tasks li:first-child { border-top: 0; }
.tasks .box {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.5px solid #C9C2B6;
  transition: background-color 0.3s, border-color 0.3s;
}
.tasks .task-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; }
.tasks .is-done .box {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.6 7.2l2.2 2.2 4.6-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.tasks .is-done .task-name { color: var(--ink-3); text-decoration: line-through; }
.chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: #E9EEF5;
  color: var(--navy);
  font-size: 8.5px;
  font-weight: 600;
}
.chip-time { background: var(--wait-bg); color: var(--wait); }

.updates li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--tile);
}
.updates li:first-child { border-top: 0; }
.updates span:not(.tile) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.updates time { color: var(--ink-3); font-size: 9px; }
.updates .is-new { animation: slide-in 0.5s var(--ease) both; }

.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 8px 10px 18px;
  background: var(--card);
  border-top: 1px solid var(--line);
}
.tab { display: grid; justify-items: center; gap: 2px; font-size: 8.5px; color: var(--ink-3); }
.tab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-active { color: var(--navy); }
.tab-plus {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 22px;
  font-weight: 300;
  box-shadow: 0 8px 16px -6px rgba(31, 58, 95, 0.6);
}

/* Updates plugged into the phone */
.float-card {
  --gap: 30px;
  position: absolute;
  z-index: 2;
  right: calc(var(--phone-w) + var(--gap));
  display: flex;
  align-items: center;
  gap: 10px;
  width: 196px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-2);
  font-size: 0.8rem;
  line-height: 1.3;
}
.float-card div { display: grid; min-width: 0; }
.float-card strong { font-weight: 650; }
.float-card span:not(.float-dot):not(.float-action) { color: var(--ink-2); font-size: 0.75rem; }
.float-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: calc(var(--gap) + 10px);
  height: 1.5px;
  background: var(--link);
  transform-origin: left center;
}
.float-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + var(--gap) + 4px);
  width: 9px;
  height: 9px;
  margin-top: -3.75px;
  border-radius: 50%;
  background: var(--link);
  box-shadow: 0 0 0 3px var(--paper);
  z-index: 3;
}
.float-dot {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 14.5l3.2 3.2L19 10.8' fill='none' stroke='%233F6E3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.float-dot.feed {
  background: #E9EEF5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M8 12h12l-1.4 8H9.4z M10 12a4 4 0 0 1 8 0' fill='none' stroke='%231F3A5F' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.float-dot.ask {
  background: var(--wait-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M8 9h12v8h-6l-3.5 3v-3H8z' fill='none' stroke='%238A5F17' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.float-action {
  flex: none;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 0.7rem;
  font-weight: 600;
}
.float-c { width: 236px; }
.float-a { top: 16%; --gap: 26px; }
.float-c { top: 44%; --gap: 18px; }
.float-b { top: 72%; --gap: 40px; }

@media (max-width: 1080px) and (min-width: 961px) {
  .float-card { display: none; }
  .hero-visual { justify-content: center; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin-inline: auto; width: min(100%, 560px); }
}

@media (max-width: 600px) {
  .float-card { display: none; }
  .hero-visual { justify-content: center; }
}

/* Sections ----------------------------------------------------------------------------- */

.section { padding-block: clamp(72px, 10vw, 128px); }

.section-head { display: grid; gap: 18px; max-width: 760px; }
.section-head.narrow { max-width: 680px; }
.section-lead { color: var(--ink-2); font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem); max-width: 36em; }

/* Problem: the whiteboard */
.whiteboard-section { background: var(--paper-2); }
.whiteboard-section .section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.ba-label {
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.before { position: relative; padding-bottom: 72px; }

.board {
  position: relative;
  width: min(100%, 420px);
  padding: 22px 26px 34px;
  border: 10px solid var(--board-frame);
  border-radius: 6px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0) 56%),
    var(--board);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 40px -20px rgba(27, 42, 65, 0.35);
  transform: rotate(-1.2deg);
  font-family: var(--font-hand);
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  color: var(--marker);
}
.board p { white-space: nowrap; }
.board-day {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2.5px solid var(--marker);
}
.marker-red { color: var(--marker-red); font-weight: 700; }
.marker-blue { color: var(--marker-blue); }
.smudged { opacity: 0.32; filter: blur(0.6px); }
.board-tray {
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -18px;
  height: 8px;
  border-radius: 0 0 4px 4px;
  background: var(--board-frame);
}

.sticky {
  position: absolute;
  top: 34px;
  right: 0;
  width: 150px;
  padding: 16px 14px 22px;
  background: var(--sticky);
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--marker);
  transform: rotate(5deg);
  box-shadow: 0 12px 20px -12px rgba(27, 42, 65, 0.5);
}

.sms {
  position: absolute;
  right: 0;
  bottom: 18px;
  max-width: 250px;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--sms);
  font-size: 0.86rem;
  line-height: 1.35;
  color: #1C1C1E;
  transform: rotate(-2deg);
  box-shadow: 0 10px 22px -14px rgba(27, 42, 65, 0.5);
}
.sms-from { display: block; font-size: 0.7rem; font-weight: 600; color: #6E6E73; margin-bottom: 2px; }

.group-chat {
  position: absolute;
  left: 12px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1C1C1E;
  color: #F2F2F7;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(2deg);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.6);
}
.gc-dot { width: 8px; height: 8px; border-radius: 50%; background: #34C759; }
.group-chat b { padding: 2px 8px; border-radius: 999px; background: #FF3B30; color: #FFFFFF; font-size: 0.72rem; }

.ba-link { display: grid; place-items: center; height: 100%; }
.ba-link span {
  width: 100%;
  height: 12px;
  background:
    radial-gradient(circle at 6px 50%, var(--link) 4.5px, transparent 5.2px),
    radial-gradient(circle at calc(100% - 6px) 50%, var(--link) 4.5px, transparent 5.2px),
    linear-gradient(var(--link), var(--link)) center / calc(100% - 12px) 2px no-repeat;
}

.after {
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-2);
}
.after .ba-label { color: var(--navy); }

.clean-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.clean-list li:first-child { border-top: 0; padding-top: 0; }
.kind {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kind-feed { background: #E9EEF5; color: var(--navy); }
.kind-alert { background: var(--alert-bg); color: var(--alert); }
.kind-care { background: #E6EFEE; color: var(--teal); }
.kind-ride { background: #EEE6EE; color: var(--plum); }
.kind-task { background: var(--tile); color: var(--ink-2); }
.kind-ask { background: var(--wait-bg); color: var(--wait); }
.clean-main { display: grid; min-width: 0; line-height: 1.35; }
.clean-main b { font-weight: 600; font-size: 0.95rem; }
.clean-main small { color: var(--ink-2); font-size: 0.82rem; }
.clean-state { font-size: 0.78rem; font-weight: 600; color: var(--ink-3); text-align: right; white-space: nowrap; }
.clean-state.ok { color: var(--ok); }
.clean-state.ok::before { content: "✓ "; }
.clean-state.wait {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--on-dark);
}

@media (max-width: 900px) {
  .before-after { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ba-link { height: 56px; }
  .ba-link span {
    width: 12px;
    height: 100%;
    background:
      radial-gradient(circle at 50% 6px, var(--link) 4.5px, transparent 5.2px),
      radial-gradient(circle at 50% calc(100% - 6px), var(--link) 4.5px, transparent 5.2px),
      linear-gradient(var(--link), var(--link)) center / 2px calc(100% - 12px) no-repeat;
  }
  .before { max-width: 520px; }
}

@media (max-width: 520px) {
  .before { padding-bottom: 0; display: grid; gap: 14px; }
  .board { width: 100%; }
  .board p { white-space: normal; }
  .sticky, .sms, .group-chat { position: relative; inset: auto; }
  .sticky { justify-self: end; margin-top: -40px; }
  .sms { justify-self: start; }
  .group-chat { justify-self: end; }
  .clean-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .clean-list .kind { grid-column: 1 / -1; }
}

/* Chapters */
.chapter-tint { background: var(--paper-2); }

.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.chapter-grid.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.chapter-grid.flip .chapter-copy { order: 2; }

.chapter-copy { display: grid; gap: 22px; }

.ticks { display: grid; gap: 14px; margin-top: 6px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E9EEF5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.3 9.3l2.4 2.4 5-5.2' fill='none' stroke='%231F3A5F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ticks b { color: var(--ink); font-weight: 600; }

.chapter-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px clamp(40px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.chapter-wide .ticks { margin-top: 0; }

@media (max-width: 960px) {
  .chapter-wide { grid-template-columns: minmax(0, 1fr); }
  .chapter-grid, .chapter-grid.flip { grid-template-columns: minmax(0, 1fr); }
  .chapter-grid.flip .chapter-copy { order: 0; }
}

/* Small UI pieces shared by the mockups */
.mini-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.btn-fake {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: var(--on-dark);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn-fake.ghost { background: transparent; color: var(--navy); border-color: var(--line); }

/* Plan Tomorrow board */
.planner {
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-2);
}
.planner-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 20px;
  margin-bottom: 16px;
}
.planner-day { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.76rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 10px; border-radius: 3px; }
.lg-free { background: var(--free); }
.lg-booked { background: var(--navy-2); }
.lg-wait { background: var(--wait-bg); outline: 1.5px dashed var(--ochre); outline-offset: -1.5px; }
.lg-draft { background: var(--card); outline: 1.5px dashed var(--navy); outline-offset: -1.5px; }

.scroll-hint { display: none; margin-bottom: 8px; font-size: 0.78rem; color: var(--ink-3); }
@media (max-width: 760px) { .scroll-hint { display: block; } }
.planner-scroll { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; -webkit-overflow-scrolling: touch; }
.planner-board { min-width: 680px; }

.pl-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: stretch;
  min-height: 56px;
  border-top: 1px solid var(--line);
}
.pl-row.pl-hours { min-height: 26px; border-top: 0; }
.pl-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.15;
}
.pl-name small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--ink-3); }

.pl-track {
  position: relative;
  background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / calc(100% / 7) 100%;
}
.pl-hours .pl-track { background: none; }
.pl-hours i {
  position: absolute;
  top: 2px;
  left: calc((var(--t) - 6) / 14 * 100%);
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--ink-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pl-hours i:first-child { transform: none; }
.pl-hours i:last-child { transform: translateX(-100%); }

.band, .blk {
  position: absolute;
  left: calc((var(--s) - 6) / 14 * 100%);
  width: calc((var(--e) - var(--s)) / 14 * 100%);
}
.band { top: 6px; bottom: 6px; border-radius: 9px; background: var(--free); }
.blk {
  top: 13px;
  bottom: 13px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.blk.booked { background: var(--navy-2); color: var(--on-dark); }
.blk.care { background: var(--teal); color: var(--on-dark); }
.blk.wait { background: var(--wait-bg); color: var(--wait); outline: 1.5px dashed var(--ochre); outline-offset: -1.5px; }
.blk.draft { background: var(--card); color: var(--navy); outline: 1.5px dashed var(--navy); outline-offset: -1.5px; }
.blk.load { top: 19px; bottom: 19px; background: rgba(31, 58, 95, 0.2); }
.pl-empty { background: linear-gradient(90deg, rgba(168, 121, 42, 0.09), rgba(168, 121, 42, 0)); }
.empty-note {
  position: absolute;
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--wait);
}

.planner-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-2);
}

/* Owners */
.owner-stack {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}
.o-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-2);
}
.o-ride { grid-column: 1 / 10; grid-row: 1; position: relative; z-index: 1; }
.o-decline { grid-column: 4 / 13; grid-row: 2; margin-top: -18px; position: relative; z-index: 2; }
.o-access { grid-column: 1 / 9; grid-row: 3; margin-top: -14px; position: relative; z-index: 3; }

.o-title { margin-top: 8px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.o-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.86rem; color: var(--ink-2); }
.o-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.o-field {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.9rem;
}
.o-sub { margin-top: 14px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.o-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.o-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.8rem;
  font-weight: 600;
}
.o-chips span:not(.add)::before { content: "✓ "; }
.o-chips .add { background: transparent; color: var(--ink-2); border: 1px dashed #CFC6B8; }

.toggles { margin-top: 6px; }
.toggles li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.toggles li:first-child { border-top: 0; }
.toggles i {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #D8D1C5;
}
.toggles i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.toggles i.on { background: var(--navy); }
.toggles i.on::after { left: 16px; }

@media (max-width: 560px) {
  .owner-stack { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .o-ride, .o-decline, .o-access { grid-column: 1; grid-row: auto; margin-top: 0; }
}

/* Horses */
.horse-stack {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}
.horse-card {
  grid-column: 1 / 11;
  grid-row: 1;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-2);
}
.feed-card {
  grid-column: 4 / 13;
  grid-row: 2;
  margin-top: -26px;
  position: relative;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-2);
}

.horse-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--chestnut);
  color: var(--on-dark);
}
.horse-banner .tile { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.horse-name { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.horse-meta { margin-top: 6px; font-size: 0.85rem; opacity: 0.9; }

.horse-tabs { display: flex; gap: 6px; padding: 12px 16px; overflow: hidden; }
.horse-tabs li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tile);
  font-size: 0.78rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.horse-tabs .is-on { background: var(--navy); color: var(--on-dark); }

.horse-alert {
  margin: 0 16px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--alert-bg);
  color: var(--alert);
  font-size: 0.84rem;
}
.horse-alert b { margin-right: 6px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

.care-list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.care-kind { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.care-main { display: grid; font-size: 0.9rem; font-weight: 600; line-height: 1.3; min-width: 0; }
.care-main small { font-weight: 400; color: var(--ink-2); font-size: 0.78rem; }
.care-next { font-size: 0.82rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.care-list { padding-bottom: 34px; }
.care-next.warn { padding: 3px 10px; border-radius: 999px; background: var(--wait-bg); color: var(--wait); }

.meals { display: flex; gap: 6px; flex-wrap: wrap; }
.meals li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tile);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.meals .is-on { background: var(--navy); color: var(--on-dark); }
.feed-rows { margin-top: 10px; }
.feed-rows li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.feed-main { display: grid; min-width: 0; font-size: 0.88rem; line-height: 1.3; }
.feed-main b { font-weight: 600; }
.feed-main small { color: var(--ink-2); font-size: 0.78rem; }
.fed { font-size: 0.76rem; font-weight: 600; color: var(--ok); white-space: nowrap; }
.fed::before { content: "✓ "; }
.unfed { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #C9C2B6; }
.feed-foot { display: flex; justify-content: flex-end; padding-top: 8px; }

@media (max-width: 560px) {
  .care-list { padding-bottom: 0; }
  .horse-stack { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .horse-card, .feed-card { grid-column: 1; grid-row: auto; margin-top: 0; }
  .care-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .care-kind { grid-column: 1 / -1; }
}

/* Everything else */
.more-section { border-top: 1px solid var(--line); }
.more-section .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 32px;
}
.feature-grid li { display: grid; align-content: start; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.f-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-grid h3 { font-size: 1.05rem; font-weight: 650; line-height: 1.3; }
.feature-grid p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Roles */
.roles-section { background: var(--paper-2); }
.roles-section .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.roles li { display: grid; align-content: start; gap: 10px; padding: 4px 28px 8px; border-left: 1px solid #D9D0C2; }
.roles li:first-child { padding-left: 0; border-left: 0; }
.roles h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; line-height: 1.1; letter-spacing: -0.01em; }
.role-who { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.roles p:not(.role-who) { color: var(--ink-2); font-size: 0.97rem; }

.roles-note {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
}

@media (max-width: 1000px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 0; }
  .roles li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .roles { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .roles li { padding: 0 0 0 18px; border-left: 2px solid var(--link-soft); }
  .roles li:first-child, .roles li:nth-child(3) { padding-left: 18px; border-left: 2px solid var(--link-soft); }
  .roles-note { border-radius: 18px; align-items: flex-start; }
  .roles-note .link-mark { margin-top: 7px; }
}

/* Privacy */
.trust-section { background: var(--navy-deep); color: var(--on-dark); }
.trust-section .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.trust-grid li { display: grid; align-content: start; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(169, 191, 211, 0.3); }
.trust-grid h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.15; }
.trust-grid p { color: var(--on-dark-2); font-size: 0.98rem; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Setup: three linked steps */
.setup-section .section-head { margin-bottom: clamp(44px, 5vw, 68px); }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: calc(100% / 3 - 22px);
  height: 2px;
  background: var(--link);
}
.steps li { position: relative; display: grid; align-content: start; gap: 12px; }
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--link);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1.3rem;
  box-shadow: 0 0 0 7px var(--paper);
}
.steps h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.steps p { color: var(--ink-2); max-width: 30em; }

@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps::before { content: none; }
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    bottom: -32px;
    left: 21px;
    width: 2px;
    background: var(--link);
  }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
}

/* Pricing */
.pricing-section { background: var(--paper-2); }
.pricing-section .section-head { margin-bottom: clamp(40px, 5vw, 60px); }

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 24px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.plan h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.plan-for { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; padding-block: 6px 4px; }
.amount { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.per { color: var(--ink-3); font-size: 0.9rem; }

.plan-list { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 8px; }
.plan-list li { position: relative; padding-left: 24px; font-size: 0.93rem; line-height: 1.45; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.8 2.8 6.2-6.4' fill='none' stroke='%2356748E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }

.plan-featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-dark);
  box-shadow: 0 30px 60px -28px rgba(31, 58, 95, 0.75);
}
.plan-featured:hover { box-shadow: 0 34px 64px -28px rgba(31, 58, 95, 0.85); }
.plan-featured .plan-for, .plan-featured .per { color: var(--on-dark-2); }
.plan-featured .plan-list { border-top-color: rgba(169, 191, 211, 0.3); }
.plan-featured .plan-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.8 2.8 6.2-6.4' fill='none' stroke='%23A9BFD3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--link-soft);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-plan {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: 16px;
  padding: 24px 28px;
  border-radius: 22px;
  border: 1px dashed #CFC6B8;
}
.custom-plan > div { display: grid; gap: 6px; max-width: 40em; }
.custom-plan h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.custom-price { margin-left: 8px; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink-2); }
.custom-plan p { color: var(--ink-2); font-size: 0.95rem; }

.fine-print { margin-top: 24px; text-align: center; color: var(--ink-3); font-size: 0.88rem; text-wrap: balance; }

@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 600px) {
  .plans { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .plan-for { min-height: 0; }
  .custom-plan .btn { width: 100%; }
}

/* Questions */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: 112px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 11px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover::after { background-color: var(--card); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 40em; }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
}

/* Closing call to action */
.closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 11vw, 140px);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(86, 116, 142, 0.35), transparent 70%),
    var(--navy);
  color: var(--on-dark);
  text-align: center;
}
.closing-inner { display: grid; justify-items: center; gap: 24px; }
.closing-inner::before {
  content: "";
  width: min(320px, 70%);
  height: 12px;
  margin-bottom: 8px;
  background:
    radial-gradient(circle at 6px 50%, var(--link-soft) 4.5px, transparent 5.2px),
    radial-gradient(circle at calc(100% - 6px) 50%, var(--link-soft) 4.5px, transparent 5.2px),
    linear-gradient(var(--link-soft), var(--link-soft)) center / calc(100% - 12px) 1.5px no-repeat;
  opacity: 0.8;
}
.closing h2 {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.closing h2 em { color: var(--link-soft); }
.closing p { color: var(--on-dark-2); font-size: 1.15rem; max-width: 32em; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark-2);
  padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 0.95rem;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { width: 170px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.footer-nav div { display: grid; gap: 10px; align-content: start; }
.footer-nav a { text-decoration: none; color: var(--on-dark); }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-head { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link-soft); }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(169, 191, 211, 0.18); font-size: 0.85rem; }

/* Legal pages (privacy.html, terms.html) ------------------------------------------------- */

.legal { padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.legal-inner { max-width: 780px; }
.legal h1 {
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
}
.legal-updated { margin-top: 12px; color: var(--ink-3); font-size: var(--step-small); }
.legal-intro { margin-top: 28px; font-size: var(--step-1); color: var(--ink-2); }
.legal h2 {
  margin-top: 52px;
  margin-bottom: 14px;
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.legal h3 { margin-top: 26px; margin-bottom: 6px; font-size: var(--step-0); font-weight: 600; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 14px; }
.legal ul { display: grid; gap: 10px; padding-left: 1.25em; list-style: disc; }
.legal li::marker { color: var(--link); }
.legal a { color: var(--navy); text-underline-offset: 3px; }
.legal-summary {
  margin-top: 36px;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.legal-summary h2 { margin-top: 0; }

/* Motion: one orchestrated entrance in the hero ------------------------------------------ */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes plug { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.hero-copy > :nth-child(4) { animation-delay: 0.26s; }
.hero-copy > :nth-child(5) { animation-delay: 0.34s; }
.hero-underline::before { animation: pop 0.45s var(--ease) 0.7s both; }
.hero-underline::after { animation: grow 1.1s var(--ease) 0.85s both; }
.phone { animation: rise 1s var(--ease) 0.15s both; }
.float-card { animation: plug 0.7s var(--ease) both; }
.float-card::after { animation: grow 0.5s var(--ease) both; animation-delay: inherit; }
.float-a { animation-delay: 1.0s; }
.float-c { animation-delay: 1.25s; }
.float-b { animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
