/* Liana website look, ported from design/buy.html and design/country.html. */

:root {
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fg: #F0F0F0;
  --fg-muted: rgba(255, 255, 255, .64);
  --bg-card: #2B2B2B;
  --bg-note: #101216;
  --bg-hairline: #343434;
  --green: #00FF66;
  --blue: #00BBFF;
}

body.accent-green { --accent: var(--green); --accent-rgb: 0, 255, 102; }
body.accent-blue { --accent: var(--blue); --accent-rgb: 0, 187, 255; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #000;
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.container { width: 100%; max-width: 1270px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.hdr__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.hdr__logo img { height: 34px; width: auto; }

/* Main */
.main { position: relative; overflow: hidden; flex-grow: 1; }
.glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 520px at 100% -8%,
    rgba(var(--accent-rgb), .55) 0%, rgba(var(--accent-rgb), .22) 35%, rgba(var(--accent-rgb), 0) 64%);
}
.stack { position: relative; padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }

.intro { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow {
  margin: 0; font-size: 14px; font-weight: 500; line-height: 1;
  text-transform: uppercase; letter-spacing: .14em; opacity: .5;
}
.title {
  margin: 0; font-weight: 500; font-size: clamp(38px, 6vw, 56px);
  line-height: 1.05; letter-spacing: -.01em; color: #fff;
}
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--fg-muted); max-width: 80ch; }
.lead--narrow { max-width: 56ch; }
.lead strong { color: #fff; font-weight: 500; }

.back-link { align-self: flex-start; font-size: 15px; color: var(--fg-muted); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 28px; font-size: 17px; font-weight: 500; line-height: 1;
  border-radius: 20px 2px 20px 2px; transition: all .3s ease; white-space: nowrap;
}
.btn--sm { padding: 15px 22px; font-size: 15px; border-radius: 16px 2px 16px 2px; }
.btn--block { width: 100%; }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.btn--outline:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.cta { flex: 0 0 auto; background: var(--accent); color: #000; }
.cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Partner cards */
.cards { max-width: 1100px; display: flex; flex-direction: column; gap: 20px; }
.card-frame {
  position: relative; padding: 2px; border-radius: 32px 0 32px 0;
  background: var(--bg-hairline); transition: .3s;
}
.card-frame:hover { background: linear-gradient(135deg, var(--accent) 0%, rgba(var(--accent-rgb), 0) 100%); }
.card {
  background: var(--bg-card); border-radius: 31px 0 31px 0;
  padding: clamp(20px, 3vw, 32px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px;
}
.card__brand { flex: 1 1 230px; min-width: 0; display: flex; align-items: center; gap: 16px; }
.card__logo { width: 104px; height: 56px; flex: 0 0 104px; display: flex; align-items: center; justify-content: center; }
.card__logo img { width: 100%; height: 100%; object-fit: contain; }
.card__logo--empty {
  font-size: 12px; color: var(--fg-muted);
  border: 1px dashed rgba(255, 255, 255, .45); border-radius: 12px 0 12px 0;
}
.card__name { margin: 0; font-size: 26px; font-weight: 500; color: #fff; line-height: 1.1; }
.card__fields {
  flex: 3 1 380px; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px;
}
@media (max-width: 600px) { .card__fields { grid-template-columns: minmax(0, 1fr); } }

.chip {
  display: inline-flex; align-items: center; padding: 6px 14px;
  font-size: 13px; font-weight: 500; line-height: 1;
  border-radius: 0 12px 0 12px; white-space: nowrap;
}
.chip--buy-only { position: absolute; top: -12px; left: 40px; z-index: 1; background: #B8B8B8; color: #000; }

.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld__l { font-size: 13px; color: var(--fg-muted); line-height: 1; }
.fld__v { font-size: 17px; color: #fff; line-height: 1.3; }
.fld__v--accent { color: var(--accent); }
.fld__more { font-size: 14px; font-weight: 400; color: var(--fg-muted); text-decoration: underline; white-space: nowrap; }

/* Discount bubble */
.tip { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.tip__btn {
  position: relative; width: 14px; height: 14px; padding: 0;
  border-radius: 9999px; border: 1px solid var(--fg-muted); background: none; color: var(--fg-muted);
  font-family: inherit; font-size: 9px; font-weight: 500; line-height: 1; cursor: help;
}
.tip__btn::after { content: ""; position: absolute; inset: -10px; }
.tip__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tip__body {
  display: none; position: absolute; left: 0; top: calc(100% + 12px); z-index: 20;
  width: 270px; padding: 14px 16px;
  background: var(--bg-note); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px 0 16px 0;
  font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--fg);
}
.tip:hover .tip__body, .tip:focus-within .tip__body { display: block; }

.disclosure { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.disclosure a { text-decoration: underline; }

/* Notes */
.notes { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 24px; }
.note {
  flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px;
  padding: 28px; background: var(--bg-note); border-radius: 32px 0 32px 0;
}
.note h3 { margin: 0; font-size: 20px; font-weight: 500; color: #fff; }
.note p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg-muted); }
.note__link { font-size: 15px; font-weight: 500; color: var(--accent); }

/* Country form */
.form-frame { max-width: 640px; width: 100%; }
.form {
  background: var(--bg-card); border-radius: 31px 0 31px 0;
  padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 15px; color: var(--fg-muted); }
.sel {
  width: 100%; padding: 18px 20px; font-family: inherit; font-size: 17px; color: #111;
  background: #F9F9F9; border: 1px solid #D9D9D9; border-radius: 16px 2px 16px 2px;
}
.sel:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.form__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.thanks { display: flex; flex-direction: column; gap: 12px; }
.thanks h2 { margin: 0; font-size: 26px; font-weight: 500; color: #fff; }
.thanks p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--fg-muted); }

/* Footer */
.ft__bottom { background: #000; padding: 40px 0; }
.ft__logo { height: 34px; width: auto; }
.ft__addr { font-size: 13px; color: var(--fg-muted); margin-top: 12px; line-height: 1.5; }

/* Stats */
.stats { gap: 32px; }
.stats__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; font-size: 15px; }
.stats__filter input[type="date"] {
  margin-left: 8px; padding: 8px 10px; font-family: inherit; font-size: 15px;
  color: #111; background: #F9F9F9; border: 1px solid #D9D9D9; border-radius: 8px 2px 8px 2px;
}
.stats__section { display: flex; flex-direction: column; gap: 16px; overflow-x: auto; }
.stats__section h2 { margin: 0; font-size: 26px; font-weight: 500; color: #fff; }
.stats__table { border-collapse: collapse; font-size: 14px; }
.stats__table th, .stats__table td {
  padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--bg-hairline); white-space: nowrap;
}
.stats__table thead th { color: var(--fg-muted); font-weight: 500; }
.stats__table tbody th { font-weight: 400; color: var(--fg-muted); }
.chart { max-width: 100%; height: auto; }
.chart--fluid { width: 100%; }
.stats__table .chart { width: auto; max-width: none; }
/* Kept at its own size; the section scrolls on narrow screens. */
.chart--fixed { max-width: none; }
.stats__note { margin: 0; font-size: 14px; color: var(--fg-muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--bg-card); border-radius: 16px 4px 16px 4px; }
.kpi__value { font-size: 32px; font-weight: 500; color: #fff; }
.kpi__value small { font-size: 18px; color: var(--fg-muted); }
.kpi__label { font-size: 14px; color: var(--fg-muted); }
.kpi--good .kpi__value { color: var(--green); }
.kpi--bad .kpi__value { color: #FF8A80; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.legend li { display: flex; align-items: center; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; vertical-align: middle; }
/* Exit colours: green for continued, muted distinct tones for the drops. */
.exit--continued { fill: #00FF66; background: #00FF66; color: #000; }
.exit--nothing { fill: #FF8A80; background: #FF8A80; color: #000; }
.exit--tooltip { fill: #E6B85C; background: #E6B85C; color: #000; }
.exit--full-list { fill: #6FA8DC; background: #6FA8DC; color: #000; }
.exit--privacy { fill: #B39DDB; background: #B39DDB; color: #000; }
.exit--suggest-form { fill: #F4A261; background: #F4A261; color: #000; }
.exit--country-sent { fill: #80CBC4; background: #80CBC4; color: #000; }
.exit--back { fill: #BDBDBD; background: #BDBDBD; color: #000; }
.seg--empty { fill: var(--bg-card); }
.funnel__main { fill: #00BBFF; }
.funnel__continued { fill: #00FF66; }
.funnel__side { fill: #5A5A5A; }
.ratio__track { fill: var(--bg-card); }
.ratio__fill { fill: #00FF66; }
.path { white-space: normal; line-height: 2.2; }
.path__arrow { margin: 0 6px; color: var(--fg-muted); }
.chip { display: inline-block; padding: 2px 10px; font-size: 13px; border-radius: 10px 2px 10px 2px; white-space: nowrap; }
.chip--step { background: var(--bg-card); color: var(--fg); }
@media (max-width: 600px) { .kpi__value { font-size: 26px; } }
