/*
 * Brief 11: the Roote Shule home page. Few words, heavy type, real schools,
 * real screens, and movement. Same "Daftari" look as the app: solid colours,
 * ruled lines, a uniform-tie stripe, photographs of Tanzanian schools.
 */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

.hm {
  --hm-navy: #10213f;
  --hm-green: #1d5c45;
  --hm-gold: #f2b33d;
  --hm-paper: #f6f3ea;
  --hm-ink: #121815;
  --hm-ink2: #3c4741;
  --hm-line: #ddd8c9;
  --hm-surface: #ffffff;
  --hm-display: "Bricolage Grotesque", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --hm-text: "Schibsted Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --hm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: 0;
  background: var(--hm-paper);
  color: var(--hm-ink);
  font-family: var(--hm-text);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] .hm {
  --hm-paper: #0f1512;
  --hm-ink: #eef1ec;
  --hm-ink2: #b7c1ba;
  --hm-line: #27322c;
  --hm-surface: #17201b;
}
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm img { display: block; max-width: 100%; }
.hm a { color: inherit; }
.hm .icon, .hm svg.icon { width: 1.1em; height: 1.1em; flex: none; }
.hm-wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }

/* Type */
.hm-h1 { font-family: var(--hm-display); font-weight: 800; font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 0.95; letter-spacing: -0.035em; margin: 0.2em 0 0.25em; }
.hm-h1 span { color: var(--hm-gold); }
.hm-h2 { font-family: var(--hm-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; margin: 0.2em 0 0; }
.hm-kicker { display: inline-block; margin: 0; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hm-green); border-bottom: 3px solid var(--hm-gold); padding-bottom: 2px; }
[data-theme="dark"] .hm-kicker { color: #8fd4b0; }
.hm-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; max-width: 30ch; margin: 0 0 1.4rem; }
.hm-sub { font-weight: 600; color: var(--hm-ink2); margin: 0.6rem 0 0; }
.hm-head { margin-bottom: 2.2rem; max-width: 44rem; }

