/* RotaHero marketing site: shared stylesheet.
   Board 8 of the #1321 redesign: the app's type and week-strip mark, a louder voice (navy
   sections, signal-teal calls to action, aqua key numbers). Light only, as on the board.
   Self-hosted fonts, no scripts, no build step (static Cloudflare Pages project, E8). */

/* Fonts (self-hosted: the site loads nothing from other sites) */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/fonts/barlow-condensed-latin-ext-600.woff2') format('woff2');
  ascent-override: 102%;
  descent-override: 22%;
  line-gap-override: 0%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/fonts/barlow-condensed-latin-600.woff2') format('woff2');
  ascent-override: 102%;
  descent-override: 22%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed Fallback';
  font-weight: 600;
  src: local('Arial'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 73.5%;
  ascent-override: 138.8%;
  descent-override: 29.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens: marketing sites only, never the app (HANDOFF.md §1) */
:root {
  --mk-navy: #0D2236;
  --mk-navy-2: #16314C;
  --mk-teal: #1E9AA6;
  --mk-teal-deep: #137A85;
  --mk-muted: #B9C6D4;
  --mk-paper: #F5F7FA;
  --mk-hl: #0C8089;
  --mk-hl-hover: #0A6D75;
  --mk-aqua: #5EE0E5;

  --ink: #0D2236;
  --ink-soft: #4A5A6E;
  --surface: #FFFFFF;
  --divider: #D5DCE5;
  --rule-strong: var(--mk-navy); /* the navy rule that opens a list or table (#79: rules, not boxes) */
  --row: #EEF2F6;

  /* app status colours for the strip (D100) */
  --ok: #3E6B48;
  --ok-subtle: #E8F5EC;
  --warn: #7E5E12;
  --warn-subtle: #FFF6DB;
  --warn-line: #F0D27A;

  --font-display: 'Barlow Condensed', 'Barlow Condensed Fallback', 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans Variable', 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.18);
  --radius-lg: 14px;
  --container: 1120px;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mk-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--mk-teal-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--mk-navy); }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--mk-aqua);
  outline-offset: 2px;
  border-radius: 6px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; line-height: 1.1; }
p { margin: 0 0 1em; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 38em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mk-teal-deep);
  margin-bottom: 10px;
}
.on-dark .eyebrow { color: var(--mk-teal); }
.num { color: var(--mk-teal-deep); font-weight: 700; }
.on-dark .num { color: var(--mk-aqua); }

