/* Visit.Works marketing site (issue #1036).
 *
 * One stylesheet for every page. Hand written, no build step, no imports.
 *
 * The palette below is a LITERAL COPY of the light block of
 * frontend/src/styles/tokens.css. It is copied on purpose: Cloudflare Pages
 * serves site/ on its own and cannot see frontend/, so a var() reference across
 * the boundary would resolve to nothing. If the product palette changes, copy
 * the new values across by hand.
 *
 * Light only. No prefers-color-scheme block and no theme toggle, per the
 * approved design.
 */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #f6f5f1;
  --bg-elev: #ffffff;
  --bg-soft: #efece5;
  --line: #e6e3da;
  --line-strong: #d6d2c5;

  /* Ink */
  --ink-1: #1c1d1a;
  --ink-2: #46473f;
  --ink-3: #76776d;

  /* Accent, Forest */
  --accent: #2f7d52;
  --accent-soft: #e6f1ea;
  --accent-ink: #1d4f34;
  --accent-solid: #2f7d52;
  --accent-solid-hi: #28734a;
  --on-accent: #ffffff;

  /* Status */
  --warn: #c46a1c;
  --warn-soft: #f7ead8;
  --warn-ink: #8a4a13;

  /* Deal, the intro-offer red. Site-only: deliberately NOT in the app palette,
     it exists to contrast with the Forest accent so the offer price pops. */
  --deal: #c9372b;

  /* Placeholder blocks */
  --ph-line: #cfcbbe;

  /* Type */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  /* Wide content scrolls inside its own container, never the page body. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header ------------------------------------------------------- */

.sitehead {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 44px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo .mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.logo .word {
  width: 173px;
  height: 28px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 auto;
}

.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  opacity: 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  outline: none;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
}

.nav a[aria-current="page"] {
  color: var(--ink-1);
}

.nav a[aria-current="page"]::after {
  opacity: 1;
}

.headact {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
}

.signin {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.signin:hover,
.signin:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.btn-sm {
  display: inline-block;
  background: var(--accent-solid);
  color: var(--on-accent);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 5px;
  border: 1px solid var(--accent-solid);
  white-space: nowrap;
}

.btn-sm:hover,
.btn-sm:focus-visible {
  background: var(--accent-solid-hi);
  border-color: var(--accent-solid-hi);
  outline: none;
}

/* ---------- shared blocks ------------------------------------------------ */

.cta {
  display: inline-block;
  background: var(--accent-solid);
  color: var(--on-accent);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 5px;
  border: 1px solid var(--accent-solid);
  text-align: center;
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent-solid-hi);
  border-color: var(--accent-solid-hi);
  outline: none;
}

.cta.small {
  margin-top: auto;
  font-size: 14px;
  padding: 10px 14px;
}

.cta.ghost {
  background: transparent;
  color: var(--accent);
}

.cta.ghost:hover,
.cta.ghost:focus-visible {
  background: var(--accent-soft);
}

/* ---------- features walkthrough ----------------------------------------- */

.wt-thesis {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 60ch;
}

.wt-thesis strong {
  color: var(--ink-1);
}

.wt-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 34px 48px;
  align-items: start;
}

/* Shorter lists (two bullets) sit beside a tall screenshot: center them so the
   text doesn't strand at the top. Taller lists top-align via the default. */
.wt-panel.balance-center {
  align-items: center;
}

.wt-panel.phone-led {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}

/* Alternation: the media sits right, the list left. Media stays FIRST in the
   DOM (so the stacked mobile view shows the screenshot then the text); only the
   desktop order flips. */
.wt-panel.flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.wt-panel.phone-led.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}

.wt-panel.flip .wt-media {
  order: 2;
}

.wt-panel.flip .wt-list {
  order: 1;
}

.wt-media {
  position: relative;
}

.wt-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 12px 34px -14px rgba(28, 29, 26, 0.22);
}

.wt-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wt-list .fitem h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 5px;
  color: var(--ink-1);
}

.wt-list .fitem p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.wt-phonewrap {
  display: flex;
  justify-content: center;
}

.phoneframe {
  position: relative;
  width: 300px;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: var(--bg-elev);
  padding: 13px 12px;
  box-shadow: 0 16px 40px -16px rgba(28, 29, 26, 0.3);
}

.phoneframe img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
}

/* ---------- legal / policy pages ----------------------------------------- */

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 56px 44px 72px;
}

.legal h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink-1);
  margin: 0 0 6px;
  text-wrap: balance;
}

.legal-updated {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.legal h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 34px 0 8px;
}

.legal h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-1);
  margin: 22px 0 6px;
}

.legal p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
}

.legal ul,
.legal ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 4px 0;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent-soft);
}

.legal blockquote p {
  color: var(--ink-1);
  font-style: italic;
}

.legal .pending {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  margin: 8px 0 20px;
  padding: 34px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.legal .pending span {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-3);
  max-width: 46ch;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--warn-soft);
  color: var(--warn-ink);
  border: 1px solid var(--warn);
  border-radius: 3px;
  padding: 2px 6px;
  vertical-align: 2px;
  margin-left: 6px;
}

.badge.sm {
  margin-left: 0;
}

.cta-band {
  margin: 56px 44px 0;
  padding: 36px 34px 38px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cta-band h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 56ch;
}

