/* 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;
  --night: #0b0d22;
  --night-2: #151a3f;
  --night-line: rgba(199, 205, 246, 0.16);
  --night-text: rgba(225, 228, 250, 0.78);
  --glow: #ffd79a;
  --glow-hot: #fff1d6;
  --radius: 10px;
  --wrap: 1240px;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
  /* Drawn icons, used as masks so they take the text colour */
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3L14.5 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M9 4.5L12.5 8 9 11.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #c9c4ba var(--paper); accent-color: var(--indigo); }
/* 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); caret-color: var(--indigo); font: 400 17px/1.6 "Manrope", system-ui, sans-serif; }
::selection { background: #dfe3ff; color: var(--ink); }
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: 60; padding: 10px 16px; border-radius: var(--radius); background: var(--white); color: var(--indigo); font-weight: 700; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 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-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px rgba(23, 24, 31, 0.08), 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: 8px; 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; }
.site-header { position: relative; }

/* 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; }

/* Type */
h1 { max-width: 960px; font-size: clamp(42px, 5.4vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.03; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; 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; }

/* A link that reads on: text, then a drawn arrow that moves a little on hover */
.more-link { display: inline-flex; align-items: center; 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: ""; width: 16px; height: 16px; margin-left: 6px; -webkit-mask: var(--arrow) center / 100% no-repeat; mask: var(--arrow) center / 100% no-repeat; background: currentColor; transition: transform 200ms var(--ease-out); }
.more-link:hover { color: var(--ink); }
.more-link:hover::after { transform: translateX(3px); }
.more-link-light { color: #c7cdf6; }
.more-link-light:hover { color: var(--white); }

/* Ticked lists */
.job-points { display: flex; flex-direction: column; gap: 10px; }
.job-points li { position: relative; padding-left: 30px; font-size: 17px; font-weight: 600; }
.job-points li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; -webkit-mask: var(--tick) center / 100% no-repeat; mask: var(--tick) center / 100% no-repeat; background: color-mix(in srgb, var(--accent, var(--indigo)) 80%, black); }

/* Screenshots: a browser window, a phone or a tablet */
.screen { overflow: hidden; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px rgba(23, 24, 31, 0.08), 0 40px 80px -40px rgba(11, 13, 34, 0.4); }
.screen img, .app-window img { width: 100%; }
.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; }
.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%); }
.phone, .tablet { overflow: hidden; padding: 10px; border-radius: 44px; background: #15161d; box-shadow: 0 40px 80px -36px rgba(11, 13, 34, 0.55); }
.phone img, .tablet img { width: 100%; border-radius: 34px; }
.tablet { padding: 14px; border-radius: 36px; }
.tablet img { border-radius: 22px; }

/* 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: 10px; interpolate-size: allow-keywords; }
.faq details { border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px rgba(23, 24, 31, 0.06); transition: box-shadow 200ms var(--ease-out); }
.faq details:hover { box-shadow: 0 0 0 1px rgba(23, 24, 31, 0.14); }
.faq details[open] { box-shadow: 0 0 0 1px rgba(64, 80, 196, 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: 12px; 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; } }

/* Closing: the open door at night, the same on every page */
.finale { position: relative; overflow: hidden; padding-block: 160px 150px; background: linear-gradient(to bottom, var(--night), #181c4c); color: var(--white); text-align: center; }
.finale-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.finale-door { position: relative; width: 120px; height: 190px; margin-bottom: 40px; perspective: 600px; }
.fd-inside { position: absolute; inset: 0; border-radius: 12px 12px 4px 4px; background: radial-gradient(70% 55% at 50% 45%, var(--glow-hot), var(--glow) 55%, #f0b45c); box-shadow: 0 0 0 7px #1c2150, 0 0 0 8px rgba(142, 154, 246, 0.3); }
.fd-door { position: absolute; inset: 0; border-radius: 12px 12px 4px 4px; background: linear-gradient(105deg, #4a58d0, var(--indigo) 40%, #3442a8); transform-origin: 0 50%; transform: rotateY(-108deg); }
.fd-floor { position: absolute; left: 50%; top: 100%; width: 300%; height: 80px; transform: translateX(-50%); clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%); background: linear-gradient(to bottom, rgba(255, 215, 154, 0.45), transparent 85%); }
.finale h2 { max-width: 820px; color: var(--white); font-size: clamp(40px, 5.2vw, 76px); letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.finale p { max-width: 560px; color: var(--night-text); font-size: 19px; }
.finale :focus-visible { outline-color: #8e9af6; }
.finale ::selection { background: #3a4290; color: var(--white); }

/* Footer: four columns on the dark */
.site-footer { position: relative; overflow: hidden; background: var(--footer); color: var(--footer-text); }
.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 { padding-top: 72px; padding-bottom: 32px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); 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; }
.site-footer ::selection { background: #3a4290; color: var(--white); }

/* 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: 20px; }
.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; }
/* Breadcrumb: the section, then this page */
.pp-crumb { display: flex; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 15px; font-weight: 600; }
.pp-crumb a { color: var(--muted); text-decoration: none; }
.pp-crumb a:hover { color: var(--indigo); }
.pp-crumb span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 12px 2px 10px; border-top: 1.6px solid #b9b3a9; border-right: 1.6px solid #b9b3a9; transform: rotate(45deg); }
.pp-crumb span { color: color-mix(in srgb, var(--accent) 75%, black); font-weight: 800; }
.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: 16px 16px 0 0; background: color-mix(in srgb, var(--accent) 14%, var(--stone)); }
.app-window { position: relative; max-width: 1040px; margin-inline: auto; }
.pp-hero-panel .screen { border-radius: 12px 12px 0 0; }
.pp-hero-panel-phone { display: flex; justify-content: center; }
.pp-hero-panel-phone .phone { width: 320px; padding-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pp-hero-panel-phone .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 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); line-height: 1.06; }
.pp-head p { color: var(--muted); font-size: 19px; }

/* Rows: explanation beside a screenshot, alternating sides */
.pp-rows { padding-top: 128px; }
.jobs { display: flex; flex-direction: column; gap: 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 h2 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.03em; line-height: 1.08; }
.job-line { color: var(--muted); font-size: 18px; }
.job-points { margin-top: 6px; }
.job-shot { padding: 36px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
.job-shot-phone { display: flex; justify-content: center; }
.job-shot-phone .phone { width: min(300px, 80%); }

/* Six things, under a rule in the page colour */
.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: 20px; border-top: 2px solid var(--accent); }
.pp-grid h3 { font-size: 21px; letter-spacing: -0.015em; }
.pp-grid p { margin-top: 10px; color: var(--muted); font-size: 17px; }

/* Steps: numbered under a rule, as on the home page */
.pp-steps-section { padding-top: 128px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--accent, var(--indigo)); }
.step-n { color: color-mix(in srgb, var(--accent, var(--indigo)) 75%, black); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 22px; letter-spacing: -0.015em; }
.steps p { max-width: 360px; color: var(--muted); font-size: 17px; }

/* Callout: the serious statement, at night like the home page's trust band */
.pp-callout-section { padding-top: 128px; }
.pp-callout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; padding: 72px; border-radius: 16px; background: var(--night); color: var(--white); }
.pp-callout-copy { display: flex; flex-direction: column; gap: 16px; }
.pp-callout-copy h2 { color: var(--white); font-size: clamp(30px, 3vw, 42px); line-height: 1.08; }
.pp-callout-copy p { color: var(--night-text); font-size: 18px; }
.pp-callout-copy .pp-callout-note { font-size: 15px; }
.pp-callout-list { display: grid; }
.pp-callout-list li { display: flex; gap: 14px; align-items: flex-start; padding-block: 16px; border-top: 1px solid var(--night-line); font-size: 17px; font-weight: 600; }
.pp-callout-list li:last-child { border-bottom: 1px solid var(--night-line); }
.pp-callout-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; -webkit-mask: var(--tick) center / 100% no-repeat; mask: var(--tick) center / 100% no-repeat; background: #8e9af6; }
.pp-callout :focus-visible { outline-color: #8e9af6; }
.pp-callout ::selection { background: #3a4290; color: var(--white); }

.pp-faq { margin-top: 128px; }
/* Two full-width bands meet without a strip of paper between them */
.pp-grid-section + .pp-faq { margin-top: 0; border-top: 0; }
/* The closing band starts a section's distance below whatever comes before it */
.pp .finale { margin-top: 128px; }

/* Related pages */
.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: 6px; height: 100%; padding: 24px 24px 60px; border-radius: 12px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px rgba(23, 24, 31, 0.08); transition: box-shadow 200ms, background-color 200ms; }
.pp-cards a::before { content: ""; position: absolute; left: 24px; top: 0; width: 32px; height: 3px; border-radius: 0 0 2px 2px; background: var(--accent); }
.pp-cards a:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 6%, white); box-shadow: 0 0 0 2px var(--accent); }
.pp-cards h3 { font-size: 20px; letter-spacing: -0.015em; }
.pp-cards p { color: var(--muted); font-size: 16px; }
.pp-cards .program-code { color: color-mix(in srgb, var(--accent) 80%, black); font-size: 14px; font-weight: 800; }
.card-go { position: absolute; left: 24px; bottom: 22px; width: 18px; height: 18px; -webkit-mask: var(--arrow) center / 100% no-repeat; mask: var(--arrow) center / 100% no-repeat; background: color-mix(in srgb, var(--accent) 80%, black); 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)); }

/* Apps: one card per way to use Cairn */
.pp-devices-section { padding-top: 128px; }
.devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.device { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, var(--paper)); box-shadow: 0 0 0 1px rgba(23, 24, 31, 0.06); }
.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-radius: 12px 12px 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.025em; }
.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 figure { position: relative; }
.pp-hero-devices .hero-device-1 .phone { margin-bottom: -80px; }

