/* Colors are the Mise app's own semantic tokens (Assets.xcassets color sets). */
:root {
  color-scheme: light dark;
  --bg: #f3f5f1;
  --card: #ffffff;
  --fg: #1b221c;
  --muted: #5b665d;
  --line: #d9dfd8;
  --accent: #4e6e53;
  --accent-fg: #ffffff;
  --accent-soft: #89a58c;
  --accent-soft-fg: #17241a;
  --danger: #b32620;
  --phone: #1b221c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161a17;
    --card: #1f2520;
    --fg: #e9eee8;
    --muted: #a3aea4;
    --line: #343d36;
    --accent: #89a58c;
    --accent-fg: #142017;
    --accent-soft: #46524b;
    --accent-soft-fg: #e9eee8;
    --danger: #f2b8b5;
    --phone: #0b0e0c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; border-radius: 0.4rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-fg); padding: 0.6rem 1.1rem; border-radius: 999px; z-index: 10; }
.skip:focus { top: 1rem; }

.top, main, .foot { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--fg); text-decoration: none; font-weight: 650; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { border-radius: 0.5rem; }
.langs { display: flex; gap: 0.35rem; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; min-width: 2.75rem; padding: 0 0.9rem; border-radius: 999px; background: var(--card); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--line); }
.pill.is-current { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.eyebrow { display: inline-block; margin: 0 0 1.25rem; padding: 0.4rem 1rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-fg); font-weight: 600; font-size: 0.9rem; }

h1, h2, h3, h4 { text-wrap: balance; }
h1, h2 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 7.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); font-weight: 700; margin-bottom: 1.5rem; }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 34rem; margin: 1.25rem 0 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.75rem;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-fg);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-soft { background: var(--accent-soft); color: var(--accent-soft-fg); }

.hero { display: grid; gap: 2.5rem; align-items: center; padding-block: 1.5rem 2rem; }
.hero-cta { margin: 0; }
.note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.95rem; }
.section { padding-block: 3rem; }

/* Hero visual: two phones, plan in front, list behind. Cropped at the bottom edge on small screens. */
.hero-shots { position: relative; width: min(100%, 27rem); margin-inline: auto; padding-top: 3rem; max-height: 23.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.hero-shots .phone { width: 52%; margin: 0; }
.hero-shots .phone-front { position: relative; z-index: 2; }
.hero-shots .phone-back { position: absolute; top: 0; right: 0; z-index: 1; }

/* The four jobs as anchor pills. */
.jobs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.job { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0 0.9rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-fg); font-weight: 650; text-decoration: none; }
.job:hover { background: var(--accent); color: var(--accent-fg); }
.job .ico { width: 1.3rem; height: 1.3rem; flex: none; }

/* Story rows: label, headline, paragraph, one phone. Alternating on desktop, stacked on phones. */
.row { display: grid; gap: 2rem; align-items: center; padding-block: clamp(3.5rem, 9vw, 6rem) 0; }
.row-text { max-width: 34rem; }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; color: var(--accent); font-weight: 650; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
.row .kicker { color: var(--accent); font-size: 0.9rem; }
.kicker .ico { width: 1.35rem; height: 1.35rem; }
.row h2 { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 700; margin-bottom: 1.25rem; }
.row p { margin: 0; color: var(--muted); font-size: 1.2rem; }
/* The phone sits whole in a panel that hugs it, even padding, same size in every row. */
.row { scroll-margin-top: 1rem; }
.stage { display: flex; justify-content: center; align-items: flex-start; width: 100%; max-width: 34rem; margin-inline: auto; padding: 1.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 2rem; }
.stage .phone { width: min(100%, 18.75rem); margin: 0; }
.stage .phone img { aspect-ratio: 295 / 640; object-fit: cover; }
.row-more { margin-top: 1.5rem !important; }
.textlink { color: var(--accent); font-weight: 650; font-size: 1.05rem; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
.textlink:hover { text-decoration-thickness: 0.14em; }

.reveal.will-reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.will-reveal.is-in { opacity: 1; transform: none; }

.phone { width: min(100%, 17.5rem); margin-inline: auto; padding: 0.5rem; background: var(--phone); border: 1px solid var(--line); border-radius: 2.4rem; position: relative; box-shadow: 0 1.25rem 2.5rem -1.25rem rgb(0 0 0 / 0.35); }
.phone img { display: block; width: 100%; border-radius: 1.95rem; }
.phone::after { content: ""; position: absolute; top: 1.05rem; left: 50%; width: 28%; height: 0.95rem; transform: translateX(-50%); background: var(--phone); border-radius: 999px; }

/* Feature overview. */
.features { padding-block: clamp(4rem, 10vw, 7rem) 1rem; }
.feat-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.feat-head h2 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); margin-bottom: 1rem; }
.feat-head p { margin: 0; color: var(--muted); font-size: 1.2rem; }
.group { scroll-margin-top: 1.5rem; }
.group + .group { margin-top: clamp(2.75rem, 7vw, 4.25rem); }
.group-h { display: flex; align-items: center; gap: 0.85rem; margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.gicon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--accent); color: var(--accent-fg); }
.gicon .ico { width: 1.5rem; height: 1.5rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; grid-template-columns: 1fr; }
.tile { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.25rem; align-content: start; padding: 1.15rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 1.5rem; }
.ticon { grid-row: 1 / span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.9rem; background: var(--accent-soft); color: var(--accent-soft-fg); }
.ticon .ico { width: 1.5rem; height: 1.5rem; }
.tile h4 { margin: 0.1rem 0 0; font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--fg); }
.tile p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }

