/* corre.chat — brand system (launch/09-brand-system.md): warm studio. Warm white and ink, coral = you and the
   main action (accent only), sea = them and links. Headlines in SF Pro (bold), body in the system font. */

@font-face {
  font-family: "Cherry Bomb One";
  src: url("/fonts/cherry-bomb-one.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F3F2EE;
  --card: #FFFFFF;
  --field: #E7E6E1;
  --ink: #222222;
  --soft: #6F6E68;
  --line: #DEDCD5;
  --graphite: #2B2B2A;
  --coral: #F05A22;
  --coral-strong: #D4461A;
  --sea: #0B5C73;
  --mist: #EEF6F7;
  --wrap: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wordmark: "Cherry Bomb One", ui-rounded, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.55 var(--sans); }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
/* No lone last words: balance headings, keep paragraphs from ending on an orphan. */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

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

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.top nav { display: flex; gap: 22px; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--sea); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
        font: 400 28px/1 var(--wordmark); }
.logo img { width: 34px; height: auto; }

.foot { margin-top: 64px; padding: 32px 0 48px; color: var(--soft); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--soft); }

/* The wordmark: "corre" in a coral speech bubble, tail at the lower left. */
.mark { display: inline-block; position: relative; margin: 0 0 28px; padding: 2px 0.55em 0.18em;
        background: var(--coral); color: #fff; border-radius: 999px;
        font: 400 64px/1.15 var(--wordmark); }
/* Small header version of the wordmark bubble. */
.mark.small { font-size: 26px; margin: 0 0 8px; padding: 1px 16px 5px; text-decoration: none; }

.mark::after { content: ""; position: absolute; left: 22%; bottom: -0.28em; width: 0.4em; height: 0.38em;
               background: var(--coral); clip-path: polygon(0 0, 100% 0, 10% 100%); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--coral);
          color: #fff; text-decoration: none; font-weight: 700; padding: 15px 28px; border-radius: 999px; border: 0;
          font-size: 18px; }
.button.dark { background: var(--graphite); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button:hover { filter: brightness(1.06); }

/* App Store badge, drawn in CSS so it stays crisp; swap for Apple's official badge at launch. */
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none;
         padding: 9px 20px 9px 16px; border-radius: 12px; line-height: 1.1; }
.store svg { width: 24px; height: 28px; fill: #fff; }
.store small { display: block; font-size: 11px; opacity: .85; }
.store b { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.store.soon { cursor: default; }

/* Tally the fox: sidekick, at most one per page */
.tally { width: 120px; height: auto; }

/* Long-form pages: privacy, support */
.doc { max-width: 720px; padding-top: 24px; }
.doc h1 { font-size: 44px; line-height: 1.1; margin: 24px 0 8px; }
.doc h2 { font-size: 24px; margin: 48px 0 10px; }
.doc h3 { font-size: 19px; margin: 28px 0 6px; }
.doc p, .doc li { color: #333; }
.doc .updated { color: var(--soft); font-size: 15px; margin: 0 0 32px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .short { background: var(--card); border-radius: 22px; padding: 22px 26px; margin: 28px 0; }
.doc .short ul { margin: 8px 0 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-size: 14px; color: var(--soft); font-weight: 600; }

/* Sea mist band behind the header and title of the support and privacy pages, like the home page hero */
.page-band { background: linear-gradient(to bottom, var(--mist) 0%, var(--mist) 70%, var(--bg) 100%); padding-bottom: 56px; }
.doc-head { padding-bottom: 4px; }
.doc-head .updated { margin-bottom: 8px; }
.doc > h2:first-child { margin-top: 0; }

/* FAQ */
details { background: var(--card); border-radius: 18px; padding: 0 22px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 650; padding: 18px 0; list-style: none; position: relative; padding-right: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--sea); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details > :last-child { padding-bottom: 18px; }
.contact { background: var(--sea); color: #fff; border-radius: 26px; padding: 30px; margin: 40px 0; }
.contact h2 { margin-top: 0; color: #fff; }
.contact p { color: #e3f0f2; }
.contact a { color: #fff; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .top nav { gap: 16px; font-size: 15px; }
  .doc h1 { font-size: 36px; }
  .mark { font-size: 52px; }
}
