/* Todoulette website styles. Indigo app world, task-type color pills, calm reading column for legal pages. */
:root {
  --bg: #221AB2;
  --bg-deep: #170F86;
  --panel: rgba(255,255,255,0.08);
  --panel-line: rgba(255,255,255,0.18);
  --ink: #F5FDFF;
  --ink-soft: #C9C6F2;
  --on-color: #221AB2;
  --cyan: #0CC0DF;
  --cyan-light: #7FE0F0;
  --yellow: #FFDE59;
  --pink: #E3A3F2;
  --green: #7ED957;
  --orange: #FFBD59;
  --sky: #7FDDEE;
  --lilac: #A9A6F5;
  --coral: #FF8A8A;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  background: var(--bg);
  background-image: radial-gradient(60rem 40rem at 85% 10%, rgba(127,224,240,0.16), transparent 60%),
                    radial-gradient(50rem 40rem at 0% 60%, rgba(227,163,242,0.12), transparent 60%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--cyan-light); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
em.todo { font-style: italic; font-weight: 800; }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg-deep); }
nav.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: rgba(23,15,134,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-line);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
nav.top img { height: 30px; width: auto; display: block; }
nav.top ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
nav.top a { color: var(--ink-soft); text-decoration: none; }
nav.top a:hover { color: var(--ink); }
@media (max-width: 560px) { nav.top ul { gap: 14px; font-size: 14px; } nav.top li.hide-sm { display: none; } nav.top img { height: 24px; } }

/* Hero */
.hero { padding-block: 64px 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero { padding-block: 40px; } }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 17px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 18px; border: 0; cursor: pointer;
}
.btn-cyan { background: linear-gradient(var(--cyan-light), var(--cyan)); color: var(--on-color); box-shadow: inset 0 2px 0 rgba(255,255,255,0.55), 0 10px 24px rgba(8,4,60,0.4); }
.btn-glass { background: var(--panel); color: var(--ink); border: 1px solid var(--panel-line); }
.soon { font-size: 14px; color: var(--ink-soft); }

/* Phone demo */
.phone {
  justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 18.5; max-width: 100%;
  border-radius: 46px; padding: 12px; background: #0B0840;
  box-shadow: 0 30px 60px rgba(8,4,60,0.55), inset 0 0 0 2px rgba(255,255,255,0.08);
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: radial-gradient(22rem 22rem at 90% 35%, rgba(169,166,245,0.35), transparent 60%), var(--bg);
  display: flex; flex-direction: column; padding: 34px 16px 0;
}
.screen .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0B0840; }
.screen h4 { font-family: var(--font-display); font-weight: 600; font-size: 22px; text-align: center; margin: 14px 0 12px; letter-spacing: -0.02em; white-space: nowrap; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 9px 0; border-radius: 12px; border: 0; cursor: pointer;
  background: #E4F3F8; color: var(--on-color);
}
.chip[aria-pressed="true"] { background: linear-gradient(var(--cyan-light), var(--cyan)); box-shadow: inset 0 2px 0 rgba(255,255,255,0.6); }
.plan { flex: 1; display: flex; flex-direction: column; gap: 7px; margin-top: 12px; overflow: hidden; }
.pill {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; color: var(--on-color);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.45), 0 6px 14px rgba(8,4,60,0.3);
  animation: pop 0.35s ease both;
}
.pill .ico { width: 20px; text-align: center; font-size: 15px; }
.pill .t { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.2; }
.pill .t small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11.5px; opacity: 0.8; }
.pill .m { font-family: var(--font-display); font-weight: 600; font-size: 12px; background: rgba(255,255,255,0.6); padding: 3px 8px; border-radius: 10px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }
.plan-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.tell { margin: 8px 0 10px; width: 100%; justify-content: center; font-size: 16px; padding: 13px 0; }
.tabbar { position: relative; height: 62px; margin: 0 -16px; background: rgba(255,255,255,0.1); border-top: 1px solid var(--panel-line); border-radius: 22px 22px 0 0; display: flex; justify-content: space-between; align-items: center; padding: 0 34px; color: var(--ink-soft); }
.tabbar .bolt {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(#FFEC99, var(--yellow)); box-shadow: 0 0 0 5px var(--bg), inset 0 2px 0 rgba(255,255,255,0.7), 0 8px 18px rgba(8,4,60,0.45);
}

/* Sections */
section.block { padding-block: 72px; border-top: 1px solid var(--panel-line); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 40rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.tag { align-self: flex-start; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--on-color); padding: 5px 12px; border-radius: 999px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--on-color); background: var(--yellow);
}
.steps p { color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-block: 14px; }
.feature .dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--on-color); box-shadow: inset 0 2px 0 rgba(255,255,255,0.45); }
.feature p { color: var(--ink-soft); margin-top: 4px; }

.types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.types span { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--on-color); padding: 7px 14px; border-radius: 12px; }

/* Legal */
.legal { max-width: 46rem; display: flex; flex-direction: column; gap: 14px; }
.legal h3 { margin-top: 18px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--ink); }
.meta { font-size: 14px; color: var(--ink-soft); }
.summary { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.summary ul { list-style: none; padding: 0; }
.summary li { display: flex; gap: 10px; color: var(--ink); }
.summary li::before { content: "✓"; color: var(--green); font-weight: 700; }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 46rem; }
details { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px; padding: 16px 20px; }
summary { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; cursor: pointer; }
details p { color: var(--ink-soft); margin-top: 10px; }
.contact { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact code { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; background: var(--panel); border: 1px dashed var(--yellow); padding: 10px 16px; border-radius: 14px; user-select: all; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--panel-line); padding-block: 32px 40px; color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--ink-soft); }

/* Simple pages (privacy, terms, support) */
.page { padding-block: 56px 72px; }
.page .section-head { margin-bottom: 28px; }
nav.top a[aria-current="page"] { color: var(--ink); }
.legal h2.sub { font-size: 1.35rem; font-weight: 600; margin-top: 22px; }

