/* Righto marketing site — single stylesheet.
   All colours and type come from tokens.css (Trade Steel direction, Navy panel — v2, founder-directed swap 2026-07-10).
   Look per approved mockup 1b: navy panels, white cards with soft shadows, orange pill CTAs
   (Navy text on orange — 5.6:1 AA; white-on-orange fails and is never used), orange eyebrow
   caps and 01/02/03 numerals in Deep Orange on light grounds (AA).
   Mobile-first: base styles are 375px; @media 768px and 1280px widen things. */

@import url("tokens.css");

/* ---------- Reset-ish ---------- */

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

body {
  margin: 0;
  background: var(--righto-paper);
  color: var(--righto-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 1.9rem;
  color: var(--righto-panel);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--righto-panel);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--righto-accent-deep);
}

/* Visible focus everywhere. On dark panels the outline flips to Paper. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--righto-panel);
  outline-offset: 2px;
  border-radius: 2px;
}

.panel a:focus-visible,
.panel button:focus-visible {
  outline-color: var(--righto-paper);
}

/* Screen-reader-only text */
.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;
}

/* Money always in the mono, always tabular */
.money {
  font-family: var(--font-money);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 3.5rem 0;
}

/* Section lead-ins: eyebrow caps in Deep Orange (AA on light), with the
   orange dot device — a rounded square matching righto-dot.svg. */
.dot-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Barlow Semi Condensed", var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--righto-accent-deep);
  margin-bottom: 1rem;
}

.dot-head::before {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.18rem;
  background: var(--righto-accent);
}

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

.site-header {
  background: var(--righto-white);
  border-bottom: 1px solid var(--righto-line);
  padding: 0.9rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .logo img {
  height: 1.8rem;
  width: auto;
  display: block;
}

.site-nav {
  display: none;
}

.header-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--righto-panel);
  background: var(--righto-accent);
  border-radius: 0.5rem;
  padding: 0.55rem 0.95rem;
  white-space: nowrap;
}

.header-cta:hover {
  filter: brightness(1.06);
  color: var(--righto-panel);
}

/* ---------- Panels (workwear-navy grounds) ---------- */

.panel {
  background: var(--righto-panel);
  color: var(--righto-white);
}

.panel h1,
.panel h2,
.panel h3 {
  color: var(--righto-white);
}

.panel a {
  color: var(--righto-white);
}

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

.hero {
  padding: 4rem 0 4.5rem;
}

.hero .wordmark {
  width: 11rem;
  margin-bottom: 2.25rem;
  display: block;
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 18ch;
}

.hero .sub {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--righto-mist);
  max-width: 34rem;
}

.hero .terms-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--righto-white);
  max-width: 34rem;
}

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

/* Orange pill CTA — Navy text on orange (5.6:1 AA). Never white text on orange. */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--righto-panel);
  background: var(--righto-accent);
  border: none;
  border-radius: 0.65rem;
  padding: 1rem 1.6rem;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 10px 22px -8px rgba(255, 106, 0, 0.55);
}

.btn:hover {
  filter: brightness(1.06);
  color: var(--righto-panel);
}

/* keep Navy text on the orange button even inside a dark panel (.panel a would win otherwise) */
.panel a.btn,
a.btn {
  color: var(--righto-panel);
}

.btn-quiet {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--righto-white);
  background: var(--righto-panel);
  border: none;
  border-radius: 0.55rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  margin-top: 0.75rem;
}

.btn-quiet:hover {
  color: var(--righto-white);
  filter: brightness(1.15);
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

/* White cards with soft shadows; 01/02/03 numerals in Deep Orange (AA on white) */
.steps li {
  counter-increment: step;
  border: 1px solid var(--righto-line);
  border-radius: 0.85rem;
  padding: 1.5rem 1.4rem;
  background: var(--righto-white);
  box-shadow: 0 10px 28px -14px rgba(20, 33, 61, 0.18);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  color: var(--righto-accent-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.steps h3 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--righto-ink);
}

.steps p {
  color: var(--righto-slate);
  font-size: 0.98rem;
}

.steps p:last-child {
  margin-bottom: 0;
}

/* Sample text-back bubble — tinted callout with orange spine */
.sms-sample {
  background: var(--righto-card);
  border: none;
  border-left: 4px solid var(--righto-accent);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.6rem 1.8rem;
  font-size: 1.15rem;
  margin: 2rem 0 0;
}

.sms-sample-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 0.5rem 2.5rem;
  align-items: start;
}

.sms-sample .sms-text {
  font-size: 1.15rem;
}

.sms-sample-note {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--righto-line);
}

.badge-line {
  margin: 0.75rem 0 0;
}

.acma-badge {
  display: inline-block;
  font-family: "Barlow Semi Condensed", var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--righto-good);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.sms-sample .label {
  display: block;
  font-family: "Barlow Semi Condensed", var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--righto-slate);
  margin-bottom: 0.4rem;
}

/* ---------- Comparison table (white card) ---------- */

