/* Cairn marketing site. Brand values: docs/brand/README.md. Spec: docs/design/LANDING-PAGE.md. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17181f;
  --muted: #5f5a52;
  --line: #e7e3dc;
  --paper: #fbfaf8;
  --stone: #efeae3;
  --white: #ffffff;
  --indigo: #4050c4;
  --indigo-deep: #2b358f;
  --indigo-hover: #3442a8;
  --periwinkle: #c7cdf6;
  --door: #c7cdf6;
  --spruce: #2f8a74;
  --saffron: #e9a83e;
  --coral: #e27a5f;
  --footer: #17181f;
  --footer-text: #c9c5bd;
  --radius: 10px;
  --wrap: 1240px;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Past either end of the page (the bounce on Macs and phones) show the colour of the edge you're on,
   not a white gap: paper above the header, the footer's dark below it. */
html { background: var(--paper); overscroll-behavior-y: none; }
html.dark-footer { background: linear-gradient(to bottom, var(--paper) 0 50%, var(--footer) 50% 100%); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "Manrope", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-hover); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: var(--radius); background: var(--white); color: var(--indigo); font-weight: 700; }
.skip-link:focus { top: 16px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.mark-door { fill: var(--door); }
.mark-line { fill: none; stroke: var(--indigo); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.mark-knob { fill: var(--indigo); }
.logo-light, .logo-light:hover { color: var(--white); }
.logo-light .mark-door { fill: rgba(255, 255, 255, 0.28); }
.logo-light .mark-line { stroke: var(--white); }
.logo-light .mark-knob { fill: var(--white); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--indigo); background: var(--indigo); color: var(--white); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 150ms, border-color 150ms, transform 150ms var(--ease-out); }
.button:hover { background: var(--indigo-hover); border-color: var(--indigo-hover); color: var(--white); }
.button:active { transform: scale(0.98); }
.button-quiet { background: var(--white); border-color: #d9d5cd; color: var(--ink); }
.button-quiet:hover { background: var(--paper); border-color: #c9c4ba; color: var(--ink); }
.button-light { background: var(--white); border-color: var(--white); color: var(--indigo-deep); }
.button-light:hover { background: #eef0fc; border-color: #eef0fc; color: var(--indigo-deep); }
.button-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.button-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); color: var(--white); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.text-link { color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--indigo); }

/* Header */
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-trigger, .nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; transition: color 150ms, background-color 150ms; }
.nav-trigger::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
.nav-trigger:hover, .nav-link:hover, .nav-item:focus-within .nav-trigger { color: var(--ink); background: rgba(23, 24, 31, 0.04); }
.nav-item { position: relative; }
/* Menus open on hover and on keyboard focus, so they work without JavaScript */
.nav-menu { position: absolute; top: 100%; left: -8px; z-index: 20; padding-top: 10px; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s 160ms; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-item:hover .nav-trigger::after, .nav-item:focus-within .nav-trigger::after { transform: translateY(3px) rotate(225deg); }
.nav-menu ul { display: grid; gap: 2px; width: 340px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 24px 48px -20px rgba(23, 24, 31, 0.28); }
.nav-menu-wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 560px; }
.nav-menu a, .mobile-panel a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 30px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color 150ms; }
.nav-menu a::before, .mobile-panel a[style]::before { content: ""; position: absolute; left: 12px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--indigo)); }
.nav-menu a:hover, .mobile-panel a:hover { background: var(--paper); color: var(--ink); }
.menu-name { font-size: 15px; font-weight: 700; }
.menu-line { color: var(--muted); font-size: 13px; line-height: 1.4; }
.mobile-menu { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.closing-card :focus-visible { outline-color: var(--white); }

/* Hero: a centred headline on paper, then the Today page on a stone panel with three brand colours behind it */
.hero { padding-top: 96px; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 26px; }
h1 { max-width: 960px; font-size: clamp(42px, 5.4vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.03; text-wrap: balance; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 4px; }
.hero-panel { position: relative; overflow: hidden; width: min(1280px, calc(100% - 2 * var(--gutter))); margin: 64px auto 0; padding: 56px 80px 0; border-radius: 32px 32px 0 0; background: var(--stone); }
.dot { position: absolute; border-radius: 50%; pointer-events: none; }
.dot-saffron { left: -60px; top: 120px; width: 260px; height: 260px; background: var(--saffron); opacity: 0.55; }
.dot-spruce { right: -40px; top: 40px; width: 180px; height: 180px; background: var(--spruce); opacity: 0.35; }
.dot-coral { right: 24px; bottom: 90px; width: 120px; height: 120px; background: var(--coral); opacity: 0.45; }
.app-window { position: relative; overflow: hidden; max-width: 1040px; margin-inline: auto; border-radius: 14px 14px 0 0; background: var(--white); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 30px 60px -30px rgba(23, 24, 31, 0.35), 0 2px 6px rgba(23, 24, 31, 0.05); }
.screen-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #f7f6f3; }
.screen-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2ded6; }
.app-window img { width: 100%; }

/* Section headings */
h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; text-wrap: balance; }
h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }


