/* Most Welcome — marketing home page, from the design system's Homepage sample.
   Layout only; colours, type, space and shape are tokens (mw-tokens.css). */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface-raised); color: var(--ink); font-family: var(--font-text); font-weight: 400; font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.hp { --hp-max: 1200px; --hp-gutter: 40px; overflow: hidden; }
.hp-wrap { max-width: var(--hp-max); margin: 0 auto; padding: 0 var(--hp-gutter); }
.hp-serif { font-family: var(--font-headings); font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 0; }
.hp-serif em { font-style: normal; color: var(--brand-text); }
.hp-kicker { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 var(--space-4); }
.hp-kicker::before { content: ""; width: 20px; height: 2px; background: var(--rule); border-radius: var(--radius-pill); }
.hp-h2 { font-size: 3rem; line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 var(--space-4); max-width: 18ch; }
.hp-lede { font-size: 1.125rem; line-height: 1.6; color: var(--ink-muted); max-width: 52ch; margin: 0; }
.hp-section { padding: 120px 0; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-skip { position: absolute; left: -9999px; top: 0; }
.hp-skip:focus { left: var(--space-4); top: var(--space-4); z-index: 10; background: var(--surface-raised); color: var(--ink); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); }

/* nav */
.hp-nav { display: flex; align-items: center; gap: var(--space-6); height: 84px; }
.hp-logo img { height: 22px; width: auto; }
.hp-nav ul { list-style: none; display: flex; gap: var(--space-5); margin: 0 0 0 var(--space-4); padding: 0; font-size: 0.92rem; font-weight: 400; }
.hp-nav a { color: var(--ink); text-decoration: none; }
.hp-nav a:hover { color: var(--brand-text); }
.hp-nav-end { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); font-size: 0.92rem; }
.hp-nav-end .mw-btn-primary { color: var(--on-cta); }
.hp-nav-end .mw-btn-primary:hover { color: var(--surface-raised); }

/* hero */
.hp-hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: var(--space-7); align-items: center; padding-top: var(--space-6); padding-bottom: 104px; }
.hp-hero h1 { font-size: 5.25rem; line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 var(--space-5); }
.hp-hero .hp-lede { font-size: 1.25rem; max-width: 34ch; }
.hp-ctas { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-6) 0 var(--space-4); flex-wrap: wrap; }
.hp-ctas .mw-btn-primary { min-height: 56px; padding: 0 var(--space-6); font-size: 1rem; }
.hp-assure { display: flex; gap: var(--space-2) var(--space-5); flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 0.86rem; color: var(--ink-muted); }
.hp-assure li::before { content: "✓"; color: var(--success); font-weight: 500; margin-right: var(--space-2); }
.hp-hero-art { position: relative; height: 620px; }
.hp-arch { position: absolute; inset: 0 40px 0 60px; border-radius: 999px 999px var(--radius-xl) var(--radius-xl); overflow: hidden; background: var(--brand-soft); }
.hp-arch img { width: 100%; height: 100%; object-fit: cover; }
.hp-bands { position: absolute; left: 20px; right: 0; top: -20px; height: 300px; pointer-events: none; }
.hp-bands span { position: absolute; inset: 0 0 0 40px; border: 10px solid var(--blush); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hp-float-thread { position: absolute; left: -56px; bottom: 28px; width: 288px; border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.hp-float-thread .mw-thread { padding: var(--space-4); gap: var(--space-2); background: transparent; }
.hp-float-thread .mw-bubble { font-size: 0.86rem; padding: 10px 14px; }
.hp-float-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); font-size: 0.8rem; font-weight: 500; }
.hp-float-head span:last-child { color: var(--ink-muted); font-weight: 400; }
.hp-sticker { position: absolute; right: 0; top: 150px; width: 138px; height: 138px; border-radius: 50%; background: var(--jolt); color: var(--on-jolt); display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; font-size: 0.78rem; line-height: 1.25; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(10deg); }
.hp-chip { position: absolute; right: 18px; bottom: 120px; display: inline-flex; gap: var(--space-2); align-items: center; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--surface-raised); box-shadow: var(--shadow-lg); font-size: 0.86rem; font-weight: 500; color: var(--ink); }
.hp-chip b { color: var(--success); font-weight: 500; font-variant-numeric: tabular-nums; }