.table-scroll {
  overflow-x: auto;
  margin-top: 1.75rem;
  background: var(--righto-white);
  border: 1px solid var(--righto-line);
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px -14px rgba(20, 33, 61, 0.18);
}

table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}

table.compare caption {
  text-align: left;
  padding: 0.9rem 1rem 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--righto-panel);
}

table.compare th,
table.compare td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--righto-line);
}

/* Navy header band; Righto column flagged in orange (5.6:1 on navy) */
table.compare thead th {
  border-top: none;
  background: var(--righto-panel);
  color: var(--righto-mist);
  font-family: "Barlow Semi Condensed", var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

table.compare thead th.righto-col {
  color: var(--righto-accent);
}

table.compare tbody tr:nth-child(even) {
  background: var(--righto-paper);
}

table.compare td {
  color: var(--righto-slate);
}

table.compare td.righto-col {
  font-weight: 600;
  color: var(--righto-ink);
}

table.compare th[scope="row"] {
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--righto-slate);
  min-width: 9rem;
}

.sources {
  font-size: 0.85rem;
  color: var(--righto-slate);
  margin-top: 1.25rem;
}

.sources li {
  margin-bottom: 0.35rem;
}

/* ---------- Pricing panel (navy) ---------- */

.price-sign {
  border-radius: 1.1rem;
  padding: 2.25rem 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  box-shadow: 0 18px 44px -18px rgba(20, 33, 61, 0.55);
}

.price-sign .big-price {
  font-family: var(--font-money);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 3.6rem;
  line-height: 1;
  display: block;
  margin: 0.5rem 0 0.25rem;
}

.price-sign .per {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--righto-mist);
  display: block;
  margin-bottom: 1.5rem;
}

.price-sign ul {
  list-style: none;
  margin: 0 auto 1.25rem;
  padding: 0;
  max-width: 24rem;
  text-align: left;
  color: var(--righto-line-strong);
}

.price-sign li {
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.price-sign li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0.15rem;
  background: var(--righto-accent);
}

.price-sign .fineline {
  font-size: 0.9rem;
  color: var(--righto-mist);
  margin-bottom: 0;
}

/* ---------- FAQ (white cards) ---------- */

.faq details {
  background: var(--righto-white);
  border: 1px solid var(--righto-line);
  border-radius: 0.75rem;
  margin-top: 0.75rem;
  box-shadow: 0 6px 18px -12px rgba(20, 33, 61, 0.16);
}

.faq summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--righto-panel);
  list-style-position: inside;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--righto-line);
}

.faq .answer {
  padding: 1rem 1.1rem;
  color: var(--righto-slate);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Founder note (tinted card) ---------- */

.founder {
  border-top: 1px solid var(--righto-line);
}

.founder-card {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  background: var(--righto-card);
  border-radius: 1rem;
  padding: 1.5rem;
}

.founder-photo {
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid var(--righto-line-strong);
  background: var(--righto-line-strong);
}

.founder .signoff {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--righto-panel);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.25rem 0 2.75rem;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1rem;
}

.site-footer .logo img {
  height: 1.5rem;
  width: auto;
}

.site-footer nav a {
  color: var(--righto-mist);
  margin-right: 1.25rem;
}

.site-footer p {
  margin: 0;
  color: var(--righto-mist);
}

/* ---------- Calculator page ---------- */

.calc-intro {
  padding-bottom: 1rem;
}

.calc-form {
  background: var(--righto-white);
  border: 1px solid var(--righto-line);
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px -14px rgba(20, 33, 61, 0.18);
  padding: 1.5rem 1.4rem;
  display: grid;
  gap: 1.1rem;
  max-width: 30rem;
}

.calc-form .field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.calc-form .field .hint {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--righto-slate);
}

.calc-form input {
  width: 100%;
  font-family: var(--font-money);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  color: var(--righto-ink);
  background: var(--righto-white);
  border: 2px solid var(--righto-line-strong);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  margin-top: 0.35rem;
}

.calc-form input:hover,
.calc-form input:focus {
  border-color: var(--righto-panel);
}

.calc-error {
  color: var(--righto-accent-deep);
  font-weight: 600;
  margin: 0;
  min-height: 1.5em;
}

.calc-result {
  margin-top: 1.5rem;
  border-radius: 1.1rem;
  padding: 1.75rem 1.4rem;
  box-shadow: 0 18px 44px -18px rgba(20, 33, 61, 0.55);
}

.calc-result .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.calc-result .row:first-of-type {
  border-top: none;
}

.calc-result .row .num {
  font-family: var(--font-money);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
}

.calc-result .verdict {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0.75rem 0 0;
}

.share-block {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1rem;
}

.share-line {
  font-family: var(--font-money);
  font-weight: 500;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
  word-wrap: break-word;
  margin-bottom: 0.6rem;
}

.copy-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--righto-panel);
  background: var(--righto-accent);
  border: none;
  border-radius: 0.55rem;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
}

