/* Calico website. The app's own colors:
   Obsidian #17191B, Sandstone #B66E50, Limestone #E9E1D4,
   Desert Sage #7D827B, Ivory #FAF9F6. Text and buttons use the deeper
   Sandstone (#9C5A3E) in light and the lighter one (#C98A6C) in dark,
   as the app does, so small text reads at 4.5:1 or better. */

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-2: #F3EEE6;
  --line: #E9E1D4;
  --text: #17191B;
  --text-2: #4E534D;
  --accent: #9C5A3E;
  --accent-fill: #9C5A3E;
  --on-accent: #FAF9F6;
  --sandstone: #B66E50;
  --shadow: 0 1px 2px rgba(23, 25, 27, .06), 0 8px 30px rgba(23, 25, 27, .08);
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}

/* The logo has a light and a dark version; the page shows the one for its mode. */
.mark-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191B;
    --surface: #1F2224;
    --surface-2: #26292C;
    --line: #303336;
    --text: #FAF9F6;
    --text-2: #B9BDB6;
    --accent: #C98A6C;
    --accent-fill: #C98A6C;
    --on-accent: #17191B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 30px rgba(0, 0, 0, .35);
  }
  .mark-light { display: none; }
  .mark-dark { display: inline-block; }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }


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

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 30px; height: 36px; }
.brand small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; line-height: 1; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; }
.lede { font-size: 20px; color: var(--text-2); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 16px;
}
.badge-soon svg { width: 22px; height: 22px; fill: currentColor; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.btn:hover { border-color: var(--accent); }
.fineprint { color: var(--text-2); font-size: 14px; margin-top: 14px; }

.phone {
  justify-self: center; width: min(320px, 80vw);
  border-radius: 44px; padding: 10px; background: #0E0F10;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 34px; }

/* Sections */
section { padding: 44px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; }
.section-lede { color: var(--text-2); font-size: 18px; margin: 0 0 28px; max-width: 42em; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 21px; }
.card p { margin: 0 0 10px; color: var(--text-2); }
.card ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.card li { margin: 6px 0; }
.icon-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); margin-bottom: 12px; font-size: 20px; }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { color: var(--text-2); font-size: 14px; text-align: center; margin-top: 8px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan .price { font-size: 34px; font-weight: 800; margin: 4px 0 2px; }
.plan .per { color: var(--text-2); font-size: 15px; }
.plan.pro { border: 2px solid var(--sandstone); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; }

.note { background: var(--surface-2); border-radius: var(--radius); padding: 22px 24px; color: var(--text-2); }
.note strong { color: var(--text); }

/* Long-form pages (privacy, terms, support) */
.doc { padding: 48px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.updated { color: var(--text-2); font-size: 15px; margin-top: -6px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 20px 0 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 2px; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--text-2); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .grid, .plans { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 12px; }
}

@media (max-width: 600px) {
  /* Features and Pricing are sections of the home page; on a phone the
     header keeps Support and Privacy so it fits on one line. */
  .nav a[href$="#features"], .nav a[href$="#pricing"] { display: none; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .lede { font-size: 18px; }
  .brand small { display: none; }
  .nav a { font-size: 14px; }
}