/* verticals band */
.hp-band { background: var(--oxblood); color: var(--blush); padding: 26px 0; }
.hp-band p { margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; font-size: 1.6rem; line-height: 1.2; }
.hp-band i { font-style: normal; color: var(--gold); }

/* problem */
.hp-vs { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5); margin-top: var(--space-7); align-items: stretch; }
.hp-old { background: var(--surface-sunken); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); min-height: 360px; }
.hp-old-label, .hp-new-label { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-4); }
.hp-old-alert { font-size: 2.25rem; line-height: 1.1; color: var(--ink-muted); margin: 0; }
.hp-old-alert small { display: block; font-family: var(--font-text); font-size: 0.92rem; margin-top: var(--space-3); }
.hp-old-chart { display: flex; gap: 10px; align-items: flex-end; height: 120px; }
.hp-old-chart span { flex: 1; background: var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.hp-new .mw-feed { max-width: none; }

/* steps */
.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-7); }
.hp-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.hp-step-n { font-size: 3rem; line-height: 1; color: var(--brand-text); }
.hp-step h3 { font-size: 1.6rem; line-height: 1.15; margin: 0; }
.hp-step p { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink-muted); }
.hp-step-demo { margin-top: auto; padding-top: var(--space-4); }
.hp-step-demo .mw-class { min-width: 0; grid-template-columns: 58px 1fr; padding: var(--space-4); }
.hp-step-demo .mw-class-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
.hp-step-demo .mw-policy, .hp-step-demo .mw-dial { max-width: none; }
.hp-step-demo .mw-policy { padding: var(--space-4); }
.hp-step-demo .mw-policy textarea { min-height: 64px; }
.hp-step-demo .mw-dial-row { padding: 10px var(--space-4); flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.hp-step-demo .mw-seg button { white-space: nowrap; }
.hp-step-demo .mw-meter { flex-basis: 64px; }
.hp-step-demo .mw-class-cap { white-space: nowrap; }
.hp-step-demo .mw-dial-name { font-size: 0.86rem; }

/* four jobs */
.hp-jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-7); }
.hp-job { display: flex; flex-direction: column; gap: var(--space-3); }
.hp-job figure { margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--brand-soft); }
.hp-job figure img { width: 100%; height: 100%; object-fit: cover; }
.hp-job .mw-badge { align-self: flex-start; margin-top: var(--space-2); }
.hp-job h3 { font-size: 1.5rem; line-height: 1.15; margin: 0; }
.hp-job p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-muted); }

/* bilingual */
.hp-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.hp-thread-panel { background: var(--brand-soft); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; justify-content: center; }
.hp-thread-panel .mw-thread { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 440px; box-shadow: var(--shadow-sm); }
.hp-langs { display: flex; gap: var(--space-2); margin-top: var(--space-5); flex-wrap: wrap; }
.hp-langs span { padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: 0.86rem; font-weight: 500; }

/* Night: the money */
.hp-night { background: var(--surface); color: var(--ink); }
.hp-night-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-7); align-items: center; }
.hp-night .mw-stat { max-width: none; margin-top: var(--space-6); }
.hp-pool { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 11; }
.hp-pool img { width: 100%; height: 100%; object-fit: cover; }
.hp-promise { margin: var(--space-5) 0 0; font-size: 0.92rem; color: var(--ink-muted); }
.hp-promise b { color: var(--ink); font-weight: 500; }

/* switching */
.hp-switch { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-7); align-items: start; }
.hp-switch .mw-table-wrap { max-width: none; }
.hp-switch .hp-ctas { margin-top: var(--space-5); }

/* Host themes */
.hp-themes { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3); margin-top: var(--space-7); }
.hp-theme { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.hp-theme h3 { margin: 0; font-size: 1.3rem; line-height: 1.1; }
.hp-theme p { margin: 0; font-size: 0.78rem; color: var(--ink-muted); line-height: 1.4; }
.hp-sw { display: flex; gap: 6px; }
.hp-sw span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.hp-theme .mw-btn { align-self: flex-start; margin-top: auto; cursor: default; }

/* final call */
.hp-final { background: var(--oxblood); color: var(--cream); border-radius: var(--radius-xl); padding: 96px var(--space-8); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: var(--space-7); align-items: center; position: relative; overflow: hidden; }
.hp-final h2 { font-size: 4rem; line-height: 1; letter-spacing: -0.02em; margin: 0 0 var(--space-4); }
.hp-final p { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--blush); max-width: 44ch; }
.hp-final .mw-btn-primary { background: var(--cream); color: var(--oxblood); min-height: 56px; padding: 0 var(--space-6); font-size: 1rem; }
.hp-final .mw-btn-primary:hover { background: var(--blush); color: var(--oxblood); }
.hp-final .mw-btn-primary:focus-visible { outline-color: var(--cream); }
.hp-final .hp-ctas { margin-bottom: var(--space-4); }
.hp-final .hp-assure { color: var(--blush); }
.hp-final .hp-assure li::before { color: var(--gold); }
.hp-final-mark { justify-self: end; width: 260px; opacity: .95; }