/* Buttons */
.hm-btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.95rem 1.4rem; border-radius: 12px; background: var(--hm-gold); color: #1a1405 !important; font-weight: 800; font-size: 1.02rem; text-decoration: none; border: 0; cursor: pointer; transition: transform 160ms var(--hm-ease), box-shadow 200ms var(--hm-ease); box-shadow: 0 6px 0 #b8801c; }
.hm-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b8801c; }
.hm-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #b8801c; }
.hm-btn-sm { padding: 0.6rem 1rem; font-size: 0.92rem; box-shadow: 0 4px 0 #b8801c; }
.hm-btn-ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.7); }
.hm-btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; background: rgb(255 255 255 / 0.08); }
.hm-btn-light { background: #fff; box-shadow: 0 6px 0 #c9c3b2; }
.hm-link { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 800; color: var(--hm-green); text-decoration: none; border-bottom: 2px solid var(--hm-gold); }
[data-theme="dark"] .hm-link { color: #8fd4b0; }

/* Top bar */
.hm-bar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 250ms, box-shadow 250ms, padding 250ms; padding: 0.9rem 0; color: #fff; }
.hm-bar.is-solid { background: color-mix(in oklab, var(--hm-paper) 88%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 1px 0 var(--hm-line); color: var(--hm-ink); padding: 0.55rem 0; }
.hm-bar-in { display: flex; align-items: center; gap: 1.2rem; }
.hm-logo { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--hm-display); font-weight: 700; font-size: 1.25rem; text-decoration: none; margin: 0; }
.hm-logo b { font-weight: 800; color: var(--hm-gold); }
.hm-nav { display: flex; gap: 1.3rem; margin-left: auto; font-weight: 700; font-size: 0.95rem; }
.hm-nav a { text-decoration: none; opacity: 0.88; }
.hm-nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--hm-gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hm-bar-end { display: flex; align-items: center; gap: 0.8rem; }
.hm-lang { font-weight: 700; font-size: 0.9rem; text-decoration: none; opacity: 0.85; }
.hm-menu { display: none; width: 2.6rem; height: 2.6rem; border-radius: 10px; border: 2px solid currentColor; background: transparent; color: inherit; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.hm-menu span { width: 1.1rem; height: 2px; background: currentColor; }

/* Hero */
.hm-hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--hm-navy); }
.hm-hero-photo { position: absolute; inset: 0; }
.hm-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0.5; }
.hm-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(10 22 42 / 0.94) 0%, rgb(10 22 42 / 0.75) 45%, rgb(10 22 42 / 0.25) 100%); }
.hm-hero-in { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; padding: 7rem 0 5rem; }
.hm-hero .hm-kicker { color: var(--hm-gold); border-color: rgb(255 255 255 / 0.4); }
.hm-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hm-ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-weight: 700; font-size: 0.95rem; }
.hm-ticks li { display: inline-flex; gap: 0.4rem; align-items: center; }
.hm-ticks .icon { color: var(--hm-gold); }
.hm-tie { position: absolute; inset: auto 0 0; height: 12px; background: repeating-linear-gradient(-45deg, var(--hm-green) 0 14px, var(--hm-gold) 14px 24px, #fff 24px 28px, var(--hm-gold) 28px 38px); }

/* Phones */
.hm-phones { position: relative; height: 560px; }
.hm-phone { margin: 0; border-radius: 34px; padding: 9px; background: #0b0f0d; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.08); overflow: hidden; }
.hm-phone img { border-radius: 26px; width: 100%; height: auto; }
.hm-phone-front { position: absolute; width: 265px; right: 8%; top: 40px; z-index: 2; }
.hm-phone-back { position: absolute; width: 235px; right: 47%; top: 0; transform: rotate(-6deg); opacity: 0.95; }
.hm-phone-solo { width: min(300px, 80vw); margin-inline: auto; }
.hm-toast { position: absolute; z-index: 3; left: 0; bottom: 70px; display: flex; gap: 0.7rem; align-items: center; padding: 0.75rem 1rem; border-radius: 14px; background: #fff; color: var(--hm-ink); box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.5); max-width: 17rem; }
.hm-toast span { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: #e3f3e8; color: #17703f; flex: none; }
.hm-toast b { display: block; font-weight: 800; font-size: 0.95rem; }
.hm-toast small { display: block; color: #5b665f; font-weight: 600; font-size: 0.8rem; }
.hm-toast-2 { left: auto; right: 0; bottom: auto; top: 6px; }
.hm-toast .hm-toast-money { background: #fbf0d9; color: #8a5a00; }

/* Marquee */
.hm-marquee { overflow: hidden; background: var(--hm-ink); color: var(--hm-paper); padding: 1rem 0; border-block: 3px solid var(--hm-gold); }
.hm-marquee-in { display: flex; gap: 1.6rem; width: max-content; font-family: var(--hm-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); white-space: nowrap; animation: hm-slide 38s linear infinite; }
.hm-marquee-in i { color: var(--hm-gold); font-style: normal; }
[data-theme="dark"] .hm-marquee { background: #eef1ec; color: #0f1512; }
@keyframes hm-slide { to { transform: translateX(-50%); } }

/* Sections */
.hm-sec { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.hm-solve { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hm-card { position: relative; background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: 18px; padding: 1.5rem 1.4rem 1.6rem; transition: transform 260ms var(--hm-ease), box-shadow 260ms var(--hm-ease); overflow: hidden; }
.hm-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--hm-green); }
.hm-card-money::before { background: var(--hm-gold); }
.hm-card-sms::before { background: #c0392b; }
.hm-card-report::before { background: var(--hm-navy); }
.hm-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 26px 50px -30px rgb(0 0 0 / 0.45); }
.hm-card-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--hm-ink); color: var(--hm-paper); font-size: 1.35rem; margin-bottom: 1rem; }
.hm-card h3 { font-family: var(--hm-display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.hm-card p { margin: 0; color: var(--hm-ink2); font-weight: 600; font-size: 0.98rem; }

.hm-band { background: var(--hm-green); color: #fff; padding: 3rem 0; background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgb(255 255 255 / 0.06) 31px 32px); }
.hm-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.hm-nums b { display: block; font-family: var(--hm-display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1; color: var(--hm-gold); }
.hm-nums span { display: block; font-weight: 700; margin-top: 0.4rem; max-width: 16ch; }

.hm-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.hm-paper { background:
  linear-gradient(90deg, transparent 0 56px, rgb(217 72 59 / 0.35) 56px 58px, transparent 58px),
  repeating-linear-gradient(0deg, transparent 0 35px, var(--hm-line) 35px 36px); }
.hm-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.hm-steps li { display: flex; gap: 1rem; align-items: center; }
.hm-steps b { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--hm-gold); color: #1a1405; font-family: var(--hm-display); font-size: 1.5rem; flex: none; }
.hm-steps strong { display: block; font-family: var(--hm-display); font-weight: 800; font-size: 1.3rem; }
.hm-steps span { color: var(--hm-ink2); font-weight: 600; }

.hm-tabs { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.35rem; border-radius: 14px; background: var(--hm-surface); border: 1px solid var(--hm-line); margin-bottom: 2rem; }
.hm-tabs button { border: 0; background: transparent; color: var(--hm-ink2); font: inherit; font-weight: 800; padding: 0.65rem 1.1rem; border-radius: 10px; cursor: pointer; }
.hm-tabs button[aria-selected="true"] { background: var(--hm-ink); color: var(--hm-paper); }
.hm-panel { display: grid; grid-template-columns: 1fr 0.8fr; gap: 3rem; align-items: center; animation: hm-in 500ms var(--hm-ease); }
.hm-panel h3 { font-family: var(--hm-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 0.8rem; }
.hm-panel p { font-size: 1.15rem; font-weight: 600; color: var(--hm-ink2); max-width: 32ch; margin: 0 0 1.3rem; }
@keyframes hm-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hm-find { position: relative; color: #fff; padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; background: var(--hm-navy); }
.hm-find-photo { position: absolute; inset: 0; }
.hm-find-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.hm-find-in { position: relative; max-width: 40rem; }
.hm-find-in > p { font-size: 1.2rem; font-weight: 600; margin: 0.6rem 0 1.3rem; }
.hm-search { display: flex; align-items: center; gap: 0.7rem; background: #fff; color: var(--hm-ink); border-radius: 14px; padding: 0 1rem; box-shadow: 0 6px 0 var(--hm-gold); }
.hm-search .icon { color: #5b665f; }
.hm-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 700; font-size: 1.15rem; padding: 1.05rem 0; color: #121815; min-width: 0; }
.hm-results { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
.hm-results a { display: flex; gap: 0.9rem; align-items: center; padding: 0.8rem 1rem; border-radius: 14px; background: rgb(255 255 255 / 0.96); color: #121815; text-decoration: none; transition: transform 160ms var(--hm-ease); animation: hm-in 400ms var(--hm-ease) both; }
.hm-results a:hover { transform: translateX(6px); }
.hm-results .crest { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 10px; background: #fff; border: 1px solid #e3e0d6; border-bottom: 3px solid var(--accent, #f2b33d); font-family: var(--hm-display); font-weight: 800; font-size: 1.3rem; color: var(--brand, #1d5c45); overflow: hidden; flex: none; }
.hm-results .crest img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.hm-results b { display: block; font-weight: 800; }
.hm-results small { color: #5b665f; font-weight: 600; }
.hm-find-none { margin-top: 1rem; font-weight: 700; }
.hm-find-none a { color: var(--hm-gold); }

.hm-sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hm-site { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--hm-line); background: var(--hm-surface); transition: transform 300ms var(--hm-ease); }
.hm-site:hover { transform: translateY(-6px); }
.hm-site img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; width: 100%; }
.hm-site figcaption { padding: 0.7rem 1rem; font-weight: 800; }

.hm-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 52rem; }
.hm-plan { background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: 18px; padding: 1.8rem; }
.hm-plan h3 { font-family: var(--hm-display); font-weight: 800; font-size: 1.8rem; margin: 0 0 0.4rem; }
.hm-plan p { font-weight: 600; color: var(--hm-ink2); margin: 0 0 1rem; }
.hm-plan ul { margin: 0; padding-left: 1.2rem; font-weight: 700; }
.hm-plan-dark { background: var(--hm-ink); color: var(--hm-paper); border-color: var(--hm-ink); }
.hm-plan-dark p { color: inherit; opacity: 0.8; }

.hm-faq-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; }
.hm-qs details { border-bottom: 2px solid var(--hm-line); padding: 1rem 0; }
.hm-qs summary { cursor: pointer; font-weight: 800; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.hm-qs summary::after { content: "+"; font-family: var(--hm-display); font-size: 1.5rem; line-height: 1; color: var(--hm-green); transition: transform 200ms; }
.hm-qs details[open] summary::after { transform: rotate(45deg); }
.hm-qs p { margin: 0.6rem 0 0; color: var(--hm-ink2); font-weight: 600; }

.hm-final { position: relative; overflow: hidden; color: #fff; background: var(--hm-green); padding: clamp(5rem, 11vw, 9rem) 0; }
.hm-final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hm-final-in { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.hm-final .hm-h2 { max-width: 14ch; }

.hm-foot { background: var(--hm-ink); color: var(--hm-paper); padding: 3rem 0 1.5rem; }
[data-theme="dark"] .hm-foot { background: #070b09; }
.hm-foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.hm-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; font-weight: 700; }
.hm-foot a { text-decoration: none; opacity: 0.85; }
.hm-foot a:hover { opacity: 1; }
.hm-foot-note { opacity: 0.7; max-width: 30ch; font-weight: 600; }
.hm-foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / 0.15); font-size: 0.85rem; opacity: 0.7; }

/* Motion: things rise in as they arrive; nothing moves for people who ask for less, or for screenshots. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) .hm [data-rise] { animation: hm-rise 900ms var(--hm-ease) both; }
  html:not(.motion-off) .hm [data-rise]:nth-child(2) { animation-delay: 90ms; }
  html:not(.motion-off) .hm [data-rise]:nth-child(3) { animation-delay: 180ms; }
  html:not(.motion-off) .hm [data-rise]:nth-child(4) { animation-delay: 260ms; }
  html:not(.motion-off) .hm [data-rise]:nth-child(5) { animation-delay: 330ms; }
  html:not(.motion-off) .hm-hero-photo img { animation: hm-drift 26s ease-in-out infinite alternate; }
  html:not(.motion-off) .hm-phone-front[data-float] { animation: hm-float 7s ease-in-out infinite; }
  html:not(.motion-off) .hm-phone-back[data-float] { animation: hm-float-b 8s ease-in-out infinite; }
  html:not(.motion-off) .hm [data-pop] { animation: hm-pop 700ms 900ms var(--hm-ease) both; }
  html:not(.motion-off) .hm .hm-toast-2[data-pop] { animation-delay: 1500ms; }
  html:not(.motion-off) .hm [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--hm-ease), transform 800ms var(--hm-ease); transition-delay: calc(var(--i, 0) * 90ms); }
  html:not(.motion-off) .hm [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-marquee-in { animation: none; } }
html.motion-off .hm-marquee-in { animation: none; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hm-drift { from { transform: scale(1); } to { transform: scale(1.1) translate(-2%, -1%); } }
@keyframes hm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hm-float-b { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(10px); } }
@keyframes hm-pop { from { opacity: 0; transform: translateY(16px) scale(0.92); } to { opacity: 1; transform: none; } }

/* Tablets */
@media (max-width: 1000px) {
  .hm-solve { grid-template-columns: repeat(2, 1fr); }
  .hm-sites { grid-template-columns: repeat(2, 1fr); }
  .hm-hero-in { grid-template-columns: 1fr; padding-top: 6.5rem; }
  .hm-phones { height: 470px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hm-nav { display: none; }
  .hm-menu { display: inline-flex; }
  .hm-bar.is-open .hm-nav { display: flex; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--hm-paper); color: var(--hm-ink); padding: 0.5rem 1rem 1rem; box-shadow: 0 20px 30px -20px rgb(0 0 0 / 0.4); }
  .hm-bar.is-open .hm-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--hm-line); }
}
/* Phones */
@media (max-width: 680px) {
  .hm { font-size: 1rem; }
  .hm-solve, .hm-sites, .hm-plans, .hm-split, .hm-panel, .hm-faq-in, .hm-foot-in { grid-template-columns: 1fr; }
  .hm-nums { grid-template-columns: repeat(2, 1fr); }
  .hm-phones { height: 420px; }
  .hm-phone-front { width: 205px; right: 2%; top: 46px; }
  .hm-phone-back { width: 180px; right: auto; left: 4%; }
  .hm-toast { bottom: 20px; max-width: 15rem; }
  .hm-toast-2 { display: none; }
  .hm-lang, .hm-btn-sm { display: none; }
  .hm-panel figure { order: -1; }
  .hm-split figure { order: -1; }
}

/* ---------------------------------------------------------------
 * Brief 11: "Bring your school" (/join): the photo and promise on
 * one side, a short form in three numbered steps on the other.
 * ------------------------------------------------------------- */
.jn { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: 100vh; }
.jn-side { position: relative; overflow: hidden; background: var(--hm-navy); color: #fff; }
.jn-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.jn-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgb(10 22 42 / 0.55), rgb(10 22 42 / 0.92)); }
.jn-side-in { position: sticky; top: 0; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; padding: 1.6rem clamp(1.2rem, 4vw, 3.5rem) 3.5rem; }
.jn-top { display: flex; justify-content: space-between; align-items: center; }
.jn-pitch { margin-top: auto; padding-top: 3rem; }
.jn-h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.jn-side .hm-kicker { color: var(--hm-gold); border-color: rgb(255 255 255 / 0.4); }
.jn-side .hm-tie { z-index: 2; }
.jn-next { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.75rem; }
.jn-next li { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; font-size: 1.05rem; }
.jn-next b { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 9px; background: var(--hm-gold); color: #1a1405; font-family: var(--hm-display); flex: none; }

.jn-main { padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 4.5rem); display: flex; align-items: flex-start; justify-content: center; }
.jn-form { width: 100%; max-width: 40rem; display: grid; gap: 1.2rem; }
.jn-step { position: relative; background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: 18px; padding: 1.4rem 1.4rem 0.6rem; overflow: hidden; }
.jn-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--hm-green); }
.jn-step h2 { display: flex; align-items: center; gap: 0.7rem; font-family: var(--hm-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; margin: 0 0 1.1rem; }
.jn-step h2 b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--hm-ink); color: var(--hm-paper); font-size: 1.05rem; }
.jn .field { margin-bottom: 1rem; }
.jn .field label, .jn-fieldset legend { display: block; font-weight: 800; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--hm-ink); }
.jn-input { width: 100%; font: inherit; font-weight: 700; font-size: 1.05rem; padding: 0.85rem 0.95rem; border-radius: 11px; border: 1.5px solid var(--hm-line); background: var(--hm-paper); color: var(--hm-ink); transition: border-color 150ms, box-shadow 150ms; }
.jn-input::placeholder { color: #8b958e; font-weight: 600; }
.jn-input:focus { outline: 0; border-color: var(--hm-green); box-shadow: 0 0 0 4px color-mix(in oklab, var(--hm-green) 18%, transparent); }
.jn-row { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 0 0.8rem; }
.jn-row-2 { grid-template-columns: 1fr 1fr; }
.jn-fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.jn-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jn-chip input, .jn-model input { position: absolute; opacity: 0; pointer-events: none; }
.jn-chip span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1.1rem; border-radius: 11px; border: 1.5px solid var(--hm-line); background: var(--hm-paper); font-weight: 800; cursor: pointer; transition: all 150ms; }
.jn-chip input:checked + span { background: var(--hm-ink); color: var(--hm-paper); border-color: var(--hm-ink); }
.jn-chip input:checked + span::before { content: "✓"; color: var(--hm-gold); }
.jn-chip input:focus-visible + span, .jn-model input:focus-visible + span { outline: 3px solid var(--hm-gold); outline-offset: 2px; }
.jn-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1rem; }
.jn-model { position: relative; display: block; cursor: pointer; }
.jn-model span { display: block; height: 100%; padding: 0.9rem 1rem; border-radius: 12px; border: 1.5px solid var(--hm-line); background: var(--hm-paper); transition: all 150ms; }
.jn-model b { display: block; font-weight: 800; }
.jn-model small { display: block; color: var(--hm-ink2); font-weight: 600; font-size: 0.85rem; margin-top: 0.2rem; }
.jn-model input:checked + span { border-color: var(--hm-green); background: color-mix(in oklab, var(--hm-green) 10%, var(--hm-surface)); box-shadow: inset 0 -4px 0 var(--hm-gold); }
.jn-send { justify-content: center; width: 100%; font-size: 1.15rem; padding: 1.1rem; }
.jn-privacy { margin: 0; text-align: center; color: var(--hm-ink2); font-weight: 600; font-size: 0.88rem; }
.jn .field-error { color: #b3261e; font-weight: 700; font-size: 0.88rem; margin-top: 0.3rem; }
.jn-done { max-width: 32rem; text-align: center; margin-top: 12vh; }
.jn-done-icon { display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 18px; background: #e3f3e8; color: #17703f; font-size: 2.2rem; margin-bottom: 1rem; }
.jn-done p { font-weight: 600; font-size: 1.1rem; color: var(--hm-ink2); margin: 0.8rem 0 1.6rem; }
@media (max-width: 900px) {
  .jn { grid-template-columns: 1fr; }
  .jn-side-in { min-height: 0; position: relative; padding-bottom: 2.5rem; }
  .jn-pitch { padding-top: 2rem; }
  .jn-next { display: none; }
}
@media (max-width: 560px) {
  .jn-row, .jn-row-2, .jn-models { grid-template-columns: 1fr; }
  .jn-step { padding: 1.1rem 1rem 0.4rem; }
}
.jn .jn-input { height: auto; min-height: 3.2rem; }
