/* Miqatunna landing. Tokens from business/brand/palette.md; night values follow the system setting. */
:root {
  --primary-50: #f2f8f4;
  --primary-100: #e3f1e8;
  --primary-200: #c8e6d3;
  --primary-300: #a6d5b8;
  --primary-700: #2f6b4c;
  --primary-800: #275740;
  --primary-900: #1f4533;
  --surface: #ffffff;
  --ground: #f5f8f6;
  --border: #dfe5e2;
  --muted: #58655f;
  --body: #36413c;
  --title: #18201c;
  --ok-bg: #d5f0ea;
  --ok-ink: #0b6e5f;
  --warn-bg: #f7ead0;
  --warn-ink: #8a5a00;
  --action: var(--primary-700);
  --action-hover: var(--primary-800);
  --action-ink: #ffffff;
  --radius: 14px;
  color-scheme: dark;
}

/* Night palette: the landing is dark by default. */
:root {
  --primary-50: #141f19;
  --primary-100: #1a2d23;
  --primary-200: #234033;
  --surface: #1a211e;
  --ground: #121815;
  --border: #2a332f;
  --muted: #9aa6a0;
  --body: #d3dbd7;
  --title: #eef3f0;
  --ok-bg: #11302a;
  --ok-ink: #4fc3a8;
  --warn-bg: #33280f;
  --warn-ink: #e8b65a;
  --action: var(--primary-300);
  --action-hover: #bfe2cc;
  --action-ink: #10261c;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--title); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--primary-300); outline-offset: 2px; }

.kicker {
  color: var(--primary-700);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}
.kicker { color: var(--primary-300); }

/* Buttons: flat with a 1px edge, as in the app. 48px tall for thumbs. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.btn--primary { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.btn--primary:hover { background: var(--action-hover); }
.btn--ghost { background: var(--surface); color: var(--title); border-color: var(--border); }
.btn--ghost:hover { background: var(--ground); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn--block { width: 100%; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--primary-50) 92%, transparent);
  backdrop-filter: blur(8px);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top__actions { display: flex; align-items: center; gap: 18px; }
.lang { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.lang:hover { color: var(--title); text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--title); text-decoration: none; }
.brand img { display: block; }

/* Hero */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--primary-50), var(--surface)); }
.hero__grid { display: grid; gap: 48px; grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.proof { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; }
.proof svg { flex: none; margin-top: 3px; color: var(--ok-ink); }

.hero__art { margin: 0; }
.hero__art img { display: block; width: 100%; height: auto; }


/* Sections */
.band { padding: 72px 0; background: var(--ground); border-block: 1px solid var(--border); }
.band p { font-size: 1.1rem; }
.section { padding: 88px 0; }
.section--tint { background: var(--ground); }

/* Editorial rows rather than boxed cards: hairlines, numerals, no shadows. */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; column-gap: 56px; grid-template-columns: repeat(2, 1fr); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; padding: 28px 0; border-top: 1px solid var(--border); }
.steps li > :not(.steps__n) { grid-column: 2; }
.steps__n { grid-row: span 2; font-size: 2rem; font-weight: 300; line-height: 1; color: var(--primary-700); font-variant-numeric: tabular-nums; }
.steps__n::before { content: "0"; }
.steps h3 { margin-bottom: 0.35em; }
.steps p, .cards p { margin: 0; color: var(--muted); }
.steps__n { color: var(--primary-300); }

.cards { margin-top: 40px; border-bottom: 1px solid var(--border); }
.card { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 32px; padding: 24px 0; border-top: 1px solid var(--border); }
.card h3 { margin: 0; font-size: 1.15rem; }

.split { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.ticks li { padding: 16px 0 16px 32px; border-top: 1px solid var(--border); position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; top: 16px; color: var(--ok-ink); font-weight: 700; }

.fit { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-top: 1px solid var(--border); }
.fit__col { padding: 28px 40px 0 0; }
.fit__col + .fit__col { padding: 28px 0 0 40px; border-left: 1px solid var(--border); }
.fit__col ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.fit__col--yes h3 { color: var(--primary-700); }
.fit__col--no h3 { color: var(--muted); }
.fit__col--yes h3 { color: var(--primary-300); }

.start { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); counter-reset: start; }
.start li { counter-increment: start; padding-top: 20px; border-top: 1px solid var(--title); display: grid; gap: 4px; }
.start li b { color: var(--title); font-size: 1.1rem; }
.start li b::before { content: counter(start) ". "; color: var(--primary-700); }
.start li span { color: var(--muted); }

