/* RightThings — public site. Same look as the app: Inter, zinc neutrals, one indigo accent. */
@font-face { font-family: 'Inter'; src: url('inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #ffffff; --bg-soft: #fafafa; --text: #18181b; --muted: #52525b; --faint: #a1a1aa; --line: #e4e4e7;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-soft: #eef2ff; --accent-text: #3730a3;
  --red: #dc2626; --red-soft: #fef2f2; --amber-soft: #fffbeb;
  --radius: 14px; --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b; --bg-soft: #111113; --text: #f4f4f5; --muted: #a1a1aa; --faint: #71717a; --line: #27272a;
    --accent: #6366f1; --accent-hover: #818cf8; --accent-soft: #1e1b4b; --accent-text: #c7d2fe;
    --red: #f87171; --red-soft: #2a0f12; --amber-soft: #1f1708;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.top nav a:hover { color: var(--text); background: var(--bg-soft); }
.top nav .btn { color: #fff; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* Buttons and form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.top nav .btn { height: 36px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
@media (max-width: 400px) { .brand span { display: none; } }

.waitlist { display: grid; gap: 10px; max-width: 460px; }
.waitlist .row { display: flex; gap: 8px; }
.waitlist input[type=email] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.waitlist input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.waitlist label.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.waitlist label.consent input { margin-top: 3px; accent-color: var(--accent); }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .msg { font-size: 14px; min-height: 1.4em; margin: 0; }
.waitlist .msg.ok { color: var(--accent-text); font-weight: 600; }
.waitlist .msg.err { color: var(--red); }
@media (max-width: 480px) { .waitlist .row { flex-direction: column; } .waitlist input[type=email] { flex: none; } }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 750; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-shot { position: relative; justify-self: center; }
.phone { width: 300px; border-radius: 34px; border: 9px solid #18181b; box-shadow: 0 30px 60px -20px rgb(15 23 42 / 0.45); overflow: hidden; background: #fff; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } .phone { width: 260px; } }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 720; }
h3 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 6px; font-weight: 650; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 40px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .text { order: 2; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 20px; color: var(--muted); }
.feature li { margin: 4px 0; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--bg); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 20px; } .feature.flip .text { order: 0; } }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.shelf li { padding: 16px 0; border-top: 1px solid var(--line); }
.shelf h3 { font-size: 16px; margin: 0 0 2px; }
.shelf .byline { margin: 0 0 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.shelf p { margin: 0; color: var(--muted); font-size: 15px; }
.more { margin: 20px 0 0; }
@media (max-width: 860px) { .shelf { grid-template-columns: 1fr; } }
.card .byline { margin: -6px 0 10px; font-size: 14px; color: var(--muted); font-weight: 500; }
.card a { color: var(--accent, inherit); }
.more { margin: 24px 0 0; font-weight: 500; }
.more a { color: var(--accent); }
.fineprint { margin: 24px 0 0; font-size: 13px; color: var(--muted); max-width: 52em; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; margin-right: 4px; }
.u1 { background: var(--red-soft); color: var(--red); }
.u2 { background: var(--accent-soft); color: var(--accent-text); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: '+'; color: var(--faint); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 10px 0 0; }

.cta { text-align: center; }
.cta .waitlist { margin: 28px auto 0; text-align: left; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { color: var(--faint); font-size: 14px; }

/* Why another app: where other apps fall short */
.versus { margin-top: 56px; padding: 40px; border-radius: calc(var(--radius) + 10px); background: linear-gradient(160deg, var(--accent-soft), var(--bg-soft) 70%); border: 1px solid var(--line); }
.versus-head { text-align: center; margin-bottom: 28px; }
.versus-head .eyebrow { margin-bottom: 12px; }
.versus-head h3 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; line-height: 1.2; }
.versus-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.versus-grid li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.versus-grid li:hover { transform: translateY(-2px); border-color: var(--accent); }
.versus .was { margin: 0 0 10px; font-size: 14px; color: var(--faint); display: flex; gap: 8px; align-items: baseline; }
.versus .was span { color: var(--red); font-weight: 700; font-size: 12px; }
.versus .now { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.4; display: flex; gap: 12px; align-items: flex-start; }
.versus .now i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-top: 1px; }
.versus .now svg { width: 15px; height: 15px; }
#why .fineprint { text-align: center; margin: 16px auto 0; }
@media (max-width: 760px) { .versus { padding: 24px 16px; } .versus-grid { grid-template-columns: 1fr; } }

/* Works with Claude: a drawn conversation in place of a screenshot */
.feature-link { margin-top: 14px !important; }
.feature-link a { color: var(--accent); font-weight: 600; }
.chat { display: flex; flex-direction: column; font-size: 14px; line-height: 1.45; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 650; background: var(--bg-soft); }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: #d97757; }
.chat-tag { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat .msg { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 14px; }
.chat .msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat .msg.ai { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.chat .msg.ai p { margin: 0 0 8px; color: var(--text); }
.chat .msg.ai p:last-child { margin-bottom: 0; }
.chat .tool { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted) !important; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; }
.chat .tool span { color: var(--accent); font-weight: 700; margin-right: 4px; }

/* How RightThings compares: the side-by-side table (checked against each product's own site) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cmp { margin-top: 56px; padding: 40px; border-radius: calc(var(--radius) + 10px); background: var(--bg-soft); border: 1px solid var(--line); }
.cmp-lead { margin: 10px auto 0; color: var(--muted); font-size: 15px; max-width: 36em; }
.cmp-scroll { position: relative; overflow-x: auto; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.cmp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 10px 6px; text-align: center; border-top: 1px solid var(--line); }
.cmp-table thead th, .cmp-table thead td { border-top: 0; }
.cmp-table thead th { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 16px; }
.cmp-table tbody th { text-align: left; font-weight: 500; padding-left: 16px; position: sticky; left: 0; z-index: 1; background: var(--bg); min-width: 200px; }
.cmp-table .us { background: var(--accent-soft); }
.cmp-table thead .us { color: var(--accent-text); }
.cmp-m { display: inline-flex; width: 24px; height: 24px; border-radius: 999px; align-items: center; justify-content: center; vertical-align: middle; box-sizing: border-box; }
.cmp-m svg { width: 15px; height: 15px; }
.cmp-y { background: var(--accent); color: #fff; }
.cmp-a { background: var(--bg); color: var(--accent); border: 1px solid var(--accent); }
.cmp-n { background: var(--bg); color: var(--muted); border: 1px solid var(--faint); }
.cmp-o { background: var(--bg-soft); color: var(--faint); }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.cmp-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-legend .cmp-m { width: 20px; height: 20px; }
.cmp-legend .cmp-m svg { width: 13px; height: 13px; }
.cmp-notes { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.cmp-sources { margin-top: 12px; font-size: 13px; color: var(--muted); }
.cmp-sources summary { cursor: pointer; color: var(--accent); }
.cmp-sources ul { margin: 8px 0 0; padding-left: 18px; }
.cmp-sources li { margin: 4px 0; }
.cmp-swipe { display: none; margin: 0 0 8px; font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 640px) {
  .cmp { padding: 24px 12px; }
  .cmp-swipe { display: block; }
  .cmp-table { min-width: 540px; font-size: 12px; }
  .cmp-table th, .cmp-table td { padding: 8px 2px; }
  .cmp-table thead th { font-size: 11px; }
  .cmp-table tbody th { min-width: 0; width: 118px; padding-left: 10px; font-size: 12px; line-height: 1.35; }
  .cmp-table .cmp-m { width: 20px; height: 20px; }
  .cmp-table .cmp-m svg { width: 12px; height: 12px; }
}
