/* Don't Worry, It's On Me — landing page.
   Calm layer on top of design-system.css: sentence-case headings, space
   and soft panels instead of rules, the brand red kept for actions and
   small emphasis only. */

/* ── page shell ─────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--color-tint); }

.section__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 20ch;
}
.section__head .section__title { margin-bottom: 0; }
.section__lead {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 46ch;
  margin: 0 0 28px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent-700);
  margin: 0 0 12px;
}

/* Lucide-style stroke icons, inlined */
svg[viewBox="0 0 24 24"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── brand mark ─────────────────────────────────────────────────────── */
/* Solid red square, letters flush lower-left (never centred). */
.mark {
  --s: 32px;
  width: var(--s);
  height: var(--s);
  flex: none;
  display: flex;
  align-items: flex-end;
  padding: 0 0 calc(var(--s) * 0.14) calc(var(--s) * 0.16);
  border-radius: calc(var(--s) * 0.22);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(var(--s) * 0.42);
  letter-spacing: -0.03em;
  line-height: 1;
}
.mark--sm { --s: 28px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}
.brand__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .nav { padding-top: 14px; padding-bottom: 14px; gap: 28px; }
.site-header .nav-brand,
.site-header .nav-brand:hover { color: var(--color-text); }
.nav .nav__cta,
.nav .nav__cta:hover { color: #fff; padding: 10px 18px; font-size: 14px; }

/* ── language switcher ──────────────────────────────────────────── */
/* page stays hidden until i18n.js has swapped in a non-English language */
.i18n-pending body { visibility: hidden; }

.lang { position: relative; }
.lang__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background-color .15s ease, color .15s ease;
}
.lang__toggle::-webkit-details-marker { display: none; }
.lang__toggle:hover,
.lang[open] .lang__toggle { background: var(--color-tint); color: var(--color-text); }
.lang__toggle svg { width: 16px; height: 16px; flex: none; }
.lang__toggle .lang__chev { width: 14px; height: 14px; transition: transform .15s ease; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 20;
}
.lang__menu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}
.lang__menu button:hover { background: var(--color-tint); }
.lang__menu button[aria-current="true"] { font-weight: 600; }
.lang__menu button[aria-current="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(40px, min(7vw, 9vh), 96px) 0 clamp(56px, 8vw, 104px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero__title {
  font-size: clamp(36px, min(4.6vw, 8vh), 58px);
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.hero__title em {
  display: block;
  font-style: normal;
  color: var(--color-accent);
}
.hero__lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--color-text-muted);
  max-width: 44ch;
  margin: 0 0 32px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero__actions .btn { padding: 14px 26px; font-size: 16px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--color-text-subtle);
}
.facts strong { color: var(--color-text); font-weight: 600; }