details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--title); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Closing call to action */
.cta { background: var(--primary-900); color: #dcebe2; }
.cta h2 { color: #ffffff; }
.cta__grid { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: center; }
.proof--light { color: var(--primary-300); }
.form { display: grid; gap: 14px; padding: 28px; background: var(--surface); border-radius: var(--radius); color: var(--body); }
.form label { display: grid; gap: 6px; font-size: 0.95rem; font-weight: 600; color: var(--title); }
.form input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--title);
  font: inherit;
  font-weight: 400;
}
.form input:focus { outline: 3px solid var(--primary-300); outline-offset: 0; border-color: var(--primary-700); }
.form .btn--primary { background: var(--primary-700); color: #fff; border-color: var(--primary-700); }
.form .btn--primary:hover { background: var(--primary-800); }
.form__error { margin: 0; color: #b3261e; font-size: 0.9rem; }
.form__error { color: #f2a59f; }

.foot { padding: 28px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* The assistant section: a short conversation, drawn in the page rather than as a screenshot. */
.chat { display: grid; gap: 10px; width: 100%; max-width: 440px; margin-inline: auto; align-self: center; }
.msg { margin: 0; padding: 12px 15px; border-radius: 18px; max-width: 86%; font-size: 0.95rem; line-height: 1.45; }
.msg--me { justify-self: end; background: var(--action); color: var(--action-ink); border-bottom-right-radius: 5px; }
.msg--bot { justify-self: start; background: var(--surface); color: var(--body); border: 1px solid var(--border); border-bottom-left-radius: 5px; }

/* Tablet and phone */
@media (max-width: 960px) {
  .hero__grid, .split, .cta__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
}
.short { display: none; }

/* Phone: a tight header, and a dense hero where the illustration shows on the first screen. */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .long { display: none; }
  .short { display: inline; }
  .top__inner { height: 56px; }
  .top__actions { gap: 12px; }
  .brand { font-size: 1.1rem; }
  .lang { font-weight: 600; }

  .hero { padding: 32px 0 56px; }
  .hero__grid, .hero__text { display: contents; }
  .hero .wrap { display: flex; flex-direction: column; gap: 0; }
  .hero .kicker { display: none; }
  .hero h1 { order: 2; font-size: 1.85rem; margin-bottom: 0.5em; }
  .hero__art { order: 3; margin: 12px auto 20px; width: 74%; }
  .lead { order: 4; font-size: 1.05rem; line-height: 1.6; margin-bottom: 0; }
  .hero__actions { order: 5; flex-wrap: nowrap; gap: 10px; margin: 28px 0 20px; }
  .hero__actions .btn { flex: 1 1 0; min-height: 46px; padding: 0 10px; font-size: 0.95rem; white-space: nowrap; }
  .proof { order: 6; font-size: 0.9rem; line-height: 1.5; }

  /* Less to read: secondary sentences go, steps and features keep only their titles. */
  .m-hide, .steps p, .cards p, .start li span { display: none; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .steps li { grid-template-columns: 30px 1fr; align-items: baseline; padding: 18px 0; }
  .steps__n { grid-row: auto; font-size: 1.1rem; }
  .steps h3, .cards h3 { margin: 0; font-size: 0.95rem; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .card { padding: 18px 0; }
  .start li { padding-top: 16px; }

  .section { padding: 64px 0; }
  .band { padding: 56px 0; }
  .band p { font-size: 1.02rem; line-height: 1.65; }
  h2 { margin-bottom: 0.7em; }
  .kicker { margin-bottom: 1em; }
  h2 { font-size: 1.45rem; }
  .steps, .cards { margin-top: 28px; }
  .ticks li { padding: 16px 0 16px 30px; line-height: 1.55; }
  .ticks li::before { top: 16px; }
  .fit { margin-top: 28px; }
  .start { margin-top: 28px; gap: 24px; }
  details { padding: 18px 0; }
  .cta__grid { gap: 36px; }
  .band__art { max-width: 300px; margin-inline: auto; }
  .details__art { max-width: 220px; }
  .team__art { max-width: 280px; margin-inline: auto; display: block; }
  .fit__col ul { gap: 10px; }
  .form { padding: 22px; gap: 16px; }

  .fit, .start, .card { grid-template-columns: 1fr; }
  .fit__col + .fit__col { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--border); margin-top: 20px; }
}

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

/* Illustrations sit on the section ground, never in a frame. */
.band__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.band__art, .journey, .details__art, .team__art { display: block; width: 100%; height: auto; }
.journey { margin: 36px 0 -8px; }
.details { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.details__art { position: sticky; top: 96px; }
.team__art { max-width: 460px; margin-top: 32px; }

/* A large arch outline behind the closing call to action. */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 520px;
  height: 640px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 320'%3E%3Cg fill='none' stroke='%23a6d5b8' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M10 320V110C10 56 76 22 130 4C184 22 250 56 250 110V320'/%3E%3Cpath d='M34 320V116C34 72 88 44 130 28C172 44 226 72 226 116V320'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.cta > .wrap { position: relative; }

@media (max-width: 960px) {
  .band__grid, .details { grid-template-columns: 1fr; gap: 32px; }
  .band__art { max-width: 440px; }
  .details__art { position: static; max-width: 320px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .journey { margin-top: 24px; }
}
