/* DwellDo landing site. Same warm palette as the app (src/theme.ts):
   cream and white in light mode, warm charcoal in dark mode, a coral accent. */

:root {
  --bg: #fbf7f2;
  --card: #ffffff;
  --card-border: #efe6dc;
  --text: #2b2523;
  --muted: #7a6e66;
  --accent: #d9603f;
  --accent-hover: #c4522f;
  --accent-text: #ffffff;
  --accent-soft: #fce9e2;
  --danger: #c8372d;
  --chip: #f3ece4;
  --peach: #fde3d6;
  --peach-icon: #b4532f;
  --mint: #d9f2e6;
  --mint-icon: #2c7a55;
  --sky: #dcebfb;
  --sky-icon: #2d63a0;
  --butter: #fbf0c9;
  --butter-icon: #8a6a0f;
  --radius: 20px;
  --radius-sm: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --card: #292421;
    --card-border: #3a332e;
    --text: #f5efe9;
    --muted: #b3a79e;
    --accent: #f28a6b;
    --accent-hover: #f59c80;
    --accent-text: #2b1a14;
    --accent-soft: #3d2a23;
    --danger: #ff8a80;
    --chip: #352e29;
    --peach: #4a3127;
    --peach-icon: #ffb896;
    --mint: #24402f;
    --mint-icon: #8fddb3;
    --sky: #243a52;
    --sky-icon: #9cc7f5;
    --butter: #463d1e;
    --butter-icon: #f2d77a;
  }
}

* { 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, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero { text-align: center; padding: 40px 0 28px; }
.hero h1 { font-size: clamp(40px, 8vw, 60px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero .tagline { font-size: clamp(19px, 3.2vw, 23px); color: var(--muted); margin: 0 auto; max-width: 560px; }

.promise {
  margin: 28px auto 0;
  max-width: 560px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 18px;
}

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 36px 0; }
.tile { border-radius: var(--radius); padding: 18px; }
.tile h3 { margin: 8px 0 4px; font-size: 18px; }
.tile p { margin: 0; font-size: 15px; color: var(--text); opacity: 0.85; }
.tile .icon { font-size: 26px; }
.tile.peach { background: var(--peach); }
.tile.mint { background: var(--mint); }
.tile.sky { background: var(--sky); }
.tile.butter { background: var(--butter); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 18px 0;
}
.card h2 { margin-top: 0; }

/* Beta form */
.beta { max-width: 520px; margin: 10px auto 40px; }
.beta h2 { margin: 0 0 4px; font-size: 26px; }
.beta .sub { color: var(--muted); margin: 0 0 18px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
}
input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.form-body { margin: 0; }
.choice small { font-weight: 400; color: var(--muted); }

/* Sign-ups paused ("Opening soon"): greyed out and can't be used. */
.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.beta.closed form .form-body { opacity: 0.45; filter: grayscale(1); }
.beta.closed form .form-body * { cursor: not-allowed; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.optional { color: var(--muted); font-weight: 400; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--chip);
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.button {
  display: inline-block;
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); color: var(--accent-text); }
.button[disabled] { opacity: 0.6; cursor: default; }
.fineprint { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.form-message { margin: 12px 0 0; font-weight: 600; }
.form-message.error { color: var(--danger); }
.hidden { display: none; }

/* Long-form pages (privacy, support) */
.page { padding: 20px 0 40px; }
.page h1 { font-size: clamp(32px, 6vw, 42px); line-height: 1.15; margin: 10px 0 6px; }
.page .updated { color: var(--muted); margin: 0 0 18px; }
.page h2 { font-size: 22px; margin: 0 0 8px; }
.page ul { padding-left: 22px; margin: 8px 0; }
.page li { margin: 6px 0; }
.draft {
  background: var(--butter);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
  border-left: 6px solid var(--butter-icon);
}
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
th { font-size: 14px; color: var(--muted); font-weight: 600; }

details { border-bottom: 1px solid var(--card-border); padding: 14px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }

/* Footer */
.site-footer { padding: 26px 0 40px; color: var(--muted); font-size: 15px; text-align: center; }
.site-footer a { color: var(--muted); margin: 0 8px; }

@media (max-width: 480px) {
  .nav { gap: 12px; font-size: 14px; }
  .card { padding: 20px 18px; }
}