/* Privacy, Terms and the guides: one readable column */
.legal { padding-top: 88px; padding-bottom: 128px; }
.legal-head { display: flex; flex-direction: column; align-items: flex-start; 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; letter-spacing: 0; }
.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.015em; 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: 6px; height: 6px; border-radius: 50%; background: #a8a298; }
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body a { text-underline-offset: 3px; }

/* Guides */
.legal-body .guide-sources li { font-size: 15px; }
.legal.guides-hub, .legal.guide { padding-bottom: 0; }
.guides-list { padding-top: 56px; }
.guides-list .pp-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

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

/* Tablet */
@media (max-width: 1080px) {
  .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-menu-wide ul { width: 480px; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .pp-hero-copy { grid-template-columns: minmax(0, 1fr); }
  .pp-hero-panel { padding: 40px 40px 0; }
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-callout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px; }
  .devices { grid-template-columns: minmax(0, 1fr); }
  .job { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .job:nth-child(even) .job-copy { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq-intro { position: static; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { display: none; }
  .legal { padding-top: 64px; padding-bottom: 96px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-actions { gap: 14px; }
}

/* Phone */
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .header-row { min-height: 64px; }
  .header-actions .text-link { display: none; }
  .mobile-panel { top: 64px; max-height: calc(100dvh - 64px); }
  .button { width: 100%; }
  .actions { flex-direction: column; width: 100%; }
  .header-actions .button, .faq-intro .button, .footer-brand .button { width: auto; }
  .pp-hero { padding-top: 48px; }
  .pp-hero-panel { margin-top: 44px; padding: 24px 16px 0; border-radius: 12px 12px 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; }
  .jobs { gap: 88px; }
  .job-shot { padding: 16px; border-radius: 12px; }
  .screen-bar { height: 24px; gap: 5px; }
  .screen-bar span { width: 7px; height: 7px; }
  .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: 12px; }
  .device-visual { height: 260px; padding: 24px 20px 0; }
  .device-copy { padding: 24px; }
  .faq { margin-top: 88px; padding-block: 72px; }
  .faq summary { padding: 18px 20px; font-size: 17px; }
  .faq-answer p { padding: 0 20px 20px; }
  .finale { padding-block: 120px 110px; }
  .pp .finale { margin-top: 88px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 56px; }
  .footer-base { padding-top: 48px; }
  .not-found { padding-top: 72px; padding-bottom: 112px; }
}
