/* Cebix — cebix.app. Quiet layout: white cards on cream, medium-weight
   headings, one accent per block. Flat on purpose: no shadows anywhere,
   layers are separated by borders and fills, like the app. */
@import url('/assets/fonts/fonts.css');

:root {
  --coral: #D23F26;
  --coral-soft: #FF7A5C;
  --coral-tint: #FBE8E3;
  --ink: #0B2B2B;
  --ink-2: #133737;
  --ink-line: #28504F;
  --cream: #F4F1EA;
  --paper: #FFFFFF;
  --sand: #EDE7DB;
  --muted: #5E6F6D;
  --faint: #94A3A1;
  --line: #E6E0D4;
  --gold: #F5B82E;
  --gold-tint: #FDF1D3;
  --teal: #0E7C7B;
  --teal-tint: #DDF0EE;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
/* Nothing may widen the page sideways: iOS Safari lets a phone pan past an
   element that pokes out even with body's overflow-x hidden, so clip on the
   root too (clip, unlike hidden, keeps the sticky header working). */
html { overflow-x: clip; }
body { font: 400 16px/1.55 Inter, system-ui, sans-serif; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
h1, h2, h3, .geo { font-family: Geologica, Inter, sans-serif; font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
a { color: inherit; text-decoration: none; }
/* height: auto, or the width/height attributes (there to reserve space)
   stretch an image the CSS resizes. */
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Form fields stay at 16px or more: iOS Safari zooms the page into any
   smaller field on focus and leaves it zoomed, so it pans sideways. */
input, select, textarea { font-size: 16px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

/* Small label with rules either side: "— Biz kimik —" */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.label::before, .label::after { content: ''; width: 22px; height: 1.5px; background: var(--coral); }

.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.head h2 { font-size: 40px; }
.head p { color: var(--muted); font-size: 14px; max-width: 320px; text-align: right; }

/* Buttons: a pill with a round arrow at the end. */
.btn { display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer; white-space: nowrap; font-weight: 500; font-size: 15px; padding: 6px 6px 6px 20px; min-height: 48px; border-radius: 999px; background: var(--ink); color: var(--cream); transition: background .15s; }
.btn .arr { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; flex: none; transition: transform .15s; }
.btn .arr svg { width: 16px; height: 16px; }
.btn:hover .arr { transform: translateX(2px); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold .arr { background: var(--ink); color: var(--gold); }
.btn.light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn.coral { background: var(--coral); color: #fff; }
.btn.coral .arr { background: #fff; color: var(--coral); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.plain { padding: 0 20px; }

.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); background: var(--paper); flex: none; }
.round svg { width: 16px; height: 16px; }

/* Forms */
.pill-form { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); max-width: 520px; }
.pill-form input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 0 16px; outline: none; color: var(--ink); }
.pill-form input::placeholder { color: var(--faint); }
.form-msg { font-size: 14px; margin-top: 10px; min-height: 22px; }
.form-msg.ok { color: var(--teal); font-weight: 500; }
.form-msg.err { color: var(--coral); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Header: a white bar floating over the page. */
header.top { position: sticky; top: 0; z-index: 20; padding: 14px 0 0; background: linear-gradient(var(--cream) 70%, transparent); }
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; padding: 0 10px 0 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
header.top .logo img { height: 28px; width: auto; }
header.top nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
header.top nav a { color: var(--muted); }
header.top nav a:hover { color: var(--ink); }
header.top .end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; font-size: 12px; font-weight: 600; background: var(--cream); border-radius: 999px; padding: 3px; }
.lang a { padding: 5px 9px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current] { background: var(--paper); color: var(--ink); }
header.top .btn { min-height: 44px; font-size: 14px; }
header.top .btn .arr { width: 32px; height: 32px; }

/* Hero: a photo banner with a coral-to-ink wash. */
.hero { padding: 14px 0 0; }
.hero .banner { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 580px; display: grid; place-items: center; text-align: center; color: #fff; background: var(--ink) url('/assets/img/hero.webp') center 35% / cover; }
.hero .banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(210, 63, 38, .92) 0%, rgba(210, 63, 38, .62) 42%, rgba(11, 43, 43, .78) 100%); }
.hero .inner { position: relative; padding: 64px 24px; max-width: 760px; }
.hero .kicker { display: inline-block; font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); margin-bottom: 22px; }
.hero h1 { font-size: 72px; font-weight: 500; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 17px; opacity: .88; max-width: 560px; margin: 0 auto 30px; }
.hero .pill-form { margin: 0 auto; border-color: transparent; }
.hero .form-msg { color: #fff; }
.hero .form-msg.ok, .hero .form-msg.err { color: #fff; }
.hero .fine { font-size: 13px; opacity: .75; margin-top: 2px; }

/* Free for students: the price, said once and plainly */
.free { padding: 12px 0 0; }
.free-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 40px; display: grid; grid-template-columns: auto 1fr 300px; gap: 40px; align-items: center; }
.free-card .big { font-family: Geologica; font-weight: 500; font-size: 128px; line-height: .9; letter-spacing: -0.05em; color: var(--coral); }
.free-card h2 { font-size: 34px; margin: 12px 0 10px; }
.free-card .copy > p { color: var(--muted); font-size: 15px; max-width: 520px; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; background: var(--cream); border-radius: 999px; padding: 7px 14px 7px 10px; }
.ticks svg { width: 16px; height: 16px; color: var(--teal); }
.calc { background: var(--ink); color: var(--cream); border-radius: var(--r); padding: 20px 22px; display: grid; gap: 10px; }
.calc b { font-weight: 500; font-size: 13px; color: #B9C6C4; }
.calc .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.calc .plus { color: #7FE0D6; }
.calc .total { border-top: 1px solid var(--ink-line); padding-top: 10px; font-family: Geologica; font-size: 20px; }
.calc .total span:last-child { color: var(--gold); }
.calc small { font-size: 11px; color: #8FA3A1; }

/* About */
.about .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: 44px; margin: 16px 0 16px; }
.about .copy > p { color: var(--muted); max-width: 520px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; display: flex; flex-direction: column; }
.stat.wide { grid-column: span 2; }
.stat .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }
.stat .top svg { width: 18px; height: 18px; color: var(--muted); }
.stat b { display: block; font-family: Geologica; font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -0.03em; margin-top: 18px; }
.stat small { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; max-width: 260px; }
.stat .viz { margin-top: auto; padding-top: 20px; }
/* 001: the QR's 30-second countdown. */
.s-ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.s-ink .top, .s-ink small { color: #A9BDBB; }
.s-ink .top svg, .s-ink b { color: var(--gold); }
.qrbar { height: 6px; border-radius: 99px; background: var(--ink-line); overflow: hidden; }
.qrbar span { display: block; height: 100%; background: var(--gold); transform-origin: left; animation: qr-count 30s linear infinite; }
@keyframes qr-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* 002: three steps on a line. */
.s-tint { background: var(--coral-tint); border-color: var(--coral-tint); }
.s-tint b, .s-tint .top svg { color: var(--coral); }
.steps3 { display: flex; align-items: center; }
.steps3 i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 13px Inter, sans-serif; font-style: normal; background: var(--paper); color: var(--coral); border: 1.5px solid var(--coral); }
.steps3 i:last-child { background: var(--coral); color: #fff; }
.steps3 span { flex: 1; height: 1.5px; background: var(--coral); opacity: .5; }
/* 003: the twelve categories. */
.s-gold { background: var(--gold); border-color: var(--gold); }
.s-gold .top, .s-gold .top svg, .s-gold small { color: var(--ink); }
.s-gold .top span { opacity: .6; }
.s-gold .row { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.faces { display: flex; padding-left: 12px; }
.faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); margin-left: -12px; }
@media (prefers-reduced-motion: reduce) { .qrbar span { animation: none; } }
.about .photo { position: relative; }
.about .photo img.pic { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--r-lg); }
.about .photo .cibi { position: absolute; left: -36px; bottom: -28px; width: 170px; }

/* Categories: a coral board of stickers. site.js throws them out from the
   middle when the board scrolls into view, re-throws them on "Qarışdır",
   and lets them be dragged. Without JS they sit in a wrapped row. */
.pop { position: relative; height: 600px; border-radius: var(--r-lg); background: var(--coral); overflow: hidden; user-select: none; -webkit-user-select: none; }
.pop .mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; width: max-content; max-width: calc(100% - 32px); }
.pop h2 { font-size: 66px; line-height: .98; }
.pop h2 em { display: block; font-style: normal; color: var(--ink); }
.pop .mid .btn { margin-top: 22px; }
.pop ul { list-style: none; }
.st { position: absolute; left: 44%; top: 44%; cursor: grab; touch-action: none; will-change: transform; transform: rotate(var(--r, 0deg));
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), left .8s cubic-bezier(.34, 1.3, .64, 1), top .8s cubic-bezier(.34, 1.3, .64, 1), opacity .3s; }
.pop.js .st { opacity: 0; }
.pop.js .st.out { opacity: 1; }
.st.drag { cursor: grabbing; transition: none; z-index: 5; }
.st:hover:not(.drag) { transform: rotate(calc(var(--r, 0deg) * .3)) scale(1.07); }
.st img { pointer-events: none; -webkit-user-drag: none; }
.st-pill { display: inline-flex; align-items: center; gap: 12px; padding: 7px 22px 7px 7px; border-radius: 999px; border: 4px solid #fff; font: 500 24px/1 Geologica, sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.st-pill img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.st-disc { width: 128px; height: 128px; border-radius: 50%; border: 4px solid #fff; overflow: hidden; background: var(--ink); }
.st-disc img { width: 100%; height: 100%; object-fit: cover; }
.st-disc b { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 500 15px Geologica, sans-serif; color: #fff; background: var(--coral); padding: 4px 0; transform: rotate(-4deg) scaleX(1.1); }
.st-sq { width: 112px; height: 112px; border-radius: 26px; border: 4px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font: 500 16px Geologica, sans-serif; text-align: center; }
.st-sq svg { width: 34px; height: 34px; }
.st-tag { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 34px; font: 500 22px/1 Geologica, sans-serif; white-space: nowrap; border: 4px solid #fff; border-radius: 10px 999px 999px 10px; }
.st-tag::before { content: ''; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; }
.st-tag svg { width: 22px; height: 22px; }
.st-burst { width: 140px; height: 140px; display: grid; place-content: center; text-align: center; font: 600 32px/1 Geologica, sans-serif;
  clip-path: polygon(50% 0%,61% 12%,76% 6%,80% 22%,95% 25%,90% 40%,100% 50%,90% 60%,95% 75%,80% 78%,76% 94%,61% 88%,50% 100%,39% 88%,24% 94%,20% 78%,5% 75%,10% 60%,0% 50%,10% 40%,5% 25%,20% 22%,24% 6%,39% 12%); }
.st-burst small { display: block; font: 600 11px/1.15 Inter, sans-serif; margin: 3px auto 0; max-width: 64px; }
.t-cream { background: var(--cream); color: var(--ink); }
.t-gold { background: var(--gold); color: var(--ink); }
.t-ink { background: var(--ink); color: var(--cream); }
.t-mint { background: var(--teal-tint); color: var(--teal); }
.t-tint { background: var(--coral-tint); color: var(--coral); }
/* No JS: a wrapped row under the headline. */
.pop:not(.js) { height: auto; padding: 200px 24px 32px; }
.pop:not(.js) .mid { top: 32px; transform: translateX(-50%); }
.pop:not(.js) [data-shuffle] { display: none; }
.pop:not(.js) ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pop:not(.js) .st { position: relative; left: auto; top: auto; }
@media (prefers-reduced-motion: reduce) { .st { transition: opacity .3s; } }

/* How it works: one row per step */
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 1fr 170px 1fr; align-items: center; gap: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0 28px; height: 160px; overflow: hidden; }
.step .t small { display: block; font-size: 12px; color: var(--faint); margin-bottom: 26px; }
.step .t h3 { font-size: 26px; }
.step .shot { align-self: end; height: 140px; overflow: hidden; border-radius: 22px 22px 0 0; border: 5px solid var(--ink); border-bottom: 0; background: var(--cream); }
/* Show the part of the screen that tells the step, not the status bar:
   --y is a share of the screenshot's height. */
.step .shot img { width: 100%; transform: translateY(calc(var(--y, 0) * -1%)); }
.step p { font-size: 14px; color: var(--muted); max-width: 320px; justify-self: end; }
.note { font-size: 12px; color: var(--faint); margin-top: 14px; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.p-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.p-card:hover { border-color: var(--ink); }
.p-card .cover { aspect-ratio: 16 / 10; background: var(--sand) center / cover; position: relative; }
.p-card .off { position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--coral); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.p-card .body { display: flex; gap: 12px; align-items: center; padding: 14px 16px 16px; }
.p-card .logo { width: 44px; height: 44px; border-radius: 50%; background: var(--sand) center / cover; border: 1px solid var(--line); flex: none; display: grid; place-items: center; font-family: Geologica; font-weight: 500; color: var(--muted); }
.p-card h3 { font-size: 16px; font-family: Inter; font-weight: 600; letter-spacing: 0; }
.p-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.empty { display: grid; grid-template-columns: 150px 1fr auto; gap: 32px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; }
.empty h3 { font-size: 24px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 560px; font-size: 15px; }

/* Coins: one ink card */
.coins-card { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: 44px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.coins-card h2 { font-size: 36px; margin: 16px 0 12px; }
.coins-card .label { color: #B9C6C4; }
.coins-card p { color: #B9C6C4; font-size: 15px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tier { border: 1px solid var(--ink-line); border-radius: var(--r-sm); padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; }
.tier b { display: block; font-weight: 500; font-size: 15px; }
.tier small { color: #8FA3A1; font-size: 12px; }
.tier .x { font-family: Geologica; font-size: 22px; color: var(--gold); }

/* Partners (the organisations behind Cebix): an ink card like the coins,
   logos on white tiles so each keeps its own colours. */
.backers-card { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: 44px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.backers-card h2 { font-size: 36px; margin: 16px 0 12px; }
.backers-card h2 em { font-style: normal; color: var(--gold); }
.backers-card .label { color: #B9C6C4; }
.backers-card p { color: #B9C6C4; font-size: 15px; margin-bottom: 24px; }
.backers .logos { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.backers .logos li { height: 96px; border-radius: var(--r-sm); }
.backers .logos a { display: grid; place-items: center; height: 100%; padding: 18px 22px; background: var(--paper); border-radius: var(--r-sm); transition: transform .2s; }
.backers .logos a:hover { transform: translateY(-2px); }
.backers .logos img { max-width: 100%; max-height: 44px; object-fit: contain; }
.backers .logos .you { display: grid; place-items: center; border: 1.5px dashed var(--ink-line); color: #8FA3A1; font-size: 14px; }

/* Blog: the featured post large, the rest as cards; a post in a narrow
   column. A post without a cover shows its topic's colour and Cibi. */
.blog { padding-bottom: 8px; }
.blog-head { padding: 36px 0 26px; max-width: 680px; }
.blog-head h1 { font-size: 56px; margin: 12px 0 10px; }
.blog-head p { color: var(--muted); font-size: 17px; }
.tone-coral { background: var(--coral-tint); color: #A8321E; }
.tone-teal { background: var(--teal-tint); color: #0B5E5D; }
.tone-gold { background: var(--gold-tint); color: #7A5A0E; }
.tone-sand { background: var(--sand); color: var(--ink-2); }
.tone-ink { background: var(--ink); color: var(--cream); }
.chip { display: inline-block; align-self: start; justify-self: start; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 999px; }
.b-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.b-card:hover { border-color: var(--ink); }
.b-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.b-cover img { width: 100%; height: 100%; object-fit: cover; }
.b-cover img.cibi { width: 34%; height: auto; object-fit: contain; }
.b-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.b-body b { font-family: Geologica; font-weight: 500; font-size: 19px; line-height: 1.3; }
.b-body .ex { color: var(--muted); font-size: 15px; }
.b-body small { color: var(--faint); font-size: 13px; }
.b-card.big { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 14px; border-radius: var(--r-lg); }
.b-card.big .b-cover { aspect-ratio: auto; min-height: 340px; }
.b-card.big .b-body { justify-content: center; padding: 36px 40px; gap: 14px; }
.b-card.big b { font-size: 32px; }
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.more { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.post { max-width: 760px; margin: 0 auto; padding: 8px 0 12px; }
.post header { display: grid; gap: 14px; margin-bottom: 26px; }
.post h1 { font-size: 46px; line-height: 1.12; }
.post .lead { color: var(--muted); font-size: 19px; }
.post header small { color: var(--faint); font-size: 13px; }
.post-cover { width: 100%; height: auto; border-radius: var(--r-lg); margin-bottom: 30px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 28px; margin-top: 40px; color: var(--ink); }
.prose h3 { font-size: 21px; margin-top: 28px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--coral); padding-left: 16px; color: var(--muted); }

/* Business: copy on the left, the form on the right */
.biz .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.biz .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; }
.biz h2 { font-size: 40px; margin: 16px 0 12px; }
.biz .panel > p { color: var(--muted); max-width: 460px; }
.perks { margin-top: 28px; display: grid; }
.perk { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.perk .n { font-size: 12px; color: var(--coral); font-weight: 600; padding-top: 3px; }
.perk b { display: block; font-weight: 600; font-size: 15px; }
.perk span { color: var(--muted); font-size: 14px; }
.card-form { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: 40px; display: grid; gap: 14px; align-content: start; }
.card-form h3 { font-size: 28px; margin-bottom: 6px; }
.card-form label { display: grid; gap: 6px; align-content: start; font-size: 13px; color: #B9C6C4; }
.card-form input, .card-form select, .card-form textarea { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-sm); padding: 13px 14px; font-size: 16px; color: var(--cream); outline: none; width: 100%; }
.card-form input:focus, .card-form select:focus, .card-form textarea:focus { border-color: var(--gold); }
.card-form textarea { min-height: 92px; resize: vertical; }
.card-form .bad, .card-form .bad:focus { border-color: var(--coral-soft); }
.field-err { color: var(--coral-soft); font-size: 13px; font-weight: 500; margin-top: -1px; }
/* Chatbot: a question bar at the bottom centre; a click opens the chat as
   a dialog in the middle of the screen (full screen on phones). Flat like
   everything else: borders, no shadows. */
.chat-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; width: min(560px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--muted); font: 400 16px Inter, sans-serif; text-align: left; cursor: text; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), border-color .2s; }
.chat-bar:hover { transform: translateX(-50%) translateY(-2px); border-color: var(--coral); }
.chat-bar img { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--coral-tint); padding: 3px; }
.chat-bar .ph { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-bar .go { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; }
.chat-bar .go svg { width: 18px; height: 18px; }
.chat-bar[aria-expanded="true"] { visibility: hidden; }
/* Room under the footer for the bar. */
body:has(.chat-bar) { padding-bottom: 84px; }
body:has(.chat-bar) .toasts { bottom: 92px; }
html.chat-open { overflow: hidden; }
.chat-backdrop { position: fixed; inset: 0; z-index: 94; background: rgba(11, 43, 43, .45); animation: fade .2s ease; }
.chat-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.chat-panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 95; padding: 0; width: min(680px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: var(--cream); border: 1.5px solid var(--ink); border-radius: 28px; overflow: hidden; animation: chat-in .35s cubic-bezier(.34, 1.3, .64, 1); }
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.chat-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.chat-panel header img { width: 40px; height: 40px; border-radius: 50%; background: var(--coral-tint); padding: 3px; }
.chat-panel .who { flex: 1; min-width: 0; }
.chat-panel .who b { display: block; font: 600 16px Geologica, sans-serif; }
.chat-panel .who small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chat-panel .who i { width: 7px; height: 7px; border-radius: 50%; background: #22B573; }
.chat-panel .icon { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.chat-panel .icon:hover { background: var(--sand); }
.chat-panel .icon svg { width: 18px; height: 18px; }
.chat-confirm { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; background: rgba(244, 241, 234, .82); animation: fade .15s ease; }
.chat-confirm[hidden] { display: none; }
.chat-confirm .box { width: min(360px, 100%); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px; padding: 22px; text-align: center; }
.chat-confirm b { display: block; font: 600 19px Geologica, sans-serif; }
.chat-confirm p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.chat-confirm .acts { display: flex; gap: 8px; margin-top: 18px; }
.chat-confirm button { flex: 1; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chat-confirm .no { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.chat-confirm .yes { background: var(--coral); border: 0; color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-welcome { margin: auto; max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.chat-welcome[hidden] { display: none; }
.chat-welcome img { width: 96px; height: 96px; border-radius: 28px; background: var(--coral-tint); padding: 10px; }
.chat-welcome h3 { font-size: 24px; }
.chat-welcome p { color: var(--muted); font-size: 15px; }
.chat-welcome .badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chat-welcome .badges span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--sand); font-size: 12px; font-weight: 600; }
.chat-welcome .badges i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 6px; }
.msg.err { background: var(--coral-tint); border-color: var(--coral-tint); color: var(--coral); }
.msg a { color: var(--teal); text-decoration: underline; }
.msg .dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.msg .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: dot 1s infinite ease-in-out; }
.msg .dots i:nth-child(2) { animation-delay: .15s; }
.msg .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.chips button { border: 1.5px solid var(--coral); background: transparent; color: var(--coral); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.chips button:hover { background: var(--coral); color: #fff; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 16px; padding: 6px 6px 6px 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 24px; }
.chat-form:focus-within { border-color: var(--ink); }
.chat-form textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; resize: none; font-size: 16px; line-height: 1.4; padding: 9px 0; max-height: 140px; color: var(--ink); }
.chat-form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-form button:disabled { background: var(--faint); cursor: default; }
.chat-form button svg { width: 18px; height: 18px; }
.chat-note { font-size: 11px; color: var(--muted); text-align: center; padding: 8px 16px 14px; }
@media (max-width: 560px) {
  .chat-bar { bottom: 12px; }
  .chat-bar .ph { font-size: 15px; }
  .chat-panel { left: 0; top: 0; transform: none; width: 100%; height: 100dvh; border: 0; border-radius: 0; animation: chat-up .3s ease; }
  @keyframes chat-up { from { opacity: 0; transform: translateY(24px); } }
}
@media (prefers-reduced-motion: reduce) { .chat-panel, .chat-backdrop { animation: none; } .msg .dots i { animation: none; } }

/* Toasts: bottom centre, flat like the rest (a border, no shadow). */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 12px 10px 12px 12px; border-radius: 20px; background: var(--ink); color: var(--cream); border: 1px solid var(--ink-line); animation: toast-in .45s cubic-bezier(.34, 1.4, .64, 1); }
.toast.ok { background: var(--teal); border-color: var(--teal); color: #fff; }
.toast.err { background: var(--coral); border-color: var(--coral); color: #fff; }
.toast img { width: 52px; height: 52px; flex: none; }
.toast .ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--coral); font: 700 20px Geologica, sans-serif; }
.toast .tx { flex: 1; min-width: 0; }
.toast b { display: block; font: 600 17px/1.2 Geologica, sans-serif; }
.toast.ok b { color: var(--gold); }
.toast p { font-size: 14px; line-height: 1.4; opacity: .9; margin-top: 2px; }
.toast .x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .7; font-size: 22px; line-height: 1; cursor: pointer; }
.toast .x:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.toast.out { animation: toast-out .25s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.out { animation: none; } }
.pill-form:has(.bad) { border-color: var(--coral-soft); }
/* Select: our own chevron instead of the browser's arrow (shadcn-style). */
.card-form select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9C6C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.card-form select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5B82E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.card-form select option { background: var(--paper); color: var(--ink); }
/* align-items: start, so an error under one field of a pair does not
   stretch its neighbour taller. */
.card-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.card-form .btn { justify-self: start; margin-top: 4px; }
.card-form .form-msg.ok { color: #7FE0D6; }
.card-form .form-msg.err { color: var(--coral-soft); }
.card-form .fine { font-size: 12px; color: #8FA3A1; }

/* FAQ: title on the left, a ruled list on the right */
.faq .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq h2 { font-size: 40px; margin: 16px 0 14px; }
.faq .side p { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--coral); font-size: 18px; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 44px 22px 0; color: var(--muted); font-size: 15px; }

/* Final call: a coral card with the mascot */
.final-card { background: var(--coral); color: #fff; border-radius: var(--r-lg); padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; overflow: hidden; }
.final-card h2 { font-size: 44px; margin-bottom: 10px; }
.final-card p { opacity: .9; margin-bottom: 24px; }
.final-card .pill-form { border-color: transparent; }
.final-card .form-msg.ok, .final-card .form-msg.err { color: #fff; }
.final-card .cibi { width: 210px; margin-bottom: -48px; align-self: end; }

/* Footer */
footer { padding: 0 0 24px; }
footer .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 36px 24px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
footer .cols img { height: 28px; width: auto; margin-bottom: 14px; }
footer .cols p { color: var(--muted); font-size: 14px; max-width: 320px; }
footer h4 { font-size: 13px; color: var(--faint); font-weight: 500; margin-bottom: 12px; }
footer ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
footer ul a:hover { color: var(--coral); }
footer .social { display: inline-flex; align-items: center; gap: 8px; }
footer .social svg { width: 18px; height: 18px; flex: none; }
footer .bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* Partner page */
.crumbs { font-size: 13px; color: var(--muted); padding: 22px 0 14px; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--ink); }
.m-banner { border-radius: var(--r-lg); aspect-ratio: 16 / 5; background: var(--sand) center / cover; }
.m-head { display: flex; align-items: end; gap: 18px; padding: 0 28px; margin-top: -42px; }
.m-head .logo { width: 92px; height: 92px; border-radius: 50%; border: 5px solid var(--cream); background: var(--sand) center / cover; flex: none; display: grid; place-items: center; font-family: Geologica; font-size: 32px; color: var(--muted); }
.m-head h1 { font-size: 40px; padding-bottom: 6px; }
.m-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 28px 0; }
.m-meta span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.m-desc { margin: 16px 28px 0; color: var(--muted); max-width: 720px; }
.m-section { padding: 36px 0 0; }
.m-section .head { margin-bottom: 16px; }
.m-section h2 { font-size: 28px; display: flex; align-items: center; gap: 12px; }
.m-section h2 .off { font-family: Inter; font-size: 13px; font-weight: 600; letter-spacing: 0; background: var(--coral); color: #fff; border-radius: 999px; padding: 4px 10px; }
.m-terms { color: var(--muted); font-size: 13px; }
.items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.item .ph { aspect-ratio: 1; background: var(--sand) center / cover; }
.item .tx { padding: 12px 14px 14px; }
.item h3 { font-family: Inter; font-weight: 500; font-size: 14px; letter-spacing: 0; line-height: 1.35; }
.item .note { color: var(--faint); font-size: 12px; }
.item .price { margin-top: 6px; font-family: Geologica; font-weight: 500; font-size: 18px; color: var(--coral); }
.item .price s { font-family: Inter; font-weight: 400; font-size: 13px; color: var(--faint); margin-left: 6px; }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.branch { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.branch b { display: block; font-weight: 600; font-size: 15px; }
.branch small { color: var(--muted); font-size: 13px; }
.m-cta { margin: 48px 0 72px; }
.notfound { text-align: center; padding: 96px 0; }
.notfound img { width: 170px; margin: 0 auto 20px; }
.notfound h1 { font-size: 36px; margin-bottom: 10px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

/* Legal documents: the list of documents on the left, the text on the right */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; padding: 8px 0 72px; }
.legal aside { position: sticky; top: 100px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.legal aside ul { list-style: none; display: grid; gap: 2px; }
.legal aside a { display: block; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--muted); }
.legal aside a:hover { color: var(--ink); background: var(--cream); }
.legal aside a[aria-current] { background: var(--ink); color: var(--cream); }
.legal article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px 48px; max-width: 820px; }
.legal .updated { font-size: 12px; color: var(--faint); }
.legal h1 { font-size: 40px; margin: 10px 0 12px; }
.legal .lead { color: var(--muted); font-size: 17px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal section { padding: 22px 0 0; }
.legal h2 { font-size: 19px; margin-bottom: 8px; }
.legal section p { color: #33504E; font-size: 15px; line-height: 1.7; }

/* Tablet */
@media (max-width: 1080px) {
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  header.top nav { display: none; }
  .hero h1 { font-size: 56px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .items { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr 170px; }
  .step p { display: none; }
  .free-card { grid-template-columns: auto 1fr; }
  .free-card .calc { grid-column: span 2; }
}

/* Phone */
@media (max-width: 760px) {
  .blog-head h1 { font-size: 40px; }
  .b-card.big { grid-template-columns: 1fr; }
  .b-card.big .b-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .b-card.big .b-body { padding: 20px; }
  .b-card.big b { font-size: 24px; }
  .b-grid { grid-template-columns: 1fr; }
  .post h1 { font-size: 32px; }
  .post .lead { font-size: 17px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 23px; }
  .wrap { padding: 0 14px; }
  section { padding: 48px 0; }
  header.top { padding-top: 10px; }
  header.top .bar { height: 56px; padding: 0 6px 0 14px; border-radius: 16px; }
  header.top .logo img { height: 24px; }
  header.top .btn { display: none; }
  .head { display: block; margin-bottom: 20px; }
  .head h2 { font-size: 30px; }
  .head p { text-align: left; margin-top: 8px; }
  .hero .banner { min-height: 540px; border-radius: 22px; background-image: url('/assets/img/hero-1000.webp'); }
  .hero .inner { padding: 48px 18px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 15px; }
  .about .grid, .biz .grid, .faq .grid, .coins-card, .backers-card { grid-template-columns: 1fr; gap: 28px; }
  .free-card { grid-template-columns: 1fr; gap: 20px; padding: 26px 20px; border-radius: 22px; }
  .free-card .big { font-size: 88px; }
  .free-card .calc { grid-column: auto; }
  .free-card h2 { font-size: 28px; }
  .about h2, .biz h2, .faq h2 { font-size: 32px; }
  .about .photo { order: -1; }
  .about .photo .cibi { width: 110px; left: auto; right: 10px; bottom: -22px; }
  .stat b { font-size: 36px; }
  .partners { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr 120px; height: 130px; padding: 0 18px; }
  .step .t h3 { font-size: 20px; }
  .step .t small { margin-bottom: 14px; }
  .step .shot { height: 110px; border-width: 4px; border-radius: 16px 16px 0 0; }
  .empty { grid-template-columns: 1fr; text-align: center; padding: 24px; gap: 14px; }
  .empty img { width: 120px; margin: 0 auto; }
  .empty .btn { justify-self: center; }
  .coins-card, .backers-card, .biz .panel, .card-form, .final-card { padding: 26px 20px; border-radius: 22px; }
  .coins-card h2, .backers-card h2 { font-size: 28px; }
  .backers .logos li { height: 78px; }
  .backers .logos img { max-height: 36px; }
  .card-form .row2 { grid-template-columns: 1fr; }
  .final-card { grid-template-columns: 1fr; }
  .final-card h2 { font-size: 32px; }
  .final-card .cibi { width: 150px; margin: 0 auto -26px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; gap: 16px; }
  .legal aside { position: static; }
  .legal article { padding: 26px 20px; border-radius: 22px; }
  .legal h1 { font-size: 30px; }
  footer .cols > div:first-child { grid-column: span 2; }
  footer .card { padding: 26px 20px 18px; border-radius: 22px; }
  .m-banner { aspect-ratio: 16 / 9; border-radius: 22px; }
  .m-head { padding: 0 12px; margin-top: -34px; }
  .m-head .logo { width: 72px; height: 72px; }
  .m-head h1 { font-size: 28px; }
  .m-meta, .m-desc { margin-left: 0; margin-right: 0; }
  .items { grid-template-columns: repeat(2, 1fr); }
  .branches { grid-template-columns: 1fr; }
}

/* Narrow phones: the e-mail field on its own line, the button under it. */
@media (max-width: 900px) {
  .pop.js { height: 720px; }
  .pop .mid { top: 28px; transform: translateX(-50%); width: calc(100% - 32px); }
  .pop h2 { font-size: 36px; }
  .pop .mid .btn { margin-top: 14px; }
  .st-pill { font-size: 15px; padding: 5px 16px 5px 5px; } .st-pill img { width: 30px; height: 30px; }
  .st-tag { font-size: 14px; padding: 7px 12px 7px 26px; } .st-tag svg { width: 16px; height: 16px; }
  .st-disc { width: 80px; height: 80px; } .st-disc b { font-size: 11px; bottom: 10px; }
  .st-sq { width: 76px; height: 76px; font-size: 12px; border-radius: 20px; gap: 5px; } .st-sq svg { width: 22px; height: 22px; }
  .st-burst { width: 104px; height: 104px; font-size: 24px; } .st-burst small { font-size: 9px; max-width: 52px; }
}

@media (max-width: 480px) {
  .faces img { width: 30px; height: 30px; margin-left: -12px; }
  .pill-form { flex-direction: column; border-radius: 22px; padding: 8px; }
  .pill-form input { padding: 12px 10px; }
  .pill-form .btn { width: 100%; justify-content: space-between; }
}
