/* Choreless — shared web design system.
   Tokens mirror the invite page (web/join) so the whole choreless.app domain
   looks like one product. */
:root {
  --coral: #FF5A3C;
  --coral-pressed: #E8482C;
  --coral-soft: #FFE9E2;
  --coral-tint: #FFF3EF;
  --ink: #0B0B0F;
  --slate: #6E6E78;
  --slate-2: #9A9AA4;
  --hairline: #ECECF0;
  --bg: #FFFFFF;
  --bg-2: #FBF9F8;
  --max: 1080px;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 18px 60px rgba(255, 90, 60, 0.10);
  --shadow-soft: 0 6px 24px rgba(11, 11, 15, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--coral); }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--slate); font-size: 15px; font-weight: 600; transition: color .12s; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--coral); }
@media (max-width: 620px) { .nav { gap: 18px; } .nav .hide-sm { display: none; } }

/* ---------- Buttons / App Store badge ---------- */
.appstore { display: inline-block; text-decoration: none; transition: transform .12s, opacity .12s; }
.appstore:active { transform: scale(0.97); }
.appstore svg { height: 54px; width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer; transition: background .12s, transform .12s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-pressed); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--hairline); }
.btn-ghost:hover { background: var(--bg-2); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--coral-tint) 0%, #FFFFFF 62%); padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--coral); background: var(--coral-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
h1.hero-title { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero-sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--slate); max-width: 30ch; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--slate-2); margin-top: 16px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
}

/* ---------- Phone frame ---------- */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone {
  width: 240px; aspect-ratio: 1179 / 2556; border-radius: 44px;
  background: #0B0B0F; padding: 10px; box-shadow: var(--shadow);
  flex: 0 0 auto;
}
.phone.small { width: 200px; opacity: 0.96; margin-bottom: 22px; }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; position: relative; }
.phone .screen img, .phone .screen svg { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .phone { width: 210px; } .phone.small { display: none; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--slate); }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 28px; transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.feature .emoji { font-size: 30px; line-height: 1; margin-bottom: 16px; }
.feature h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--slate); }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ---------- Screenshot strip ---------- */
.shots { background: var(--coral-tint); }
.shots .phones { flex-wrap: wrap; gap: 24px; }
.shots .phone { margin-bottom: 0; }
.caption { text-align: center; font-size: 14px; color: var(--slate); margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta { text-align: center; background: linear-gradient(180deg, #FFFFFF 0%, var(--coral-tint) 100%); }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.cta p { font-size: 18px; color: var(--slate); max-width: 40ch; margin: 0 auto 28px; }
.cta .appstore { margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--bg); padding: 48px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--slate); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-2); margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; color: var(--slate); font-size: 15px; margin-bottom: 10px; transition: color .12s; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--slate-2); }

/* ---------- Legal / content pages ---------- */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.doc .meta { color: var(--slate-2); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 34px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.doc p, .doc li { color: #2A2A31; font-size: 16px; margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 16px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--coral); text-decoration: none; font-weight: 600; }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--ink); }
.doc hr { border: none; border-top: 1px solid var(--hairline); margin: 32px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--hairline); }
.doc th { background: var(--bg-2); font-weight: 700; }
.doc .table-scroll { overflow-x: auto; }
.doc blockquote { background: var(--coral-tint); border-left: 3px solid var(--coral); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 16px 0; color: var(--slate); font-size: 15px; }

/* editor TODO marker — highlights placeholders you must fill before launch */
.todo { background: #FFF3CD; border-bottom: 1px dashed #C79A00; padding: 0 3px; border-radius: 3px; font-style: normal; }

/* Support page contact card */
.contact-card { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; margin: 8px 0 28px; }
.contact-card .email { font-size: 22px; font-weight: 800; color: var(--coral); text-decoration: none; letter-spacing: -0.01em; }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--slate); }

/* 404 */
.center-screen { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 40px 24px; }
