/* Poikilingo website - layout + components (canvas artboards Home, SiteHeader, SiteFooter,
   SiteSignup; D-20261019-homedesignfinal). No inline styles anywhere: the CSP allows only
   'self' stylesheets. Colours only via tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body);
  font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--brand-indigo); outline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter);
  padding-right: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 12px 16px;
  z-index: 10; font-weight: 800; }
.skip-link:focus { left: 16px; top: 16px; }

/* Type */
.h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05; }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.1; }
.h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--body); max-width: 600px; }
.lead--sm { font-size: 18px; line-height: 1.6; max-width: 720px; }
.small { font-size: 14px; color: var(--body); }
.label { font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--link); }
.label--plum { color: var(--label-on-cream); }
.label--muted { color: var(--muted); font-size: 13px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.marker { color: var(--brand-red); background: linear-gradient(transparent 64%, var(--brand-yellow) 64%);
  padding: 0 4px; }

/* Buttons, tags, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 22px; border-radius: var(--radius-pill); font-family: var(--font-body);
  font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  text-align: center; }
.btn--lg { font-size: 18px; padding: 14px 28px; min-height: 54px; }
.btn--primary { background: var(--cta); color: var(--cta-ink); }
.btn--primary:hover { background: #D8264A; color: var(--cta-ink); }
.btn--outline { background: var(--surface); color: var(--ink); border: 2px solid var(--dark); }
.btn--outline:hover { color: var(--ink); background: var(--tint-periwinkle); }
.btn--dark { background: var(--dark); color: #FFFFFF; font-size: 17px; min-height: 52px; }
.btn--dark:hover { background: #363D9C; color: #FFFFFF; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tag { align-self: flex-start; display: inline-block; border-radius: var(--radius-pill);
  font-weight: 800; font-size: 14px; padding: 6px 14px; }
.tag--yellow { background: var(--tag); color: var(--ink); }
.tag--live { background: var(--cta); color: #FFFFFF; font-size: 12px; padding: 3px 10px; }
.tag--coming_soon { background: var(--tag); color: var(--ink); font-size: 12px; padding: 3px 10px; }
.pill { border-radius: var(--radius-pill); padding: 8px 16px; font-weight: 800; }
.pill--yellow { background: var(--brand-yellow); }
.pill--pink { background: var(--tint-pink); }
.pill--teal { background: var(--tint-teal); }
.pill--red { background: var(--brand-red); color: #FFFFFF; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 800; }
.chip { background: var(--surface); border-radius: var(--radius-pill); padding: 4px 10px; }

/* Placeholders (homepage.md section 4) + missing assets: always visible, never mistaken for copy */
.ph { background: repeating-linear-gradient(-45deg, #FFF5B9, #FFF5B9 6px, #FFE4AF 6px, #FFE4AF 12px);
  color: var(--ink); border: 2px dashed var(--brand-plum); border-radius: 8px; padding: 0 6px;
  font-weight: 800; font-family: var(--font-body); font-size: 0.9em; }
.asset-missing { display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; min-height: 44px; padding: 6px; border: 2px dashed var(--muted);
  border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.25;
  background: rgba(255, 255, 255, 0.7); }
.translation-banner { background: var(--tint-yellow); text-align: center; padding: 8px 16px;
  font-size: 14px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--header-rule); }
.brand-stripe { display: flex; height: 6px; }
.brand-stripe span { flex: 1; }
.brand-stripe span:nth-child(1) { background: var(--brand-red); }
.brand-stripe span:nth-child(2) { background: var(--brand-yellow); }
.brand-stripe span:nth-child(3) { background: var(--brand-pink); }
.brand-stripe span:nth-child(4) { background: var(--brand-teal); }
.brand-stripe span:nth-child(5) { background: var(--brand-periwinkle); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 14px;
  padding-bottom: 14px; }
.site-nav__logo { display: flex; min-height: 44px; min-width: 120px; text-decoration: none; }
.site-nav__logoimg { height: 44px; width: auto; }
.site-nav__logo .asset-missing { width: 210px; height: 44px; font-size: 11px; }
.site-nav__links { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 320px; font-weight: 700; }
.site-nav__links a { color: var(--ink); text-decoration: none; display: inline-block; padding: 10px 0; }
.site-nav__links a:hover { color: var(--link); }
.lang { position: relative; font-weight: 700; }
.lang summary { cursor: pointer; list-style: none; padding: 10px 6px; min-height: 44px; display: flex;
  align-items: center; gap: 4px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: "\25BE"; }
.lang ul { position: absolute; right: 0; top: 100%; background: var(--surface); border-radius: 14px;
  box-shadow: 0 8px 24px rgba(38, 42, 92, 0.18); padding: 8px; z-index: 5; min-width: 150px; }
.lang a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.lang a:hover, .lang a[aria-current] { background: var(--tint-periwinkle); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 56px;
  padding-bottom: 32px; }
.hero__copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.hero__art { flex: 1 1 360px; display: flex; justify-content: center; position: relative; }
.hero__circle { width: 400px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: var(--brand-yellow); border: 10px solid var(--brand-pink); display: flex;
  align-items: center; justify-content: center; overflow: hidden; padding: 4%; }
.hero__img { width: 92%; }
.hero__circle .asset-missing { width: 70%; height: 40%; }
.star { position: absolute; width: 26px; height: 26px; }
.star--red { fill: var(--brand-red); }
.star--yellow { fill: var(--brand-yellow); }
.star--pink { fill: var(--brand-pink); }
.star--teal { fill: var(--brand-teal); }
.star--peri { fill: var(--brand-periwinkle); }
.s1 { top: 4%; left: 6%; width: 34px; height: 34px; }
.s2 { top: 16%; right: 4%; }
.s3 { bottom: 10%; left: 2%; width: 30px; height: 30px; }
.s4 { bottom: 4%; right: 14%; width: 22px; height: 22px; }
.s5 { top: 46%; right: 0; width: 18px; height: 18px; }

/* Trust strip */
.trust { padding-bottom: 48px; }
.trust__list { padding: 18px 24px; background: var(--surface); border-radius: 20px; display: flex;
  flex-wrap: wrap; justify-content: space-around; gap: 14px 28px; font-size: 16px; }

/* Bands */
.band { padding: 72px 0; }
.band--white { background: var(--surface); }

/* Core features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.feature-card { border-radius: var(--radius-card); padding: 26px; display: flex; flex-direction: column;
  gap: 10px; background: var(--brand-cream); }
.feature-card p { color: var(--body); line-height: 1.55; }
.feature-card .h3 { font-size: 23px; }
.feature-card__n { width: 44px; height: 44px; border-radius: 50%; font-family: var(--font-display);
  font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  background: var(--brand-red); color: #FFFFFF; }
/* canvas: six tints and six solid badge colours, cycling */
.feature-card:nth-child(6n+1) { background: var(--brand-cream); }
.feature-card:nth-child(6n+2) { background: var(--tint-teal); }
.feature-card:nth-child(6n+3) { background: var(--tint-periwinkle); }
.feature-card:nth-child(6n+4) { background: var(--tint-pink); }
.feature-card:nth-child(6n+5) { background: var(--tint-orchid); }
.feature-card:nth-child(6n+6) { background: var(--tint-yellow); }
.feature-card:nth-child(6n+1) .feature-card__n { background: var(--brand-red); color: #FFFFFF; }
.feature-card:nth-child(6n+2) .feature-card__n { background: var(--brand-teal); color: var(--ink); }
.feature-card:nth-child(6n+3) .feature-card__n { background: var(--brand-periwinkle); color: #FFFFFF; }
.feature-card:nth-child(6n+4) .feature-card__n { background: var(--brand-pink); color: var(--ink); }
.feature-card:nth-child(6n+5) .feature-card__n { background: var(--brand-orchid); color: var(--ink); }
.feature-card:nth-child(6n+6) .feature-card__n { background: var(--brand-yellow); color: var(--ink); }

/* Karousel */
.karousel { position: relative; background: var(--dark); color: #FFFFFF; border-radius: var(--radius-panel);
  padding: 48px; border-bottom: 10px solid var(--brand-yellow); display: flex; flex-wrap: wrap; gap: 40px;
  align-items: center; }
.karousel__copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 16px; }
.karousel__sub { font-size: 18px; line-height: 1.55; color: var(--footer-text); }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.perk { background: var(--dark-card); border-radius: 18px; padding: 16px 18px; display: flex;
  flex-direction: column; gap: 4px; }
.perk strong { font-size: 17px; }
.perk span { font-size: 15px; line-height: 1.45; }
.ticket { font-family: var(--font-display); font-size: 30px; font-weight: 700; background: var(--brand-yellow);
  color: var(--ink); border: 3px dashed var(--brand-red); border-radius: 14px; padding: 6px 16px; }
.ticket__per { font-size: 16px; }
/* D-20261122-siteround2: 2 icons per row, bigger */
.karousel__icons { flex: 0 1 300px; display: grid; grid-template-columns: repeat(2, 132px); gap: 18px;
  justify-content: center; align-content: center; }
.app-icon { border-radius: var(--radius-app-icon); overflow: hidden; background: var(--app-tint, var(--brand-cream));
  display: flex; align-items: center; justify-content: center; color: var(--ink); text-align: center;
  flex: none; }
.app-icon--karousel { width: 132px; height: 132px; font-size: 12px; font-weight: 800; }
.app-icon--karousel > a { display: block; width: 100%; height: 100%; }
.app-icon--card { width: 88px; height: 88px; font-size: 11px; font-weight: 800; }
.app-icon__img { width: 100%; height: 100%; object-fit: cover; }
.app-icon .ph { font-size: 10px; padding: 0 3px; line-height: 1.3; }
.app-icon .asset-missing { font-size: 9px; padding: 2px; border-width: 1px; border-radius: 8px; }
.k1 { top: 18px; right: 22px; width: 30px; height: 30px; }
.k2 { bottom: 22px; right: 38%; width: 22px; height: 22px; }
.k3 { top: 46%; right: 6px; width: 18px; height: 18px; }

/* Apps grid */
/* D-20261122-siteround2: 2 per row where the width allows */
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.app-card { background: var(--ground); border-radius: 26px; border-top: 8px solid var(--app-accent, var(--brand-yellow));
  padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.app-card__head { display: flex; gap: 14px; align-items: center; }
.app-card__title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.app-card__name { color: inherit; text-decoration: none; }
.app-card__name:hover, .app-card__name:focus-visible { text-decoration: underline; }
.app-card__blurb { font-size: 15px; line-height: 1.5; color: var(--body); }
.app-card__cta, .more { margin-top: auto; align-self: flex-start; font-weight: 800; display: inline-block;
  padding: 10px 0; }

/* Story */
.story { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.story__copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 14px; }
.story__side { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.team__card { background: var(--surface); border-radius: 18px; padding: 16px; display: flex;
  flex-direction: column; }
.team--photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team--photos .team__card { align-items: center; text-align: center; gap: 12px; padding: 20px 16px; }
.team__img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; background: var(--tint-pink); }
.team__text { display: flex; flex-direction: column; }
.team__card span { font-size: 14px; color: var(--body); }
.partners { display: flex; flex-wrap: wrap; gap: 10px; }
.partners li { background: var(--tint-periwinkle); border-radius: 12px; padding: 10px 14px; font-weight: 700;
  font-size: 14px; }

/* Reviews */
.stars { color: var(--brand-red); font-size: 0.7em; white-space: nowrap; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.review { margin: 0; background: var(--ground); border-radius: var(--radius-card); padding: 24px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.review figcaption { margin-top: 12px; font-weight: 800; font-size: 15px; }

/* From the blog (Home, P13 - only rendered when the build read real posts, S35 W5) */
.blog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.blog-head .more { padding: 0; font-size: 17px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.blog-card { background: var(--surface); border-radius: var(--radius-card); overflow: hidden; text-decoration: none;
  color: var(--ink); display: flex; flex-direction: column; }
.blog-card:hover .blog-card__title, .blog-card:focus-visible .blog-card__title { color: var(--link); }
.blog-card__img { display: block; height: 150px; background: var(--highlight); }
.blog-card--teal .blog-card__img { background: var(--tint-teal); }
.blog-card--peri .blog-card__img { background: var(--tint-periwinkle); }
.blog-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card__title { padding: 18px 20px; font-size: 18px; line-height: 1.35; }

/* Sign-up (SiteSignup) */
.signup { padding: 72px var(--gutter); }
.signup__box { max-width: 1000px; margin: 0 auto; background: var(--brand-yellow); border-radius: var(--radius-panel);
  border: 4px dashed var(--brand-red); padding: 44px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.signup__copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.signup__copy .h2 { font-size: clamp(28px, 4vw, 36px); }
.signup__copy p { font-size: 17px; line-height: 1.55; color: var(--body); }
.signup__form { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.signup__form label { font-weight: 800; font-size: 15px; }
.signup__form input[type="email"], .signup__form select { min-height: 48px; border-radius: 14px; border: 2px solid var(--input-border);
  padding: 0 16px; font: 600 16px var(--font-body); color: var(--ink); background: #FFFFFF; }
.signup__note { font-size: 13px; color: var(--body); }
.signup__error { font-size: 15px; font-weight: 700; color: #A3122F; background: #FFFFFF;
  border-radius: 12px; padding: 8px 12px; }
.signup__done { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF;
  border-radius: 24px; padding: 24px; border: 3px dashed var(--brand-red); }
.signup__done p { font-size: 17px; line-height: 1.55; color: var(--body); }
.signup__done:focus { outline: none; }
.signup__form[hidden], .signup__done[hidden], .signup__error[hidden] { display: none; }
.signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer (SiteFooter) */
.site-footer { background: var(--dark); color: var(--footer-text); padding: 48px 0 32px; }
.site-footer__inner { display: flex; flex-direction: column; gap: 32px; }
.site-footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.social { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-red); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; text-decoration: none; }
.social:hover { color: #FFFFFF; background: #D8264A; }
.social svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; }
.social__letter { font: 800 26px var(--font-body); }
.social__letter--sm { font-size: 21px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 15px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 300px; }
.site-footer__brandname { font-family: var(--font-display); font-size: 24px; color: #FFFFFF; font-weight: 700;
  text-decoration: none; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 8px; font-weight: 700; margin-top: 8px; }
.site-footer__col a { color: #FFFFFF; }
.site-footer__col a:hover { color: var(--brand-yellow); }
.site-footer__head { color: var(--brand-yellow); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer__bottom { border-top: 1px solid var(--footer-rule); padding-top: 20px; display: flex; flex-wrap: wrap;
  gap: 12px 28px; justify-content: space-between; font-size: 14px; }
.site-footer__langs { font-weight: 700; }
.site-footer__langs a { color: #FFFFFF; }
.site-footer__langs a[aria-current] { color: var(--brand-yellow); }

/* 404 */
.notfound { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.notfound__langs { font-weight: 700; }

/* Phone (canvas PAGE rule: stacks at phone width, 16px gutter) */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .band, .signup { padding-top: 48px; padding-bottom: 48px; }
  .hero { padding-top: 32px; gap: 28px; }
  .hero__copy, .hero__art, .karousel__copy, .story__copy, .story__side, .signup__copy, .signup__form {
    flex-basis: 100%; }
  .hero__circle { width: 280px; }
  .karousel { padding: 28px 20px; border-radius: 28px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .karousel__icons { grid-template-columns: repeat(2, 112px); }
  .app-icon--karousel { width: 112px; height: 112px; }
  .team__img { width: 104px; height: 104px; }
  .signup__box { padding: 28px 20px; border-radius: 28px; }
  .trust__list { padding: 14px; justify-content: flex-start; gap: 10px; font-size: 15px; }
  .site-nav__cta { width: 100%; order: 4; }
  .site-nav__links { flex-basis: 100%; order: 3; gap: 0 16px; }
  .lang { margin-left: auto; }
  .btn--lg { width: 100%; }
  .ticket { font-size: 26px; }
}