/* footer */
.hp-foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); padding: 88px 0 var(--space-7); font-size: 0.9rem; }
.hp-foot img { height: 44px; width: auto; margin-bottom: var(--space-4); }
.hp-foot h4 { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 500; color: var(--ink-muted); margin: 0 0 var(--space-3); }
.hp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.hp-foot a { color: var(--ink); text-decoration: none; }
.hp-foot a:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.hp-foot-note { color: var(--ink-muted); max-width: 30ch; margin: 0; }
.hp-legal { border-top: 1px solid var(--line); padding: var(--space-4) 0 var(--space-6); font-size: 0.8rem; color: var(--ink-muted); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* Content rises in: 8px + fade, 0.5s. Only once the script has marked the page, so nothing hides without JS. */
.js .hp-rise { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.js .hp-rise.in { opacity: 1; transform: none; }

.hp-nav a { white-space: nowrap; }
@media (max-width: 1180px) {
  .hp-nav { gap: var(--space-5); }
  .hp-nav ul { gap: var(--space-4); margin-left: 0; }
  .hp-float-thread { left: -40px; width: 256px; }
}
/* Two-column hero too narrow for the thread and the chip side by side; the feed below carries the same +$28. */
@media (min-width: 901px) and (max-width: 1180px) {
  .hp-chip { display: none; }
}
@media (max-width: 1100px) {
  .hp-themes { grid-template-columns: repeat(3, 1fr); }
  .hp-hero h1 { font-size: 4.25rem; }
}
@media (max-width: 900px) {
  .hp { --hp-gutter: 16px; }
  .hp-nav { gap: var(--space-4); height: 72px; }
  .hp-nav ul, .hp-nav-end > a:not(.mw-btn) { display: none; }
  .hp-hero, .hp-vs, .hp-split, .hp-night-grid, .hp-switch, .hp-final { grid-template-columns: 1fr; }
  .hp-hero { gap: var(--space-6); padding-bottom: 72px; }
  .hp-hero h1 { font-size: 3.1rem; }
  .hp-h2 { font-size: 2.2rem; }
  .hp-hero-art { height: 480px; }
  .hp-float-thread { left: 0; width: 280px; }
  .hp-steps, .hp-jobs { grid-template-columns: 1fr; }
  .hp-jobs { gap: var(--space-6); }
  .hp-themes { grid-template-columns: repeat(2, 1fr); }
  .hp-section { padding: 72px 0; }
  .hp-split { gap: var(--space-6); }
  .hp-final { padding: 56px var(--space-5); }
  .hp-final h2 { font-size: 2.6rem; }
  .hp-final-mark { display: none; }
  .hp-foot { grid-template-columns: 1fr 1fr; }
  .hp-thread-panel { padding: var(--space-4); }
  .hp-thread-panel .mw-thread { padding: var(--space-4); }
}
@media (max-width: 600px) {
  .hp-hero-art { height: 500px; }
  .hp-arch { inset: 0 8px 72px 44px; }
  .hp-bands { left: 24px; right: -12px; top: -16px; height: 220px; }
  .hp-sticker { width: 104px; height: 104px; top: 20px; right: -4px; padding: 12px; font-size: 0.64rem; }
  .hp-chip { display: none; }
  .hp-float-thread { left: 0; bottom: 0; width: min(272px, 80%); }
  .hp-band p { font-size: 1.2rem; gap: 4px 14px; }
}
@media (max-width: 420px) {
  .hp-nav .mw-btn-sm { padding: var(--space-1) var(--space-3); }
  .hp-hero h1 { font-size: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hp-rise { opacity: 1; transform: none; transition: none; }
}
