/* Herbata site. The look follows the reference: pure black and grey, hairline borders, Geist, one white accent. */
:root {
  --background: #000;
  --foreground: #fff;
  --card: #060606;
  --popover: #0d0d0d;
  --secondary: #202020;
  --muted-foreground: #a3a3a3;
  --border: #1e1e1e;
  --input: #343434;
  --destructive: #f2555a;
  --success: #52d58a;
  --warning: #e8b13a;
  --radius: .5rem;
  --radius-lg: .75rem;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .14s;
  --t: .2s;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 16px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
code, .key, .pay-address { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--foreground); color: #000; padding: 8px 12px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted-foreground); }

.eyebrow, .plan-term, .pay-group-label, .pay-label { color: var(--muted-foreground); letter-spacing: .09em; text-transform: uppercase; font-size: 11px; font-weight: 500; }

/* ---- navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid transparent; }
.nav-solid { -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); background: rgba(0, 0, 0, .78); border-bottom-color: var(--border); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { display: block; height: 17px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 12px; border-radius: var(--radius); color: var(--muted-foreground); text-decoration: none; font-size: 14px; font-weight: 450; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.nav-link:hover { background: var(--secondary); color: var(--foreground); }

/* ---- buttons */
.hero-button, .plan-button, .checkout-primary, .auth-submit {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius); background: var(--foreground); color: #000;
  font: 500 14px/1 var(--font-sans); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform var(--t) var(--ease-soft), box-shadow var(--t) var(--ease-soft), opacity var(--t-fast) var(--ease);
}
.hero-button::after, .plan-button::after, .checkout-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(100deg, transparent 20%, rgba(0, 0, 0, .18) 50%, transparent 80%); transition: transform .62s var(--ease-soft);
}
.hero-button:hover::after, .plan-button:hover::after, .checkout-primary:hover::after { transform: translateX(130%); }
.hero-button:hover, .plan-button:hover, .checkout-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -12px rgba(255, 255, 255, .5); }
.ghost-button, .nav-cta, .google-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: transparent; color: var(--foreground); font: 500 14px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease-soft);
}
.ghost-button:hover, .nav-cta:hover, .google-button:hover { background: var(--secondary); border-color: rgba(255, 255, 255, .4); box-shadow: 0 4px 14px -8px var(--foreground); }
.ghost-button.small { padding: 6px 12px; font-size: 13px; }
.nav-cta { margin-left: 6px; }
button { font-family: inherit; }

