/* Kaizo landing page (/, /fr/). Colors: palette.css only (light / dark / system).
   No inline styles anywhere (CSP style-src 'self'). Motion only under prefers-reduced-motion: no-preference. */

@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-BlackItalic.woff2") format("woff2"), url("fonts/BarlowCondensed-BlackItalic.ttf") format("truetype"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"), url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"), url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.woff2") format("woff2"), url("fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.landing { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .2px; }
h2 { font-size: clamp(42px, 6.4vw, 78px); line-height: .92; margin-bottom: 20px; }
h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1; margin-bottom: 10px; }
b, strong { font-weight: 700; color: var(--text); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 40em; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }

/* ------------------------------------------------------------ accessibility */
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--amber); color: var(--on-orange); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; border: 2px solid var(--orange); transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:hover { background: var(--orange-hover); box-shadow: var(--btn-glow); transform: translateY(-1px); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--ghost-line); }
.btn-ghost:hover { background: var(--hover); box-shadow: none; }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.top-bar { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo img { display: block; height: 38px; width: auto; }
.foot-brand .logo img { height: 44px; }
.top-nav { display: none; gap: 4px; margin-left: auto; }
.top-nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.top-nav a:hover { color: var(--text); background: var(--hover); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-nav + .top-actions { margin-left: 8px; }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); }
.lang:hover { border-color: var(--ghost-line); }
.lang-short { display: none; }
@media (max-width: 420px) { .lang-long { display: none; } .lang-short { display: inline; } }
@media (min-width: 980px) { .top-nav { display: flex; } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: clip; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); background: var(--hero-glow), var(--night); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--grad); transform: skewX(-20deg); }
.hero h1 { font-size: clamp(56px, 12.5vw, 128px); line-height: .86; margin-bottom: 24px; overflow-wrap: break-word; }
.hero-lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note { font-size: 14px; color: var(--muted); margin: 0; }

.hero-visual { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 4 / 5; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--amber) 0%, var(--orange) 55%); clip-path: polygon(20% 0, 29% 0, 9% 100%, 0 100%); }
.hero-photo { position: absolute; inset: 0; margin: 0; clip-path: polygon(33% 0, 100% 0, 100% 100%, 13% 100%); background: var(--photo-ink); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: var(--hero-photo-shade); }
.hero-phone { position: absolute; left: -2%; bottom: -4%; width: 40%; }

.pillars { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; }
.pillars a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip-bg); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.pillars a::before { content: ""; width: 8px; height: 8px; margin-right: 10px; border-radius: 2px; background: var(--grad); transform: skewX(-20deg); }
.pillars a:hover { border-color: var(--orange); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero-visual { max-width: none; }
}

/* ------------------------------------------------------------ phone frame (pure CSS) */
.phone { margin: 0; padding: 7px; border-radius: 34px; background: var(--phone-frame); box-shadow: var(--phone-shadow); }
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; background: var(--photo-ink); }
@media (max-width: 600px) { .phone { padding: 5px; border-radius: 26px; } .phone img { border-radius: 21px; } }

/* ------------------------------------------------------------ feature sections */
.feature { position: relative; padding: clamp(72px, 10vw, 140px) 0; overflow: clip; }
.feature + .feature { padding-top: clamp(24px, 4vw, 60px); }
.feature-grid { display: grid; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.kicker span { display: inline-grid; place-items: center; min-width: 46px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--grad); color: var(--on-orange); font: italic 900 20px/1 var(--display); letter-spacing: 0; transform: skewX(-12deg); }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.ticks .ico { flex: none; width: 26px; height: 26px; padding: 4px; margin-top: 1px; border-radius: 8px; background: var(--tick-bg); color: var(--orange); stroke-width: 3; }
.fineprint { margin-top: 22px; font-size: 14px; color: var(--muted); border-left: 3px solid var(--cyan); padding-left: 12px; }

.feature-visual { position: relative; }
.feature-visual::before { content: ""; position: absolute; left: 6%; right: 6%; top: 8%; bottom: 8%; background: var(--grad); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); opacity: .22; filter: blur(2px); }
.duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: start; max-width: 540px; margin: 0 auto; }
.duo .back { margin-top: 22%; }

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .feature-text { order: 2; }
}

