/* apaiir.com — layout on top of tokens.css (design system v1) and components.css (ap-*). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 500; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--action-hover); }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 800; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-md); background: var(--ink); color: var(--surface); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-10); }
.section { position: relative; padding: var(--space-20) 0; overflow: hidden; }
.section--canvas { background: var(--canvas); }
.section--tight-top { padding-top: var(--space-6); }
.section > .wrap { position: relative; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.split--wide { margin-top: var(--space-8); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.split > div > * + * { margin-top: var(--space-5); }

/* type */
.t-display-xl { font-size: 74px; line-height: 74px; font-weight: 800; letter-spacing: -0.045em; }
.t-display { font-size: 44px; line-height: 48px; font-weight: 800; letter-spacing: -0.035em; }
.t-section { font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -0.03em; max-width: 22ch; }
.t-sub { font-size: 24px; line-height: 30px; letter-spacing: -0.02em; max-width: 30ch; }
.t-card { font-size: 18px; line-height: 24px; font-weight: 800; letter-spacing: -0.01em; }
.lead { font-size: 19px; line-height: 29px; color: var(--ink-secondary); max-width: 60ch; }
.ap-kicker { margin-bottom: var(--space-4); }
* + .lead { margin-top: var(--space-4); }
.caption, .fine, .note { font-size: 14px; line-height: 20px; color: var(--ink-secondary); }
.note--strong { font-weight: 800; color: var(--ink); font-size: 16px; }
.sub-h { font-weight: 800; }
.text-link { font-weight: 800; text-decoration: none; }
.text-link::after { content: " →"; }
.w-evidence { color: var(--link); }
.w-emotion { color: var(--emotion-display); }
.card p, .card li { color: var(--ink-secondary); }
.card .t-card + p { margin-top: var(--space-2); }

/* buttons rows */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.cta-row--center { justify-content: center; }
.split .cta-row, .final .cta-row { margin-top: var(--space-6); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
/* In-app browsers (Telegram) and Safari on iOS draw the page under their see-through top bar: above the sticky
   header the page would scroll by. This fill in the header colour covers that strip; in other browsers it sits off screen. */
.site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--surface); pointer-events: none; }
.header-in { display: flex; align-items: center; gap: var(--space-8); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.logo-free { display: none; }
[data-theme="dark"] .logo-tile { display: none; }
[data-theme="dark"] .logo-free { display: block; }
.main-nav { display: flex; gap: var(--space-6); font-size: 15px; font-weight: 600; }
.main-nav a { color: var(--ink-secondary); text-decoration: none; padding: 6px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }
.signin { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.signin:hover { color: var(--ink); text-decoration: underline; }
.theme-btn, .menu-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-secondary); cursor: pointer; }
.theme-btn:hover, .menu-btn:hover { background: var(--surface-muted); color: var(--ink); }
.theme-btn svg, .menu-btn svg { width: 22px; height: 22px; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }
.menu-btn .m-close { display: none; }
.menu-btn[aria-expanded="true"] .m-close { display: block; }
.menu-btn[aria-expanded="true"] .m-open { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-4); padding-bottom: var(--space-6); }
.mobile-menu a:not(.ap-btn) { color: var(--ink); font-weight: 700; font-size: 18px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .ap-btn { margin-top: var(--space-4); }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero--home { padding: var(--space-12) 0 var(--space-16); }
.hero--page { padding: var(--space-16) 0 var(--space-12); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-12); align-items: center; }
.hero-text .lead { margin-top: var(--space-6); }
.trust-line { margin-top: var(--space-4); font-size: 14px; line-height: 20px; color: var(--ink-secondary); }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual--inline { justify-content: center; }
.hero-page-in { position: relative; max-width: 1200px; }
.hero-page-in .lead { margin-top: var(--space-5); }
.strip-wrap { margin-top: var(--space-12); position: relative; }
.bg-art { position: absolute; pointer-events: none; max-width: none; }
.hero--home .hero-art { left: 50%; top: 32%; height: 36%; width: calc(50% + 40vw); }
.hero--home .hero-visual { z-index: 1; }
.hero--home .bg-racing { opacity: 0.26; }
.hero--home .bg-calm { opacity: 0.32; }
h1, h2, h3, .lead, .closing { text-wrap: balance; }
.hero--page .hero-art { right: 0; top: 14%; width: 36%; height: 72%; }
.hero-page-in > h1, .hero-page-in > .lead { max-width: 660px; }
.section-art { right: -6%; top: 0; width: 46%; height: 100%; opacity: 0.8; }
.bg-wick { stroke: var(--ink-tertiary); stroke-width: 2; opacity: 0.22; }
.bg-up { fill: none; stroke: var(--ink-tertiary); stroke-width: 2; opacity: 0.26; }
.bg-down { fill: var(--emotion); opacity: 0.2; }
.bg-ma { fill: none; stroke: var(--pulse-calm); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; opacity: 0.38; }
.bg-racing { fill: none; stroke: var(--emotion); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; opacity: 0.34; }
.bg-calm { fill: none; stroke: var(--pulse-calm); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; opacity: 0.38; }

