/* Zapo — zapoplayer.app. Design "Daylight" (brief/brand.md), logo-blue accents. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* No U+20BA here: this font's ₺ looks like a £, so the lira sign comes from the system font. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-latin-ext.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20B9, U+20BB-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F5F6F7;
  --surface: #FFFFFF;
  --line: #E2E5E8;
  --line-soft: #ECEEF0;
  --ink: #111316;
  --ink-2: #4A5057;
  --ink-3: #5C6268;
  --blue: #0064E6;        /* buttons on white, white text 5.3:1 */
  --blue-ink: #0050C8;    /* links and icons, 7:1 on white */
  --blue-ink-hover: #003C99;
  --blue-tint: #E8F3FF;
  --sky: #4CB8FF;         /* accent on dark, with ink text 8.5:1 */
  --dark: #111316;
  --radius: 22px;
  --wrap: 1200px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Motion: strong custom curves (the built-in ones are too weak), short UI timings. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --press: 0.97;          /* scale of anything pressable while it's held down */
  --enter-y: 12px;        /* how far things rise when they appear */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
/* Reduced motion: no movement or scaling, but colour and opacity changes stay (they help understanding). */
@media (prefers-reduced-motion: reduce) {
  :root { --press: 1; --enter-y: 0px; }
  html { scroll-behavior: auto; }
}
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); }
a:hover { color: var(--blue-ink-hover); }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.small { font-size: 15px; color: var(--ink-3); letter-spacing: 0.005em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #FFF; padding: 12px 16px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; color: #FFF; }
.icon { flex: none; }

/* Header */
/* A translucent material: the page scrolls under it. The divider only shows once content is underneath
   (site.js sets .is-top at the top of the page; without JS the divider simply stays). */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); transition: border-color 200ms ease, background-color 200ms ease; }