/* AI coach section: cyan accents (AI colour of the brand) */
#coach .kicker span { background: var(--cyan); color: var(--on-cyan); }
#coach .ticks .ico { background: var(--cyan-soft); color: var(--cyan); }
#coach .feature-visual::before { background: linear-gradient(120deg, var(--cyan), var(--cyan-soft)); opacity: .18; }
#coach .grad, #coach h2 { text-shadow: none; }

/* ------------------------------------------------------------ bento cards */
.bento { display: grid; gap: 20px; }
.card { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-2), var(--ink)); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.bento-card, .duo-card { display: flex; flex-direction: column; overflow: hidden; }
.card-text { padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 36px) 0; }
.card-text p { color: var(--muted); margin: 0; max-width: 32em; }
.peek { position: relative; height: clamp(300px, 34vw, 400px); margin-top: 28px; overflow: hidden; }
.peek .phone { width: min(62%, 300px); margin: 0 auto; }
.peek::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to top, var(--ink), transparent); pointer-events: none; }
.bento-card::before, .duo-card::before { content: ""; position: absolute; right: -30px; bottom: 60px; width: 180px; height: 220px; background: var(--grad); clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%); opacity: .5; }
@media (min-width: 768px) { .bento { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ photo band */
.band { position: relative; margin-top: clamp(72px, 10vw, 140px); min-height: clamp(380px, 50vw, 620px); display: flex; align-items: flex-end; overflow: clip; background: var(--photo-ink); color: var(--on-photo); }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.band-shade { position: absolute; inset: 0; background: var(--photo-shade); }
.band-shade::after { content: ""; position: absolute; top: 0; bottom: 0; right: 14%; width: 9%; background: var(--grad-v); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); opacity: .9; }
.band-text { position: relative; padding-top: 56px; padding-bottom: clamp(40px, 6vw, 72px); }
.band-text h2 { font-size: clamp(54px, 10vw, 128px); line-height: .86; margin-bottom: 14px; }
.band-text p { font-size: clamp(18px, 1.8vw, 22px); color: var(--on-photo); max-width: 26em; margin: 0; }

/* ------------------------------------------------------------ any dish (light section) */
.dishes { background: var(--light); color: var(--light-text); padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow: clip; }
.dishes::before { content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 10px; background: var(--grad); }
.dishes b, .dishes strong { color: var(--light-text); }
.dishes .lead, .dishes .ticks li { color: var(--light-muted); }
.dishes .kicker { color: var(--light-muted); }
.dishes .ticks .ico { background: var(--tick-bg); color: var(--orange-readable); }
.dishes :focus-visible { outline-color: var(--orange-readable); }
.dishes-grid { display: grid; gap: 48px; align-items: center; }
.dishes-visual { position: relative; padding-bottom: 12%; padding-right: 14%; }
.dishes-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%); }
.dishes-phone { position: absolute; right: 0; bottom: 0; width: 32%; }
@media (min-width: 960px) { .dishes-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ------------------------------------------------------------ week + support */
.duo-section { padding: clamp(72px, 10vw, 140px) 0 0; }

/* ------------------------------------------------------------ how it works */
.how { padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); }
.how-grid { display: grid; gap: 48px; align-items: center; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 26px; counter-reset: none; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
.step-num { grid-row: 1 / span 2; font: italic 900 72px/.8 var(--display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 6px; min-width: 44px; }
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.how-photo { margin: 0; position: relative; }
.how-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.how-photo::after { content: ""; position: absolute; left: 0; bottom: -14px; width: 40%; height: 8px; background: var(--grad); transform: skewX(-24deg); }
@media (min-width: 960px) { .how-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ------------------------------------------------------------ privacy */
.privacy { padding: clamp(64px, 8vw, 110px) 0; background: linear-gradient(180deg, var(--night), var(--ink)); border-top: 1px solid var(--line); }
.privacy-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.privacy-grid li { padding: 26px 24px; }
.privacy-grid .ico { width: 46px; height: 46px; padding: 11px; margin-bottom: 18px; border-radius: 14px; background: var(--grad); color: var(--on-orange); }
.privacy-grid p { margin: 0; color: var(--muted); font-size: 16px; }
.privacy-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 32px 0 0; }
.privacy-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.privacy-links .ico { width: 18px; height: 18px; color: var(--orange); }
@media (min-width: 640px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .privacy-grid { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------ FAQ */
.faq { padding: clamp(64px, 8vw, 110px) 0; background: var(--ink); }
.faq-grid { display: grid; gap: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; cursor: pointer; list-style: none; padding: 22px 52px 22px 0; font-weight: 700; font-size: 18px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 8px; background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat, var(--tick-bg); color: var(--orange); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 46em; }
.faq details a { color: var(--text); text-decoration-color: var(--orange); text-underline-offset: 3px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } .faq h2 { position: sticky; top: 100px; } }

/* ------------------------------------------------------------ final CTA */
.final { position: relative; overflow: clip; padding: clamp(88px, 12vw, 160px) 0; background: var(--night); text-align: center; }
.final-slash { position: absolute; inset: 0; background: var(--grad-v); clip-path: polygon(58% 0, 74% 0, 42% 100%, 26% 100%); opacity: .9; }
.final-slash::after { content: ""; position: absolute; inset: 0; background: var(--final-shade); }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 84px; height: auto; margin-bottom: 26px; }
.final h2 { font-size: clamp(48px, 8.5vw, 108px); line-height: .88; max-width: 12em; text-shadow: var(--final-text-shadow); }
.final p { font-size: clamp(18px, 1.8vw, 21px); text-shadow: var(--final-text-shadow); }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin: 10px 0 22px; padding: 14px 26px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font-weight: 700; text-shadow: none !important; box-shadow: var(--badge-shadow); }
.badge .ico { width: 20px; height: 20px; }
.final-contact { margin: 0; font-size: 16px !important; color: var(--text); }
.final-contact a { font-weight: 700; text-decoration-color: var(--orange); text-underline-offset: 4px; }

/* ------------------------------------------------------------ footer */
.foot-l { background: var(--night); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin: 14px 0 0; color: var(--muted); max-width: 22em; }
.foot-l h2 { font: 700 12px/1.2 Inter, sans-serif; font-style: normal; letter-spacing: 2px; color: var(--muted); margin: 0 0 14px; }
.foot-l ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-l ul a, .foot-l ul span { display: inline-block; padding: 6px 0; }
.foot-l ul a { color: var(--text); text-decoration: none; }
.foot-l ul a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.foot-l ul span[aria-current] { color: var(--muted); }
.foot-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; color: var(--muted); font-size: 13px; }
.foot-bottom p { margin: 0; }
.foot-bottom::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line); }
.credits a { color: var(--muted); text-underline-offset: 3px; }
.credits a:hover { color: var(--text); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }

