/* Hours Booster website. Same palette as the app's light theme, same two typefaces. */

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

:root {
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --hover: #EBEDF3;
  --text: #14161B;
  --muted: #5A5F6E;
  --faint: #878C9B;
  --stroke: #E2E5EC;
  --stroke-strong: #C4C9D5;
  --accent: #DE5312;
  --accent-deep: #DB3616;
  --grad: linear-gradient(135deg, #DB3616 0%, #EA8306 100%);
  --ramp: linear-gradient(90deg, #F0201F 0%, #F89008 55%, #F8D800 100%);
  --success: #12A150;
  --danger: #D93425;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(143, 151, 171, 0.22);
  --shadow-soft: 0 6px 18px rgba(143, 151, 171, 0.16);
  --head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .btn, .price-amount, .stat-value { font-family: var(--head); letter-spacing: -0.01em; }

h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; font-weight: 700; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }

/* ===== Header ===== */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 245, 248, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.lockup { display: flex; align-items: center; gap: 14px; }
.lockup img.mark { height: 46px; }
.lockup img.word { height: 40px; }

.nav { display: flex; gap: 8px; align-items: center; }
/* Only the plain text links; the buttons and the language menu keep their own colours. */
.nav > a:not(.btn) { color: var(--muted); font-weight: 500; padding: 10px 16px; border-radius: 12px; font-size: 16px; }
.nav > a:not(.btn):hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav .btn { margin-left: 8px; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }

/* ===== Language menu (flag + name, one entry per language) ===== */

details.lang { position: relative; margin-left: 6px; }
details.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--stroke-strong);
  background: var(--surface); font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--text);
}
details.lang summary::-webkit-details-marker { display: none; }
details.lang summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 2px 0 2px; }
details.lang img { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; }
.lang-menu {
  position: absolute; right: 0; top: 52px; z-index: 20; width: 230px; max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; box-shadow: var(--shadow); padding: 8px;
}
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-family: var(--body); font-weight: 500; font-size: 15px; }
.lang-menu a:hover { background: var(--hover); text-decoration: none; }
.lang-menu a.current { background: #FDEDE4; color: var(--accent); }

/* Poppins has no Cyrillic or CJK; those languages keep one consistent face for headings. */
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3, html[lang="ru"] .btn, html[lang="ru"] summary,
html[lang="uk"] h1, html[lang="uk"] h2, html[lang="uk"] h3, html[lang="uk"] .btn, html[lang="uk"] summary { font-family: var(--body); font-weight: 700; }
html[lang="zh"] body, html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] .btn, html[lang="zh"] summary { font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
html[lang="ja"] body, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .btn, html[lang="ja"] summary { font-family: "Inter", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
html[lang="zh"] h1, html[lang="ja"] h1 { font-size: clamp(34px, 5vw, 56px); }

/* ===== Buttons ===== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 30px; border-radius: 18px; border: 1px solid transparent;
  font-size: 18px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(222, 83, 18, 0.32); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(222, 83, 18, 0.40); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--stroke-strong); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: #F2C4BE; }
.btn-danger:hover { background: #FDF1EF; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 13px; }
.btn-big { height: 68px; padding: 0 38px; font-size: 20px; border-radius: 20px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* ===== Hero ===== */

.hero { padding: 84px 0 40px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: #FDEDE4; padding: 8px 16px; border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 span { background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); max-width: 720px; margin: 24px auto 0; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero .note { margin-top: 20px; color: var(--faint); font-size: 15px; }
.hero .note b { color: var(--muted); font-weight: 600; }

.shot { margin: 56px auto 0; max-width: 1040px; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--stroke);
}

/* ===== Sections ===== */

section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 19px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-soft);
}
.card p { color: var(--muted); font-size: 16.5px; }
.icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 20px; box-shadow: 0 8px 18px rgba(222, 83, 18, .25);
}
.icon svg { width: 26px; height: 26px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 30px 30px 96px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 30px; top: 30px; width: 46px; height: 46px; border-radius: 15px;
  background: var(--grad); color: #fff; font-family: var(--head); font-weight: 700; font-size: 20px;
  display: grid; place-items: center;
}

/* ===== Price ===== */