.cta-band .cta {
  margin-top: 8px;
}

/* ---------- home --------------------------------------------------------- */

.hero {
  padding: 60px 44px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  max-width: 49rem;
}

.forline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  font-size: clamp(31px, 3.7vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink-1);
  text-wrap: balance;
}

.hero .lede {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 53ch;
}

.hero .cta {
  margin-top: 4px;
}

.terms {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 52ch;
}

.heroshot {
  margin: 8px 44px 0;
}

.heroshot img {
  display: block;
  width: 100%;
  height: auto;
}

.band {
  padding: 46px 44px 52px;
}

.vals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
}

.vals .rule {
  width: 26px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 12px;
}

.vals h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.vals p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ---------- page heads --------------------------------------------------- */

.phead {
  padding: 60px 44px 8px;
  max-width: 56rem;
}

.phead h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.plede {
  margin: 0;
  font-size: 17.5px;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.6;
}

.plede a {
  color: var(--accent);
}

.policy {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 10px 14px;
  display: inline-block;
}

/* ---------- features ----------------------------------------------------- */

.fsec {
  padding: 44px 44px 6px;
}

.fsec-h {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--accent);
  text-wrap: balance;
}

/* The "Coming October 2026" teaser keeps the small eyebrow so it reads as a
   minor band, not a headline that competes with the four content sections. */
.fsec.soon .fsec-h {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fgrid {
  display: grid;
  gap: 28px 34px;
  grid-template-columns: repeat(3, 1fr);
}

.fitem h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-1);
}

.fitem p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.fsec.soon {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 44px;
  padding-bottom: 44px;
}

.fsec.soon .fgrid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 52rem;
}

/* ---------- pricing ------------------------------------------------------ */

.plans {
  padding: 34px 44px 0;
}

.plangrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.price {
  margin: 4px 0 0;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.price span {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}

.annual {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* Anchored intro-offer price block (Crew/Team/Fleet cards): the struck
   regular price above a large red $10, with the regular price restated
   honestly in the "then" line. Custom keeps .price/.annual. */
.was {
  margin: 6px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-variant-numeric: tabular-nums;
}

.deal {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--deal);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.deal span {
  font-size: 16px;
  font-weight: 700;
  color: var(--deal);
  letter-spacing: 0;
}

.dealfor {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--deal);
}

.then {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.then b {
  color: var(--ink-2);
  font-weight: 700;
}

.inc {
  margin: 12px 0 16px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.trialterms {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

.tablewrap {
  padding: 44px 44px 0;
}

.tscroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
}

.ptable {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}

.ptable thead th {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
  padding: 14px 12px;
  border-bottom: 2px solid var(--line-strong);
  text-align: center;
}

.ptable th[scope="row"] {
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 11px 16px;
  white-space: nowrap;
}

.ptable td.c {
  text-align: center;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.ptable tbody tr:not(.div) th,
.ptable tbody tr:not(.div) td {
  border-bottom: 1px solid var(--line);
}

.ptable tr.div th,
.ptable tr.div td {
  border-bottom: 2px solid var(--line-strong);
}

.ptable tbody tr:last-child th,
.ptable tbody tr:last-child td {
  border-bottom: none;
}

.tick {
  color: var(--accent);
  font-weight: 700;
}

.none {
  color: var(--ink-3);
}

.cv {
  display: inline-block;
}

.ptable .c .cv + .badge {
  margin-left: 6px;
}

.crewdef {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- faq ---------------------------------------------------------- */

.faq {
  padding: 34px 44px 0;
  display: grid;
  gap: 26px 44px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 72rem;
}

.qa h2 {
  margin: 0 0 5px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.qa p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- 404 ---------------------------------------------------------- */

.nf {
  padding: 96px 44px 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 44rem;
}

.nf .code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.nf h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.nf p {
  margin: 0;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 48ch;
}

.nflinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 6px;
}

.nflinks a {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.nflinks a:hover,
.nflinks a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

/* ---------- footer ------------------------------------------------------- */

.sitefoot {
  border-top: 1px solid var(--line);
  padding: 30px 44px 34px;
  background: var(--bg-elev);
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  justify-content: space-between;
  align-items: center;
}

.footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

.footlinks a {
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footlinks a:hover,
.footlinks a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.sitefoot p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- responsive --------------------------------------------------- */

@media (max-width: 1000px) {
  .fgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plangrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wt-panel,
  .wt-panel.phone-led,
  .wt-panel.flip,
  .wt-panel.phone-led.flip {
    grid-template-columns: 1fr;
  }

  .wt-panel.flip .wt-media,
  .wt-panel.flip .wt-list {
    order: 0;
  }
}

@media (max-width: 860px) {
  .sitehead {
    gap: 22px;
  }

  .nav {
    gap: 22px;
    order: 3;
    width: 100%;
    margin: 0;
  }

  .headact {
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .vals,
  .fgrid,
  .fsec.soon .fgrid,
  .faq,
  .plangrid {
    grid-template-columns: 1fr;
  }

  .hero,
  .phead,
  .band,
  .fsec,
  .plans,
  .tablewrap,
  .faq,
  .legal,
  .nf,
  .sitehead,
  .sitefoot {
    padding-left: 22px;
    padding-right: 22px;
  }

  .heroshot,
  .cta-band {
    margin-left: 22px;
    margin-right: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
