/* nasiai.uz, the public page (decision 73; boards L-01 and L-02). Firuza's
   tokens, as in the Mini App; the colour goes to one place, the receipt on
   its turquoise panel. No script and no inline style: the page's own policy. */

:root {
  --ground: #EEF1F1;
  --surface: #FFFFFF;
  --line: #DCE3E4;
  --ink: #122024;
  --ink-2: #3D4F55;
  --caption: #5E6F75;
  --icon: #8A979C;
  --accent: #0B7A75;
  --accent-pressed: #08605C;
  --tint: #DFF1EF;
  --on-tint: #075E5A;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", var(--font);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--font); font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-pressed); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.icon { flex-shrink: 0; color: var(--ink-2); }
.icon.accent { color: var(--accent); }
.mono { font-family: var(--mono); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent-pressed); color: #FFFFFF; }
.btn.secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.secondary:hover { background: #F6F8F8; color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* ---- header ---- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand-mark .icon { color: #FFFFFF; }
.brand-name { font-family: var(--display); font-size: 18px; font-weight: 600; }
.nav { order: 3; flex: 1 1 100%; display: flex; gap: 24px; overflow-x: auto; padding-bottom: 4px; }
.nav a, .foot-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover, .foot-links a:hover { color: var(--ink); }

/* ---- hero ---- */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); }
.hero-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--display); font-size: clamp(34px, 4.4vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
.lead { max-width: 36rem; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--caption); }

/* The moment: a paper receipt and the report it became, on Firuza's turquoise. */
.scene { flex: 1 1 400px; min-width: 0; min-height: 640px; display: flex; align-items: center; justify-content: center; padding: 32px clamp(20px, 5vw, 32px); border-radius: 24px; background: var(--accent); overflow: hidden; }
.scene-stage { position: relative; width: 340px; max-width: 100%; height: 560px; }
.receipt { position: absolute; top: 0; left: 12px; width: min(280px, calc(100% - 48px)); display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 36px; background: var(--surface); color: var(--ink); font: 13px/1.45 var(--mono); box-shadow: 0 8px 24px rgba(18, 32, 36, 0.18); transform: rotate(-3deg); clip-path: polygon(0 0, 100% 0, 100.00% calc(100% - 8px), 96.88% 100%, 93.75% calc(100% - 8px), 90.62% 100%, 87.50% calc(100% - 8px), 84.38% 100%, 81.25% calc(100% - 8px), 78.12% 100%, 75.00% calc(100% - 8px), 71.88% 100%, 68.75% calc(100% - 8px), 65.62% 100%, 62.50% calc(100% - 8px), 59.38% 100%, 56.25% calc(100% - 8px), 53.12% 100%, 50.00% calc(100% - 8px), 46.88% 100%, 43.75% calc(100% - 8px), 40.62% 100%, 37.50% calc(100% - 8px), 34.38% 100%, 31.25% calc(100% - 8px), 28.12% 100%, 25.00% calc(100% - 8px), 21.88% 100%, 18.75% calc(100% - 8px), 15.62% 100%, 12.50% calc(100% - 8px), 9.38% 100%, 6.25% calc(100% - 8px), 3.12% 100%, 0.00% calc(100% - 8px)); }
.receipt-head { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.receipt-head strong { font-weight: 500; }
.receipt-head span, .receipt-row small { color: var(--caption); font-size: 12px; }
.receipt-rule { border-top: 1px dashed var(--line); }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; }
.receipt-row > span:first-child { display: flex; flex-direction: column; }
.receipt-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; }
.receipt-ref { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: var(--tint); color: var(--on-tint); font-size: 12px; font-weight: 500; }
.report { position: absolute; right: 0; bottom: 0; width: min(268px, calc(100% - 40px)); display: flex; flex-direction: column; gap: 6px; }
.bubble { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 8px; background: var(--surface); border-radius: 16px 16px 16px 6px; box-shadow: 0 8px 24px rgba(18, 32, 36, 0.18); font-size: 14px; line-height: 1.4; }
.bubble-from { font-size: 13px; font-weight: 600; color: var(--accent); }
.bubble-title { font-weight: 600; }
.bubble-title .mono { font-weight: 500; }
.bubble-line { display: flex; justify-content: space-between; gap: 12px; }
.bubble-line strong { font-weight: 600; }
.bubble-card { font: 13px var(--mono); color: var(--ink-2); }
.bubble-time { align-self: flex-end; font-size: 11px; color: var(--icon); }
.bubble-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bubble-buttons span { display: flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.9); font-size: 14px; font-weight: 600; }

/* ---- sections ---- */
.section { display: flex; flex-direction: column; gap: 32px; padding-top: clamp(48px, 8vw, 96px); }
.section h2 { font-family: var(--display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 500; line-height: 1.15; }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head p { max-width: 40rem; color: var(--ink-2); line-height: 1.55; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cards.prices { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.card h3 { font-size: 19px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.step { font: 500 13px var(--mono); color: var(--accent); }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 32px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.extras .fact { padding: 16px 0; border-top: 1px solid var(--line); }
.fact-text { display: flex; flex-direction: column; gap: 4px; }
.fact-text strong { font-size: 16px; font-weight: 600; }
.fact-text span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.price-name { display: flex; flex-direction: column; gap: 2px; }
.price-name strong { font-weight: 600; }
.price-name span { font-size: 13px; color: var(--caption); }
.price-value { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 20px; font-weight: 500; white-space: nowrap; }
.stars { width: 18px; height: 18px; }
.small-print { font-size: 14px; line-height: 1.5; color: var(--caption); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px 32px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.start { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.start-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.start-box > div { display: flex; flex-direction: column; gap: 8px; max-width: 36rem; }
.start-box h2 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; line-height: 1.15; }
.start-box p { color: var(--ink-2); line-height: 1.55; }

/* ---- footer ---- */
.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--caption); }
.foot a { color: var(--caption); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { font-size: 14px; color: var(--caption); }

/* A grid cell narrower than 320px would push the page sideways on a small phone. */
@media (max-width: 400px) {
  .extras, .trust { grid-template-columns: minmax(0, 1fr); }
  .trust { padding: 20px; }
}

/* On a wide screen the links sit in the header's one row. */
@media (min-width: 880px) {
  .nav { order: 0; flex: 0 1 auto; padding-bottom: 0; margin-left: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 150ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
