:root {
  --bg: #f8f5ee;
  --ink: #1d1a16;
  --muted: #7a7166;
  --line: #e9e3d6;
  --accent: #f7931e;
  --accent-deep: #e07a0a;
  --card: #ffffff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--muted); }
.muted { color: var(--muted); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(248, 245, 238, 0.8);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 12px 22px; font-weight: 500; transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); background: #000; }
.button.small { padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(32px, 7vw, 88px) clamp(20px, 5vw, 56px) 40px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(247,147,30,.18); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; margin: 22px 0 20px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 30em; }

/* Phone */
.phone {
  justify-self: center; width: min(320px, 100%);
  border-radius: 48px; padding: 10px; background: #1d1a16;
  box-shadow: 0 40px 80px -30px rgba(120, 70, 10, .45), 0 0 0 1px rgba(0,0,0,.05);
  transform: rotate(2deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(2deg) translateY(-10px); } }
.phone-screen {
  background: #f7f7f8; border-radius: 39px; overflow: hidden;
  height: 600px; display: flex; flex-direction: column;
}
.phone-top { height: 38px; display: flex; justify-content: center; align-items: flex-end; }
.notch { width: 96px; height: 26px; border-radius: 20px; background: #1d1a16; }
.chat { flex: 1; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.chat-greeting { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px 0 10px; font-size: 15px; }
.bubble { border-radius: 18px; padding: 10px 13px; max-width: 86%; }
.bubble.user { align-self: flex-end; background: #eaeaec; border-bottom-right-radius: 6px; }
.bubble.kio { align-self: flex-start; padding-left: 2px; }
.bubble.kio p { margin-bottom: 6px; }
.bubble.kio ul { padding-left: 18px; display: grid; gap: 3px; }
.bubble b { font-weight: 600; }
.card {
  background: #fff; border: 1px solid #e6e6e8; border-radius: 14px; padding: 4px 12px;
}
.card-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.card-row + .card-row { border-top: 1px solid #f0f0f1; }
.card-row span:nth-child(2) { flex: 1; }
.tick, .cal { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--accent); flex: none; }
.cal { border-radius: 4px; background: rgba(247,147,30,.15); }
.composer {
  margin: 10px; padding: 12px 14px; border-radius: 22px; background: #fff; border: 1px solid #e6e6e8;
  display: flex; justify-content: space-between; align-items: center; color: #9a9aa0; font-size: 13.5px;
}
.send { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; }
.reveal-chat { opacity: 0; transform: translateY(8px); animation: pop .5s ease forwards; animation-delay: var(--d); }
@keyframes pop { to { opacity: 1; transform: none; } }

/* Waitlist */
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 480px; }
.waitlist input[type=email] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 20px; border-radius: 999px; border: 1px solid #ddd5c5; background: #fff; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.waitlist input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(247,147,30,.18); }
.waitlist .button { background: var(--accent); color: #fff; font: inherit; font-weight: 600; border: 0; cursor: pointer; padding: 13px 24px; }
.waitlist .button:hover { background: var(--accent-deep); }
.waitlist.busy .button { opacity: .6; pointer-events: none; }
.waitlist.joined input, .waitlist.joined .button { display: none; }
.form-note { flex-basis: 100%; font-size: 14px; color: var(--muted); padding-left: 6px; }
.form-note.error { color: #b5413a; }
.form-note.ok { color: var(--ink); font-size: 17px; font-weight: 500; padding-left: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cta .waitlist { margin: 8px auto 0; justify-content: center; }
.cta .form-note { text-align: center; }

/* Sections */
.intro { max-width: 760px; margin: 0 auto; padding: 110px 24px 40px; text-align: center; }
.intro h2, .trust h2, .cta h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; }
.intro p { margin-top: 20px; color: var(--muted); font-size: 18px; }

.features { max-width: 1080px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 56px); display: grid; gap: 28px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.feature:nth-child(even) .feature-copy { order: 2; }
.num { font-family: var(--serif); color: var(--accent-deep); font-size: 22px; }
.feature h3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin: 6px 0 12px; }
.feature p { color: var(--muted); font-size: 17px; max-width: 26em; }
.feature-art {
  position: relative; border-radius: 28px; min-height: 300px;
  display: grid; place-items: center; overflow: hidden; padding: 36px 28px;
}
.tint-orange { background: linear-gradient(160deg, #fde9cf, #f9d3a3); }
.tint-blue   { background: linear-gradient(160deg, #e6edfb, #cfdcf6); }
.tint-green  { background: linear-gradient(160deg, #e5f3e4, #cbe7cc); }
.tint-pink   { background: linear-gradient(160deg, #fbe8ec, #f4d2da); }
.tint-cream  { background: linear-gradient(160deg, #f6eedd, #ecdcbd); }

.trust { max-width: 1080px; margin: 0 auto; padding: 110px clamp(20px, 5vw, 56px) 40px; text-align: center; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; gap: 20px; margin-top: 40px; text-align: left; }
.trust-grid div { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.trust-grid h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.trust-grid p { color: var(--muted); font-size: 15px; }

.cta { text-align: center; padding: 110px 24px 120px; display: grid; justify-items: center; gap: 14px; }
.cta p { color: var(--muted); font-size: 18px; }
.bob { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }

.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); font-size: 14px;
}
.footer span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* App screens in the features */
.mini {
  width: 270px; height: 440px; background: #f7f7f8; border-radius: 30px; padding: 14px 12px;
  border: 7px solid #1d1a16; box-shadow: 0 30px 60px -30px rgba(60,40,10,.45);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 12px; text-align: left;
  transition: transform .4s ease;
}
.feature:hover .mini { transform: translateY(-4px) rotate(-1deg); }
.mini strong { font-weight: 600; }
.mini .muted { display: block; font-size: 11px; }
.mini-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; padding: 0 2px; }
.mini-bar .x { color: var(--muted); font-weight: 400; font-size: 18px; line-height: 1; }
.mini-tools { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.mini-tools .tool { border: 1px solid #e3e3e6; background: #fff; border-radius: 999px; padding: 3px 10px; color: var(--ink); }
.mini-tools span:last-child { margin-left: auto; }
.summary { background: #fff7ec; border: 1px solid #f6dfbd; border-radius: 14px; padding: 10px 12px; display: grid; gap: 4px; }
.summary ul { padding-left: 16px; display: grid; gap: 3px; }
.label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.mail-head { display: flex; gap: 8px; align-items: center; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.mail-lines { display: grid; gap: 6px; }
.mail-lines i { height: 7px; border-radius: 4px; background: #e6e6e9; display: block; width: 100%; }
.suggest { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.suggest span { border: 1.5px dashed #cfcfd4; border-radius: 999px; padding: 5px 10px; background: #fff; }

.segments { display: grid; grid-template-columns: repeat(3, 1fr); background: #ececef; border-radius: 9px; padding: 2px; text-align: center; }
.segments span { padding: 4px 0; border-radius: 7px; color: var(--muted); }
.segments .on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.day-head { display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 11px; }
.day-head b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; }
.grid { position: relative; flex: 1; }
.hour { height: 36px; border-top: 1px solid #e6e6e8; position: relative; }
.hour span { position: absolute; left: 0; top: -5px; line-height: 1; background: #f7f7f8; padding-right: 4px; font-size: 10px; color: var(--muted); }
.event { position: absolute; left: 26px; right: 2px; border-radius: 7px; background: #fde8cd; border-left: 3px solid var(--accent); padding: 2px 7px; line-height: 1.2; z-index: 1; font-weight: 600; overflow: hidden; }
.event small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.event.alt { background: #e2e7fb; border-left-color: #4f6bed; }
.now { position: absolute; left: 22px; right: 0; height: 2px; background: #e5484d; z-index: 2; }
.now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }

.todo { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 11px; border: 1px solid #ececef; }
.todo > div { flex: 1; }
.todo .due { display: block; font-size: 11px; color: #c4580f; }
.circle { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #c7c7cc; flex: none; }
.todo.done strong { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.todo.done .circle { background: var(--accent); border-color: var(--accent); }
.thumb { width: 30px; height: 36px; border-radius: 5px; background: linear-gradient(#fff 30%, #e9e9ec 30% 38%, #fff 38% 50%, #e9e9ec 50% 58%, #fff 58%); border: 1px solid #dedee2; flex: none; }
.mini .bubble { font-size: 12px; }
.bubble.small { margin-top: auto; align-self: flex-end; padding: 7px 11px; }
.mini > .bubble.small:first-child { margin-top: 0; }
.kio-line { line-height: 1.45; }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product { position: relative; background: #fff; border-radius: 12px; padding: 6px 6px 8px; border: 1px solid #ececef; display: grid; gap: 2px; font-size: 11px; }
.product .photo { height: 92px; border-radius: 8px; background: linear-gradient(160deg, var(--a), var(--b)); position: relative; }
.product .photo::after { content: ""; position: absolute; inset: 18% 28% 10%; background: #fff; border-radius: 30% 30% 6px 6px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.product strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product span:not(.photo) { font-weight: 600; }
.product i { position: absolute; top: 10px; right: 11px; font-style: normal; color: #e5484d; font-size: 13px; }

.brief-card { background: #fff; border-radius: 14px; border: 1px solid #ececef; padding: 8px 12px 10px; display: grid; gap: 6px; }
.brief-row { display: flex; gap: 9px; align-items: center; }
.brief-row .due { display: block; font-size: 11px; color: #c4580f; }
.dot-sm { width: 9px; height: 9px; border-radius: 50%; background: #4f6bed; margin: 0 8px; flex: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .waitlist { justify-content: center; }
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-chat { opacity: 1; transform: none; }
}