/* ---- hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter) 90px; overflow: hidden; }
.hero-backdrop, .hero-grid, .hero-aura, .hero-scrim { position: absolute; inset: 0; }
.hero-grid { opacity: .55; background-size: 64px 64px; background-image: linear-gradient(to right, rgba(30, 30, 30, .62) 1px, transparent 1px), linear-gradient(to bottom, rgba(30, 30, 30, .62) 1px, transparent 1px); -webkit-mask: radial-gradient(80% 62% at 50% 42%, #000 10%, transparent 74%); mask: radial-gradient(80% 62% at 50% 42%, #000 10%, transparent 74%); }
.hero-aura { background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .14) 0%, transparent 62%); }
.hero-scrim { background: linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, transparent 34%, transparent 62%, var(--background) 100%); }
.hero-inner { position: relative; display: grid; justify-items: center; text-align: center; }
.mark3d { position: relative; width: min(320px, 62vw); }
.mark3d-aura { position: absolute; inset: -20%; background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 62%); animation: aura 6s ease-in-out infinite; }
.mark3d-float { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 0 28px rgba(255, 255, 255, .28)); animation: float 7s ease-in-out infinite; }
.hero-title { margin-top: 26px; font-size: clamp(52px, 11vw, 118px); font-weight: 600; letter-spacing: -.05em; line-height: .96; }
.hero-lead { margin-top: 16px; max-width: 46ch; color: var(--muted-foreground); font-size: clamp(16px, 2vw, 19px); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-actions .hero-button, .hero-actions .ghost-button { padding: 12px 20px; min-width: 140px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50%; display: grid; place-items: center; gap: 5px; color: var(--muted-foreground); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.scroll-cue:hover { color: var(--foreground); }
.scroll-cue svg { width: 17px; height: 17px; animation: cue 2.4s var(--ease-soft) infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes aura { 0%, 100% { opacity: .6; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(5px); opacity: 1; } }

/* ---- sections */
.showcase, .pricing { position: relative; padding: var(--section-y) var(--gutter); border-top: 1px solid var(--border); }
.section-heading { display: grid; gap: 12px; max-width: 1180px; margin: 0 auto clamp(38px, 5vw, 62px); }
.section-heading h2 { max-width: 18ch; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.035em; line-height: 1.04; }
.feature-grid, .plans { display: grid; gap: 14px; max-width: 1180px; margin: 0 auto; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); transition: border-color var(--t) var(--ease); }
.feature:hover { border-color: var(--input); }
.feature h3 { font-size: 17px; font-weight: 550; letter-spacing: -.01em; }
.feature p { margin-top: 8px; color: var(--muted-foreground); font-size: 15px; }
.buy-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; max-width: 1180px; margin: 64px auto 0; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.buy-band h3 { font-size: 22px; letter-spacing: -.02em; }
.buy-band p { margin-top: 6px; color: var(--muted-foreground); }
.plans { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto auto 1fr auto auto; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); transition: border-color var(--t) var(--ease); }
.plan:hover { border-color: var(--input); }
.plan-featured { border-color: var(--input); }
.plan h3 { margin-top: 16px; font-size: 19px; font-weight: 550; }
.plan-badge { position: absolute; top: 18px; right: 18px; padding: 3px 9px; border: 1px solid var(--input); border-radius: 999px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.price { display: flex; align-items: baseline; gap: 2px; margin-top: 14px; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.plan-featured .price { font-size: 50px; }
.price span { color: var(--muted-foreground); font-size: 24px; font-weight: 500; }
.plan-blurb { margin-top: 10px; color: var(--muted-foreground); font-size: 14px; }
.plan-list { margin: 18px 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; align-content: start; font-size: 14px; }
.plan-list li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 10px; border-radius: 50%; background: var(--foreground); vertical-align: middle; }
.plan:not(.plan-featured) .plan-button { background: transparent; color: var(--foreground); border-color: var(--border); }
.plan:not(.plan-featured) .plan-button:hover { background: var(--secondary); border-color: rgba(255, 255, 255, .4); }
.pricing-note { max-width: 1180px; margin: 22px auto 0; color: var(--muted-foreground); font-size: 14px; text-align: center; }

/* reveal on scroll: the content is visible until the script marks the page, so nothing waits on JavaScript */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .62s var(--ease-soft) calc(var(--i, 0) * 70ms), transform .62s var(--ease-soft) calc(var(--i, 0) * 70ms); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---- footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 36px var(--gutter); border-top: 1px solid var(--border); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.footer-links a { color: var(--muted-foreground); text-decoration: none; }
.footer-links a:hover { color: var(--foreground); }
.footer-note { color: var(--muted-foreground); font-size: 13px; }

/* ---- sign in */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.auth-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border-right: 1px solid var(--border); background: radial-gradient(120% 90% at 30% 20%, #161616, #000 70%); overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: 0; opacity: .5; background-size: 64px 64px; background-image: linear-gradient(to right, rgba(30, 30, 30, .8) 1px, transparent 1px), linear-gradient(to bottom, rgba(30, 30, 30, .8) 1px, transparent 1px); -webkit-mask: radial-gradient(70% 60% at 30% 60%, #000, transparent); mask: radial-gradient(70% 60% at 30% 60%, #000, transparent); }
.auth-aside > * { position: relative; }
.auth-hero img { filter: drop-shadow(0 0 24px rgba(255, 255, 255, .25)); }
.auth-hero p { margin-top: 18px; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.03em; }
.auth-aside-back { color: var(--muted-foreground); text-decoration: none; font-size: 13px; }
.auth-aside-back:hover { color: var(--foreground); }
.auth-panel { display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(400px, 100%); display: grid; gap: 14px; }
.auth-card h1 { font-size: 30px; letter-spacing: -.03em; }
.auth-sub, .auth-fine, .field-hint { color: var(--muted-foreground); font-size: 14px; }
.auth-fine a, .field-hint a { text-decoration: underline; }
.google-button { width: 100%; padding: 12px 16px; background: #fff; color: #000; border-color: #fff; }
.google-button:hover { background: #ececec; color: #000; border-color: #ececec; }
.google-mark { width: 18px; height: 18px; }
.auth-notice { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--popover); font-size: 13.5px; color: var(--muted-foreground); }
.tone-error { border-color: rgba(242, 85, 90, .5); color: #ffb4b6; }
.tone-success { border-color: rgba(82, 213, 138, .45); color: #b9f0d1; }

/* ---- checkout, order, dashboard, documents */
.checkout, .order, .dash, .doc { max-width: 880px; margin: 0 auto; padding: 130px var(--gutter) 90px; display: grid; gap: 18px; align-content: start; min-height: 70svh; }
.dash { max-width: 1040px; }
.checkout h1, .order h1, .dash h1, .doc h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; line-height: 1.04; }
.checkout-total { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.checkout-total strong { font-size: 40px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.checkout-total span { color: var(--muted-foreground); }
.coin-form { display: grid; gap: 16px; max-width: 520px; }
.coin-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.coin { display: block; cursor: pointer; }
.coin input { position: absolute; opacity: 0; }
.coin-body { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.coin-body small { color: var(--muted-foreground); }
.coin input:checked + .coin-body { border-color: var(--foreground); background: var(--popover); }
.coin input:focus-visible + .coin-body { outline: 2px solid var(--foreground); outline-offset: 2px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.step { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-foreground); font-size: 13px; }
.step.done { color: var(--foreground); border-color: var(--input); }
.step.now { color: #000; background: var(--foreground); border-color: var(--foreground); }
.pay-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.pay-done, .pay-closed { grid-template-columns: 1fr; }
.pay-done h2 { font-size: 26px; letter-spacing: -.03em; }
.pay-qr { width: 192px; height: 192px; border-radius: var(--radius); overflow: hidden; background: #fff; }
.pay-qr svg { display: block; width: 100%; height: 100%; }
.pay-fields { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pay-field { display: grid; gap: 6px; }
.copy { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); color: var(--foreground); text-align: left; cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.copy:hover { border-color: var(--input); }
.copy-hint { flex: none; color: var(--muted-foreground); font-size: 12px; }
.pay-amount { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-address { font-size: 13px; overflow-wrap: anywhere; }
.pay-meta { color: var(--muted-foreground); font-size: 14px; }
.pay-meta strong { color: var(--foreground); font-variant-numeric: tabular-nums; }
.pay-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pay-links form { margin: 0; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dash-head form { margin: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.panel { display: grid; gap: 14px; align-content: start; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.panel-wide { grid-column: 1 / -1; }
.license-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.key { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); font-size: 13px; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 3px 10px; border: 1px solid var(--input); border-radius: 999px; font-size: 12px; font-weight: 500; text-transform: capitalize; }
.pill-active, .pill-paid { color: var(--success); border-color: rgba(82, 213, 138, .5); }
.pill-confirming, .pill-pending, .pill-suspended { color: var(--warning); border-color: rgba(232, 177, 58, .5); }
.pill-expired, .pill-revoked { color: var(--destructive); border-color: rgba(242, 85, 90, .5); }
.orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders th { text-align: left; color: var(--muted-foreground); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.orders th, .orders td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--border); }
.orders td { font-variant-numeric: tabular-nums; }
.doc { max-width: 720px; gap: 14px; }
.doc h2 { margin-top: 18px; font-size: 20px; letter-spacing: -.02em; }
.doc p { color: #d4d4d4; }
.lead { color: var(--muted-foreground) !important; font-size: 18px; }
.doc-callout { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--popover); }
.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { margin-top: 8px; }

/* ---- profile */
.avatar { display: block; border-radius: 50%; object-fit: cover; background: var(--secondary); }
.avatar-fallback { display: grid; place-items: center; font-weight: 600; color: var(--foreground); border: 1px solid var(--input); }
.dash-id { display: flex; align-items: center; gap: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.profile-preview { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.preview-avatar { padding: 3px; border-radius: 50%; border: 2px solid var(--accent, #8b7cff); }
.preview-text { display: grid; gap: 2px; min-width: 0; }
.preview-text span { font-size: 13px; overflow-wrap: anywhere; }
.profile-form { display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field-input { width: 100%; padding: 11px 14px; border: 1px solid var(--input); border-radius: var(--radius); background: var(--background); color: var(--foreground); font: inherit; }
.field-input:focus-visible { outline: 2px solid var(--foreground); outline-offset: 1px; }
.accent-text { width: 120px; font-family: var(--font-mono); }
input[type="color"] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--input); border-radius: var(--radius); background: var(--background); cursor: pointer; }
.field-hint.ok { color: var(--success); }
.field-hint.bad { color: var(--destructive); }

@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .pay-card { grid-template-columns: 1fr; }
  .pay-qr { margin: 0 auto; }
  .nav-link { padding: 8px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark3d-float, .mark3d-aura, .scroll-cue svg { animation: none; }
  .js-reveal [data-reveal] { transition: none; opacity: 1; transform: none; }
}
