/* Rosey — household-OS website. Plain HTML + CSS, no JS dependency.
   Aesthetic: warm domestic. Cream paper, serif body, terracotta accent. */

:root {
  --bg: #f4efe5;
  --bg-card: #faf5ec;
  --ink: #2c2a26;
  --ink-soft: #6a6358;
  --rule: #d9cfb8;
  --accent: #c26a4f;
  --accent-deep: #9a4a30;

  --bubble-them: #e8e1cf;
  --bubble-me: #d4e7c0;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --max: 880px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.rule { border: none; height: 1px; background: var(--rule); margin: 56px 0; }

/* --- header --- */
header {
  padding: 28px 0 0;
}
header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
}
nav a:hover { color: var(--accent-deep); }
@media (max-width: 600px) {
  header .wrap { flex-direction: column; gap: 12px; }
  nav a:first-child { margin-left: 0; }
}

/* --- hero --- */
.hero {
  padding: 80px 0 40px;
}
.hero .wrap.hero-grid {
  /* Hero gets a slightly wider container than body content, so the phone
     and headline both have room to breathe. */
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap.hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero .phone { justify-self: center; }
  .hero { padding: 56px 0 24px; }
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
}
.hero .lead {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 520px;
}
@media (max-width: 800px) {
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 18px; }
}
.cta {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 22px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: 460px;
}
.cta .label {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cta .number {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cta .hint {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* --- phone mockup --- */
.phone {
  width: 320px;
  background: #1f1d1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 12px 32px rgba(40,30,20,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.phone::before {
  /* notch */
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 22px;
  background: #1f1d1a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.screen {
  background: #ece5d3; /* WhatsApp-style cream */
  border-radius: 26px;
  height: 560px;
  padding: 56px 16px 24px; /* top room for notch */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.screen .top {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--ink);
}
.screen .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
}
.screen .who { display: flex; flex-direction: column; }
.screen .who .name { font-weight: 600; }
.screen .who .status { color: var(--ink-soft); font-size: 11px; }

.thread {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  /* let messages flow naturally; scroll if overflow */
  overflow: hidden;
}
.bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  opacity: 0;
  animation: fadeUp 16s linear infinite;
}
.bubble.them {
  align-self: flex-start;
  background: var(--bubble-them);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble.me {
  align-self: flex-end;
  background: var(--bubble-me);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}
.bubble small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}

/* Stagger bubbles using delay. Cycle is 16s; each bubble fades in over
   ~0.5s and stays visible until the cycle restarts. */
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(8px); }
  6%   { opacity: 1; transform: translateY(0); }
  93%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}
.bubble:nth-of-type(1) { animation-delay: 0.4s; }
.bubble:nth-of-type(2) { animation-delay: 1.6s; }
.bubble:nth-of-type(3) { animation-delay: 3.2s; }
.bubble:nth-of-type(4) { animation-delay: 4.6s; }
.bubble:nth-of-type(5) { animation-delay: 6.4s; }
.bubble:nth-of-type(6) { animation-delay: 8.2s; }
.bubble:nth-of-type(7) { animation-delay: 10.0s; }

/* --- secondary section --- */
.section {
  padding: 64px 0;
}
.section h2 {
  font-size: 32px;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.section h2 em {
  font-style: italic;
  color: var(--accent-deep);
}
.section p {
  font-size: 18px;
  margin: 0 0 16px;
  max-width: 640px;
}
.section .columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
@media (max-width: 700px) {
  .section .columns { grid-template-columns: 1fr; }
}
.section .columns h3 {
  font-size: 18px;
  font-style: italic;
  margin: 0 0 8px;
  color: var(--accent-deep);
}
.section .columns p {
  font-size: 16px;
  color: var(--ink);
}

/* --- inline lists --- */
.checklist {
  list-style: none; padding: 0; margin: 0 0 24px;
}
.checklist li {
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
  color: var(--ink);
}
.checklist li::before {
  content: "·";
  position: absolute;
  left: 6px; top: -2px;
  color: var(--accent);
  font-weight: 700;
  font-size: 22px;
}

/* --- footer --- */
footer {
  padding: 48px 0 56px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}
footer a { color: var(--ink-soft); }

/* --- code-y bits --- */
.k { font-family: var(--mono); font-size: 14px; background: var(--bg-card); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--rule); }