/* Today card (S1 stand-in) */
.today-card { margin: 0; width: 100%; max-width: 360px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tc-head { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; font-weight: 700; }
.tc-count { color: var(--link); }
.tc-list { display: flex; flex-direction: column; gap: 8px; }
.tc-row { padding: 12px 14px; }
.tc-row .ap-event__ticker { font-size: 16px; }
.tc-row .ap-event__detail { font-size: 13px; line-height: 18px; }
.tc-skipped { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 2px 4px; font-size: 13px; line-height: 18px; color: var(--ink-secondary); }
.tc-see { margin-left: auto; color: var(--link); font-weight: 800; }

/* pulse strip */
.pulse-strip { display: flex; border-radius: 20px; overflow: hidden; }
.ps-hot { width: 46%; background: var(--emotion-bg); padding: 22px 0 18px 28px; display: flex; flex-direction: column; gap: 12px; }
.ps-calm { flex: 1; background: var(--success-bg); padding: 22px 28px 18px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.pulse-strip svg { width: 100%; height: 56px; }
.ps-hot path { fill: none; stroke: var(--emotion); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ps-calm path { fill: none; stroke: var(--pulse-calm); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ps-words { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.ps-word { border-radius: var(--radius-md); padding: 9px 15px; font-weight: 800; font-size: 15px; line-height: 20px; }
.ps-word--hot { background: var(--surface); color: var(--emotion-ink); }
.ps-word--calm { background: var(--action); color: var(--on-action); }

/* cards and lists */
.card { background: var(--surface-raised); border-radius: var(--radius-xl); padding: var(--space-6); }
.section:not(.section--canvas) .card:not(.ap-card--float) { background: var(--surface-sunken); }
.card--accent { background: var(--success-bg) !important; }
.card--accent .t-card { color: var(--success-ink); }
.card--accent p { color: var(--ink); }
.card--wide { padding: var(--space-10); }
.problem { margin-top: var(--space-8); }
.problem-art { display: block; width: 100%; max-width: 300px; height: auto; margin-bottom: var(--space-4); overflow: visible; }
.pa-base, .pa-tick { stroke: var(--line); stroke-width: 1.5; }
.pa-wick { stroke: var(--ink-tertiary); stroke-width: 1.5; }
.pa-up { fill: var(--surface-raised); stroke: var(--ink-tertiary); stroke-width: 1.5; }
.pa-down { fill: var(--ink-tertiary); }
.pa-after, .pa-tip { fill: none; stroke: var(--ink-secondary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa-after { stroke-dasharray: 0.5 6; stroke-width: 2.5; }
.pa-dot { fill: var(--emotion); stroke: var(--surface-raised); stroke-width: 2; }
.pa-pill { fill: var(--emotion-bg); }
.pa-pill-t { fill: var(--emotion-ink); font: 800 12px var(--font-sans); }
.pa-day { fill: none; stroke: var(--ink-tertiary); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.pa-dot--s { stroke-width: 1.5; }
.pa-time { fill: var(--ink-tertiary); font: 500 11px var(--font-mono); }
.closing { margin-top: var(--space-8); font-size: 19px; line-height: 29px; font-weight: 700; max-width: 56ch; }
.dot-list { display: flex; flex-direction: column; gap: var(--space-2); }
.dot-list li { position: relative; padding-left: 20px; color: var(--ink-secondary); }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--action); }
.dot-list--points li { color: var(--ink); font-weight: 600; }
.icon-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.icon-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.icon-list svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.icon-list--yes svg { color: var(--success-ink); }
.icon-list--no svg { color: var(--emotion-ink); }
.icon-list--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); }
.limits { margin-top: var(--space-8); }
.limit-n { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--success-ink) !important; margin-bottom: var(--space-2); }
.limits + .note { margin-top: var(--space-6); }
.mini-cards { margin-top: var(--space-6); }

/* loop */
.loop { margin-top: var(--space-10); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); counter-reset: none; }
.loop--3 { margin-top: var(--space-8); }
.loop-step { display: flex; gap: var(--space-4); align-items: flex-start; }
.loop-step p { color: var(--ink-secondary); margin-top: var(--space-1); }
.loop-n { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--ink); color: var(--surface); font-family: var(--font-mono); font-size: 15px; font-weight: 500; }

/* example card */
.example-card { padding: var(--space-6); max-width: 440px; justify-self: center; }
.ex-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--success-ink); margin-bottom: var(--space-2); }
.example-card .t-card { font-size: 22px; line-height: 28px; }
.example-card p:not(.ex-label) { margin-top: var(--space-3); color: var(--ink-secondary); }
.ex-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.ex-chips .ap-chip { cursor: default; }

