/* Household Chores — site styles.
   Palette mirrors the iOS app theme (Theme.swift):
   primary #5B70F0, primary-dark #3C4CC7, green #2EBD7D, orange #F29C29,
   background #F5F7FC, text #1A1F2E / #737D8F, separator #E3E8F0. */

:root {
  --primary: #5B70F0;
  --primary-dark: #3C4CC7;
  --green: #2EBD7D;
  --orange: #F29C29;
  --pink: #D9599E;
  --teal: #4DB5D6;
  --danger: #E64D4D;
  --bg: #F5F7FC;
  --card: #FFFFFF;
  --text: #1A1F2E;
  --text-2: #737D8F;
  --line: #E3E8F0;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 6px 24px rgba(26, 31, 46, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 247, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  text-decoration: none;
}
.brand svg { flex: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }
/* .nav-links a otherwise out-specifies .btn-primary and greys its label */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600; font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 18px rgba(91, 112, 240, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  border: 1.5px solid var(--line); color: var(--text); background: var(--card);
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; }
.hero .container {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p.lead { color: var(--text-2); font-size: 1.12rem; margin-bottom: 28px; max-width: 34rem; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .cta-note { color: var(--text-2); font-size: 0.85rem; margin-top: 14px; }

/* Store badges */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 11px;
  background: var(--text); color: #fff;
  border-radius: 13px; padding: 9px 18px 9px 14px;
  text-decoration: none; min-width: 168px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge svg { flex: none; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.store-badge .lines small { font-size: 0.66rem; opacity: 0.75; letter-spacing: 0.02em; }
.store-badge .lines strong { font-size: 1.02rem; font-weight: 600; }
.store-badge.soon { opacity: 0.5; cursor: default; pointer-events: none; }

/* CSS phone mockup */
.phone {
  width: 290px; margin: 0 auto;
  background: var(--text);
  border-radius: 42px; padding: 12px;
  box-shadow: 0 24px 60px rgba(26, 31, 46, 0.25);
}
.phone-screen {
  background: var(--bg); border-radius: 32px; overflow: hidden;
  padding: 22px 14px 26px;
}
.phone-title { font-weight: 700; font-size: 1.0rem; margin: 0 6px 12px; }
.task-card {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.task-check {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--line);
}
.task-check.done {
  border-color: var(--green); background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.task-check.done::after {
  content: ""; width: 6px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.task-name { font-size: 0.88rem; font-weight: 500; }
.task-name.done { color: var(--text-2); text-decoration: line-through; }
.task-pts {
  margin-left: auto; font-size: 0.72rem; font-weight: 700;
  color: var(--primary); background: rgba(91, 112, 240, 0.12);
  padding: 3px 8px; border-radius: 100px;
}
.group-bar { display: flex; gap: 8px; margin: 0 6px 14px; }
.group-chip {
  font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: 100px;
  background: var(--primary); color: #fff;
}
.group-chip.alt { background: rgba(91, 112, 240, 0.12); color: var(--primary); }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
.section-title { text-align: center; font-size: 1.9rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-2); max-width: 40rem; margin: 0 auto 44px; }

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px;
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 16px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 0.93rem; }
.icon.indigo { background: rgba(91, 112, 240, 0.13); }
.icon.green  { background: rgba(46, 189, 125, 0.13); }
.icon.orange { background: rgba(242, 156, 41, 0.14); }
.icon.pink   { background: rgba(217, 89, 158, 0.13); }
.icon.teal   { background: rgba(77, 181, 214, 0.14); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { text-align: center; padding: 10px 18px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 0.93rem; }

/* Premium */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 30px 28px; border: 1.5px solid var(--line);
}
.plan.highlight { border-color: var(--orange); position: relative; }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}
.plan h3 { font-size: 1.15rem; margin-bottom: 4px; }
.plan .price { font-size: 1.9rem; font-weight: 800; margin-bottom: 2px; }
.plan .price span { font-size: 0.95rem; font-weight: 500; color: var(--text-2); }
.plan .per { color: var(--text-2); font-size: 0.85rem; margin-bottom: 18px; }
.plan ul { list-style: none; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 0.94rem; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 6px; height: 11px;
  border: solid var(--green); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.premium-note { text-align: center; color: var(--text-2); font-size: 0.88rem; max-width: 44rem; margin: 26px auto 0; }

/* Contact */
.contact-card {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  max-width: 620px; margin: 0 auto; padding: 36px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--text); background: var(--bg);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 112, 240, 0.15);
}
.contact-direct { text-align: center; color: var(--text-2); font-size: 0.92rem; margin-top: 18px; }
.contact-direct a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ---------- Inner pages (privacy / support) ---------- */

.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.page h1 { font-size: 2rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.page .updated { color: var(--text-2); font-size: 0.9rem; margin-bottom: 34px; }
.page h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.page h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.page p, .page li { color: #3a4152; font-size: 0.98rem; }
.page ul { padding-left: 22px; margin: 8px 0; }
.page a { color: var(--primary); }
.page .card-block {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px; margin: 18px 0;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px; margin-top: 20px;
  color: var(--text-2); font-size: 0.9rem;
}
footer .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
footer a { color: var(--text-2); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--primary); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row, .store-badges { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links a.nav-secondary { display: none; }
}
