/* Houseboard - warm kitchen theme (terracotta, sage, butter, cream). */

:root {
  --cream: #fbf5ec;
  --paper: #fffaf3;
  --ink: #2a211c;
  --muted: #6e6158;
  --line: rgba(42, 33, 28, 0.10);
  --terra: #d2603b;       /* primary brand */
  --terra-deep: #b44a28;
  --sage: #7f9b72;
  --butter: #e2b46b;
  --night: #1e1a20;       /* widget board background */
  --radius: 20px;
  --max: 1040px;
  --shadow-sm: 0 1px 3px rgba(42,33,28,0.06), 0 8px 22px rgba(42,33,28,0.07);
  --shadow-lg: 0 18px 50px rgba(42,33,28,0.20);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8e6d6 0%, var(--cream) 42%) fixed;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
a { color: var(--terra-deep); }

header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(251, 245, 236, 0.75);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; margin-left: 22px; }
.nav nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.6); border-color: var(--line); color: var(--ink); }
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: #1b1b1b; color: #fff; padding: 11px 20px 11px 18px; border-radius: 12px; text-decoration: none;
  transition: transform .15s ease;
}
.appstore:hover { transform: translateY(-1px); }
.appstore[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.appstore[aria-disabled="true"]:hover { transform: none; }
.appstore svg { width: 24px; height: 24px; fill: #fff; }
.appstore .t { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore .t small { font-size: 0.62rem; opacity: 0.85; }
.appstore .t span { font-size: 1.12rem; font-weight: 600; }

/* Hero */
.hero { padding: clamp(44px, 8vw, 88px) 0 clamp(28px, 5vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--terra-deep); background: rgba(210,96,59,0.12); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lede { font-size: 1.15rem; color: var(--muted); margin: 20px 0 28px; max-width: 36ch; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .compat { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
}

section { padding: clamp(48px, 7vw, 84px) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* Widget board: a neutral panel holding widgets at real small-widget proportions. */
.board {
  background: radial-gradient(120% 100% at 30% 0%, #2c2630 0%, var(--night) 70%);
  border-radius: 34px; padding: 18px;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1 / 1;
}
.board.wide { max-width: 760px; aspect-ratio: auto; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .board.wide { grid-template-columns: repeat(2, 1fr); max-width: 420px; } }

.widget {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px; padding: 13px 14px; color: #f6efe7;
  display: flex; flex-direction: column; min-height: 0; aspect-ratio: 1 / 1; text-align: left;
  font-size: 0.78rem; line-height: 1.3; overflow: hidden;
}
.widget .head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 0.74rem; color: rgba(246,239,231,0.85); }
.widget .head .count { color: var(--butter); font-weight: 800; }
.widget .row { display: flex; gap: 7px; align-items: flex-start; margin-top: 8px; }
.widget .dot { width: 12px; height: 12px; border-radius: 50%; border: 1.6px solid rgba(246,239,231,0.7); flex: none; margin-top: 2px; }
.widget .row b { font-weight: 600; display: block; color: #fff; }
.widget .row small { color: rgba(246,239,231,0.6); font-size: 0.68rem; }
.widget .row small.late { color: #ff8f73; }
.widget .spacer { flex: 1; }
.widget .big { font-size: 1.55rem; font-weight: 800; color: var(--butter); letter-spacing: -0.02em; line-height: 1.05; }
.widget .label { font-size: 0.68rem; color: rgba(246,239,231,0.6); }
.widget .done {
  margin-top: 8px; background: var(--terra); color: #fff; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 0.74rem; padding: 6px 0; text-align: center;
}
.widget .bin { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: #fff; margin-top: 6px; }
.widget .bin i { width: 20px; height: 20px; border-radius: 6px; display: inline-block; flex: none; }
.widget .bin i.trash { background: #8d8790; }
.widget .bin i.recycle { background: #4f8fd6; }
.widget .timer { font-variant-numeric: tabular-nums; color: var(--butter); font-weight: 800; }
.widget .points-row { display: flex; justify-content: space-between; margin-top: 7px; font-size: 0.8rem; }
.widget .points-row b { color: var(--butter); font-variant-numeric: tabular-nums; }
.widget .bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.12); margin-top: 5px; overflow: hidden; }
.widget .bar span { display: block; height: 100%; background: var(--sage); border-radius: 3px; }

.board-caption { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 16px; }

/* Real photo slot (filled in once there is a photo of the app running on the device) */
.photo-slot { display: none; }
.photo-slot.ready { display: block; }
.photo-slot img { width: 100%; max-width: 760px; display: block; margin: 0 auto; border-radius: 24px; box-shadow: var(--shadow-lg); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { background: rgba(255,255,255,0.65); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--terra), var(--terra-deep)); color: #fff; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.1rem; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* Chore chips */
.chores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.chores span { background: rgba(255,255,255,0.7); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; }

/* Privacy band */
.band { background: linear-gradient(135deg, #5f7a55, #3f5639); color: #f1f5ee; border-radius: 26px; padding: clamp(34px, 6vw, 60px); text-align: center; box-shadow: var(--shadow-lg); }
.band h2 { color: #fff; }
.band p { color: rgba(241,245,238,0.85); max-width: 58ch; margin: 14px auto 0; }
.band .chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.band .chip-pill { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.2); padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; }

footer { border-top: 1px solid var(--line); padding: 38px 0; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer nav { display: flex; gap: 20px; }
footer .tm { flex-basis: 100%; font-size: 0.78rem; opacity: 0.8; }

/* Legal and support */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(44px, 8vw, 80px) 24px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 6px; }
.legal .eff { color: var(--muted); margin-bottom: 30px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal a { color: var(--terra-deep); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

/* Phones: keep the nav on one line and let the widget preview breathe. */
@media (max-width: 520px) {
  .nav nav { display: flex; white-space: nowrap; }
  .nav nav a { margin-left: 12px; font-size: 0.84rem; }
  .brand { font-size: 0.95rem; }
  .board { padding: 12px; gap: 10px; border-radius: 28px; }
  .widget { padding: 10px 11px; border-radius: 18px; font-size: 0.7rem; }
  .widget .row { margin-top: 5px; }
  .widget .big { font-size: 1.3rem; }
  .widget .bin { font-size: 0.85rem; }
}
