/* Candle Care: cool daylight surfaces, precise controls and clear hierarchy. */
:root {
  --bg: #edf3f4;
  --panel: #ffffff;
  --ink: #152d38;
  --muted: #526975;
  --line: #d5e2e6;
  --brand: #007d77;
  --brand2: #124d60;
  --green: #dcf4e8;
  --yellow: #fff0c9;
  --red: #fce3e3;
  --gray: #e9eef1;
  --shadow: 0 8px 32px #143e4d09;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 15px;
  color-scheme: light;
}
body {
  background: radial-gradient(ellipse at 90% 0, #cce9e5aa, transparent 45%),
    linear-gradient(180deg, #f8fbfc, var(--bg));
  line-height: 1.55;
}
::selection { background: #b9ede1; color: #143c38; }
.topbar {
  background: #f8fbfbe8;
  border-bottom: 1px solid #d8e4e8;
  padding: 14px clamp(20px, 4vw, 64px);
  gap: 16px;
}
.brand { font-size: 22px; letter-spacing: -.045em; font-weight: 700; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.lang-select { min-width: 120px; font-size: 13px; font-weight: 500; }
main { max-width: 1540px; margin: auto; padding: clamp(20px, 4vw, 56px); }
.hero { min-height: 650px; gap: clamp(32px, 6vw, 100px); padding: 36px 0 68px; }
.hero > div:first-child { position: relative; }
.hero > div:first-child::before {
  content: ""; display: block; width: 58px; height: 5px; background: var(--brand);
  border-radius: 2px; margin-bottom: 30px;
}
h1 { font-size: clamp(42px, 5.8vw, 80px); line-height: 1.04; letter-spacing: -.055em; font-weight: 600; }
h2 { font-size: clamp(23px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
h3 { font-weight: 600; letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 1.7; max-width: 610px; }
.eyebrow { font-size: 11px; letter-spacing: .18em; font-weight: 700; }
.auth-card, .panel, .story-card, .detail-copy, .mock-screen, .method-section {
  border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow);
}
.auth-card { padding: clamp(24px, 3vw, 40px); border-top: 4px solid var(--brand); }
.auth-card h2 { margin-bottom: 28px; }
.auth-card label + label { margin-top: 18px; }
.auth-card .row { margin-top: 24px; }
.auth-card .row button { flex: 1; }
.auth-card .status { font-size: 13px; margin-bottom: 0; }
.dashboard { gap: 22px; }
.panel { padding: 26px; }
.help-page { grid-template-columns: 1fr; }
.help-intro { overflow: hidden; position: relative; padding: clamp(28px, 5vw, 64px); }
.help-intro::after { content: "?"; position: absolute; right: 5%; top: -45px; color: #dff1ed; font-size: 220px; font-weight: 700; line-height: 1; z-index: 0; }
.help-intro > * { position: relative; z-index: 1; }
.help-intro h1 { margin: 4px 0 16px; font-size: clamp(36px, 5vw, 68px); }
.help-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-steps article { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.help-steps b { display: block; color: var(--brand); font-size: 12px; letter-spacing: .12em; }
.help-steps h3 { margin: 14px 0 8px; }
.help-steps p, .help-grid p { margin: 0; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.help-grid .panel { min-width: 0; }
.help-grid h2 { margin-top: 0; }
.help-warning { border-color: #efd59e; background: #fffbef; }
.member-tabs, .admin-tabs {
  background: #ffffffd9; padding: 10px; border: 1px solid var(--line); border-radius: 16px;
}
.tab-buttons { gap: 5px; }
.tab-buttons button { border-color: transparent; background: transparent; color: var(--muted); }
.tab-buttons button.active { background: var(--ink); color: white; border-color: var(--ink); }
button, .pill { border-radius: 10px; padding: 11px 16px; font: inherit; font-size: 13px; font-weight: 600; background: white; }
button:not(:disabled):hover, .pill:hover { border-color: var(--brand); background: #e9f6f3; color: #075a55; }
button.primary, .primary-pill { background: var(--brand); border-color: var(--brand); color: white; }
button.primary:hover, .primary-pill:hover { background: #00655f; color: white; }
button:disabled { opacity: .5; cursor: not-allowed; }
:is(button, a, input, select, textarea):focus-visible { outline: 3px solid #26a999; outline-offset: 3px; }
input, select, textarea { background: #f8fbfc; border-radius: 10px; padding: 11px 13px; min-width: 0; }
input:focus, select:focus, textarea:focus { background: white; border-color: var(--brand); }
label { color: var(--muted); font-size: 13px; font-weight: 500; }
.admin-stat-card { background: #f8fbfc; border-radius: 14px; border-color: var(--line); padding: 22px; }
.admin-stat-card small { font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.admin-stat-card b { color: var(--ink); font-size: clamp(24px, 3vw, 38px); font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-stat-card:first-child { background: #e6f5f0; border-color: #c3e4d9; }
.story-grid, .feature-grid, .landing-detail, .method-section, .chain-showcase { margin-top: 28px; }
.visual-card, .mock-screen { background: linear-gradient(145deg, #f4faf9, #edf4f7); }
.feature-grid article, .chain-showcase, .config-section, .billing-product, .plan-config-card { background: white; border-color: var(--line); border-radius: 18px; }
.fact-grid span, .mock-stats i, .method-grid article, .chain-logo-grid span, .chat-mock span, .confirm-address { background: #f5f9fa; border-color: var(--line); }
.flow-diagram div { background: #f0f7f6; border-color: #c7e4dc; border-radius: 12px; }
.mock-top, .wallet-master { background: var(--ink); }
.icon-chart, .icon-ring, .icon-chain, .icon-switch { background-color: #eef7f5; border-color: var(--line); }
.icon-ring { background: conic-gradient(var(--brand) 0 70%, #dceae7 70%); }
.icon-ring::after { content: ""; background: white; }
.chain-choice { background: white; border-color: var(--line); border-radius: 12px; }
.chain-choice.active { background: var(--ink); color: white; }
.assignment-column { background: #f6f9fa; border-radius: 14px; }
.assign-card { background: white; border-color: var(--line); border-radius: 10px; }
.table { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.table > h3 { padding: 0 16px; }
table { font-size: 13px; font-variant-numeric: tabular-nums; }
th { background: #f1f6f8; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .04em; }
td, th { padding: 14px 12px; }
td { border-color: #e8eef0; }
.tx-cell, .error-text, .copy-line, code { overflow-wrap: anywhere; }
.worker-dock { box-shadow: 0 16px 56px #153c4220; border-color: #bcd6d4; border-radius: 18px; }
.worker-card { border-radius: 12px; }
.worker-page { padding-top: 30px; max-width: 1180px; }
.worker-page > .brand { margin-bottom: 24px; }
.tx-counter { background: #e9f5f0; border-color: #c6e1d5; color: #175f49; font-size: 13px; }
.job-card { border-radius: 20px; background: white; box-shadow: 0 32px 100px #142d3840; }
.job-progress { background: #e5efee; border: 0; height: 8px; }
.job-progress-bar { background: linear-gradient(90deg, #007d77, #45cfa5); }
.site-footer { max-width: 1540px; margin: auto; font-size: 12px; font-weight: 400; }
@keyframes surface-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero, .story-grid, .dashboard { animation: surface-in .4s ease both; }
@media (min-width: 761px) { .hero .auth-card { transform: rotate(1deg); } }
@media (max-width: 1000px) and (min-width: 761px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { gap: 8px; flex-wrap: wrap; padding: 12px 16px; }
  .brand { font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
  .lang-select { min-width: 90px; max-width: 125px; font-size: 12px; padding: 8px; }
  .nav { position: static; flex-direction: row; flex-wrap: wrap; width: 100%; padding: 0; background: transparent; border: 0; }
  .nav button { flex: 1; padding: 8px; }
  main { padding: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding: 24px 0; gap: 28px; }
  h1 { font-size: clamp(36px, 10vw, 52px); }
  .lead { font-size: 16px; }
  .hero-actions { gap: 8px; }
  .panel, .story-card, .auth-card { padding: 20px; border-radius: 16px; }
  .help-intro h1 { font-size: 36px; }
  .help-steps, .help-grid { grid-template-columns: minmax(0, 1fr); }
  .help-steps article { padding: 20px; }
  .admin-stat-card { padding: 14px; }
  .admin-stat-card b { font-size: 25px; }
  .admin-stat-card small { letter-spacing: .03em; overflow-wrap: anywhere; }
  .dashboard > *, .row > *, .panel > * { min-width: 0; }
  input, select, textarea { font-size: 16px; }
  .inline-page-head { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .worker-page { padding: 16px; }
  .site-footer { flex-direction: row; flex-wrap: wrap; padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