/* Buttons: signal teal with white text (4.70:1) */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--mk-hl); color: #fff; }
.btn-primary:hover { background: var(--mk-hl-hover); color: #fff; }
.btn-ghost { border-color: var(--divider); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--mk-teal-deep); color: var(--mk-navy); }
.on-dark .btn-ghost { background: transparent; border-color: rgba(185, 198, 212, 0.55); color: #fff; }
.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.link-more { font-weight: 650; }

/* Header: navy on every page */
.site-header { background: var(--mk-navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand svg { width: 26px; height: 24px; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a.nav-link { color: var(--mk-muted); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.site-nav a.nav-link:hover { color: #fff; }
.site-nav .btn { padding: 9px 16px; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 760px) { .site-nav a.nav-link { display: none; } }

/* Navy sections */
.on-dark { background: var(--mk-navy); color: #fff; }
.on-dark .lede, .on-dark p { color: var(--mk-muted); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a:not(.btn) { color: var(--mk-aqua); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero { padding: 40px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
}
.hero .for-whom { font-size: 0.86rem; font-weight: 600; color: var(--mk-teal); margin-bottom: 18px; max-width: 34em; }
.hero h1 { max-width: 11em; }
.hero .lede { color: var(--mk-muted); margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* The strip card: a readable piece of the product (sample data) */
.strip-figure { margin: 0; }
.strip-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.strip-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.strip-head strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.strip-head span { font-size: 0.82rem; color: var(--ink-soft); }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--divider); border-radius: 8px; overflow: hidden; }
.strip li { list-style: none; text-align: center; padding: 8px 2px 9px; border-left: 1px solid var(--divider); line-height: 1.2; }
.strip li:first-child { border-left: none; }
.strip .d { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.strip .n { display: block; font-size: 0.72rem; color: var(--ink-soft); }
.strip .s { display: block; font-size: 0.72rem; font-weight: 600; color: var(--ok); }
.strip li.short { background: var(--warn-subtle); box-shadow: inset 0 3px 0 var(--warn); }
.strip li.short .s { color: var(--warn); }
.strip { padding: 0; margin: 0; }
.gap-card { margin-top: 12px; border: 1px solid var(--warn-line); border-radius: 8px; overflow: hidden; font-size: 0.9rem; }
.gap-line { display: flex; justify-content: space-between; gap: 10px; background: var(--warn-subtle); color: var(--warn); font-weight: 650; padding: 9px 12px; }
.gap-line .t { white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--divider); }
.who .avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #D7E4F2; color: var(--mk-navy-2); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.who .name { font-weight: 650; line-height: 1.25; }
.who .meta { font-size: 0.78rem; color: var(--ink-soft); }
.who .assign { margin-left: auto; background: var(--mk-hl); color: #fff; border-radius: 6px; font-size: 0.82rem; font-weight: 650; padding: 6px 12px; }
.filled { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--divider); background: var(--ok-subtle); color: var(--ok); font-weight: 650; }
.strip-figure figcaption { font-size: 0.8rem; color: var(--mk-muted); margin-top: 12px; }

/* How it works: three columns under a navy rule, big numerals, no cards (#79) */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 32px; } }
.step { border-top: 2px solid var(--rule-strong); padding-top: 20px; }
.step-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 3.2rem; line-height: 1; color: var(--mk-teal-deep); margin-bottom: 14px; }
@media (max-width: 860px) { .step-num { font-size: 2.6rem; } }
.step h3 { max-width: 14em; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }
.how-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--divider); color: var(--ink-soft); font-size: 0.94rem; }
.section-lede { color: var(--ink-soft); max-width: 46em; margin-bottom: 0; }

/* Feature sections */
.alt { background: var(--surface); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.feature + .feature { margin-top: 88px; padding-top: 88px; border-top: 1px solid var(--divider); }
.feature.flip .feature-copy { order: 2; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-copy { order: 0; }
  .feature + .feature { margin-top: 56px; padding-top: 56px; }
}
.feature-copy p { color: var(--ink-soft); max-width: 34em; }
/* .panel is a wrapper only now: the list carries its own rules (#79) */
.check-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.check-list li:last-child { border-bottom: 0; }
.tick { flex: none; margin-top: 1px; color: var(--mk-teal-deep); font-size: 1rem; font-weight: 800; }

/* Feature tiles: a ruled index, a hairline above each item (#79) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { border-top: 1px solid var(--divider); padding: 20px 0 28px; }
@media (max-width: 560px) { .tile { padding: 16px 0 20px; } }
.tile h3 { font-size: 1.5rem; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.tile.soon { border-top: 1px dashed var(--mk-teal-deep); }
.pill { display: inline-block; font-size: 0.74rem; font-weight: 700; color: var(--mk-teal-deep); border: 1px solid var(--mk-teal-deep); border-radius: 999px; padding: 1px 9px; margin-bottom: 8px; }

/* Founder note */
.founder blockquote { margin: 0; max-width: 40em; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.45; color: #fff; }
.founder .attribution { margin-top: 16px; font-size: 0.95rem; }

/* Pricing */
.price-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .price-split { grid-template-columns: 1fr; gap: 28px; } }
/* Prices keep a quiet surface (white on paper, no border, no shadow): they are scanned and compared (#79) */
.example { background: var(--surface); border-radius: var(--radius-lg); padding: 22px 24px; margin: 28px 0; }
.example .label { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 8px; }
.example .sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; font-size: 1.05rem; font-weight: 600; }
.example .big { font-family: var(--font-display); font-size: 4rem; line-height: 0.9; color: var(--mk-teal-deep); }
@media (max-width: 560px) { .example { padding: 18px; } .example .big { font-size: 3.4rem; } }
.price-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.table-wrap { overflow-x: auto; }
table.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; font-size: 0.95rem; }
.price-table th { color: var(--ink-soft); font-weight: 700; font-size: 0.82rem; text-align: left; padding: 18px 20px 12px; border-bottom: 1px solid var(--divider); }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 14px 20px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { font-weight: 600; }
@media (max-width: 560px) { .price-table th, .price-table td { padding-left: 14px; padding-right: 14px; } }
.price-pill { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; line-height: 0.95; color: var(--mk-teal-deep); }
.example + .table-wrap td:first-child { white-space: nowrap; }
.example + .table-wrap td:last-child { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; }
/* Plain tables (contact, how we count staff): no surface, a navy rule under the header, hairlines between rows */
table.table-plain { background: none; border-radius: 0; overflow: visible; }
.table-plain th { padding: 0 14px 10px 0; border-bottom: 2px solid var(--rule-strong); }
.table-plain td { padding: 14px 14px 14px 0; font-weight: 400; }
.table-plain tr:last-child td { border-bottom: 1px solid var(--divider); }
.table-plain td:last-child, .table-plain th:last-child { text-align: left; padding-right: 0; font-weight: 400; }
.note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 14px; max-width: 52em; }

/* FAQ */
.faq-list { max-width: 780px; margin-top: 36px; border-top: 2px solid var(--rule-strong); }
.faq-list details { border-bottom: 1px solid var(--divider); }
.faq-list summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 1.04rem; padding: 20px 36px 20px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-color: var(--mk-teal-deep); } /* the only state cue now the items are unboxed: aqua is 1.4:1 on paper */
.faq-list summary::after { content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--mk-teal-deep); }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details p { color: var(--ink-soft); padding-bottom: 22px; margin: 0; max-width: 40em; }

/* Contact */
.contact-table td:first-child { color: var(--ink-soft); }
.contact-table td:last-child a { font-weight: 650; }

/* Closing call to action */
.closing { text-align: center; }
.closing h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.closing .lede { margin: 0 auto 26px; }

/* Footer */
.site-footer { background: var(--mk-navy); color: var(--mk-muted); padding: 40px 0 44px; font-size: 0.88rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--mk-muted); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-line { width: 100%; margin: 0; font-size: 0.82rem; line-height: 1.5; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal-page { max-width: 46em; }
.legal-page h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); margin-bottom: 6px; }
.legal-page .date { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 28px; }
.legal-page h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.legal-page h3 { font-size: 1.25rem; margin: 24px 0 8px; }
.legal-page p, .legal-page li, .legal-page td { color: #2E3B4C; }
.legal-page ul { padding-left: 1.3em; }
.legal-page li { margin-bottom: 8px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 0.94rem; background: var(--surface); }
.legal-page th, .legal-page td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--divider); }
.legal-page th { background: var(--row); font-weight: 650; }
.legal-page .overflow { overflow-x: auto; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 30px; padding: 0; list-style: none; font-size: 0.92rem; }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
