/* TradeVelocity. Palette: Page, Ink, Slate, Galvo, Signal. System type on purpose: nothing to download. */

:root {
  --page: #F5F7F7;
  --ink: #181D21;
  --slate: #4A565E;
  --galvo: #C9D0D4;
  --signal: #0A5CFF;
  --signal-press: #0848CC;
  --glass: rgba(245, 247, 247, 0.72);

  --gutter: 1.25rem;
  --max: 68rem;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--signal); text-underline-offset: 0.2em; }
a:hover { color: var(--signal-press); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 650; }
h1 {
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; }
p + p { margin-top: 1rem; }
.lead { font-size: clamp(1.1875rem, 2.4vw, 1.375rem); line-height: 1.5; color: var(--slate); max-width: 34rem; }
.muted { color: var(--slate); }
.small { font-size: 0.9375rem; line-height: 1.5; }
.prose { max-width: 40rem; }

/* Header */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 rgba(24, 29, 33, 0);
  transition: box-shadow 200ms ease;
}
.bar.is-scrolled { box-shadow: 0 1px 0 rgba(24, 29, 33, 0.09); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; gap: 1rem; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.mark:hover { color: var(--ink); }
.mark svg { width: 1.5rem; height: 1.25rem; color: var(--signal); }

.nav { display: none; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--slate); text-decoration: none; font-size: 0.9688rem; }
.nav a:not(.btn):hover { color: var(--ink); }

.call-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9688rem;
}
.call-pill:hover { color: var(--page); }
.has-dock .call-pill { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 0.9rem;
  background: var(--signal);
  color: #fff;
  font: 600 1.0625rem/1.2 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 100ms ease-out, background-color 100ms ease-out;
}
.btn:hover { background: var(--signal-press); color: #fff; }
.btn:active { transform: scale(0.97); background: var(--signal-press); }
.btn--block { width: 100%; }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--galvo); }
.btn--quiet:hover { background: rgba(24, 29, 33, 0.05); color: var(--ink); }
.btn--small { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 0.9688rem; border-radius: 0.75rem; }

.actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; }
.actions .alt { color: var(--slate); font-size: 0.9688rem; }
.actions .alt a { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.split { display: grid; gap: 1.75rem; }

/* Hero */
.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.hero .reassure { margin-top: 1.25rem; color: var(--slate); font-size: 0.9688rem; }

.away {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--galvo);
  font-size: 0.9688rem;
  max-width: 34rem;
}
.away[hidden] { display: none; }