/* screenshot placeholder */
.shot-ph { margin: 0; border-radius: var(--radius-xl); background: var(--surface-raised); border: 1.5px dashed var(--line-strong); overflow: hidden; }
.section--canvas .shot-ph { background: var(--surface); }
.shot-ph__chrome { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.shot-ph__chrome span { width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--line); }
.shot-ph__body { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); padding: var(--space-8); }
.shot-ph__code { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--ink-tertiary); }
.shot-ph__title { font-size: 20px; line-height: 26px; font-weight: 800; }
.shot-ph__brief { font-size: 14px; line-height: 20px; color: var(--ink-secondary); max-width: 52ch; }

/* app screenshots (S1–S7): blocks cut from the app, light theme */
.shot { margin: 0; width: 100%; }
.shot img { width: 100%; height: auto; border-radius: var(--radius-xl); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-float); }
/* phone: a screenshot from the iOS Simulator (status bar included) in a drawn iPhone body with the Dynamic Island */
.shot--phone { --pw: 300px; position: relative; width: calc(var(--pw) + 20px); max-width: 100%; margin: 0 auto; padding: 10px;
  background: #0b0f14; border-radius: calc(var(--pw) * 0.125 + 10px);
  box-shadow: inset 0 0 0 1.5px #3a404a, var(--shadow-float); }
.shot--phone img { border: 0; border-radius: calc(var(--pw) * 0.125); box-shadow: none; }
.shot--phone::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(10px + var(--pw) * 0.026); width: calc(var(--pw) * 0.285); height: calc(var(--pw) * 0.083);
  border-radius: 999px; background: #000; }
.shot--panel { max-width: 380px; margin: 0 auto; }
.split--wide .shot + .caption, .shot + .caption { margin-top: var(--space-4); }

/* app lines (Today section) */
.app-lines { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); max-width: 420px; justify-self: center; width: 100%; }
.al-row { display: flex; align-items: center; gap: var(--space-3); padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface-sunken); font-weight: 700; }

/* trust */
.trust { margin-top: var(--space-8); }