/* ------------------------------------------------------------ motion (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .14s; }
  .hero-text > :nth-child(4) { animation-delay: .22s; }
  .hero-text > :nth-child(5) { animation-delay: .3s; }
  .hero-photo { animation: wipe 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-visual::before { animation: fade 1.2s .2s ease both; }
  .hero-phone { animation: rise 1s .35s cubic-bezier(.2, .7, .2, 1) both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { clip-path: polygon(33% 0, 33% 0, 13% 100%, 13% 100%); } to { clip-path: polygon(33% 0, 100% 0, 100% 100%, 13% 100%); } }
@keyframes reveal { from { opacity: .001; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ print */
@media print {
  .top, .hero-visual, .band, .final-slash, .peek, .feature-visual { display: none; }
  body.landing { background: var(--light); color: var(--light-text); }
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 700px) {
  .band-shade::after { right: -4%; width: 12%; opacity: .75; }
  .band { align-items: flex-end; }
}

/* lot 9: "Pricing" next to the language link on phones (in the nav from 980 px) */
.top-pricing { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 6px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.top-pricing[aria-current="page"], .top-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }
@media (min-width: 980px) { .top-pricing { display: none; } }

/* beta: header call to action (long label, short one on phones), final badge as a link */
.cta-short { display: none; }
@media (max-width: 560px) { .cta-long { display: none; } .cta-short { display: inline; } }
a.badge { text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
a.badge:hover { background: var(--orange-hover); transform: translateY(-1px); }
