/* Vailoza website. Static: no scripts, no third-party requests (fonts are self-hosted). */

@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-Bold.ttf') format('truetype'); font-weight: 700 800; font-display: swap; }

:root {
  --midnight: #171C3D;
  --midnight-2: #222852;
  --iris: #5252E0;
  --iris-soft: #E6E6FC;
  --mint: #A8F0D5;
  --cloud: #F7F8FC;
  --white: #FFFFFF;
  --slate: #555A7A;
  --line: #E1E3EF;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--midnight);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--iris); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- header ---------------------------------------------------------------- */
.site-header { background: var(--midnight); color: var(--cloud); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img.symbol { width: 34px; height: auto; }
.brand img.wordmark { height: 22px; width: auto; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav a { color: var(--cloud); text-decoration: none; font-size: 16px; font-weight: 500; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.site-header.light { background: var(--cloud); color: var(--midnight); border-bottom: 1px solid var(--line); }
.site-header.light .nav a { color: var(--midnight); }

/* ---- hero: the same message, twice ---------------------------------------- */
.hero { background: var(--midnight); color: var(--cloud); padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: .98; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 28px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span + span { color: var(--mint); }
.hero p.lede { font-size: clamp(18px, 1.6vw, 21px); color: #C9CCE4; max-width: 34em; margin: 0 0 36px; }
.availability { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border: 1px solid #3A4170; border-radius: 999px; font-size: 16px; color: var(--cloud); }
.availability .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.duo > div { display: flex; flex-direction: column; }
.duo .phone, .duo .wire { flex: 1; }
.phone {
  background: var(--cloud);
  color: var(--midnight);
  border-radius: 34px;
  padding: 14px;
  border: 6px solid #0E1230;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.phone .bar { display: flex; align-items: center; gap: 10px; padding: 8px 6px 14px; border-bottom: 1px solid var(--line); }
.phone .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--midnight); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.phone .who { font-weight: 600; font-size: 15px; line-height: 1.2; }
.phone .who small { display: block; font-weight: 400; color: var(--slate); font-size: 12px; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 4px 6px; min-height: 250px; justify-content: flex-end; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.msg.in { background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.out { background: var(--iris); color: var(--white); align-self: flex-end; border-bottom-right-radius: 6px; }
.caption { margin-top: 14px; font-size: 14px; color: #A9ADCB; text-align: center; }

.wire {
  border-radius: 22px;
  padding: 18px 16px;
  background: var(--midnight-2);
  border: 1px dashed #4A5288;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  align-self: stretch;
}
.wire .packet { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45; color: #B3B8DE; word-break: break-all; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.wire .packet b { color: var(--mint); font-weight: 400; }
.wire .route { font-size: 13px; color: #A9ADCB; }


/* ---- feature rows ---------------------------------------------------------- */
.features { padding: clamp(72px, 9vw, 128px) 0 24px; }
.intro { max-width: 40em; margin-bottom: clamp(48px, 6vw, 80px); }
.intro h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 800; }
.intro p { color: var(--slate); margin: 0; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.row:nth-of-type(even) .copy { order: 2; }
.row h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 700; }
.row p { margin: 0; color: #2B3058; max-width: 32em; }
.row p + p { margin-top: 12px; color: var(--slate); font-size: 16px; }

.visual { min-height: 220px; display: grid; place-items: center; }

/* identity code */
.code-chip { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; width: min(100%, 380px); }
.code-chip .label { font-size: 14px; color: var(--slate); margin-bottom: 6px; }
.code-chip .code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 15px; word-break: break-all; color: var(--midnight); }
.code-chip .none { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.code-chip .none span { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--cloud); color: var(--slate); text-decoration: line-through; }

/* sealed envelopes */
.envelopes { position: relative; width: 300px; height: 200px; }
.envelope { position: absolute; width: 220px; height: 140px; border-radius: 16px; background: var(--midnight); box-shadow: 0 18px 40px -20px rgba(23, 28, 61, .55); }
.envelope::before { content: ''; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(160deg, transparent 49%, rgba(255,255,255,.08) 50%, transparent 51%), linear-gradient(20deg, transparent 49%, rgba(255,255,255,.08) 50%, transparent 51%); }
.envelope .seal { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; }
.envelope .seal img { width: 26px; }
.envelope:nth-child(1) { left: 0; top: 0; opacity: .45; transform: rotate(-6deg); }
.envelope:nth-child(2) { left: 40px; top: 24px; opacity: .7; transform: rotate(-2deg); }
.envelope:nth-child(3) { left: 80px; top: 50px; }

/* timer */
.timer { display: flex; flex-direction: column; gap: 10px; width: min(100%, 360px); }
.timer .msg { max-width: 100%; }
.timer .msg.fading { opacity: .35; }
.timer .tag { align-self: flex-end; font-size: 13px; color: var(--slate); }

/* vault */
.vault { display: flex; gap: 16px; align-items: stretch; }
.vault .door { width: 150px; height: 190px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.vault .door.decoy { background: var(--iris-soft); border-color: transparent; }
.vault .pin { display: flex; gap: 8px; }
.vault .pin i { width: 12px; height: 12px; border-radius: 50%; background: var(--midnight); }
.vault .door.decoy .pin i { background: var(--iris); }
.vault .lock { width: 44px; height: 36px; border-radius: 8px; background: var(--midnight); position: relative; margin-top: 18px; }
.vault .lock::before { content: ''; position: absolute; left: 9px; top: -20px; width: 26px; height: 26px; border: 5px solid var(--midnight); border-bottom: 0; border-radius: 14px 14px 0 0; }
.vault .door.decoy .lock, .vault .door.decoy .lock::before { background: var(--iris); border-color: var(--iris); }
.vault .door.decoy .lock::before { background: transparent; }
.vault .door span { font-size: 14px; color: var(--slate); text-align: center; padding: 0 10px; }

/* group */
.group { display: flex; }
.group .face { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--cloud); display: grid; place-items: center; font-weight: 700; color: var(--midnight); margin-left: -14px; }
.group .face:first-child { margin-left: 0; }
.face.a { background: var(--mint); } .face.b { background: #C9C9F7; } .face.c { background: #FFD9A8; } .face.d { background: #FCE4E6; } .face.e { background: var(--midnight); color: var(--cloud); }

/* ---- honest limits ---------------------------------------------------------- */
.limits { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) 0; margin-top: clamp(48px, 6vw, 80px); }
.limits .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.limits h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 800; }
.limits .wrap > div:first-child p { color: var(--slate); margin: 0; }
.limits ul { list-style: none; margin: 0; padding: 0; }
.limits li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.limits li:first-child { padding-top: 0; }
.limits li strong { display: block; font-weight: 600; margin-bottom: 4px; }
.limits li span { color: var(--slate); font-size: 16px; }

/* ---- free -------------------------------------------------------------------- */
.free { padding: clamp(64px, 8vw, 112px) 0; }
.free .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.free h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 800; }
.free p { margin: 0; color: var(--slate); max-width: 34em; }

/* ---- footer -------------------------------------------------------------------- */
.site-footer { background: var(--midnight); color: #C9CCE4; padding: 56px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 26px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: var(--cloud); font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #C9CCE4; text-decoration: none; }
.site-footer a:hover { color: var(--cloud); text-decoration: underline; }
.site-footer .small { grid-column: 1 / -1; border-top: 1px solid #2B3263; padding-top: 24px; margin-top: 16px; font-size: 13px; color: #8C90AB; }

/* ---- legal pages ------------------------------------------------------------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 24px; font-weight: 800; }
.legal pre { white-space: pre-wrap; font-family: inherit; font-size: 16px; line-height: 1.7; color: #2B3058; margin: 0; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p, .legal li { color: #2B3058; }
.legal .todo { background: #FDF2DC; border: 1px solid #f5a623; border-radius: 10px; padding: 12px 14px; }

/* ---- small screens ------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap, .row, .limits .wrap { grid-template-columns: 1fr; }
  .row:nth-of-type(even) .copy { order: 0; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .duo { grid-template-columns: 1fr; }
  .wire { min-height: 0; }
  .nav { gap: 18px; }
  .vault .door { width: 130px; }
  .envelopes { transform: scale(.85); transform-origin: left center; }
}

/* availability pill on light backgrounds */
.availability.light-pill { border-color: var(--line); color: var(--midnight); background: var(--white); }
.availability.light-pill .dot { background: var(--iris); }

/* phone chat sits at the bottom of the screen, like a real chat */
.duo .phone { display: flex; flex-direction: column; }
.duo .phone .chat { flex: 1; }

/* ---- nav: Donate button ------------------------------------------------------- */
.nav { align-items: center; }
.nav a.nav-cta { background: var(--mint); color: var(--midnight); opacity: 1; padding: 8px 18px; border-radius: 999px; font-weight: 600; }
.nav a.nav-cta:hover { text-decoration: none; background: #C4F6E3; }

/* ---- content pages (blog, donate) ---------------------------------------------- */
.page { padding: clamp(40px, 6vw, 80px) 0 96px; }
.page-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.page-head p { color: var(--slate); margin: 0; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; max-width: 800px; }
.post-list a { display: block; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.post-list a:hover { border-color: var(--iris); }
.post-list time, .post time { font-size: 14px; color: var(--slate); }
.post-list h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.015em; margin: 6px 0 8px; }
.post-list p { margin: 0 0 14px; color: #2B3058; }
.post-list .more { color: var(--iris); font-weight: 600; font-size: 16px; }

.post { max-width: 760px; }
.post .back { display: table; font-size: 15px; margin-bottom: 28px; text-decoration: none; }
.post h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 8px 0 16px; font-weight: 800; }
.post .post-lede { font-size: clamp(19px, 1.8vw, 22px); color: var(--slate); margin: 0 0 36px; }
.post h2 { font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -0.015em; margin: 40px 0 10px; }
.post p { color: #2B3058; margin: 0 0 16px; }

.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.donate-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3.5vw, 40px); }
.donate-card h2 { font-size: 24px; letter-spacing: -0.015em; margin: 0 0 16px; }
.donate-card.dark { background: var(--midnight); color: var(--cloud); border-color: var(--midnight); }
.donate-card.dark p { color: #C9CCE4; }
.donate-card.dark a { color: var(--mint); }
.donate-card .fine { font-size: 15px; color: #A9ADCB; border-top: 1px solid #2B3263; padding-top: 16px; margin-top: 20px; }
.coins { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.coin { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid #2B3263; border-radius: 16px; }
.coin .qr { width: 112px; height: 112px; border-radius: 8px; background: #fff; }
.coin h3 { margin: 0; font-size: 18px; color: var(--cloud); }
.coin h3 span { font-size: 14px; font-weight: 600; color: var(--mint); margin-left: 6px; }
.coin .net { margin: 2px 0 8px; font-size: 14px; }
.coin .addr { display: block; font-size: 13px; line-height: 1.5; word-break: break-all; user-select: all; color: var(--cloud); background: #0F1330; padding: 8px 10px; border-radius: 8px; }
@media (max-width: 480px) { .coin { grid-template-columns: 1fr; } .coin .qr { margin: 0 auto; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: #2B3058; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); }
.ticks li::after { content: ''; position: absolute; left: 6px; top: 10px; width: 6px; height: 9px; border: solid var(--midnight); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .donate-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
