/* One look per country: its own action colour, ground wash and a pattern drawn from local craft.
   The pattern is a faint drawn tile behind the hero and the soft sections, never a picture of a symbol. */
html[data-country="usa"]:not([data-theme="dark"]) { --p-bg: #f6f8fc; --p-surface: #e8edf8; --p-action: #2c4a86; --p-accent: #bcd0f5; --p-accent-ink: #1f2a24; --p-inv-bg: color-mix(in oklab, #2c4a86 78%, #101512); --p-inv-surface: color-mix(in oklab, #2c4a86 66%, #101512); --pc-sel: color-mix(in oklab, #bcd0f5 40%, #fff); --pc-sel-line: #bcd0f5; --pc-on: #2c4a86; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='currentColor'%3E%3Ccircle cx='20' cy='20' r='1.6'/%3E%3C/svg%3E"); }
html[data-country="uk"]:not([data-theme="dark"]) { --p-bg: #f7f8fb; --p-surface: #e9ecf5; --p-action: #2b3f6e; --p-accent: #c6d0ea; --p-accent-ink: #1f2a24; --p-inv-bg: color-mix(in oklab, #2b3f6e 78%, #101512); --p-inv-surface: color-mix(in oklab, #2b3f6e 66%, #101512); --pc-sel: color-mix(in oklab, #c6d0ea 40%, #fff); --pc-sel-line: #c6d0ea; --pc-on: #2b3f6e; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Cpath d='M0 20h40M20 0v40'/%3E%3C/svg%3E"); }
html[data-country="bangladesh"]:not([data-theme="dark"]) { --p-bg: #fbf7f0; --p-surface: #f2ece1; --p-action: #1d6b58; --p-accent: #a1ffcb; --p-accent-ink: #1f2a24; --p-inv-bg: color-mix(in oklab, #1d6b58 78%, #101512); --p-inv-surface: color-mix(in oklab, #1d6b58 66%, #101512); --pc-sel: color-mix(in oklab, #a1ffcb 40%, #fff); --pc-sel-line: #a1ffcb; --pc-on: #1d6b58; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3Ccircle cx='36' cy='36' r='13'/%3E%3Cpath d='M36 4c4 8 4 14 0 19M36 68c-4-8-4-14 0-19M4 36c8-4 14-4 19 0M68 36c-8 4-14 4-19 0'/%3E%3C/svg%3E"); }
html[data-country="india"]:not([data-theme="dark"]) { --p-bg: #fcf6ee; --p-surface: #f6e9d8; --p-action: #a8481a; --p-accent: #ffd9a8; --p-accent-ink: #1f2a24; --p-inv-bg: color-mix(in oklab, #a8481a 78%, #101512); --p-inv-surface: color-mix(in oklab, #a8481a 66%, #101512); --pc-sel: color-mix(in oklab, #ffd9a8 40%, #fff); --pc-sel-line: #ffd9a8; --pc-on: #a8481a; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Cpath d='M32 8c8 8 8 16 0 24-8-8-8-16 0-24ZM8 32c8-8 16-8 24 0-8 8-16 8-24 0ZM56 32c-8 8-16 8-24 0 8-8 16-8 24 0ZM32 56c-8-8-8-16 0-24 8 8 8 16 0 24Z'/%3E%3C/svg%3E"); }
html[data-country="pakistan"]:not([data-theme="dark"]) { --p-bg: #f7faf5; --p-surface: #e6f1e5; --p-action: #146b3e; --p-accent: #b5f0c8; --p-accent-ink: #1f2a24; --p-inv-bg: color-mix(in oklab, #146b3e 78%, #101512); --p-inv-surface: color-mix(in oklab, #146b3e 66%, #101512); --pc-sel: color-mix(in oklab, #b5f0c8 40%, #fff); --pc-sel-line: #b5f0c8; --pc-on: #146b3e; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3Ccircle cx='28' cy='28' r='2.5'/%3E%3C/svg%3E"); }
html[data-country="indonesia"]:not([data-theme="dark"]) { --p-bg: #fcf7f4; --p-surface: #f5e8e2; --p-action: #a32a2a; --p-accent: #ffd0c8; --p-accent-ink: #1f2a24; --p-inv-bg: color-mix(in oklab, #a32a2a 78%, #101512); --p-inv-surface: color-mix(in oklab, #a32a2a 66%, #101512); --pc-sel: color-mix(in oklab, #ffd0c8 40%, #fff); --pc-sel-line: #ffd0c8; --pc-on: #a32a2a; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Cellipse cx='30' cy='15' rx='7' ry='13'/%3E%3Cellipse cx='30' cy='45' rx='7' ry='13'/%3E%3Cellipse cx='15' cy='30' rx='13' ry='7'/%3E%3Cellipse cx='45' cy='30' rx='13' ry='7'/%3E%3C/svg%3E"); }
html[data-country="china"]:not([data-theme="dark"]) { --p-bg: #fcf6f1; --p-surface: #f5e7dc; --p-action: #9c2f27; --p-accent: #ffd2b8; --p-accent-ink: #1f2a24; --p-inv-bg: color-mix(in oklab, #9c2f27 78%, #101512); --p-inv-surface: color-mix(in oklab, #9c2f27 66%, #101512); --pc-sel: color-mix(in oklab, #ffd2b8 40%, #fff); --pc-sel-line: #ffd2b8; --pc-on: #9c2f27; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Cpath d='M4 4h48v48H4ZM14 14h28v28H14ZM4 4l10 10M52 4 42 14M4 52l10-10M52 52 42 42'/%3E%3C/svg%3E"); }
html[data-country="spain"]:not([data-theme="dark"]) { --p-bg: #fdf7ee; --p-surface: #f6ead6; --p-action: #b0561a; --p-accent: #ffe0a8; --p-accent-ink: #1f2a24; --p-inv-bg: color-mix(in oklab, #b0561a 78%, #101512); --p-inv-surface: color-mix(in oklab, #b0561a 66%, #101512); --pc-sel: color-mix(in oklab, #ffe0a8 40%, #fff); --pc-sel-line: #ffe0a8; --pc-on: #b0561a; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Ccircle cx='32' cy='19' r='9'/%3E%3Ccircle cx='32' cy='45' r='9'/%3E%3Ccircle cx='19' cy='32' r='9'/%3E%3Ccircle cx='45' cy='32' r='9'/%3E%3Ccircle cx='32' cy='32' r='3'/%3E%3C/svg%3E"); }

/* the pattern: behind the hero and the soft grounds, faint enough to read as paper */
html[data-country]:not([data-theme="dark"]) .hero { position: relative; isolation: isolate; }
html[data-country]:not([data-theme="dark"]) .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; color: var(--p-action); opacity: .09; background-image: var(--motif); background-size: auto; mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); pointer-events: none; }
html[data-country]:not([data-theme="dark"]) .ground-surface { position: relative; isolation: isolate; }
html[data-country]:not([data-theme="dark"]) .ground-surface::before { content: ""; position: absolute; inset: 0; z-index: -1; color: var(--p-action); opacity: .06; background-image: var(--motif); pointer-events: none; }
/* the tab bar and the install sheet take the country's colour */
html[data-country] .tabbar a[aria-current="page"] { color: var(--p-action); }
html[data-country] .btn--primary { background: var(--p-action); }
@media (prefers-reduced-motion: no-preference) {
  /* the pattern drifts a pattern-width over a minute: slow enough to feel like cloth, not like a banner */
  html[data-country]:not([data-theme="dark"]) .hero::before { animation: motif-drift 60s linear infinite; }
  @keyframes motif-drift { to { background-position: 72px 72px; } }
}

/* Bangladesh: the family photograph is a portrait of three, so its window is taller to keep every face in view */
@media (min-width: 640px) { html[data-country="bangladesh"] .hero--centred .hero__window { min-height: clamp(300px, 44svh, 500px); } }