.site-header.is-top { border-bottom-color: transparent; background: rgba(255,255,255,0.94); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: rgba(255,255,255,0.97); } }
@media (prefers-reduced-transparency: reduce) { .site-header { background: #FFF; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: auto; height: 28px; }
.nav-links { display: flex; gap: 2px 18px; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; flex-wrap: wrap; }
.nav-links a { display: inline-block; padding: 10px 2px; color: #3A3F45; text-decoration: none; font-size: 16px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.lang-switch { display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px; background: #ECEEF0; border-radius: 999px; }
.lang-switch a { display: block; min-width: 44px; text-align: center; padding: 9px 12px; border-radius: 999px; color: #3A3F45; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.01em; }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17,19,22,0.08); }
@media (max-width: 640px) {
  .nav { gap: 4px 12px; }
  .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 18px; }
  .lang-switch { margin-left: auto; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-dark { background: var(--ink); color: #FFF; }
.btn-blue { background: var(--blue); color: #FFF; }
.btn-light { background: #FFF; color: var(--ink); }
.btn-sky { background: var(--sky); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
/* Hover only where there's a real pointer: on touch screens a tap would leave it stuck on. */
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { background: #2A2E33; color: #FFF; }
  .btn-blue:hover { background: #0052BF; color: #FFF; }
  .btn-light:hover { background: #E9ECEF; color: var(--ink); }
  .btn-sky:hover { background: #7ACBFF; color: var(--ink); }
  .btn-outline:hover { background: var(--ink); color: #FFF; }
}
.btn.is-disabled { opacity: 0.72; cursor: default; }

/* Google Play badge (the look of Google's official badge: black, grey edge, the Play logo, two lines). */
.btn-play { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px 8px 16px; border-radius: 12px; background: #000; color: #FFF; border: 1px solid #A6A6A6; text-decoration: none; line-height: 1.1; }
.btn-play svg { flex: none; }
.btn-play span { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.btn-play small { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.btn-play strong { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.btn-play:hover { color: #FFF; }
@media (hover: hover) and (pointer: fine) { .btn-play:hover { background: #1A1C1F; border-color: #C9CED4; } }
.band .btn-play:focus-visible { outline-color: #FFF; }
/* Downloader badge: the Play badge's twin with an orange tile and the code in Downloader orange. */
.btn-downloader { padding-left: 9px; }
.btn-downloader .dl-tile { width: 40px; height: 40px; border-radius: 9px; background: #F7941D; display: grid; place-items: center; flex: none; }
.btn-downloader strong { color: #F7941D; font-size: 22px; font-weight: 800; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .band .actions { display: grid; grid-template-columns: minmax(0, 1fr); } .band .actions > * { justify-content: center; } }

/* Press feedback: everything you can press answers the moment it's pressed, not when it's released. */
.btn, .btn-play, .round-btn, .dot, .lang-switch a, .segmented a, .pl-switch a, .partner-menu a, .partner-logout, .tabs a, .choice label, .footer-button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.btn:active:not([disabled]):not(.is-disabled), .btn-play:active, .round-btn:active, .dot:active, .lang-switch a:active,
.segmented a:active, .pl-switch a:active, .partner-menu a:active, .partner-logout:active, .choice label:active {
  transform: scale(var(--press));
  transition-duration: 100ms;
}
.band .btn:focus-visible, .plan-dark .btn:focus-visible { outline-color: #FFF; }

/* Hero */
.hero { background: var(--surface); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: 72px 56px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-tint); color: var(--blue-ink); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; max-width: 960px; }
.lead { color: var(--ink-2); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; letter-spacing: -0.005em; max-width: 680px; }
.note { color: var(--ink-3); font-size: 15px; letter-spacing: 0.005em; }
.hero .actions { justify-content: center; }

/* Slider */
.slider { width: 100%; max-width: 1100px; margin-top: 18px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.slide-media { aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: #111316; border: 1px solid var(--line); }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-media.is-tall { display: flex; justify-content: center; align-items: center; gap: 4%; background: #1B1E22; }
.slide-media.is-tall picture { height: 86%; }
.slide-media.is-tall img.phone { height: 100%; width: auto; border-radius: 18px; border: 5px solid #2A2D32; object-fit: contain; }
.slide-caption { display: flex; flex-direction: column; gap: 4px; padding-inline: 4px; }
.slide-count { font-size: 14px; font-weight: 700; color: var(--blue-ink); }
.slide-title { font-size: clamp(21px, 2vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.slide-text { color: var(--ink-2); max-width: 720px; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.slider-controls[hidden] { display: none; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #FFF; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .round-btn:hover { background: #F0F2F4; } }
.dots { display: flex; gap: 2px; }
.dot { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.dot span { display: block; width: 10px; height: 10px; border-radius: 999px; background: #C9CED4; transition: width 240ms var(--ease-out), background-color 240ms ease; }
.dot[aria-current="true"] span { width: 28px; background: var(--blue); }
/* Phones: 11 dots + two arrows have to fit in ~360px. Below 380px the dots go; the arrows and "3 / 11" stay. */
@media (max-width: 560px) {
  .slider-controls { gap: 4px; }
  .round-btn { width: 44px; height: 44px; }
  .dots { gap: 0; }
  .dot { width: 22px; }
  .dot[aria-current="true"] span { width: 20px; }
}
@media (max-width: 379px) { .dots { display: none; } .slider-controls { gap: 24px; } }

/* Sections */
.section { padding-block: 80px; }
.section-title { font-weight: 800; font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.03em; }
.center-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px 48px; margin-top: 40px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue-ink); display: grid; place-items: center; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--ink-2); }

/* Compare table and plans */
.premium { display: flex; flex-direction: column; gap: 28px; }
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 24px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.compare thead th { border-bottom-color: var(--line); padding-block: 18px; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 500; }
.compare td, .compare thead th:not(:first-child) { width: 130px; }
.compare .is-premium { color: var(--blue-ink); }
.compare .yes { display: inline-flex; color: #3A3F45; }
.compare .yes.is-premium { color: var(--blue-ink); }
.compare .no { color: #8A9097; }
/* Phones: the table fits the screen instead of scrolling sideways. */
@media (max-width: 560px) {
  .compare { min-width: 0; font-size: 15px; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare td, .compare thead th:not(:first-child) { width: 76px; padding-inline: 6px; text-align: center; }
  .compare thead th { padding-block: 14px; }
  .compare th:first-child { padding-inline: 12px; overflow-wrap: anywhere; hyphens: auto; }
}
@media (max-width: 379px) { .compare td, .compare thead th:not(:first-child) { width: 60px; padding-inline: 4px; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px; max-width: 840px; width: 100%; margin-inline: auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font-size: 18px; color: var(--ink-2); font-weight: 700; }
.plan-price { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plan-price span { font-size: 17px; font-weight: 500; color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.plan p:not(.plan-price) { color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.plan-dark { background: var(--dark); border-color: var(--dark); color: #FFF; }
.plan-dark h3 { color: var(--sky); }
.plan-dark .plan-price span, .plan-dark p:not(.plan-price) { color: rgba(255,255,255,0.8); }

/* Download band */
.band { background: var(--dark); color: #FFF; }
.band-inner { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between; padding-block: 72px; }
.band-inner > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.band .lead { color: rgba(255,255,255,0.8); }
.band .small { color: rgba(255,255,255,0.72); }
.band .small strong { color: #FFF; }

/* FAQ */
.faq { display: flex; flex-direction: column; margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style-position: outside; min-height: 28px; }
.faq details p { margin-top: 10px; color: var(--ink-2); }
/* The answer settles in from just under the question (opening is occasional, so a short reveal earns its place). */
.faq details[open] > p { animation: reveal 220ms var(--ease-out); }
@keyframes reveal { from { opacity: 0; transform: translateY(calc(var(--enter-y) * -0.5)); } }

/* Inner pages */
.page-head { padding-block: 64px 8px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.page-head.center { align-items: center; }
.page-head h1 { font-weight: 800; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.03em; }
.checkout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.checkout h2 { font-size: 26px; }
.checkout-line { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-block: 1px solid var(--line); font-size: 18px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.notice { background: var(--blue-tint); color: #0B2E66; border-radius: 14px; padding: 16px 18px; }
.notice-ok { background: #E3F5EA; color: #14532D; }
.notice-error { background: #FDE8E8; color: #8A1C1C; }

/* Legal text */
.legal h1 { font-weight: 800; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.03em; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin-top: 40px; margin-bottom: 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 19px; margin-top: 24px; margin-bottom: 6px; }
.legal p, .legal li { color: #2E3338; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.legal .updated { color: var(--ink-3); font-size: 15px; }
.legal .table-box { margin-top: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.legal thead th { background: #F7F8F9; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field input, .field textarea { font: inherit; font-weight: 400; padding: 14px 16px; border-radius: 12px; border: 1px solid #C9CED4; background: #FFF; color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-block: 36px 48px; font-size: 14px; color: var(--ink-3); }
.footer-about { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.footer-about .brand { font-size: 20px; }
.footer-about .brand img { height: 23px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { display: inline-block; padding: 8px 0; color: #3A3F45; }

/* ---- Partner programme ------------------------------------------------------------------------ */
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-danger { background: #B42318; color: #FFF; }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background: #8F1C13; color: #FFF; } }
.notice-warn { background: #FFF4DB; color: #6B4500; }
.field-error { color: #B42318; font-weight: 600; font-size: 15px; }
.field input[aria-invalid="true"] { border-color: #B42318; }
.label { font-size: 14px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.02em; }

/* Login page: pitch on the left, form on the right */
.partner-login { max-width: var(--wrap); margin-inline: auto; padding: 56px 24px 80px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pl-pitch { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.pl-pitch > section { display: flex; flex-direction: column; gap: 14px; }
.pl-pitch h1 { font-weight: 800; font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.03em; }
.pl-lead { color: var(--ink-2); font-size: 19px; max-width: 560px; }
.pl-kicker { font-size: 14px; font-weight: 700; color: var(--blue-ink); letter-spacing: 0.06em; text-transform: uppercase; }
.pl-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pl-example { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.pl-example strong { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pl-example.is-big { background: var(--dark); border-color: var(--dark); color: #FFF; }
.pl-example.is-big strong { color: var(--sky); }
.pl-example.is-big .pl-muted { color: rgba(255,255,255,0.75); }
.pl-muted { color: var(--ink-3); font-size: 15px; }
.pl-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-variant-numeric: tabular-nums; }
.pl-compare th, .pl-compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.pl-compare tbody tr:last-child > * { border-bottom: 0; }
.pl-compare thead th { font-size: 14px; color: var(--ink-3); }
.pl-compare tbody th { font-weight: 500; }
.pl-compare .is-code { background: var(--blue-tint); color: var(--blue-ink); }
.pl-compare s { color: var(--ink-3); }
.pl-save { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.pl-badge { background: var(--blue); color: #FFF; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 15px; }
.pl-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; min-width: 0; position: sticky; top: 96px; }
.pl-form-inner { display: flex; flex-direction: column; gap: 16px; }
.pl-form h2 { font-size: 28px; letter-spacing: -0.02em; }
.pl-form .form .btn { align-self: stretch; }
.pl-switch { display: flex; gap: 4px; padding: 4px; background: #ECEEF0; border-radius: 999px; }
.pl-switch a { flex: 1; text-align: center; padding: 10px 14px; min-height: 44px; border-radius: 999px; color: #3A3F45; text-decoration: none; font-weight: 700; }
.pl-switch a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17,19,22,0.08); }
.pl-link-preview strong { color: var(--ink); }
@media (max-width: 900px) {
  .partner-login { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .pl-form { position: static; order: -1; }
}
@media (max-width: 480px) { .partner-login { padding-inline: 16px; } .pl-examples { grid-template-columns: minmax(0, 1fr); } .pl-form { padding: 22px; } }

/* Portal frame: side menu and content */
.partner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-block: 40px 80px; align-items: start; }
.partner-menu { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }
.partner-menu a, .partner-logout { display: block; padding: 12px 16px; min-height: 48px; border-radius: 12px; color: #3A3F45; text-decoration: none; font: inherit; font-weight: 700; text-align: left; }
.partner-menu a:hover, .partner-logout:hover { background: #ECEEF0; color: var(--ink); }
.partner-menu a[aria-current="page"] { background: var(--ink); color: #FFF; }
.partner-logout { width: 100%; background: transparent; border: 0; cursor: pointer; margin-top: 12px; color: var(--ink-3); }
.partner-who { padding-inline: 16px; overflow-wrap: anywhere; }
.partner-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.partner-title { font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.03em; }
.partner-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
@media (max-width: 860px) {
  .partner { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .partner-menu { position: static; flex-direction: row; flex-wrap: wrap; }
  .partner-menu form { margin-left: auto; }
  .partner-logout { margin-top: 0; }
  .partner-who { display: none; }
}

/* Cards and tiles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-flush { padding: 0; gap: 0; overflow: hidden; }
.card-title { font-size: 20px; padding: 22px 24px 14px; }
.card-title-inline { font-size: 20px; }
.card-empty { padding: 8px 24px 24px; color: var(--ink-2); }
.card-foot { padding: 14px 24px 18px; border-top: 1px solid var(--line-soft); }
.narrow-card { max-width: 680px; width: 100%; }
.code-card { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.code-card > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.code-card .code { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: 0.04em; line-height: 1.1; overflow-wrap: anywhere; }
.code-card .small a { overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile > span { font-size: 14px; color: var(--ink-3); }
.tile > span:first-child { font-weight: 700; color: var(--ink-2); }
.tile strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-dark { background: var(--dark); border-color: var(--dark); color: #FFF; }
.tile-dark > span, .tile-dark > span:first-child { color: rgba(255,255,255,0.8); }
.tile-dark strong { color: var(--sky); }
.tile-dark .btn { margin-top: auto; align-self: flex-start; }
.tile-dark .btn:focus-visible { outline-color: #FFF; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* Tables and status pills */
.table-scroll { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; min-width: 460px; }
.data th, .data td { padding: 13px 24px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.data thead th { font-size: 14px; color: var(--ink-3); border-bottom-color: var(--line); }
.data tbody th { font-weight: 500; }
.data tbody tr:last-child > * { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-pending { background: #FFF4DB; color: #6B4500; }
.pill-confirmed { background: #E3F5EA; color: #14532D; }
.pill-refunded, .pill-expired { background: #ECEEF0; color: #4A5057; }
.pill-paid_out { background: var(--blue-tint); color: #0B2E66; }

/* Statistics: bars are buttons (keyboard and hover show the tooltip); heights come from .h-* */
.segmented { display: flex; gap: 4px; padding: 4px; background: #ECEEF0; border-radius: 999px; }
.segmented a { padding: 9px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; color: #3A3F45; text-decoration: none; font-weight: 700; font-size: 15px; }
.segmented a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17,19,22,0.08); }
.chart-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; height: 220px; font-size: 13px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.chart-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chart-plot { display: grid; gap: 2px; height: 220px; border-bottom: 1px solid #C9CED4; background: linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 50%; }
.chart-plot, .chart-labels { grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); }
.cols-1 { --cols: 1; } .cols-3 { --cols: 3; } .cols-6 { --cols: 6; } .cols-12 { --cols: 12; }
.chart-col { display: flex; justify-content: center; min-width: 0; }
.bar { position: relative; width: 100%; height: 100%; background: transparent; border: 0; padding: 0; cursor: default; display: flex; align-items: flex-end; justify-content: center; border-radius: 6px 6px 0 0; }
.bar::before { content: ""; width: min(56%, 44px); height: var(--h, 0%); min-height: 2px; background: var(--blue); border-radius: 4px 4px 0 0; }
.bar:hover { background: rgba(0,100,230,0.05); }
.bar:hover::before, .bar:focus-visible::before { background: var(--blue-ink); }
.bar-tip { position: absolute; bottom: calc(var(--h, 0%) + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #FFF; font-size: 14px; line-height: 1.4; padding: 8px 12px; border-radius: 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.12s; z-index: 2; text-align: left; font-variant-numeric: tabular-nums; }
.bar.tip-left .bar-tip { left: 0; transform: none; }
.bar.tip-right .bar-tip { left: auto; right: 0; transform: none; }
.bar:hover .bar-tip, .bar:focus-visible .bar-tip { opacity: 1; }
.chart-labels { display: grid; gap: 2px; font-size: 13px; color: var(--ink-3); text-align: center; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.src-row { display: flex; flex-direction: column; gap: 8px; }
.src-line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.src-track { height: 10px; background: #ECEEF0; border-radius: 999px; overflow: hidden; }
.src-bar { height: 100%; width: var(--w, 0%); background: var(--blue); border-radius: 999px; }

/* Payouts */
.money-line { display: flex; flex-direction: column; gap: 2px; }
.money-line span { font-weight: 700; color: var(--ink-2); }
.money-line strong { font-size: clamp(40px, 6vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts { margin: 0; display: flex; flex-direction: column; border-block: 1px solid var(--line-soft); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; font-variant-numeric: tabular-nums; }
.facts div + div { border-top: 1px solid var(--line-soft); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 700; }
.payto { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 14px 16px; background: #F7F8F9; border-radius: 14px; }
.payto a { margin-left: auto; font-weight: 700; }
.history { list-style: none; margin: 0; padding: 0 24px 12px; }
.history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-block: 13px; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }

/* Settings */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 16px; min-height: 48px; color: #3A3F45; text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.choice legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #C9CED4; border-radius: 14px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.choice input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice small { color: var(--ink-3); font-size: 14px; }
.danger-zone { margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }

/* Invite page */
.invite { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.invite h1 { font-weight: 800; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.03em; }
.invite-card { width: 100%; }
/* Step classes (the CSP allows no inline styles) */
.h-0{--h:0%}.h-2{--h:2%}.h-4{--h:4%}.h-6{--h:6%}.h-8{--h:8%}.h-10{--h:10%}.h-12{--h:12%}.h-14{--h:14%}.h-16{--h:16%}.h-18{--h:18%}.h-20{--h:20%}.h-22{--h:22%}.h-24{--h:24%}.h-26{--h:26%}.h-28{--h:28%}.h-30{--h:30%}.h-32{--h:32%}.h-34{--h:34%}.h-36{--h:36%}.h-38{--h:38%}.h-40{--h:40%}.h-42{--h:42%}.h-44{--h:44%}.h-46{--h:46%}.h-48{--h:48%}.h-50{--h:50%}.h-52{--h:52%}.h-54{--h:54%}.h-56{--h:56%}.h-58{--h:58%}.h-60{--h:60%}.h-62{--h:62%}.h-64{--h:64%}.h-66{--h:66%}.h-68{--h:68%}.h-70{--h:70%}.h-72{--h:72%}.h-74{--h:74%}.h-76{--h:76%}.h-78{--h:78%}.h-80{--h:80%}.h-82{--h:82%}.h-84{--h:84%}.h-86{--h:86%}.h-88{--h:88%}.h-90{--h:90%}.h-92{--h:92%}.h-94{--h:94%}.h-96{--h:96%}.h-98{--h:98%}.h-100{--h:100%}
.w-0{--w:0%}.w-2{--w:2%}.w-4{--w:4%}.w-6{--w:6%}.w-8{--w:8%}.w-10{--w:10%}.w-12{--w:12%}.w-14{--w:14%}.w-16{--w:16%}.w-18{--w:18%}.w-20{--w:20%}.w-22{--w:22%}.w-24{--w:24%}.w-26{--w:26%}.w-28{--w:28%}.w-30{--w:30%}.w-32{--w:32%}.w-34{--w:34%}.w-36{--w:36%}.w-38{--w:38%}.w-40{--w:40%}.w-42{--w:42%}.w-44{--w:44%}.w-46{--w:46%}.w-48{--w:48%}.w-50{--w:50%}.w-52{--w:52%}.w-54{--w:54%}.w-56{--w:56%}.w-58{--w:58%}.w-60{--w:60%}.w-62{--w:62%}.w-64{--w:64%}.w-66{--w:66%}.w-68{--w:68%}.w-70{--w:70%}.w-72{--w:72%}.w-74{--w:74%}.w-76{--w:76%}.w-78{--w:78%}.w-80{--w:80%}.w-82{--w:82%}.w-84{--w:84%}.w-86{--w:86%}.w-88{--w:88%}.w-90{--w:90%}.w-92{--w:92%}.w-94{--w:94%}.w-96{--w:96%}.w-98{--w:98%}.w-100{--w:100%}

/* ---- Shop: checkout and account ------------------------------------------------------------- */
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--blue-ink); border-bottom: 2px solid var(--blue-ink); transform: rotate(-45deg); }
.code-form { border-top: 1px solid var(--line); padding-top: 16px; }
.code-row { display: flex; flex-wrap: wrap; gap: 10px; }
.code-row input { flex: 1 1 180px; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.purchase { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.purchase-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.purchase form { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.checkout .badge { align-self: flex-start; }

/* ---- Premium: prices in another currency ---------------------------------------------------- */
.fx { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; display: grid; gap: 14px; }
.fx-title { font-size: 22px; }
.fx select { flex: 1 1 220px; min-width: 0; min-height: 52px; font: inherit; font-weight: 400; padding: 12px 16px; border-radius: 12px; border: 1px solid #C9CED4; background: #FFF; color: var(--ink); }
.fx select:focus-visible { outline-offset: 0; }
.fx-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.fx-result div { background: var(--bg); border-radius: 14px; padding: 14px 18px; }
.fx-result dt { color: var(--ink-2); font-size: 15px; font-weight: 700; }
.fx-result dd { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
@media (max-width: 560px) { .fx { padding: 22px; } .fx-result { grid-template-columns: minmax(0, 1fr); } }

/* ---- Premium: the currency switch above the plans -------------------------------------------- */
.cur-switch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-bottom: 20px; }
.cur-switch-row .small { font-weight: 700; color: var(--ink-2); }
.cur-switch a { min-width: 64px; padding: 12px 16px; font-size: 16px; }
details.fx > summary { cursor: pointer; list-style-position: inside; padding: 4px 0; border-radius: 10px; }
details.fx:not([open]) { padding-block: 20px; }
/* ---- Admin dashboard (/{lang}/admin) ----------------------------------------------------------- */
.admin { display: flex; flex-direction: column; gap: 20px; }
.admin-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.card-pad { padding: 0 24px 22px; }
.admin-table { min-width: 1100px; }
.admin-table th, .admin-table td { padding: 13px 16px; vertical-align: top; }
.data tr.muted > * { color: var(--ink-3); }
.admin-who .partner-logout { width: auto; margin-top: 0; border: 1px solid var(--line); }

/* ---- Cookie banner (Google Analytics, only with consent) --------------------------------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
/* A floating material that rises from the bottom edge it sits on; it leaves instantly once a choice is made. */
.consent-inner { pointer-events: auto; max-width: 760px; width: 100%; background: rgba(255,255,255,0.9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(17,19,22,0.06), 0 16px 48px rgba(17,19,22,0.16); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; transform-origin: 50% 100%; transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
@starting-style { .consent-inner { opacity: 0; transform: translateY(var(--enter-y)) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { @starting-style { .consent-inner { transform: none; } } }
@media (prefers-reduced-transparency: reduce) { .consent-inner { background: #FFF; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.consent-title { font-weight: 800; font-size: 18px; margin: 0; }
.consent-text { margin: 0; color: var(--ink-2); }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.consent-actions .btn { min-width: 140px; }
@media (max-width: 560px) { .consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .consent-actions .btn { min-width: 0; } }
.footer-button { display: inline-block; background: none; border: 0; padding: 8px 0; font: inherit; color: #3A3F45; text-decoration: underline; cursor: pointer; }
