/* Roundly website: shared look for the pages added after the home page and
   /first-100 (which keep their own styles inline). Same slate, lemon and
   system fonts, so every page reads as one site. */
:root {
  --slate: #2B3440; --slate-2: #3A4656; --lemon: #F4DC52; --lemon-2: #F8E36B;
  --ink: #2B3440; --muted: #58616B; --line: #D6DCE3; --canvas: #F4F6F8; --white: #fff; --green: #1F9D55;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--canvas); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

header.top { background: var(--slate); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 750; font-size: 22px; letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.signin { color: #D7DDE5; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; padding: 10px 4px; }
.signin:hover { color: #fff; }

.hero { background: var(--slate); color: #fff; padding: 40px 0 48px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(32px, 6.5vw, 50px); line-height: 1.08; letter-spacing: -1px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--lemon); }
.hero p.lede { margin: 0 0 24px; font-size: 19px; color: #D7DDE5; max-width: 36em; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(244,220,82,.14); color: var(--lemon); font-weight: 700; font-size: 14.5px; letter-spacing: .2px; }
.crumbs { margin: 0 0 12px; font-size: 14.5px; color: #B9C2CD; }
.crumbs a { color: #D7DDE5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 14px; font-weight: 750; font-size: 18px; text-decoration: none; text-align: center; }
.btn-main { background: var(--lemon); color: var(--slate); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-main:hover { background: #E9CF3C; }
.small { font-size: 15px; color: #B9C2CD; margin: 14px 0 0; }
.hero .small a { color: #fff; }

section.block { padding: 48px 0; }
section.block.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.block h2 { margin: 0 0 10px; font-size: clamp(24px, 4.6vw, 34px); letter-spacing: -0.5px; line-height: 1.15; }
section.block p.intro { margin: 0 0 24px; color: var(--muted); font-size: 18px; max-width: 36em; }
section.block p { font-size: 17px; }
section.block h3 { margin: 0 0 6px; font-size: 19px; }
.muted { color: var(--muted); }

.cards { display: grid; gap: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; }
a.card { display: block; text-decoration: none; }
a.card:hover { border-color: var(--slate); }
a.card .go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16.5px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* Price tables hold numbers only; what each price covers sits in the list under them.
   If a table is ever wider than a phone, it scrolls inside its own box, never the page. */
.table-box { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
table.prices { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.price-notes { margin-top: 16px; }
.price-notes li { font-size: 15.5px; color: var(--muted); }
.price-notes strong { color: var(--ink); }
table.prices th, table.prices td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices thead th { background: var(--canvas); font-size: 14.5px; color: var(--muted); font-weight: 700; }
table.prices tbody tr:last-child td { border-bottom: 0; }
table.prices tr.us td { background: #FFFBE3; font-weight: 650; }
.checked { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 16px 62px; font-size: 16.5px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--lemon); color: var(--slate); font-weight: 800; display: grid; place-items: center; }

.note { background: #FFF6C7; border-radius: 14px; padding: 14px 16px; color: #4A3F00; font-size: 16px; }

.final { background: var(--slate); color: #fff; text-align: center; padding: 48px 0; }
.final h2 { margin: 0 0 10px; font-size: clamp(24px, 4.6vw, 34px); }
.final p { color: #D7DDE5; margin: 0 0 22px; font-size: 18px; }

footer { padding: 26px 0 40px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

@media (min-width: 820px) {
  .hero { padding: 56px 0 64px; }
  .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Split top section: words on the left, a moving phone on the right (laptop);
   words first, then the phone (phone). */
.split { display: grid; gap: 32px; align-items: center; }
.hero-clip { width: 100%; max-width: 300px; justify-self: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1.15fr .85fr; } }
.proof-line { margin: 18px 0 0; color: var(--muted); font-size: 15.5px; }

/* Rise into view as sections come on screen (only when JavaScript runs and the
   phone allows motion). */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .rv { opacity: 1; transform: none; transition: none; } }

/* Worker picker and price bars on /compare. */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #E6EAEF; padding: 5px; border-radius: 14px; margin: 0 0 18px; }
.seg button { font: inherit; font-size: 15px; font-weight: 700; min-height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--slate); color: #fff; }
.seg button:focus-visible { outline: 3px solid var(--lemon); outline-offset: 1px; }
.bars { display: grid; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.bar-row { display: grid; grid-template-columns: 7.2em 1fr 5.4em; gap: 10px; align-items: center; font-size: 15.5px; }
.bar-name { font-weight: 650; }
.bar-track { height: 16px; background: #EEF1F4; border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #9AA5B1; border-radius: 999px; transition: width .45s ease; }
.bar-row.us .bar-fill { background: var(--lemon); box-shadow: inset 0 0 0 1px #D9BE2E; }
.bar-row.us .bar-name, .bar-row.us .bar-val { font-weight: 800; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; } }

/* Calculator: where the three ranges sit on one scale. */
.scale { margin-top: 14px; display: grid; gap: 8px; }
.sc-row, .sc-axis { display: grid; grid-template-columns: 6.2em 1fr; gap: 10px; align-items: center; }
.sc-lab { color: #D7DDE5; font-size: 14px; }
.sc-track { position: relative; height: 12px; background: rgba(255,255,255,.1); border-radius: 999px; }
.sc-bar { position: absolute; top: 0; bottom: 0; background: var(--lemon); border-radius: 999px; }
.sc-bar.ask { background: rgba(244,220,82,.55); }
.sc-mid { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; }
.sc-ticks { position: relative; height: 18px; }
.sc-ticks span { position: absolute; transform: translateX(-100%); color: #B9C2CD; font-size: 12.5px; white-space: nowrap; }
.sc-ticks span[data-k="2"], .sc-ticks span[data-k="4"], .sc-ticks span[data-k="6"] { transform: translateX(-50%); }