/* price teaser and plans */
.price-teaser { background: var(--surface-sunken); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); max-width: 880px; }
.plan { display: flex; flex-direction: column; gap: var(--space-3); border: 1px solid var(--line); }
.plan--best { border: 2px solid var(--action); }
.plan-name { font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--success-ink); }
.plan-price { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.plan-amount { font-size: 54px; line-height: 56px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.plan-per { font-size: 16px; color: var(--ink-secondary); }
.plan-note { color: var(--ink-secondary); margin-bottom: var(--space-3); }
.plan .ap-btn { align-self: flex-start; }
.includes { margin-top: var(--space-6); max-width: 880px; }
.fine { margin-top: var(--space-6); max-width: 880px; }
.teams-line { margin-top: var(--space-6); font-weight: 700; }

/* FAQ */
.faq { margin-top: var(--space-8); max-width: 880px; display: flex; flex-direction: column; gap: var(--space-3); }
.faq details { border-radius: var(--radius-lg); background: var(--surface-raised); }
.section:not(.section--canvas) .faq details { background: var(--surface-sunken); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 800; font-size: 17px; line-height: 24px; border-radius: var(--radius-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-secondary); border-bottom: 2px solid var(--ink-secondary); transform: rotate(45deg); transition: transform 150ms ease-out; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--ink-secondary); max-width: 70ch; }

/* final call */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final .t-section { max-width: 24ch; }
.t-final { font-size: 44px; line-height: 48px; letter-spacing: -0.035em; }
.final-line { margin-top: var(--space-4); font-size: 19px; line-height: 29px; font-weight: 700; color: var(--ink-secondary); }
.final .lead { margin-left: auto; margin-right: auto; }
.final--page { padding: var(--space-12) 0; }
.final--page .t-display { max-width: 22ch; }

/* how it works */
.hsteps { display: flex; flex-direction: column; gap: var(--space-16); }
.hstep { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); max-width: 760px; }
.hstep--visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: none; align-items: center; }
.hstep-text > * + * { margin-top: var(--space-4); }
.hstep-text p:not(.hstep-k) { color: var(--ink-secondary); font-size: 17px; line-height: 27px; }
.hstep-k { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--success-ink); }
.day { margin-top: var(--space-6); display: flex; flex-direction: column; }
.day li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--space-4); padding: 14px 0; border-top: 1px solid var(--line); }
.day li:last-child { border-bottom: 1px solid var(--line); }
.day-t { font-weight: 800; }
.day-d { color: var(--ink-secondary); }
.day + .caption { margin-top: var(--space-4); }

/* product */
.anchor-menu { position: sticky; top: 72px; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.anchor-menu .wrap { display: flex; gap: var(--space-2); overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.anchor-menu a { flex: none; padding: 7px 12px; border-radius: var(--radius-md); background: var(--surface-muted); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.anchor-menu a:hover { background: var(--ink); color: var(--surface); }
.split--visual { align-items: start; }
.prod .split > div:first-child > * + * { margin-top: var(--space-5); }

/* methodology */
.model { align-items: start; }
.read { margin-top: var(--space-8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-10); }
.read li { display: flex; gap: var(--space-4); }
.read p { color: var(--ink-secondary); margin-top: var(--space-1); }

/* about */
.story { max-width: 760px; }
.story p { margin-top: var(--space-5); font-size: 17px; line-height: 28px; color: var(--ink-secondary); }
.timeline { margin-top: var(--space-8); max-width: 760px; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); padding: 16px 0; border-top: 1px solid var(--line); }
.tl-year { font-family: var(--font-mono); font-size: 18px; color: var(--success-ink); }
.mission { margin: 0; max-width: 900px; }
.mission-text { font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; }
.people { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.people li { display: flex; flex-direction: column; }
.people span { color: var(--ink-secondary); }
.grid-2 > div > p { margin-top: var(--space-5); color: var(--ink-secondary); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-10); align-items: start; }
.contact-ways .t-card + * { margin-top: var(--space-3); }
.contact-ways .t-card:not(:first-child) { margin-top: var(--space-8); }
.ways { margin: 0; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--space-2) var(--space-4); }
.ways dt { font-weight: 800; }
.ways dd { margin: 0; color: var(--ink-secondary); }
.company { color: var(--ink-secondary); line-height: 26px; }
.contact-form { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-8); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
select.ap-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-secondary) 50%), linear-gradient(135deg, var(--ink-secondary) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.ap-textarea { height: auto; padding: 12px 14px; resize: vertical; font-family: var(--font-sans); line-height: 24px; }
.form-note { font-size: 13px; line-height: 18px; color: var(--ink-tertiary); }

/* legal */
.legal { max-width: 760px; }
.legal-missing { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--emotion-bg); color: var(--emotion-ink); }
.legal .t-display { margin-bottom: var(--space-3); }
.legal h2 { font-size: 22px; line-height: 28px; margin: var(--space-10) 0 var(--space-3); scroll-margin-top: 96px; }
.legal h3 { font-size: 17px; line-height: 24px; font-weight: 800; color: var(--ink); margin-top: var(--space-6); }
.legal p, .legal li { color: var(--ink-secondary); margin-top: var(--space-3); }
.legal ul { list-style: disc; padding-left: 1.25em; margin-top: var(--space-2); }
.legal ul li { margin-top: var(--space-2); padding-left: 4px; }
.legal li::marker { color: var(--ink-tertiary); }
.legal a { overflow-wrap: anywhere; }
.legal-date { font-family: var(--font-mono); font-size: 13px; line-height: 18px; letter-spacing: 0.02em; color: var(--ink-tertiary); }
.legal .legal-date { margin-top: 0; color: var(--ink-tertiary); }
.legal-important { margin-top: var(--space-6); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--surface-muted); }
.legal .legal-important p { margin: 0; color: var(--ink); }
.legal .legal-address { color: var(--ink); line-height: 26px; }
.legal .legal-note { font-style: italic; }
.legal .form-line { display: flex; align-items: flex-end; gap: var(--space-3); color: var(--ink); }
.legal .form-line::after { content: ""; flex: 1 1 40px; min-width: 40px; border-bottom: 1px solid var(--line-strong); margin-bottom: 5px; }

