/* Front page. Same purple as the app; light and dark. */
:root {
  --bg: #f7f7ff; --bg2: #eef0ff; --card: #ffffff; --text: #1b1a29; --muted: #66647c; --line: #e5e4f2;
  --accent: #5f3dc4; --accent2: #e8590c; --accent-soft: #ece7fb;
  --kite-a: #7950f2; --kite-b: #5f3dc4; --bow-1: #ff922b; --bow-2: #f06595; --bow-3: #20c997;
  --sky-1: #dbe4ff; --sky-2: #f3f0ff; --cloud: #ffffff;
  --radius: 20px; --shadow: 0 1px 2px rgb(20 20 50 / 6%), 0 8px 30px rgb(20 20 50 / 6%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e17; --bg2: #151425; --card: #1b1a2b; --text: #ecebf6; --muted: #9b99b3; --line: #2b2940;
    --accent: #9775fa; --accent2: #ff922b; --accent-soft: #29234a;
    --kite-a: #9775fa; --kite-b: #7048e8; --sky-1: #1a1838; --sky-2: #0f0e17; --cloud: #2a2850;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 30px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; }
section { padding: 72px 20px; max-width: 1100px; margin: 0 auto; scroll-margin-top: 64px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; }
.fine { font-size: 14px; color: var(--muted); }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px; backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 18px; }
.brand img { border-radius: 8px; }
.pill { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 99px; background: var(--accent-soft); }

.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 14px;
  background: var(--accent); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ghost { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }

/* ---- hero: a kite flying over the flat's to-dos */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding-top: 40px; max-width: 1180px; }
.hero-copy { order: 1; }
.sky { order: 2; position: relative; height: 520px; border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, var(--sky-1), var(--sky-2) 70%); box-shadow: var(--shadow); }
.kite { position: absolute; left: 50%; top: 24px; margin-left: -100px; transform-origin: 100px 400px;
  animation: fly 7s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgb(60 30 160 / 25%)); }
.ka { fill: var(--kite-a); } .kb { fill: var(--kite-b); } .b1 { fill: var(--bow-1); } .b2 { fill: var(--bow-2); } .b3 { fill: var(--bow-3); }
.string { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7; }
.bows path { transform-box: fill-box; transform-origin: center; animation: flutter 1.4s ease-in-out infinite; }
.bows path:nth-child(2) { animation-delay: .2s; } .bows path:nth-child(3) { animation-delay: .4s; }
@keyframes fly { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-14px); } }
@keyframes flutter { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }
.cloud { position: absolute; background: var(--cloud); border-radius: 99px; opacity: .9; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 55%; height: 160%; left: 15%; bottom: 20%; } .cloud::after { width: 40%; height: 130%; right: 12%; bottom: 25%; }
.c1 { width: 120px; height: 34px; top: 70px; animation-duration: 38s; }
.c2 { width: 90px; height: 26px; top: 190px; animation-duration: 52s; animation-delay: -20s; opacity: .7; }
.c3 { width: 150px; height: 40px; top: 330px; animation-duration: 64s; animation-delay: -40s; opacity: .6; }
@keyframes drift { from { left: -180px; } to { left: 110%; } }
.tags { list-style: none; margin: 0; padding: 0; }
.tags li { position: absolute; font-size: 14px; font-weight: 600; padding: 9px 13px; border-radius: 12px; background: var(--card);
  box-shadow: var(--shadow); white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.t1 { left: 6%; top: 300px; } .t2 { right: 5%; top: 360px; animation-delay: -1.2s; }
.t3 { left: 9%; top: 420px; animation-delay: -2.4s; } .t4 { right: 4%; top: 465px; animation-delay: -3.6s; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.ic { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); margin-bottom: 14px; }

/* ---- agent */
.agent { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.agent p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.tag { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.chat { background: var(--card); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 16px; opacity: 0; transform: translateY(8px); }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--bg2); border-bottom-left-radius: 6px; }
.chat.play .msg { animation: pop .45s ease forwards; }
.chat.play .msg:nth-child(2) { animation-delay: .7s; } .chat.play .msg:nth-child(3) { animation-delay: 1.6s; }
.chat.play .msg:nth-child(4) { animation-delay: 2.3s; } .chat.play .msg:nth-child(5) { animation-delay: 3.2s; }
.chat.play .msg:nth-child(6) { animation-delay: 3.9s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---- install */
.install { text-align: center; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin: 26px 0 8px; }
.tabs button { font: inherit; font-weight: 700; border: 0; background: none; color: var(--muted); padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 20px auto 0; max-width: 620px; text-align: left; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; margin-bottom: 10px; background: var(--card);
  border-radius: 16px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.key { display: inline-block; font-size: 14px; font-weight: 700; padding: 1px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg2); }

.small-print { text-align: center; max-width: 760px; }
.small-print p { color: var(--muted); margin-bottom: 26px; }
footer { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); }

@media (max-width: 860px) {
  .hero, .agent { grid-template-columns: 1fr; }
  .sky { height: 420px; order: 2; }
  .kite { transform: scale(.8); top: 0; }
  .t1 { top: 214px; } .t2 { top: 262px; } .t3 { top: 310px; } .t4 { top: 358px; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  section { padding: 52px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .msg { opacity: 1; transform: none; }
}