.price-wrap { display: flex; justify-content: center; }
.price {
  width: min(560px, 100%); text-align: center; padding: 44px 40px 40px;
  border-radius: 30px; position: relative; overflow: hidden;
}
.price::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--ramp); }
.price .tag {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--success); background: #E6F7EC; padding: 7px 14px; border-radius: 999px;
}
.price-amount { font-size: 84px; font-weight: 700; line-height: 1; margin: 22px 0 4px; }
.price-amount small { font-size: 30px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.price .once { color: var(--muted); font-size: 18px; }
.price ul { list-style: none; padding: 0; margin: 30px 0; text-align: left; display: grid; gap: 12px; }
.price li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.price li svg { flex: none; width: 24px; height: 24px; color: var(--success); margin-top: 2px; }
.price form { margin: 0; }
.price .secure { margin-top: 16px; color: var(--faint); font-size: 14.5px; display: flex; gap: 8px; justify-content: center; align-items: center; }

/* ===== FAQ ===== */

.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
/* Scoped to the FAQ: the language menu in the header is a <details> too. */
.faq details { background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; padding: 0 26px; }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--head); font-weight: 600; font-size: 18px;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 26px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 22px; font-size: 16.5px; }

/* ===== Footer ===== */

.site-footer { border-top: 1px solid var(--stroke); padding: 34px 0 44px; color: var(--faint); font-size: 15px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-footer a { color: var(--muted); margin-left: 22px; }

/* ===== Simple pages (success, legal, admin) ===== */

.page { padding: 56px 0 80px; }
.narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }

.key-box {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; line-height: 1.5;
  word-break: break-all; background: var(--bg); border: 1px dashed var(--stroke-strong);
  border-radius: 16px; padding: 20px 22px; margin: 20px 0 14px; user-select: all;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.spinner {
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--stroke);
  border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Forms ===== */

label { display: block; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
input[type="text"], input[type="password"], input[type="email"], textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1px solid var(--stroke-strong); border-radius: 14px; padding: 14px 16px; outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 18px; }
.file-drop {
  border: 2px dashed var(--stroke-strong); border-radius: 18px; padding: 26px; text-align: center; color: var(--muted);
  background: var(--bg); cursor: pointer;
}
.file-drop.has-file { border-color: var(--success); color: var(--text); }
.file-drop input { display: none; }
.progress { height: 12px; border-radius: 999px; background: var(--stroke); overflow: hidden; margin-top: 14px; }
.progress > div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }

.msg { border-radius: 14px; padding: 14px 18px; font-size: 16px; margin: 14px 0; }
.msg-ok { background: #E6F7EC; color: #0B6B36; }
.msg-err { background: #FDEDEB; color: #A8261A; }
.msg-warn { background: #FFF4E0; color: #8A5300; }

/* ===== Admin ===== */

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { padding: 20px 22px; }
.stat-label { color: var(--faint); font-size: 13.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 32px; font-weight: 700; margin-top: 4px; }
.stat-value.ok { color: var(--success); }
.stat-value.bad { color: var(--danger); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--faint); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 0 12px 10px; }
td { padding: 12px; border-top: 1px solid var(--stroke); vertical-align: middle; }
td.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill-ok { background: #E6F7EC; color: #0B6B36; }
.pill-bad { background: #FDEDEB; color: #A8261A; }
.pill-new { background: #FDEDE4; color: var(--accent); }
.table-wrap { overflow-x: auto; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn { margin-right: 6px; }

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .cards, .steps, .admin-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav > a:not(.btn) { display: none; }
  .site-header .container { height: 72px; }
  .lockup img.mark { height: 38px; }
  .lockup img.word { height: 32px; }
  body { font-size: 17px; }
  .hero { padding: 56px 0 24px; }
  section { padding: 52px 0; }
  .price-amount { font-size: 68px; }
  .btn-big { width: 100%; }
}

/* Phones: one button in the header, tighter type, nothing wider than the screen. */
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .nav .btn-secondary { display: none; }
  .nav .btn { margin-left: 0; }
  details.lang summary span { display: none; }
  details.lang summary { padding: 0 10px; gap: 6px; }
  .lockup { gap: 10px; }
  .lockup img.mark { height: 32px; }
  .lockup img.word { height: 27px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .eyebrow { font-size: 12px; padding: 7px 12px; letter-spacing: .05em; }
  .hero .lead { font-size: 18px; }
  .hero .actions { flex-direction: column; }
  .hero .actions .btn { width: 100%; }
  .btn-big { height: 60px; font-size: 18px; padding: 0 20px; }
  .card { padding: 24px; }
  .step { padding-left: 88px; }
  .step::before { left: 24px; top: 24px; }
  .price { padding: 36px 22px 30px; }
  .price-amount { font-size: 64px; }
  summary { font-size: 16.5px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .site-footer a { margin: 0 18px 0 0; }
}