/* Phone moment */
.phone-wrap { display: grid; justify-items: center; gap: 0.9rem; }
.phone {
  width: min(17.5rem, 100%);
  aspect-ratio: 9 / 17.5;
  background: var(--ink);
  border-radius: 2.7rem;
  padding: 0.55rem;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.15rem;
  background: #2B3640;
  color: #fff;
  padding: 3.4rem 1rem 1rem;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.screen .date { font-size: 0.9375rem; font-weight: 500; opacity: 0.85; }
.screen .time { font-size: 4.4rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.notif {
  position: absolute;
  inset-inline: 0.7rem;
  top: 46%;
  padding: 0.8rem 0.95rem;
  border-radius: 1.15rem;
  background: rgba(245, 247, 247, 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: var(--ink);
  text-align: left;
  will-change: transform, opacity;
}
.js .notif { opacity: 0; }
.notif .row { display: flex; justify-content: space-between; color: var(--slate); font-size: 0.8125rem; margin-bottom: 0.25rem; }
.notif strong { display: block; font-size: 0.9688rem; line-height: 1.3; letter-spacing: -0.005em; }
.notif span.body { display: block; margin-top: 0.15rem; font-size: 0.875rem; line-height: 1.4; color: var(--slate); }
.phone-note { font-size: 0.875rem; color: var(--slate); text-align: center; max-width: 17.5rem; }

/* Lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2.5px solid var(--signal);
  border-bottom: 2.5px solid var(--signal);
  transform: rotate(-45deg) translateY(-50%);
}
.ticks b { font-weight: 600; }
.ticks .muted { display: block; font-size: 0.9688rem; }

.notincl { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--galvo); }
.notincl h3 { margin-bottom: 0.6rem; }
.notincl ul { margin: 0; padding-left: 1.1rem; color: var(--slate); }
.notincl li + li { margin-top: 0.3rem; }

/* Steps: a real sequence, so these are numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem 1rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--signal);
}
.steps h3 { align-self: end; }
.steps p { color: var(--slate); }

/* Price rows */
.rows { margin: 0; }
.row-item { display: grid; gap: 0.25rem 2rem; padding-block: 1.4rem; border-top: 1px solid var(--galvo); }
.row-item:last-of-type { border-bottom: 1px solid var(--galvo); }
.row-item dt { font-weight: 600; }
.row-item dd { margin: 0; color: var(--slate); }
.amount { font-size: clamp(1.75rem, 4.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 650; color: var(--ink); }
.amount small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--slate); }
.fineprint { margin-top: 1.1rem; color: var(--slate); font-size: 0.9375rem; }

/* Promise */
.promise p { max-width: 36rem; }
.promise p + p { color: var(--slate); }

/* About */
.about { display: grid; gap: 1.5rem; align-items: start; }
.about figure { margin: 0; }
.about img { width: 8.5rem; height: 8.5rem; object-fit: cover; border-radius: 50%; background: var(--galvo); }

/* FAQ */
.faq details { border-top: 1px solid var(--galvo); }
.faq details:last-child { border-bottom: 1px solid var(--galvo); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.9rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2.5px solid var(--slate);
  border-bottom: 2.5px solid var(--slate);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding-bottom: 1.2rem; color: var(--slate); max-width: 38rem; }

/* Closing call */
.close { background: var(--ink); color: var(--page); }
.close h2 { color: var(--page); }
.close .lead { color: #C3CCD1; }
.close a:not(.btn) { color: #fff; }
.close .actions { max-width: 24rem; margin-top: 2rem; }

/* Footer */
.foot { padding-block: 2.5rem 3rem; color: var(--slate); font-size: 0.9063rem; line-height: 1.6; }
.foot .wrap { display: grid; gap: 0.75rem; }
.foot a { color: var(--slate); }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 26rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.field input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--galvo);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.3 var(--font);
}
.field input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(10, 92, 255, 0.22); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field .err { margin-top: 0.35rem; color: #B3261E; font-size: 0.9063rem; }
.field .err[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9688rem; color: var(--slate); }
.form-status[hidden] { display: none; }

.page-head { padding-block: clamp(2rem, 6vw, 4.5rem) 1.5rem; }
.page-head h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin-bottom: 1rem; }
.book-grid { display: grid; gap: 2.5rem; padding-bottom: 5rem; }
.cal { border-radius: 1rem; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1.5px var(--galvo); }
.cal iframe { display: block; width: 100%; height: 40rem; border: 0; }
.cal[hidden] { display: none; }
.windows { margin: 0; padding: 0; list-style: none; color: var(--slate); }
.alt-head { margin-bottom: 1.1rem; }

/* Mobile dock: Call and Book stay one tap away */
.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
.dock .btn { flex: 1; min-height: 3.25rem; }
.dock .btn--quiet { flex: 0 0 auto; }
.has-dock { padding-bottom: 5rem; }

/* Wider screens */
@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .dock { display: none; }
  .has-dock { padding-bottom: 0; }
  .nav { display: flex; }
  .call-pill { display: none; }
  .actions { flex-direction: row; align-items: center; gap: 1.5rem; }
  .actions .btn { min-width: 17rem; }
  .row-item { grid-template-columns: 11rem 1fr; align-items: baseline; }
  .about { grid-template-columns: 9rem 1fr; gap: 2.5rem; }
  .about img { width: 9rem; height: 9rem; }
  .steps li { grid-template-columns: 4rem 1fr; }
}

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.12fr 0.88fr; gap: 4rem; }
  .split { grid-template-columns: 1fr 1.7fr; gap: 4rem; }
  .split > :first-child { position: sticky; top: 6rem; align-self: start; }
  .book-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
  .close .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: end; }
  .close .actions { margin-top: 0; }
}

/* Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .bar, .faq summary::after { transition: none; }
  .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .dock { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .notif { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --galvo: #7C8A92; --slate: #2F3A41; }
  .btn--quiet { box-shadow: inset 0 0 0 2px var(--ink); }
}