.benchmark {
  font-size: 0.9rem;
  color: var(--righto-slate);
  margin-top: 1.5rem;
  max-width: 38rem;
}

/* ---------- Terms page ---------- */

.draft-banner {
  background: var(--righto-accent);
  color: var(--righto-panel);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.7rem 0;
  font-size: 1rem;
}

.terms h2 {
  margin-top: 2.5rem;
}

.terms h3 {
  color: var(--righto-panel);
  margin-top: 1.5rem;
}

.terms ul {
  padding-left: 1.25rem;
}

.terms li {
  margin-bottom: 0.4rem;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 768px) {
  h1 {
    font-size: 3.4rem;
  }

  .hero h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .site-nav {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
  }

  .site-nav a {
    text-decoration: none;
  }

  .site-nav a:hover {
    text-decoration: underline;
  }

  section {
    padding: 4.25rem 0;
  }

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

  .founder-card {
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: 2rem;
  }

  .site-footer .wrap {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .price-sign {
    padding: 3rem 2rem;
  }

  .price-sign .big-price {
    font-size: 4.6rem;
  }
}

@media (min-width: 1280px) {
  .hero {
    padding: 5.5rem 0 6rem;
  }

  .hero .wordmark {
    width: 13rem;
  }

  section {
    padding: 5rem 0;
  }
}

/* ===== The Point (thesis) — added in the conversational copy pass ===== */
.thesis { background: var(--righto-paper); padding: 72px 0 64px; }
.thesis .wrap { max-width: 760px; }
.thesis-line {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.25;
  color: var(--righto-ink); margin: 0 0 10px;
}
.thesis-kicker { font-weight: 800; margin-top: 22px; color: var(--righto-panel); }
.thesis-dot { color: var(--righto-accent); }

/* ===== What Righto isn't ===== */
.notlist-section { background: var(--righto-panel); padding: 64px 0; }
.notlist-section .dot-head { color: var(--righto-paper); }
.notlist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.notlist li {
  border-left: 3px solid var(--righto-accent); padding: 2px 0 2px 18px;
  max-width: 62ch;
}
.notlist b {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--righto-paper); display: block; margin-bottom: 2px;
}
.notlist p { color: #B7C0D4; margin: 0; font-size: 1rem; line-height: 1.55; }
.notlist-close {
  margin-top: 30px; font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; color: var(--righto-paper); max-width: 60ch;
}
@media (max-width: 640px) { .thesis { padding: 52px 0 44px; } .notlist-section { padding: 48px 0; } }

/* Two-touchpoint demo (voice first, then text — D-022 copy pass) */
.sms-sample .touchpoint-label {
  font-family: "Barlow Semi Condensed", var(--font-display);
  font-weight: 600; font-size: 0.85rem;
  color: var(--righto-slate);
  margin: 0.9rem 0 0.3rem;
}
.sms-sample .touchpoint-label:first-of-type { margin-top: 0.2rem; }
.sms-sample .voice-quote {
  color: var(--righto-ink);
  padding-left: 0.9rem;
  border-left: 2px solid var(--righto-line-strong, #D6DCE8);
  margin: 0 0 0.4rem;
}

/* ---------- Contact form (added 2026-07-11) ---------- */

.contact-form {
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--righto-white);
}

.contact-form .opt {
  font-weight: 400;
  color: var(--righto-mist);
}

.contact-form .field-row {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.contact-form .field-row label {
  min-width: 14rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--righto-ink);
  background: var(--righto-white);
  border: 1px solid var(--righto-line-strong);
  border-radius: 0.5rem;
  padding: 0.7rem 0.85rem;
}

.contact-form ::placeholder {
  color: var(--righto-slate);
  opacity: 0.75;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .form-foot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-form .btn {
  margin-top: 0;
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.form-status {
  margin: 0;
  font-weight: 600;
  color: var(--righto-mist);
}

.acma-badge-full {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--righto-slate);
}

/* ---------- Mobile comparison table: stack rows into cards (2026-07-11) ----------
   On narrow screens a horizontally-scrolling table hides the Righto column —
   the whole point of the comparison. Restack: each row becomes a card with
   labelled hipages/Righto lines. */
@media (max-width: 700px) {
  table.compare {
    min-width: 0;
  }

  table.compare thead {
    display: none;
  }

  table.compare tbody,
  table.compare tr,
  table.compare th[scope="row"],
  table.compare td {
    display: block;
    width: 100%;
  }

  table.compare tr {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--righto-line);
  }

  table.compare tr:last-child {
    border-bottom: none;
  }

  table.compare th[scope="row"] {
    padding: 0 0 0.35rem;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--righto-panel);
    text-align: left;
  }

  table.compare td {
    padding: 0.15rem 0;
    border: none;
  }

  table.compare td::before {
    content: "hipages — ";
    font-family: "Barlow Semi Condensed", var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--righto-slate);
  }

  table.compare td.righto-col::before {
    content: "Righto — ";
    color: var(--righto-accent-deep);
  }
}
