/* Trellace marketing site. Colors, fonts and shapes follow the app so the two feel like one product. */
:root {
  color-scheme: light;
  --bg: #edf1f6;
  --panel: #fff;
  --field: #f5f8fb;
  --fg: #1b2531;
  --muted: #5d6c7e;
  --line: #dde4ed;
  --accent: #2a74b8;
  --accent-soft: #e2effb;
  --on-accent: #fff;
  --bad: #c0362c;
  --ok: #2a9a5f;
  --shadow: 0 1px 2px rgba(20, 40, 70, 0.06), 0 10px 30px rgba(20, 40, 70, 0.08);
  --radius: 18px;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #10161e;
    --panel: #18212c;
    --field: #121a24;
    --fg: #e6edf5;
    --muted: #9aa8ba;
    --line: #263140;
    --accent: #6db4ee;
    --accent-soft: #1c3550;
    --on-accent: #0c1a2a;
    --bad: #ff8a80;
    --ok: #62d49b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.28);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #10161e;
  --panel: #18212c;
  --field: #121a24;
  --fg: #e6edf5;
  --muted: #9aa8ba;
  --line: #263140;
  --accent: #6db4ee;
  --accent-soft: #1c3550;
  --on-accent: #0c1a2a;
  --bad: #ff8a80;
  --ok: #62d49b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.28);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 32px;
  height: 32px;
  flex: none;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent);
}
.iconbtn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  cursor: pointer;
}
.iconbtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.iconbtn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#menu {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: 700 1rem var(--sans);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  cursor: pointer;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn.primary:hover {
  filter: brightness(1.1);
  color: var(--on-accent);
}
.btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}
/* hero */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(
      900px 420px at 80% -10%,
      color-mix(in srgb, var(--accent) 18%, transparent),
      transparent 70%
    ),
    radial-gradient(
      700px 360px at 0% 0%,
      color-mix(in srgb, var(--accent) 10%, transparent),
      transparent 70%
    );
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font: 700 0.78rem var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
/* the animated logo between the eyebrow and the headline: the light or dark version follows the theme; still version for reduced motion */
.hero-logo {
  margin: 0 0 14px -10px;
}
.hero-logo img {
  display: block;
  height: 84px;
  width: auto;
}
.hero-logo .logo-dark,
.hero-logo .logo-still {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hero-logo .logo-light {
    display: none;
  }
  :root:not([data-theme='light']) .hero-logo .logo-anim.logo-dark {
    display: block;
  }
}
:root[data-theme='dark'] .hero-logo .logo-light {
  display: none;
}
:root[data-theme='dark'] .hero-logo .logo-anim.logo-dark {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo .logo-anim {
    display: none !important;
  }
  .hero-logo .logo-still.logo-light {
    display: block;
  }
  :root[data-theme='dark'] .hero-logo .logo-still.logo-light {
    display: none;
  }
  :root[data-theme='dark'] .hero-logo .logo-still.logo-dark {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) and (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hero-logo .logo-still.logo-light {
    display: none;
  }
  :root:not([data-theme='light']) .hero-logo .logo-still.logo-dark {
    display: block;
  }
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}
.fine {
  font-size: 0.88rem;
  color: var(--muted);
}
.frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame .bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--field);
}
.frame .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.shots {
  position: relative;
}
.shots .phone {
  position: absolute;
  right: -14px;
  bottom: -34px;
  width: 34%;
  border-radius: 26px;
  border: 6px solid var(--fg);
  box-shadow: var(--shadow);
  background: var(--panel);
}
/* strip */
.strip {
  padding: 28px 0;
}
.strip ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 40px;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
}
.strip li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.strip svg,
.ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
/* sections */
section {
  padding: 72px 0;
}
.head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.head p {
  color: var(--muted);
  font-size: 1.1rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
} /* always whole rows: six cards are two rows of three */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card p {
  color: var(--muted);
  margin: 0;
}
.card .badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card .badge svg {
  width: 24px;
  height: 24px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 84px;
}
.row:last-child {
  margin-bottom: 0;
}
.row.flip .copy {
  order: 2;
}
.row .copy p {
  color: var(--muted);
  font-size: 1.08rem;
}
.ticks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ticks svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--ok);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.alt {
  background: color-mix(in srgb, var(--panel) 55%, var(--bg));
}
.steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps .card {
  position: relative;
  padding-top: 60px;
}
.steps .card::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 26px;
  top: 22px;
  font: 800 1.9rem var(--sans);
  color: var(--accent);
}
.phones {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.phones img {
  width: min(250px, 44vw);
  border-radius: 28px;
  border: 6px solid var(--fg);
  box-shadow: var(--shadow);
}
/* the closing call to action: a blue glass panel with two slowly drifting glows and a soft highlight that brightens and fades.
   Colours are variables so a page can tint it (turbo.css makes it purple). In dark mode it turns light sky blue with dark
   text and a dark button, matching the Turbo panel's light lilac. */
.band {
  --band-glow-a: rgba(56, 189, 248, 0.3);
  --band-glow-b: rgba(96, 165, 250, 0.26);
  --band-base: linear-gradient(120deg, #19448a 0%, #1f539d 50%, #174085 100%);
  --band-sheen: rgba(255, 255, 255, 0.15);
  --band-shadow: rgba(30, 80, 160, 0.45);
  --band-fg: #fff;
  --band-btn-bg: rgba(255, 255, 255, 0.92);
  --band-btn-fg: #1f539d;
  --band-btn-edge: rgba(255, 255, 255, 0.7);
  --band-btn-hi: #fff;
  --band-btn-shadow: rgba(20, 50, 110, 0.55);
  --band-btn-hover: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 50%), var(--band-base);
  color: var(--band-fg);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: calc(var(--radius) + 6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 24px 60px -18px var(--band-shadow);
  padding: 56px 28px;
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .band {
    --band-glow-a: rgba(255, 255, 255, 0.3);
    --band-glow-b: rgba(120, 220, 255, 0.32);
    --band-base: linear-gradient(120deg, #8cc3f0 0%, #a6d2f6 50%, #84bbec 100%);
    --band-sheen: rgba(255, 255, 255, 0.32);
    --band-shadow: rgba(90, 160, 230, 0.35);
    --band-fg: #0b1d33;
    --band-btn-bg: #0e2440;
    --band-btn-fg: #a6d2f6;
    --band-btn-edge: #1d3656;
    --band-btn-hi: #233f63;
    --band-btn-shadow: rgba(10, 30, 60, 0.5);
    --band-btn-hover: #1a3556;
    border-color: rgba(255, 255, 255, 0.4);
  }
}
:root[data-theme='dark'] .band {
  --band-glow-a: rgba(255, 255, 255, 0.3);
  --band-glow-b: rgba(120, 220, 255, 0.32);
  --band-base: linear-gradient(120deg, #8cc3f0 0%, #a6d2f6 50%, #84bbec 100%);
  --band-sheen: rgba(255, 255, 255, 0.32);
  --band-shadow: rgba(90, 160, 230, 0.35);
  --band-fg: #0b1d33;
  --band-btn-bg: #0e2440;
  --band-btn-fg: #a6d2f6;
  --band-btn-edge: #1d3656;
  --band-btn-hi: #233f63;
  --band-btn-shadow: rgba(10, 30, 60, 0.5);
  --band-btn-hover: #1a3556;
  border-color: rgba(255, 255, 255, 0.4);
}
/* the two corner glows, on a layer larger than the panel that drifts slowly (moving it never shows an edge) */
.band::after {
  content: '';
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(37% 87% at 17% 17%, var(--band-glow-a), transparent 65%),
    radial-gradient(33% 80% at 83% 83%, var(--band-glow-b), transparent 65%);
  pointer-events: none;
  z-index: -2;
  animation: band-drift 20s ease-in-out infinite alternate;
}
@keyframes band-drift {
  from {
    transform: translate(-4%, -3%) rotate(-3deg);
  }
  to {
    transform: translate(5%, 4%) rotate(4deg);
  }
}
/* the sheen: a broad, soft glassy highlight that stays put and slowly brightens and fades, shifting a little as it does */
.band::before {
  content: '';
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 30%;
  width: 70%;
  background: linear-gradient(
    105deg,
    transparent 15%,
    color-mix(in srgb, var(--band-sheen) 45%, transparent) 35%,
    var(--band-sheen) 50%,
    color-mix(in srgb, var(--band-sheen) 45%, transparent) 65%,
    transparent 85%
  );
  pointer-events: none;
  z-index: -1;
  animation: band-sheen 16s ease-in-out infinite alternate;
}
@keyframes band-sheen {
  from {
    opacity: 0.45;
    transform: translateX(-6%);
  }
  to {
    opacity: 1;
    transform: translateX(6%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .band::after,
  .band::before {
    animation: none;
  }
}
.band p {
  /* full strength: the drifting glow can pass behind it, and it must stay readable at every point */
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 auto 24px;
}
.band .btn:not(.primary) {
  background: var(--band-btn-bg);
  color: var(--band-btn-fg);
  border: 1px solid var(--band-btn-edge);
  box-shadow:
    inset 0 1px 0 var(--band-btn-hi),
    0 8px 22px -8px var(--band-btn-shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.band .btn:not(.primary):hover {
  background: var(--band-btn-hover);
  border-color: var(--band-btn-edge);
  color: var(--band-btn-fg);
}
/* news and reviews */
.news {
  display: grid;
  gap: 16px;
}
.post {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.post time {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.post h3 {
  margin: 6px 0 8px;
}
.post p {
  color: var(--muted);
  margin: 0;
}
.pill {
  display: inline-block;
  font: 700 0.72rem var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-right: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 999px;
  font: 600 0.9rem var(--sans);
  cursor: pointer;
}
.chip[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
/* Timeline: a row of linked step cards (see README, "Timeline component") */
.timeline {
  --tl-cols: 5;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--tl-cols), minmax(0, 1fr));
  gap: 28px;
  counter-reset: tl;
}
.timeline[data-steps='3'] {
  --tl-cols: 3;
}
.timeline[data-steps='4'] {
  --tl-cols: 4;
}
.timeline > li {
  position: relative;
  counter-increment: tl;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline > li::before {
  content: counter(tl, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--accent);
  font: 800 1.6rem/1 var(--sans);
  opacity: 0.85;
}
.timeline > li::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.timeline > li:last-child::after {
  display: none;
}
.tl-tag {
  --tone: var(--accent);
  order: -2;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 4px 11px 4px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--tone) 18%, var(--panel));
  color: var(--fg);
  font: 700 0.75rem var(--sans);
}
.tl-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--tone);
}
.tl-tag.blue {
  --tone: #4aa3df;
}
.tl-tag.green {
  --tone: #4fb477;
}
.tl-tag.coral {
  --tone: #ef7b63;
}
.tl-tag.yellow {
  --tone: #e8b830;
}
.tl-time {
  order: -1;
  margin: 0 0 6px;
  color: var(--muted);
  font: 700 0.75rem var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline h3 {
  margin: 0 0 8px;
}
.timeline p {
  margin: 0;
  color: var(--muted);
}
.timeline .tl-time {
  margin-bottom: 6px;
}
@media (max-width: 860px) {
  .timeline,
  .timeline[data-steps] {
    grid-template-columns: 1fr;
  }
  .timeline > li::after {
    top: auto;
    right: auto;
    bottom: -20px;
    left: 50%;
    margin: 0 0 0 -5px;
    transform: rotate(135deg);
  }
}
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review blockquote {
  margin: 0;
  font-size: 1.04rem;
}
.stars {
  color: #e0a21c;
  letter-spacing: 2px;
  font-size: 1.1rem;
}
.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.who b {
  display: block;
}
.who span {
  color: var(--muted);
  font-size: 0.9rem;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.sample {
  font: 700 0.7rem var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}
.state {
  color: var(--muted);
  text-align: center;
  padding: 30px;
}
/* features page */
.catnav {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.1);
}
.catnav a {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.96rem;
  white-space: nowrap;
  flex: none;
  transition:
    background-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.catnav a:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--fg);
}
.catnav a[aria-selected='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
/* the sliding pill (js/features.js) sits behind the tabs and replaces the chosen tab's own fill */
.catnav-pill {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
  pointer-events: none;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}
.catnav.has-pill a {
  position: relative;
  z-index: 1;
}
.catnav.has-pill a[aria-selected='true'],
.catnav.has-pill a[aria-selected='true']:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  /* turn white as the sliding highlight arrives, not before */
  transition: color 0.12s 0.14s;
}
@media (prefers-reduced-motion: reduce) {
  .catnav.has-pill a[aria-selected='true'] {
    transition: none;
  }
}
.catnav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* narrower screens: one row that scrolls sideways instead of wrapping */
@media (max-width: 1100px) {
  .catnav {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .catnav::-webkit-scrollbar {
    display: none;
  }
  .catnav a {
    padding: 10px 12px;
    scroll-snap-align: center;
  }
}
@media (max-width: 640px) {
  /* a rounded track inside the page margins, centered; the ends fade where tabs scroll out of view */
  .catnav {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 5px;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent,
      #000 14px,
      #000 calc(100% - 14px),
      transparent
    );
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }
  .catnav a {
    padding: 8px 14px;
    font-size: 0.92rem;
  }
}
.cat[hidden] {
  display: none;
}
.tabs-on .cat {
  border-top: 0;
}
.cat:focus {
  outline: none;
}
.cat {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.cat:first-of-type {
  border-top: 0;
}
.cat h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cat h2 .badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.cat h2 .badge svg {
  width: 24px;
  height: 24px;
}
.cat-part {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.cat > .wrap > p,
.cat-part > p {
  color: var(--muted);
  max-width: 68ch;
}
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
} /* every group holds a multiple of three, so no row is left short */
.feat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.feat .fico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.feat .fico svg {
  width: 22px;
  height: 22px;
}
.soon {
  display: inline-block;
  font: 700 0.66rem var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-left: 6px;
  vertical-align: 2px;
}
.feat h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
/* flagship feature at the top of each category */
.flag {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin-top: 22px;
}
.flag-solo {
  grid-template-columns: 1fr;
}
.flag-solo .flag-copy {
  max-width: 70ch;
}
.flag-copy .eyebrow {
  display: inline-block;
  margin-bottom: 6px;
}
.flag-copy h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.flag-copy p {
  color: var(--muted);
  margin: 0 0 12px;
}
.flag-copy ul {
  margin: 0;
  padding-left: 1.2em;
}
.flag-copy li {
  margin: 4px 0;
}
.flag-media {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(20, 40, 70, 0.16);
  background: var(--bg);
  line-height: 0;
}
.flag-media img {
  width: 100%;
  height: auto;
}
.flag-media.phone {
  max-width: 250px;
  justify-self: center;
  border-radius: 30px;
  border-width: 6px;
  border-color: var(--fg);
}
.flag-media.seal {
  position: relative;
  padding: 20px;
  display: grid;
  gap: 10px;
  line-height: 1.4;
  font-size: 0.95rem;
}
.seal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.seal-row .seal-ct {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--accent);
  opacity: 0.85;
}
.seal-row span:first-child {
  animation: seal-fade 6s ease-in-out infinite;
}
.seal-row:nth-child(2) span:first-child {
  animation-delay: 0.6s;
}
.seal-row:nth-child(3) span:first-child {
  animation-delay: 1.2s;
}
.seal-lock {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 56px;
  height: 56px;
  color: var(--accent);
  opacity: 0.18;
}
@keyframes seal-fade {
  0%,
  35% {
    opacity: 1;
    filter: none;
  }
  50%,
  85% {
    opacity: 0.25;
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .seal-row span:first-child {
    animation: none;
  }
}
.more {
  margin: 30px 0 0;
  font-size: 1.05rem;
  color: var(--muted);
}
.more + .feats {
  margin-top: 12px;
}
/* contact */
.cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
form.contact {
  display: grid;
  gap: 16px;
}
label {
  font-weight: 700;
  font-size: 0.92rem;
  display: grid;
  gap: 6px;
}
input,
select,
textarea {
  font: 500 1rem var(--sans);
  color: var(--fg);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
textarea {
  min-height: 150px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.note {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--fg);
  font-weight: 600;
}
.note.err {
  background: color-mix(in srgb, var(--bad) 14%, transparent);
}
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 18px;
}
details + details {
  margin-top: 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
details[open] summary::after {
  content: '–';
}
details p {
  color: var(--muted);
}
.pagehead {
  padding: 56px 0 8px;
  text-align: center;
}
.pagehead p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 62ch;
  margin: 0 auto;
}
/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 30px;
  margin-top: 40px;
  color: var(--muted);
}
footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
footer h4 {
  color: var(--fg);
  margin: 0 0 10px;
  font-size: 0.95rem;
}
footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 3px 0;
}
footer a:hover {
  color: var(--accent);
}
footer .legal {
  margin-top: 30px;
  font-size: 0.88rem;
}
footer .legal .inl {
  display: inline;
  padding: 0;
  text-decoration: underline;
}
footer .legal .sep {
  margin: 0 6px;
}
/* legal pages */
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.5em;
}
.prose h3 {
  font-size: 1.05rem;
  margin: 1.4em 0 0.3em;
}
.prose p,
.prose li {
  line-height: 1.7;
}
.prose ul {
  padding-left: 1.3em;
}
.prose a {
  color: var(--accent);
}
@media (max-width: 900px) {
  .flag {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .cards,
  .feats {
    grid-template-columns: repeat(2, 1fr);
  }
  .strip ul {
    grid-template-columns: repeat(2, auto);
    gap: 12px 28px;
  }
  .hero .grid,
  .row,
  .cols,
  .steps,
  footer .grid {
    grid-template-columns: 1fr;
  }
  .row.flip .copy {
    order: 0;
  }
  .shots .phone {
    right: 6px;
    bottom: -24px;
  }
  #menu {
    display: inline-grid;
    margin-left: auto;
  }
  /* phone menu: full-width rows, then the theme button and the main button side by side */
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    margin: 0;
  }
  .nav.open {
    display: grid;
  }
  .nav > * {
    grid-column: 1 / -1;
  }
  .nav > #theme,
  .nav > .btn {
    grid-column: auto;
    margin-top: 14px;
  }
  .nav > #theme {
    width: 46px;
    height: 46px;
  }
  .nav > .btn {
    min-height: 46px;
  }
  .nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  section {
    padding: 52px 0;
  }
  .hero {
    padding-top: 44px;
  }
}
@media (max-width: 620px) {
  .cards,
  .feats,
  .strip ul {
    grid-template-columns: 1fr;
  }
  .strip ul {
    justify-items: start;
    width: max-content;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* the private-beta notice above the header */
.betabar {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.92rem;
}
.betabar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding: 8px 0;
  text-align: center;
}
.betabar .pill {
  background: color-mix(in srgb, var(--on-accent) 22%, transparent);
  color: var(--on-accent);
  margin: 0;
}
.betabar a {
  color: var(--on-accent);
  font-weight: 700;
  text-underline-offset: 3px;
}
.betabar a:hover {
  text-decoration-thickness: 2px;
}
.reviews > .state {
  grid-column: 1/-1;
  text-align: center;
  padding: 24px 0;
}
@media (max-width: 620px) {
  .betabar .hide-sm {
    display: none;
  }
  .betabar .wrap {
    padding: 7px 0;
    gap: 4px 10px;
  }
}
.captcha {
  min-height: 65px;
  display: flex;
  align-items: center;
}

/* callout: a highlighted card with an icon, text and a button */
.callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  margin: 0 0 50px;
}
.callout .badge {
  margin: 0;
  width: 56px;
  height: 56px;
}
.callout h3 {
  margin: 0 0 4px;
}
.callout p {
  margin: 0;
  color: var(--muted);
}
/* who can see what */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.97rem;
}
.tbl th,
.tbl td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tbl th {
  background: var(--field);
  font-weight: 700;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl td:first-child {
  font-weight: 600;
}
.tbl .yes {
  color: var(--ok);
  font-weight: 700;
}
@media (max-width: 860px) {
  .callout {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .tbl {
    display: block;
    overflow-x: auto;
  }
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px var(--accent-soft),
    var(--shadow);
}
.plan .price {
  margin: 16px 0 2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan .amt {
  font: 800 2.6rem var(--sans);
  color: var(--fg);
}
.plan .per {
  color: var(--muted);
}
.plan .alt-price {
  font-weight: 600;
}
.plan .ticks {
  flex: 1;
}
.plannote {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 24px auto 0;
}
.plans.four {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
}
@media (max-width: 1100px) {
  .plans.four {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
  }
}
@media (max-width: 620px) {
  .plans,
  .plans.four {
    grid-template-columns: 1fr;
  }
}

/* About dropdown */
.dd {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
}
.dd:hover,
.dd:focus-within,
.dd.open,
.dd.on {
  background: var(--accent-soft);
}
.dd > a:first-child,
.dd > a:first-child:hover,
.nav .dd > a[aria-current='page'] {
  background: none;
  padding-right: 6px;
}
.dd.on > a:first-child,
.dd:hover > a:first-child {
  color: var(--accent);
}
.dd-toggle {
  background: none;
  border: 0;
  color: var(--fg);
  cursor: pointer;
  width: 16px;
  height: 34px;
  margin: 0 14px 0 0;
  padding: 0;
  display: grid;
  place-items: center;
}
.dd:hover .dd-toggle,
.dd.on .dd-toggle {
  color: var(--accent);
}
.dd-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}
.dd-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 30;
  flex-direction: column;
  gap: 2px;
}
.dd-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.dd-menu a {
  display: block;
  border-radius: 10px;
}
.dd:hover .dd-menu,
.dd:focus-within .dd-menu,
.dd.open .dd-menu {
  display: flex;
}
.dd.open .dd-toggle svg,
.dd:hover .dd-toggle svg {
  transform: rotate(180deg);
}
@media (max-width: 900px) {
  /* About is a row like the others, with its arrow at the end; its pages hang below it on a guide line */
  .dd,
  .dd:hover,
  .dd:focus-within,
  .dd.open,
  .dd.on {
    flex-wrap: wrap;
    align-items: stretch;
    background: none;
    border-radius: 12px;
  }
  .dd > a:first-child,
  .dd > a:first-child:hover {
    flex: 1;
    padding-right: 14px;
    border-radius: 12px 0 0 12px;
  }
  .dd-toggle {
    width: 48px;
    height: auto;
    margin: 0;
    border-radius: 0 12px 12px 0;
    color: var(--muted);
  }
  /* the link and its arrow light up together, whichever one is under the pointer */
  .dd > a:first-child:hover,
  .dd > a:first-child:hover + .dd-toggle,
  .dd:has(> .dd-toggle:hover) > a:first-child,
  .dd-toggle:hover {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .dd.on > a:first-child,
  .dd.on .dd-toggle {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .dd-menu,
  .dd:hover .dd-menu,
  .dd:focus-within .dd-menu {
    display: none;
    position: static;
    width: auto;
    flex: 0 0 calc(100% - 22px);
    min-width: 0;
    margin: 4px 0 6px 22px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .dd.open .dd-menu {
    display: flex;
  }
  .dd-menu a {
    padding: 10px 14px;
  }
  .dd-menu::before {
    display: none;
  }
}

.cmp-wrap {
  max-width: 820px;
  margin: 0 auto;
  overflow-x: auto;
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cmp th,
.cmp td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cmp thead th {
  font-weight: 700;
}
.cmp th:first-child {
  text-align: left;
}
.cmp tbody th {
  font-weight: 500;
}
.cmp .feat {
  color: var(--accent);
}
.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
  border-bottom: 0;
}
.cmp svg {
  width: 20px;
  height: 20px;
  color: var(--ok);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.cmp td span[aria-hidden] {
  color: var(--muted);
}

/* Smaller grey note under a value in a comparison table cell */
.pc-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.8em;
  color: var(--muted);
}

/* Wider comparison chart (Trellace against other apps) */
.cmp-wide {
  max-width: 1120px;
}
.cmp-wide .cmp th,
.cmp-wide .cmp td {
  padding: 12px 10px;
  font-size: 0.95rem;
}
.cmp-wide .cmp th:first-child {
  min-width: 200px;
}
.cmp-part {
  color: var(--muted);
  font-size: 0.85em;
}
.cmp-note {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Turbo rows in the comparison chart: the Turbo purple (colors come from turbo.css) */
.cmp .cmp-turbo-head th {
  padding: 14px 16px;
  text-align: left;
  color: var(--on-turbo);
  background: var(--turbo);
}
.cmp .cmp-turbo-head .tw-ico {
  color: inherit;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  fill: currentColor;
  stroke: none;
}
.cmp .cmp-turbo th,
.cmp .cmp-turbo td {
  background: var(--turbo-soft);
  border-bottom-color: color-mix(in srgb, var(--turbo) 22%, transparent);
}
.cmp .cmp-turbo th {
  color: color-mix(in srgb, var(--turbo) 70%, var(--text));
  font-weight: 600;
}
.cmp .cmp-turbo td.cmp-tc {
  background: color-mix(in srgb, var(--turbo) 26%, transparent);
}
.cmp .cmp-turbo-bolt {
  width: 22px;
  height: 22px;
  color: inherit;
  stroke: none;
}
.cmp .cmp-turbo-bolt .tw-bolt {
  fill: var(--turbo);
}
.cmp .cmp-turbo-head .tw-bolt {
  fill: currentColor;
}

/* Trellace column in the comparison chart: a soft blue so it stands out */
.cmp th.feat,
.cmp td.feat {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  border-radius: 0;
  box-shadow: none;
  border-left: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-right: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
}
.cmp thead th.feat {
  background: color-mix(in srgb, var(--accent) 22%, var(--panel));
  border-top: 3px solid var(--accent);
}

/* the buttons at the foot of a plan card: one row that wraps, with the standard gap */
.plan .plan-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 22px;
}