/* footer */
.footer-pulse-wrap { padding-top: var(--space-12); }
.footer-pulse { display: block; width: 100%; height: 32px; }
.footer-pulse polyline { fill: none; stroke: var(--pulse-calm); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; opacity: 0.85; vector-effect: non-scaling-stroke; }
.footer-pulse--short { display: none; }
.site-footer { margin-top: var(--space-8); padding: var(--space-12) 0 var(--space-10); border-top: 1px solid var(--line); background: var(--surface); }
/* the pulse is the divider: no second line under it */
.site-footer--pulse { border-top: 0; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
.foot-tag { margin-top: var(--space-4); font-weight: 700; color: var(--ink-secondary); }
.foot-h { font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-tertiary); margin-bottom: var(--space-3); }
.foot-col li + li { margin-top: var(--space-2); }
.foot-col a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-col a:hover { color: var(--link); }
.foot-disclaimer { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--ink-secondary); max-width: 110ch; }
.foot-bottom { margin-top: var(--space-4); font-size: 13px; line-height: 18px; color: var(--ink-tertiary); }
.foot-link { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.foot-link:hover { color: var(--ink-secondary); }

/* cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16); font-size: 14px; line-height: 20px; color: var(--ink-secondary); }
.cookie[hidden] { display: none; }
.cookie-actions { display: flex; gap: var(--space-2); flex: none; }

/* responsive */
@media (max-width: 1100px) {
  .main-nav { gap: var(--space-4); }
  .header-cta { display: none; }
}
@media (max-width: 960px) {
  .wrap { padding: 0 var(--space-6); }
  .main-nav, .signin { display: none; }
  .header-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .hero-grid, .split, .split--wide, .hstep--visual, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero--home .hero-art { display: none; }
  .hero--page .hero-art { width: 70%; opacity: 0.5; }
  .section-art { width: 80%; opacity: 0.45; }
  .grid-3, .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .t-display-xl { font-size: 56px; line-height: 58px; }
}
@media (max-width: 640px) {
  .footer-pulse { display: none; }
  .footer-pulse--short { display: block; height: 36px; }
  .shot--phone { --pw: 260px; }
  .hero-art, .section-art { display: none; }
  .wrap { padding: 0 var(--space-4); }
  .section { padding: var(--space-16) 0; }
  .hero--home { padding: var(--space-8) 0 var(--space-12); }
  .hero--page { padding: var(--space-10) 0 var(--space-8); }
  .t-display-xl { font-size: 44px; line-height: 46px; letter-spacing: -0.04em; }
  .t-display, .t-final { font-size: 36px; line-height: 40px; }
  .t-section { font-size: 28px; line-height: 34px; }
  .lead { font-size: 17px; line-height: 27px; }
  .mission-text { font-size: 24px; line-height: 32px; }
  .grid-2, .grid-3, .grid-4, .loop, .plans, .read, .form-row, .icon-list--cols { grid-template-columns: minmax(0, 1fr); }
  .card--wide { padding: var(--space-6); }
  .contact-form { padding: var(--space-5); }
  .pulse-strip { flex-direction: column; }
  .ps-hot { width: 100%; padding: 18px 20px 14px; }
  .ps-calm { padding: 18px 20px 14px; }
  .day li { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie { flex-direction: column; align-items: stretch; }
  .cta-row .ap-btn { flex: 1 1 auto; }
}