/* Who it is for: a quiet filled band, statements stacked and centered. */
.who-band { margin-top: clamp(4rem, 10vw, 7rem); padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3rem); background: var(--accent-soft); color: var(--accent-soft-fg); border-radius: 2rem; text-align: center; }
.who-band h2 { margin-bottom: 1.75rem; font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
.who-list { list-style: none; margin: 0 auto; padding: 0; max-width: 40rem; }
.who-list li { padding: 1rem 0; font-size: clamp(1.15rem, 3.2vw, 1.5rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.who-list li + li { border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 2rem; padding: clamp(1.5rem, 5vw, 3rem); max-width: 40rem; margin-inline: auto; }
.panel h2 { margin-bottom: 0; }
.signup { display: grid; gap: 1.1rem; margin-top: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
input[type="email"], input[type="text"] {
  width: 100%; min-height: 3rem; padding: 0 1.1rem; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--muted); border-radius: 999px;
}
input::placeholder { color: var(--muted); opacity: 1; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; }
.check input { flex: none; width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.check label { cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: grid; gap: 0.9rem; justify-items: start; }
.consent { margin: 0; font-size: 0.9rem; color: var(--muted); }
.msg { margin: 0; min-height: 1.5em; font-weight: 600; }
.msg.is-ok { color: var(--accent); }
.msg.is-error { color: var(--danger); }

.prose { max-width: 40rem; padding-block: 2rem 3rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose .lead { margin-top: 1rem; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 2.5rem; color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.foot p { margin: 0; }

@media (min-width: 560px) {
  .jobs ul { display: flex; justify-content: center; gap: 0.75rem; }
  .job { padding: 0 1.4rem 0 1.2rem; }
}
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .tile { grid-template-columns: 1fr; row-gap: 0.4rem; padding: 1.4rem; }
  .ticon { grid-row: auto; margin-bottom: 0.6rem; }
}
@media (min-width: 640px) {
  .hero-shots { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; width: 100%; max-width: 24rem; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 3rem; padding-block: 2.5rem 3rem; }
  h1 { font-size: clamp(2.25rem, 3.7vw, 3.5rem); }
  .hero-shots { max-width: 27rem; }
  .jobs { margin-top: 0.5rem; }
  .row { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
  .row-flip .row-text { order: 2; }
  .stage { width: fit-content; max-width: none; justify-self: center; padding: 2rem; }
  .stage .phone { width: 18.75rem; }
  .tiles-6 { grid-template-columns: repeat(3, 1fr); }
  .tiles-8 { grid-template-columns: repeat(4, 1fr); }
  .tiles-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .reveal.will-reveal { transition: none; } }

/* Printing: nothing waits for a scroll. */
@media print { .will-reveal { opacity: 1 !important; transform: none !important; } }
