/*
 * start.getjoan.com: the Joan onboarding wizard.
 * One small stylesheet, written for this page with the getjoan.com theme as a
 * reference (colours, spacing, components), not copied from it.
 * Fonts: Noto Sans for text, Euclid Square for headings. Both are Latin woff2
 * subsets in site/assets/fonts/.
 */

@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-semibold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Square";
  src: url("../fonts/euclid-square-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Square";
  src: url("../fonts/euclid-square-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14142b;          /* headings */
  --text: #626262;         /* body copy */
  --accent: #4205dd;       /* links, primary buttons */
  --accent-dark: #3204a8;  /* primary button on hover */
  --accent-soft: #efeafd;  /* light tint of the accent, for small labels */
  --hero-bg: #f7f7f7;
  --picker-bg: #f8f8fa;
  --panel: #f7f7f9;        /* grey panels in the guide pages */
  --line: #e7e7ee;
  --play: #f04848;
  --radius: 12px;
  --container: 1200px;
  --gutter: 24px;
  --body: "Noto Sans", Arial, Helvetica, sans-serif;
  --display: "Euclid Square", "Noto Sans", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 3.4vw, 48px); }
h2 { font-size: clamp(26px, 2.6vw, 36px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
/* The page is built from products.json: keep it invisible until the wizard has
   rendered it, so it appears in one step and nothing visible shifts (CLS).
   Without JavaScript, noscript.css shows it (the <noscript> message). */
html:not(.is-ready) #main { visibility: hidden; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: #fff; color: var(--accent); padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: 600 12px/1.2 "Noto Sans", Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--white { color: var(--accent); background: #fff; border-color: #fff; }
.btn--white:hover { background: #e9edfb; }
.btn--outline-white { color: #fff; background: transparent; border-color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--accent); }

/* Link with a chevron that slides right on hover (the Knowledge base "CTA link"). */
.cta-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font: 700 14px/20px var(--body); }
.cta-link:hover { text-decoration: none; }
.cta-link::after {
  content: ""; flex: none; width: 16px; height: 16px; transition: transform .12s ease-out;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234205dd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta-link:hover::after, .cta-link:focus-visible::after { transform: translateX(8px); }

/* ---- header and footer (D8: slim) ------------------------------------------ */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; min-height: 64px; }
.brand { display: inline-flex; }
.brand img { width: 92px; height: 34px; }

.site-footer { background: #000; color: #bdbdc7; font-size: 13px; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between;
  padding-top: 28px; padding-bottom: 28px;
}
.site-footer p { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; font-weight: 400; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---- hero ------------------------------------------------------------------- */
.hero { background: var(--hero-bg); padding: 72px 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pretitle, .eyebrow { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.pretitle { margin-bottom: 16px; }
.eyebrow { font-size: 13px; line-height: 1.4; margin: 0; }
.hero__body p { margin-bottom: .6em; font-size: 17px; }
.hero__cta { margin-top: 24px; }
.hero__gallery {
  display: grid; grid-template-columns: 62fr 38fr; grid-template-rows: 1fr 2.2fr; gap: 6px;
  aspect-ratio: 1.04 / 1;
}
.hero__gallery > :first-child { grid-row: 1 / span 2; }
.hero__gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero__img-wrap { overflow: hidden; background: #fff; }
.hero__img-wrap--2 img { object-fit: contain; }
.hero__gallery > :first-child, .hero__gallery > :first-child img { border-radius: 6px 0 0 6px; }

/* ---- media with a play button ------------------------------------------- */
.media { position: relative; display: block; width: 100%; overflow: hidden; }
.media--video { padding: 0; border: 0; background: none; cursor: pointer; }
.media--video img { transition: transform .3s ease; }
.media--video:hover img { transform: scale(1.02); }
.play {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--play);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.play::after {
  content: ""; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -7px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}
.media--video:hover .play, .media--video:focus-visible .play { background: #d92f2f; }

/* ---- device picker ---------------------------------------------------------- */
.picker { background: var(--picker-bg); padding: 80px 0; }
.picker__title { text-align: center; margin-bottom: 56px; font-size: clamp(28px, 3.4vw, 48px); font-weight: 700; }
.picker__tiles {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1160px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; justify-items: center;
}
.picker__tiles li { width: 100%; }
.picker__tiles li:last-child:nth-child(3n + 1) { grid-column: 2; }
/* The chosen tile has no visual state of its own; aria-pressed tells assistive technology. */
.tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 100%; height: 100%;
  padding: 56px 16px 36px; min-height: 480px; border: 0; border-radius: var(--radius); background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .04); cursor: pointer; font: inherit; color: var(--text);
  transition: box-shadow .15s ease, transform .15s ease;
}
.tile:hover { box-shadow: 0 8px 24px rgba(30, 20, 80, .06); transform: translateY(-4px); }
.tile__img { display: block; width: 100%; max-width: 300px; aspect-ratio: 1 / 1; margin-bottom: 24px; }
.tile__img img { width: 100%; height: 100%; object-fit: contain; }
.tile__name { font-size: 18px; font-weight: 600; color: #4d4d5a; }
.tile__tag {
  position: absolute; top: 12px; right: 12px; padding: 5px 7px; border-radius: 3px;
  font: 700 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
}
.tile__tag--filled { background: var(--accent); color: #fff; }
.tile__tag--outline { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); padding: 4px 6px; }

/* ---- "pick a device first" (shown until a device is picked) ------------------ */
.choose { padding: 80px 0 40px; }
.choose__box {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 720px; margin: 0 auto; padding: 48px 32px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius); background: #fff;
}
.choose__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234205dd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3C/svg%3E");
  background-position: center; background-size: 26px; background-repeat: no-repeat;
}
.choose__title { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; }
.choose__body { margin: 0; max-width: 52ch; font-size: 17px; }
.choose__action { margin: 8px 0 0; }
@media (max-width: 600px) { .choose { padding: 56px 0 24px; } .choose__box { padding: 36px 20px; } }

/* ---- steps ---------------------------------------------------------------- */
.steps { padding: 80px 0 40px; }
.steps__title { text-align: center; max-width: 640px; margin: 0 auto 8px; font-size: clamp(28px, 3.4vw, 48px); font-weight: 700; }
/* The heading takes focus after a choice (for screen readers); it is not a control, so no ring. */
.steps__title:focus, .steps__title:focus-visible, .contact__title:focus, .contact__title:focus-visible { outline: none; }
.steps__list { margin-top: 48px; }
.visually-hidden, .steps__device {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.steps__list { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start;
  padding: 72px 0; min-height: 420px;
}
.step__title { font-size: 28px; margin-bottom: 16px; }
.step__body { font-size: 16px; }
.step__media .media, .step__media img { border-radius: 4px; }
.step__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.step--text-only { grid-template-columns: 5fr 6fr; }
.step__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.store-badge { height: 44px; width: auto; }

.step--logos { grid-template-columns: 1fr; }
.step--logos .step__title, .step--logos .step__body { max-width: 600px; }
.logos {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; max-width: 1040px;
}
.logos__link {
  position: relative; display: flex; align-items: center; justify-content: center; height: 104px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: box-shadow .2s ease;
}
.logos__link:hover { box-shadow: 0 6px 18px rgba(20, 20, 43, .1); }
.logos__img { width: 44px; height: 44px; object-fit: contain; }
.logos__ext {
  position: absolute; right: 10px; bottom: 10px; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314142b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- guide pages: head, "Before you start", framed steps, help ------------------ */
/* A route with "layout": "guide" in products.json (the employee badge). */
.steps--guide .steps__head {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 760px; margin: 0 auto 56px; text-align: center;
}
.steps--guide .steps__title {
  max-width: none; margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.15;
  letter-spacing: -.01em; text-wrap: balance; scroll-margin-top: 56px;
}
.steps__lead { max-width: 62ch; margin: 0; font-size: 17px; }

/* The video of a guide page: a dark card with the play button. No image, so no request to YouTube before the click. */
.video-wrap { max-width: 880px; margin: 0 auto 56px; }
.video-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; aspect-ratio: 16 / 9; padding: 32px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-dark) 100%); color: #fff; text-align: center;
}
.video-card .play { position: relative; top: auto; left: auto; margin: 0 0 14px; flex: none; }
.video-card__label { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.video-card__title { max-width: 24ch; font-family: var(--display); font-size: clamp(22px, 3vw, 32px); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.video-card:hover .play, .video-card:focus-visible .play { background: #d92f2f; }
.video-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.prep {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  max-width: 880px; margin: 0 auto 72px; padding: 28px 32px; background: var(--panel); border-radius: 14px;
}
.prep__title { margin: 0; font-size: 22px; line-height: 1.25; }
.prep__list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.prep__list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.prep__list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234205dd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.5l2.6 2.6L16 9.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* "Don't have the app yet?": text and store badges. In "Before you start" it is the last row of the panel;
   in a step it is a panel of its own. */
.app-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.app-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; line-height: 1.5; }
.app-row .step__buttons { margin-top: 0; }
.prep__app { grid-column: 1 / -1; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.step__app { padding: 20px 24px; background: var(--panel); border-radius: 14px; }

.steps--guide .steps__list { display: flex; flex-direction: column; gap: 96px; max-width: 1080px; margin: 0 auto; }
.steps--guide .step { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 0; min-height: 0; }
.steps--guide .step:nth-child(even) .step__media { order: -1; }
.steps--guide .step__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.steps--guide .step__title {
  display: flex; align-items: baseline; gap: 14px; margin: 0;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance;
}
.step__n { flex: none; }
/* A small label above a step title, for example "Optional". */
.step__tag {
  align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font: 600 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
}
.steps--guide .step__body { margin: 0; font-size: 16.5px; line-height: 1.75; }

/* The Knowledge base "Callout / Type=Info": a note under a step. */
.callout {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: #f7f7f7; border-left: 4px solid var(--accent); border-radius: 2px; color: #3d3d45;
}
.callout__label { font: 600 16px/24px var(--display); color: #3d3d45; }
.callout p { margin: 0; font: 400 16px/26px var(--body); color: #3d3d45; }

/* The grey card behind a step image. Three frames: a product shot (white background,
   multiplied onto the card), a phone screen cut off at the bottom, a whole phone screen. */
.media-card {
  position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.18;
  background: var(--panel); border-radius: 16px; container-type: size;
}
.media-card img { aspect-ratio: auto; border-radius: 0; }
.media-card--product > img {
  position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; mix-blend-mode: multiply;
}
/* A product shot with a ring around one detail: the wrapper has the image's own proportions
   (680 x 670), so the ring can sit in percentages of the image. */
.shot {
  position: absolute; top: 4cqh; left: 50%; height: 92cqh; width: calc(92cqh * 680 / 670);
  margin-left: calc(-46cqh * 680 / 670);
}
.shot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* The ring and its label sit over the "Badge MAC address" box in step-visitor-badge-screen.webp. */
.shot__ring {
  position: absolute; left: 32%; top: 68.8%; width: 33%; height: 8.7%;
  border: 3px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 6px rgba(66, 5, 221, .15);
}
.shot__label {
  position: absolute; left: 32%; top: 79%; padding: 6px 9px; border-radius: 4px; white-space: nowrap;
  background: var(--accent); color: #fff; font: 600 12px/1 var(--body);
}
/* A finished picture made to the card's own proportions (1.18, on the card's grey): it fills the card. */
.media-card--scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A screenshot of the MyJoan portal, centred on the card and as large as fits, wide or tall.
   The wrapper is exactly the image, so the ring can sit in percentages of it. */
.portal-shot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); line-height: 0; }
.portal-shot img {
  display: block; width: auto; height: auto; max-width: 86cqw; max-height: 88cqh;
  background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(20, 10, 60, .12);
}
/* The ring over the "Connected tablets" field in step-visitor-tablet.webp. */
.portal-shot__ring {
  position: absolute; left: 4.3%; top: 78.4%; width: 91.4%; height: 8.5%;
  border: 3px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 6px rgba(66, 5, 221, .15);
}
/* A phone screen is as tall as its screenshot (the screenshots are not all the same shape), so the
   frame follows the image. .device is cut off at the bottom by the card; .device--full fits the card. */
.device {
  position: absolute; top: 9cqh; left: 25cqw; width: 50cqw;
  overflow: hidden; background: #fff; border-radius: 28px;
  box-shadow: 0 2px 6px rgba(20, 10, 60, .05), 0 14px 44px rgba(20, 10, 60, .13);
}
.device--full { top: 6cqh; left: 50%; width: auto; height: 88cqh; transform: translateX(-50%); border-radius: 24px; }
.device img { display: block; width: 100%; height: auto; }
.device--full img { width: auto; max-width: none; height: 100%; }
/* The ring over the badge icon in the bottom bar of step-employee-user-devices.webp. */
.device__tap {
  position: absolute; left: 87.8%; top: 92.55%; width: 13%; aspect-ratio: 1; border-radius: 50%;
  border: 2.5px solid var(--accent); box-shadow: 0 0 0 5px rgba(66, 5, 221, .15); transform: translate(-50%, -50%);
}

/* A tablet screenshot (the screen only, corners already rounded): the frame is the dark bezel. */
.tablet {
  position: absolute; top: 6cqh; left: 50%; height: 88cqh; transform: translateX(-50%);
  padding: 7px; background: #1d1b26; border-radius: 22px; line-height: 0;
  box-shadow: 0 2px 6px rgba(20, 10, 60, .06), 0 16px 44px rgba(20, 10, 60, .16);
}
.tablet img { display: block; width: auto; max-width: none; height: 100%; border-radius: 15px; }
/* A guide step with no image: the text in a panel, centred. */
.steps--guide .step--text-only { grid-template-columns: 1fr; width: 100%; max-width: 720px; margin: 0 auto; padding: 32px 36px; background: var(--panel); border-radius: 16px; }

/* A notice above "Before you start", for example that the app is a test version. */
.notice {
  display: flex; align-items: flex-start; gap: 16px;
  max-width: 880px; margin: 0 auto 40px; padding: 22px 26px;
  background: #fff8e6; border: 1px solid #f3dc9b; border-radius: 14px; color: #3d3420;
}
.notice[hidden] { display: none; }
.notice__icon {
  flex: none; width: 28px; height: 28px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a06a00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6.5L4.6 18.2A1.8 1.8 0 0 0 6.1 21h11.8a1.8 1.8 0 0 0 1.5-2.8L14 9.5V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.notice__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.notice__label { align-self: flex-start; font: 600 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; }
.notice__title { margin: 0; font-size: 19px; line-height: 1.3; color: #2a2414; }
.notice p { margin: 0; font-size: 15.5px; line-height: 1.6; }

.help {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start;
  max-width: 1080px; margin: 104px auto 0; padding-top: 64px; border-top: 1px solid var(--line);
}
.help__title { margin-bottom: 10px; font-size: clamp(24px, 2.6vw, 30px); }
.help__lead { margin-bottom: 24px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px;
  list-style: none; cursor: pointer; font: 600 16px/1.4 var(--body); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 24px/1 var(--body); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq__answer { margin: 0; padding: 0 2px 20px; font-size: 15.5px; }

.support { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--panel); border-radius: 14px; }
.support p { margin: 0; }
.support__title { margin: 0; font-size: 20px; }
.support__links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.note { display: flex; align-items: flex-start; gap: 14px; margin-top: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.note__img { flex: none; width: 56px; border-radius: 6px; }
.note strong { display: block; margin-bottom: 2px; font-size: 15px; }
.note p { margin: 0; font-size: 14px; line-height: 1.55; }
.note .cta-link { margin-top: 6px; }

/* ---- contact page (event badge): a route with "layout": "contact" ------------------- */
.contact { padding: 88px 0 40px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1080px; margin: 0 auto; }
.contact__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact__title {
  margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance;
  scroll-margin-top: 56px;
}
.contact__lead { margin: 0; font-size: 17px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }

/* ---- upsell ----------------------------------------------------------------- */
/* The artwork is one flat image, so its parts never move against each other and it does not
   scale with the page: it keeps its size, pinned to the right behind the text, and a narrower
   box crops its left side (the floor-plan card goes first). Only the text and the button are live. */
.upsell { padding: 96px 0; }
.upsell__box {
  position: relative; overflow: hidden; display: flex; justify-content: flex-end; align-items: center;
  min-height: 420px; border-radius: 4px; color: #fff; background: #4a3f9c;
}
.upsell__art { position: absolute; inset: 0; }
.upsell__art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.upsell__text {
  position: relative; z-index: 1; flex: 0 1 599px; display: flex; flex-direction: column; align-items: flex-start;
  padding: 48px 24px 48px 0; text-align: left;
}
.upsell .eyebrow { max-width: none; margin: 0 0 7px; color: #fff; font-family: var(--body); font-size: 14px; font-weight: 400; letter-spacing: .2em; }
.upsell h2 { max-width: none; margin: 0 0 14px; color: #fff; font-size: 56px; font-weight: 700; line-height: 1.23; letter-spacing: -.01em; text-wrap: balance; }
.upsell h2 strong { display: block; color: #6de0bb; font-weight: inherit; }
.upsell p { max-width: 46ch; margin: 0; color: #fff; font-size: 17.4px; line-height: 1.64; text-wrap: pretty; }
.upsell__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.upsell__buttons .btn { padding: 14px 24px; font-size: 17px; line-height: 20px; letter-spacing: .06em; }
.upsell .btn--white { color: #361388; } /* the darker purple of the final design */

/* ---- video dialog ------------------------------------------------------------ */
.video-dialog { width: min(92vw, 1100px); max-width: none; padding: 0; border: 0; background: #000; overflow: visible; }
.video-dialog::backdrop { background: rgba(10, 10, 20, .82); }
.video-dialog__frame { aspect-ratio: 16 / 9; }
.video-dialog__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-dialog__close {
  position: absolute; top: -44px; right: 0; width: 40px; height: 40px;
  font-size: 32px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer;
}

.load-error { color: #b00020; }

/* ---- mobile ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero { padding: 0 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__gallery { order: -1; margin: 0 calc(-1 * var(--gutter)); }
  .picker { padding: 56px 0; }
  .picker__tiles { grid-template-columns: 1fr; max-width: 420px; gap: 20px; }
  .picker__tiles li:last-child:nth-child(3n + 1) { grid-column: auto; }
  .steps { padding-top: 56px; }
  .step, .step--text-only { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; min-height: 0; }
  .tile { min-height: 0; padding: 40px 12px 28px; }
  .step__media { order: -1; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .steps--guide .steps__list { gap: 64px; }
  .steps--guide .step { grid-template-columns: 1fr; gap: 28px; }
  .steps--guide .step__media, .steps--guide .step:nth-child(even) .step__media { order: 0; }
  .video-wrap { margin-bottom: 40px; }
  .video-card { aspect-ratio: auto; min-height: 240px; padding: 28px 20px; }
  .prep { grid-template-columns: 1fr; padding: 24px 20px; }
  .notice { padding: 18px 18px; gap: 12px; margin-bottom: 32px; }
  .steps--guide .step--text-only { padding: 24px 20px; }
  .help { grid-template-columns: 1fr; margin-top: 72px; padding-top: 48px; }
  .contact { padding: 64px 0 32px; }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  /* A smaller banner with smaller type; the image is cropped on its left, the text stays on the background. */
  .upsell { padding: 48px 0; }
  .upsell__box { min-height: 240px; }
  .upsell__text { flex-basis: auto; gap: 10px; padding: 28px 20px; }
  .upsell .eyebrow { margin: 0; font-size: 10px; }
  .upsell h2 { margin: 0; font-size: 26px; line-height: 1.3; }
  .upsell p { font-size: 13px; line-height: 1.5; }
  .upsell__buttons { gap: 8px; margin-top: 4px; }
  .upsell__buttons .btn { padding: 10px 12px; font-size: 10px; line-height: 1.2; letter-spacing: .08em; }
}

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