/* Programs: one tile per IRCC-funded program, led by the shorthand agencies use */
.programs { padding-block: 112px; background: var(--white); border-bottom: 1px solid var(--line); }
.programs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.programs-head h2 { max-width: 640px; }
.programs-head p { max-width: 380px; color: var(--muted); font-size: 18px; }
.program-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.program-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 28px; color: var(--ink); text-decoration: none; border-radius: 22px; }
.program-list a:hover { color: var(--ink); }
.program-list li { display: flex; flex-direction: column; border-radius: 22px; background: color-mix(in srgb, var(--accent) 9%, var(--paper)); transition: transform 200ms var(--ease-out), background-color 200ms; }
.program-list li:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--accent) 15%, var(--paper)); }
.program-list .program-code { color: color-mix(in srgb, var(--accent) 82%, black); font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }
.program-list h3 { font-size: 21px; }
.program-list p { color: var(--muted); font-size: 16px; }
.program-list .program-icare { margin-top: auto; padding-top: 14px; color: color-mix(in srgb, var(--accent) 55%, black); font-size: 14px; font-weight: 700; }

/* Problem and answer */
.problem { padding-top: 128px; }
.problem h2 { max-width: 760px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.compare-col { padding: 36px; border-radius: 24px; }
.compare-before { background: var(--stone); }
.compare-after { background: var(--indigo-deep); color: var(--white); }
.compare-label { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.compare-before .compare-label { color: var(--muted); }
.compare-after .compare-label { color: var(--periwinkle); }
.compare ul { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.compare li { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.35; }
.compare-before li { color: #4a463f; }

/* Five jobs */
.jobs { display: flex; flex-direction: column; gap: 128px; padding-top: 128px; }
.job { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 72px; }
.job:nth-child(even) .job-copy { order: 2; }
.job-copy { display: flex; flex-direction: column; gap: 16px; }
.job-label { color: color-mix(in srgb, var(--accent) 78%, black); font-size: 16px; font-weight: 800; }
.job h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.035em; line-height: 1.08; }
.job-line { color: var(--muted); font-size: 18px; }
.job-points { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.job-points li { position: relative; padding-left: 22px; font-size: 17px; font-weight: 600; }
.job-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.job-shot { padding: 36px; border-radius: 28px; background: color-mix(in srgb, var(--accent) 14%, var(--paper)); }
.screen { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 30px 60px -30px rgba(23, 24, 31, 0.32); }
.screen img { width: 100%; }

/* Trust */
.trust { margin-top: 128px; padding-block: 104px; background: var(--white); border-block: 1px solid var(--line); }
.trust h2 { max-width: 760px; }
.trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.trust-list li { padding-top: 22px; border-top: 3px solid var(--indigo); }
.trust-list li:nth-child(2) { border-color: var(--spruce); }
.trust-list li:nth-child(3) { border-color: var(--saffron); }
.trust-list h3 { font-size: 21px; }
.trust-list p { margin-top: 10px; color: var(--muted); font-size: 17px; }

/* Getting started */
.start { padding-top: 128px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 24px; background: var(--stone); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: var(--white); font-size: 19px; font-weight: 800; }
.steps li:nth-child(2) .step-n { background: var(--spruce); }
.steps li:nth-child(3) .step-n { background: var(--coral); }
.steps h3 { margin-top: 6px; font-size: 22px; }
.steps p { color: var(--muted); font-size: 17px; }

/* FAQ: the intro stays in view beside the questions; answers slide open where the browser can animate it */
.faq { margin-top: 128px; padding-block: 112px; background: var(--stone); }
.faq-row { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; gap: 72px; }
.faq-intro { position: sticky; top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.faq-intro p { color: var(--muted); font-size: 18px; }
.faq-intro .button { margin-top: 6px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; interpolate-size: allow-keywords; }
.faq details { border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(23, 24, 31, 0.05); transition: box-shadow 200ms var(--ease-out); }
.faq details:hover { box-shadow: 0 10px 30px -16px rgba(23, 24, 31, 0.25); }
.faq details[open] { box-shadow: 0 16px 40px -20px rgba(23, 24, 31, 0.3); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 26px; cursor: pointer; list-style: none; border-radius: 18px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #eef0fc; transition: background-color 200ms, transform 250ms var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--indigo); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-icon { background: var(--indigo); transform: rotate(45deg); }
.faq details[open] .faq-icon::before, .faq details[open] .faq-icon::after { background: var(--white); }
.faq-answer p { max-width: 640px; padding: 0 26px 24px; color: var(--muted); font-size: 17px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }

/* Product bento */
.product { padding-top: 128px; }
.product h2 { max-width: 760px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 20px; margin-top: 48px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 30px 30px 0; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.tile img { border-radius: 12px 12px 0 0; box-shadow: 0 18px 40px -22px rgba(23, 24, 31, 0.35); }
.tile p { color: var(--muted); font-size: 17px; }
.tile-day { grid-column: span 2; grid-row: span 2; }
.tile-day img { margin-top: 18px; width: 100%; }
.tile-languages { grid-column: span 2; flex-direction: row; align-items: center; gap: 28px; padding: 30px; background: var(--coral); border: 0; color: var(--white); }
.tile-languages > div { flex: 0 0 200px; }
.big-number { color: var(--white) !important; font-size: 96px !important; font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
.tile-languages h3 { margin-top: 10px; font-size: 19px; }
.tile-languages img { flex: 1 1 auto; min-width: 0; border-radius: 12px; }
.tile-attendance { background: var(--spruce); border: 0; color: var(--white); }
.tile-attendance img { margin-top: auto; }
.tile-people { padding: 0; background: var(--saffron); border: 0; }
.tile-people img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; border-radius: 0; box-shadow: none; }
.tile-people h3 { position: absolute; left: 22px; bottom: 18px; font-size: 20px; }
.tile-icare { grid-column: span 2; background: #eef0fc; border: 0; }
.tile-icare img, .tile-follow img { margin-top: auto; }
.tile-follow { grid-column: span 2; }

/* People */
.people { padding-top: 128px; }
.people h2 { max-width: 760px; }
.people-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.people-list img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }
.people-list p { margin-top: 14px; font-size: 18px; font-weight: 700; }

/* Closing: a deep spruce card with the mark on a white tile and a saffron sun behind it */
.closing { padding-top: 120px; padding-bottom: 120px; }
.closing-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 72px; border-radius: 32px; background: #1d4f44; color: var(--white); }
.closing-sun { position: absolute; right: -50px; bottom: -70px; width: 300px; height: 300px; border-radius: 50%; background: var(--saffron); opacity: 0.9; }
.closing-copy { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.closing-copy h2 { font-size: clamp(32px, 3.6vw, 48px); }
.closing-copy p { color: #d5e8e1; font-size: 19px; }
.closing-copy .actions { justify-content: flex-start; margin-top: 8px; }
.closing-card .button-light { color: #1d4f44; }
.closing-mark { position: relative; flex: none; display: grid; place-items: center; width: 190px; height: 190px; border-radius: 44px; background: var(--white); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.closing-mark svg { width: 130px; height: 130px; }

/* Footer: a brand-colour stripe, four columns and a large faint wordmark */
.site-footer { position: relative; overflow: hidden; background: var(--footer); color: var(--footer-text); }
.footer-stripe { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.footer-stripe span:nth-child(1) { background: var(--indigo); }
.footer-stripe span:nth-child(2) { background: var(--spruce); }
.footer-stripe span:nth-child(3) { background: var(--saffron); }
.footer-stripe span:nth-child(4) { background: var(--coral); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 80px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 320px; }
.footer-brand p { font-size: 16px; line-height: 1.55; }
.footer-brand .logo-light .mark-door { fill: #3a4290; }
.footer-brand .logo-light .mark-line { stroke: #8e9af6; }
.footer-brand .logo-light .mark-knob { fill: #8e9af6; }
.footer-brand .button-light { color: var(--ink); }
.footer-col h2 { color: var(--white); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.footer-col a { color: var(--footer-text); font-size: 15px; text-decoration: none; transition: color 150ms; }
.footer-col a:hover { color: var(--white); }
.footer-base { position: relative; padding-top: 72px; padding-bottom: 32px; }
.footer-word { color: rgba(255, 255, 255, 0.05); font-size: clamp(120px, 22vw, 320px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.78; user-select: none; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 24px; color: #9a968e; font-size: 14px; }
.footer-legal nav { display: flex; gap: 24px; }
.footer-legal a { color: #9a968e; text-decoration: none; transition: color 150ms; }
.footer-legal a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: #8e9af6; }

/* Apps band on the home page */
.apps-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 64px; padding-top: 128px; }
.apps-band-copy { display: flex; flex-direction: column; gap: 16px; }
.apps-band-copy p { color: var(--muted); font-size: 19px; }
.apps-band-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.apps-band-list li { padding: 24px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 11%, var(--paper)); }
.apps-band-list h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.apps-band-list h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.apps-band-list p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Mobile menu: a details panel, so it needs no JavaScript */
.mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary:hover { background: rgba(23, 24, 31, 0.05); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 200ms var(--ease-out), background-color 150ms; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.mobile-menu[open] .menu-icon { background: transparent; }
.mobile-menu[open] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu[open] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-panel { position: absolute; left: 0; right: 0; top: 76px; z-index: 30; max-height: calc(100dvh - 76px); overflow-y: auto; padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 30px 40px -30px rgba(23, 24, 31, 0.3); }
.mobile-group { margin: 18px 12px 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.mobile-plain { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.mobile-plain a { padding-left: 12px; }
.site-header { position: relative; }

/* Product, program and other generated pages (docs/site/build.py) */
.pp-hero { padding-top: 88px; }
.pp-hero-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px 72px; }
.pp-hero-title { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pp-hero-copy h1 { max-width: 760px; font-size: clamp(40px, 5vw, 66px); }
.pp-hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 6px; }
.pp-hero-side .lead { font-size: 19px; }
.pp-hero-copy .actions { justify-content: flex-start; margin-top: 0; }
.pp-label { color: color-mix(in srgb, var(--accent) 78%, black); font-size: 17px; font-weight: 800; }
.pp-code { color: var(--accent); font-size: clamp(56px, 7vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
.pp-hero-panel { position: relative; overflow: hidden; width: min(1280px, calc(100% - 2 * var(--gutter))); margin: 64px auto 0; padding: 56px 80px 0; border-radius: 32px 32px 0 0; background: color-mix(in srgb, var(--accent) 16%, var(--stone)); }
.pp-hero-panel .dot-a { left: -70px; top: 90px; width: 240px; height: 240px; background: var(--accent); opacity: 0.35; }
.pp-hero-panel .dot-b { right: -40px; bottom: 70px; width: 170px; height: 170px; background: var(--saffron); opacity: 0.5; }
.pp-program[style*="saffron"] .pp-hero-panel .dot-b, .pp-product[style*="saffron"] .pp-hero-panel .dot-b { background: var(--coral); }
.pp-hero-panel .app-window { position: relative; }
.pp-hero-panel .screen { border-radius: 16px 16px 0 0; border-bottom: 0; }
.pp-hero-panel-phone { display: flex; justify-content: center; padding-bottom: 0; }
.pp-hero-panel-phone .phone { width: 320px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

.pp-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 56px; }
.pp-head h2 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.035em; line-height: 1.06; }
.pp-head p { color: var(--muted); font-size: 19px; }
.pp-rows .jobs { padding-top: 0; }
.pp-rows { padding-top: 128px; }
.job h2 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.035em; line-height: 1.08; }
.more-link { align-self: flex-start; margin-top: 8px; color: color-mix(in srgb, var(--accent, var(--indigo)) 80%, black); font-size: 16px; font-weight: 700; text-decoration: none; }
.more-link::after { content: " →"; display: inline-block; transition: transform 200ms var(--ease-out); }
.more-link:hover { color: var(--ink); }
.more-link:hover::after { transform: translateX(3px); }
.job-shot-phone { display: flex; justify-content: center; }
.job-shot-phone .phone { width: min(300px, 80%); }

.phone, .tablet { overflow: hidden; border: 10px solid var(--ink); border-radius: 44px; background: var(--ink); box-shadow: 0 40px 60px -30px rgba(23, 24, 31, 0.45); }
.phone img, .tablet img { width: 100%; border-radius: 34px; }
.tablet { border-width: 14px; border-radius: 36px; }
.tablet img { border-radius: 22px; }
.screen-bar em { margin-left: 10px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 600; }
.screen-win .screen-bar { justify-content: flex-end; gap: 0; padding: 0 0 0 14px; }
.screen-win .screen-bar em { margin: 0 auto 0 0; }
.screen-win .screen-bar i { width: 44px; height: 34px; }
.screen-win .screen-bar i::before { content: ""; display: block; width: 10px; height: 10px; margin: 12px auto 0; border: 1.5px solid #9a968e; border-radius: 1px; }
.screen-win .screen-bar i:first-of-type::before { height: 0; margin-top: 17px; border-width: 1.5px 0 0; }
.screen-win .screen-bar i:last-of-type::before { border: 0; background: linear-gradient(45deg, transparent 45%, #9a968e 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #9a968e 45% 55%, transparent 55%); }

.pp-grid-section { margin-top: 128px; padding-block: 104px; background: var(--white); border-block: 1px solid var(--line); }
.pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.pp-grid li { padding-top: 22px; border-top: 3px solid var(--accent); }
.pp-grid h3 { font-size: 21px; }
.pp-grid p { margin-top: 10px; color: var(--muted); font-size: 17px; }

.pp-steps-section { padding-top: 128px; }
.pp-steps li { display: flex; flex-direction: column; gap: 10px; }

.pp-callout-section { padding-top: 128px; }
.pp-callout { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 64px; border-radius: 32px; background: var(--indigo-deep); color: var(--white); }
.pp-callout::after { content: ""; position: absolute; left: -90px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: var(--accent); opacity: 0.4; }
.pp-callout-copy { position: relative; display: flex; flex-direction: column; gap: 16px; }
.pp-callout-copy h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.035em; line-height: 1.08; }
.pp-callout-copy p { color: #d6d9f5; font-size: 18px; }
.pp-callout-note { font-size: 15px !important; }
.pp-callout-list { position: relative; display: flex; flex-direction: column; gap: 12px; align-self: center; }
.pp-callout-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-size: 17px; font-weight: 600; }
.pp-callout-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%232b358f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

.pp-faq { margin-top: 128px; }
.pp-related { padding-top: 128px; }
.pp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pp-cards a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px 26px 56px; border-radius: 22px; background: color-mix(in srgb, var(--accent) 12%, var(--paper)); color: var(--ink); text-decoration: none; transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out); }
.pp-cards a:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(23, 24, 31, 0.35); }
.pp-cards h3 { font-size: 20px; }
.pp-cards p { color: var(--muted); font-size: 16px; }
.pp-cards .program-code { color: color-mix(in srgb, var(--accent) 80%, black); font-size: 15px; font-weight: 800; }
.card-go { position: absolute; left: 26px; bottom: 22px; color: color-mix(in srgb, var(--accent) 80%, black); font-weight: 700; transition: transform 200ms var(--ease-out); }
.pp-cards a:hover .card-go { transform: translateX(4px); }
.pp-cards-programs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pp-devices-section { padding-top: 128px; }
.devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.device { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: color-mix(in srgb, var(--accent) 13%, var(--paper)); }
.device-visual { display: flex; align-items: flex-end; justify-content: center; height: 360px; padding: 40px 40px 0; overflow: hidden; }
.device-visual .screen { width: 100%; border-bottom: 0; border-radius: 14px 14px 0 0; }
.device-visual .phone { width: 220px; margin-bottom: -120px; }
.device-visual .tablet { width: 330px; margin-bottom: -160px; }
.device-copy { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 32px 40px 40px; background: var(--white); }
.device-copy h3 { font-size: 26px; letter-spacing: -0.03em; }
.device-copy p { color: var(--muted); }
.pp-hero-devices { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: end; gap: 32px; }
.pp-hero-devices .hero-device-1 .phone { margin-bottom: -80px; }
.pp-hero-devices figure { position: relative; }
.pp-hero-devices .hero-device-1 { align-self: end; padding-bottom: 0; }

/* Privacy and Terms: one readable column */
.legal { padding-top: 88px; padding-bottom: 128px; }
.legal-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.legal-head h1 { font-size: clamp(40px, 5vw, 64px); }
.legal-date { color: var(--muted); font-size: 15px; font-weight: 600; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 680px) 240px; justify-content: space-between; gap: 64px; margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal-body h2 { scroll-margin-top: 24px; }
.legal-toc { position: sticky; top: 32px; align-self: start; margin-top: 44px; }
.legal-toc h2 { color: var(--muted); font-size: 14px; font-weight: 700; }
.legal-toc ol { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 4px 0; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.legal-toc a:hover { color: var(--indigo); }
.legal-body h2 { margin-top: 44px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.legal-body p, .legal-body li { color: #3d3a35; font-size: 17px; line-height: 1.7; }
.legal-body p { margin-top: 14px; }
.legal-body ul { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.legal-body li { position: relative; padding-left: 22px; }
.legal-body li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); }
.legal-body li:nth-child(4n+2)::before { background: var(--spruce); }
.legal-body li:nth-child(4n+3)::before { background: var(--saffron); }
.legal-body li:nth-child(4n+4)::before { background: var(--coral); }
.legal-body strong { color: var(--ink); font-weight: 700; }

/* Not found */
.not-found { display: flex; flex-direction: column; gap: 28px; padding-top: 120px; padding-bottom: 160px; }
.not-found h1 { font-size: clamp(40px, 5vw, 64px); }
.not-found .lead { color: var(--muted); }

/* Tablet */
@media (max-width: 1080px) {
  .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-menu-wide ul { width: 480px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-day { grid-row: span 2; }
}
@media (max-width: 900px) {
  .apps-band { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pp-hero-copy { grid-template-columns: minmax(0, 1fr); }
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-callout { grid-template-columns: minmax(0, 1fr); padding: 48px; }
  .devices { grid-template-columns: minmax(0, 1fr); }
  .pp-hero-panel { padding: 40px 40px 0; }
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { display: none; }
  .legal { padding-top: 64px; padding-bottom: 96px; }
  .hero { padding-top: 64px; }
  .hero-panel { padding: 36px 32px 0; margin-top: 48px; }
  .people-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .job:nth-child(even) .job-copy { order: 0; }
  .compare, .steps { grid-template-columns: minmax(0, 1fr); }
  .programs-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .faq-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq-intro { position: static; }
  .closing-card { flex-direction: column; align-items: flex-start; padding: 48px; }
  .closing-mark { width: 140px; height: 140px; border-radius: 34px; }
  .closing-mark svg { width: 96px; height: 96px; }
}
@media (max-width: 760px) {
  .trust-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .header-actions { gap: 14px; }
}

/* Phone */
@media (max-width: 600px) {
  .apps-band { padding-top: 88px; }
  .apps-band-list { grid-template-columns: minmax(0, 1fr); }
  .pp-hero { padding-top: 56px; }
  .pp-hero-panel { margin-top: 44px; padding: 24px 16px 0; border-radius: 22px 22px 0 0; }
  .pp-hero-devices { grid-template-columns: minmax(0, 1fr); }
  .pp-hero-devices .hero-device-1 { display: none; }
  .pp-rows, .pp-steps-section, .pp-callout-section, .pp-related, .pp-devices-section { padding-top: 88px; }
  .pp-head { margin-bottom: 36px; }
  .pp-grid-section, .pp-faq { margin-top: 88px; }
  .pp-grid-section { padding-block: 72px; }
  .pp-grid, .pp-cards, .pp-cards-programs { grid-template-columns: minmax(0, 1fr); }
  .pp-callout { padding: 32px 24px; border-radius: 24px; gap: 28px; }
  .device-visual { height: 260px; padding: 24px 20px 0; }
  .device-copy { padding: 24px; }
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .header-row { min-height: 64px; }
  .header-actions .text-link { display: none; }
  .hero { padding-top: 48px; }
  .hero-panel { padding: 24px 14px 0; border-radius: 22px 22px 0 0; }
  .dot-saffron { width: 140px; height: 140px; left: -50px; top: 60px; }
  .dot-spruce { width: 100px; height: 100px; }
  .dot-coral { width: 70px; height: 70px; right: 40px; bottom: 30px; }
  .screen-bar { height: 24px; gap: 5px; }
  .screen-bar span { width: 7px; height: 7px; }
  .product { padding-top: 88px; padding-bottom: 80px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tile, .tile-day, .tile-languages, .tile-icare, .tile-follow { grid-column: auto; grid-row: auto; }
  .tile { min-height: 240px; }
  .tile-languages { flex-direction: column; align-items: flex-start; }
  .tile-languages > div { flex: none; }
  .tile-people { min-height: 360px; }
  .people { padding-top: 88px; }
  .problem, .jobs, .start, .faq, .product { padding-top: 88px; }
  .jobs { gap: 88px; }
  .job-shot { padding: 16px; border-radius: 20px; }
  .compare-col { padding: 26px; }
  .compare li { font-size: 18px; }
  .trust { margin-top: 88px; padding-block: 72px; }
  .program-list { grid-template-columns: minmax(0, 1fr); }
  .programs { padding-block: 80px; }
  .program-list .program-code { font-size: 38px; }
  .faq { margin-top: 88px; padding-block: 72px; }
  .faq summary { padding: 18px 20px; font-size: 17px; }
  .faq-answer p { padding: 0 20px 20px; }
  .faq-intro .button { width: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 56px; }
  .footer-brand .button { width: auto; }
  .footer-base { padding-top: 48px; }
  .people-list { gap: 16px; }
  .closing { padding-top: 72px; padding-bottom: 72px; }
  .closing-card { padding: 32px 24px; border-radius: 24px; }
  .closing-sun { width: 200px; height: 200px; }
  .button { width: 100%; }
  .actions { flex-direction: column; }
  .header-actions .button { width: auto; }
}

/* Motion: the hero arrives once and the Today page lifts onto its panel; the colour circles drift as
   the page scrolls, and sections settle as they scroll into view. Off for anyone who prefers reduced motion; browsers without
   scroll-driven animation show the tiles in place. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 800ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .app-window { animation: lift-in 1100ms var(--ease-out) 240ms both; }
  .dot { animation: float-in 1400ms var(--ease-out) both; }
  .dot-spruce { animation-delay: 120ms; }
  .dot-coral { animation-delay: 240ms; }

  @supports (animation-timeline: view()) {
    .dot-saffron { animation: drift-down linear both; animation-timeline: scroll(root); animation-range: 0 800px; }
    .dot-spruce, .dot-coral { animation: drift-up linear both; animation-timeline: scroll(root); animation-range: 0 800px; }
    .tile { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .people-list li, .job-shot, .compare-col, .steps li, .program-list li { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lift-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: scale(0.6); } }
@keyframes drift-down { to { transform: translateY(60px); } }
@keyframes drift-up { to { transform: translateY(-50px); } }
@keyframes settle { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: none; } }