/* night card — the one dark surface near the top */
.night {
  background: var(--color-night);
  color: #f2efec;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.night__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #b3aca8;
  margin-bottom: 20px;
}
.night__head svg { width: 16px; height: 16px; color: #ffc4b8; }
.bubble {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 8px;
}
.bubble--them {
  background: #34302e;
  border-bottom-left-radius: 6px;
}
.bubble--bot {
  margin-left: auto;
  background: var(--color-accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.night__done {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #ffffff1a;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #d8d2ce;
}
.night__done li { display: flex; align-items: center; gap: 10px; }
.night__done svg { width: 16px; height: 16px; color: #ff9783; flex: none; }

/* ── when they write ────────────────────────────────────────────────── */
.clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clock__cell {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.clock__time {
  display: block;
  font-weight: 700;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.clock__when {
  display: block;
  font-size: 14px;
  color: var(--color-text-subtle);
  margin-bottom: 18px;
}
.clock__msg { margin: 0; font-size: 16px; line-height: 1.45; }
.clock__cell--night {
  background: var(--color-night);
  color: #f2efec;
}
.clock__cell--night .clock__time { color: #ff9783; }
.clock__cell--night .clock__when { color: #b3aca8; }
.clock__foot {
  margin: 28px 0 0;
  font-size: 17px;
  color: var(--color-text-muted);
}

/* ── split layouts (role, privacy) ──────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.features {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li { display: flex; gap: 18px; }
.features__icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.features__icon svg { width: 20px; height: 20px; }
.features h3 { font-size: 18px; margin: 2px 0 4px; letter-spacing: -0.015em; }
.features p { margin: 0; color: var(--color-text-muted); font-size: 16px; }

.checks {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--color-accent);
}
.checks strong { font-weight: 600; }
#security .checks span { color: var(--color-text-muted); }
#security .checks strong { color: var(--color-text); }

/* ── demo: night chat + morning summary ─────────────────────────────── */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.demo__stage {
  background: var(--color-soft);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 40px);
}
/* night chat on top, the 8:00 summary tucked under it, offset right */
.demo__stage .chat { width: 88%; }
.demo__stage .brief {
  position: relative;
  width: min(340px, 88%);
  margin: -24px 0 0 auto;
}

.chat {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-divider);
}
.chat__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-tint);
  font-weight: 700;
  font-size: 14px;
}
.chat__brand { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.chat__status { display: block; font-size: 12px; color: var(--color-text-subtle); }
.chat__log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  margin: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
}
.chat__msg { padding: 9px 13px; border-radius: 16px; max-width: 85%; }
.chat__msg--out {
  align-self: flex-end;
  background: var(--color-accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat__msg--in {
  align-self: flex-start;
  background: var(--color-tint);
  border-bottom-left-radius: 5px;
}

.brief {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.brief__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.brief__kicker { font-weight: 600; font-size: 14px; margin-right: auto; }
.brief__rows { margin: 0; display: grid; gap: 10px; }
.brief__rows > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}
.brief__rows dt { color: var(--color-text-subtle); }
.brief__rows dd { margin: 0; font-weight: 500; }
.brief__more {
  margin: 16px 0 0;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ── how it works ───────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent-100);
  color: var(--color-accent-700);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
}
.step h3 { font-size: 20px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--color-text-muted); font-size: 16px; }

/* ── channels ───────────────────────────────────────────────────────── */
.channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.channel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.channel__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--color-accent-100);
  color: var(--color-accent);
  margin-bottom: 20px;
}
.channel__icon svg { width: 22px; height: 22px; }
.channel h3 { font-size: 19px; margin: 0 0 6px; }
.channel p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

/* ── pricing ────────────────────────────────────────────────────────── */
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 4vw, 56px);
  box-shadow: var(--shadow-md);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
}
.price__amount {
  font-weight: 700;
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.price__period { font-size: 17px; color: var(--color-text-subtle); }
.plan__note { color: var(--color-text-muted); max-width: 34ch; margin: 0 0 28px; }
.plan__main .btn { padding: 14px 28px; font-size: 16px; }
.plan__list { align-content: center; }

/* ── faq ────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; }
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-accent-700); }
.faq details p {
  margin: -6px 0 0;
  padding: 0 24px 22px;
  max-width: 64ch;
  color: var(--color-text-muted);
}

/* ── closing CTA ────────────────────────────────────────────────────── */
.cta-wrap { padding: 0 0 clamp(64px, 8vw, 104px); }
.cta {
  background: var(--color-night);
  color: #f2efec;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
}
.cta__title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  max-width: 22ch;
  text-wrap: balance;
}
.cta__title em { font-style: normal; color: #ff9783; }
.cta__sub {
  font-size: 18px;
  color: #cfc8c4;
  max-width: 46ch;
  margin: 0 0 32px;
}
.cta__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 560px;
  margin-bottom: 24px;
}
.cta__form .input {
  flex: 1;
  min-width: 220px;
  min-height: 52px;
  border-color: transparent;
}
.cta__form .btn { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.cta__alt { margin: 0; font-size: 15px; color: #b3aca8; }
.cta__alt a { color: #fff; margin: 0 4px; }
.cta__alt a:hover { color: #ffc4b8; }
.cta :focus-visible { outline-color: #fff; }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer { padding: 0 0 40px; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.site-footer .brand__name { font-size: 15px; }
.site-footer__links { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.site-footer__links a {
  color: var(--color-text-subtle);
  text-decoration: none;
  font-size: 15px;
}
.site-footer__links a:hover { color: var(--color-text); }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .section__lead { max-width: 52ch; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .night { max-width: 480px; }
  .clock, .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .split, .plan { grid-template-columns: minmax(0, 1fr); }
  .site-header .nav__link { display: none; }
}

@media (max-width: 640px) {
  .demo__stage .chat, .demo__stage .brief { width: 100%; }
  .demo__stage .brief { margin-top: 16px; }
  .site-header .nav { gap: 12px; }
  .brand__name, .nav .nav__cta { white-space: nowrap; }
  .site-header .brand__name { font-size: 14px; }
  .nav .nav__cta, .nav .nav__cta:hover { padding: 8px 14px; font-size: 13px; }
  .clock, .channels { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn, .cta__form .btn { width: 100%; justify-content: center; }
  .cta__form { display: grid; }
  .site-footer__links { margin-left: 0; }
}

/* no room for brand + switcher + CTA; the hero CTA sits right below */
@media (max-width: 520px) {
  .site-header .nav__cta { display: none; }
  .site-header .nav-brand { margin-right: auto; }
}
