@import url("https://fonts.bunny.net/css?family=dm-sans:400,500,600,700|sora:700,800&display=swap");

:root {
  --bg0: #e8f6f4;
  --bg1: #f3fafc;
  --ink: #0c1b24;
  --muted: #5a7380;
  --accent: #0f766e;
  --line: rgba(15, 118, 110, 0.14);
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: "Sora", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body.ocean {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(800px 420px at 10% -10%, rgba(15, 118, 110, 0.22), transparent 70%),
    linear-gradient(165deg, var(--bg0), var(--bg1));
}
.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
.notice {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  background: #fff6e8;
  border-bottom: 1px solid rgba(180, 120, 40, 0.35);
  color: #8a5a12;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.notice[hidden] { display: none; }
.cookie-bar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 8px 8px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(12, 40, 48, 0.12);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}
.cookie-bar p { margin: 0; }
.cookie-bar .btn { padding: 6px 12px; white-space: nowrap; }
.brand { font-family: var(--display); font-weight: 800; color: var(--accent); text-decoration: none; }
header p, .muted { color: var(--muted); }
.hero h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 48px); margin: 24px 0 8px; }
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 24px 0; }
.card, .tariff {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(12, 40, 48, 0.08);
}
.tariff { padding: 18px; display: grid; gap: 8px; }
.tariff b { font-size: 28px; }
.btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font: 600 14px var(--font);
  cursor: pointer;
}
.form { padding: 22px; display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.error { color: #b91c1c; }
#payment-form { min-width: 288px; }
.key {
  font-size: 18px;
  padding: 14px;
  background: #0c1b24;
  color: #e8f6f4;
  border-radius: 12px;
  overflow-x: auto;
}
a { color: var(--accent); }

/* Layout helpers shared by the sales site and the buyer cabinet */
.shell.narrow { width: min(440px, calc(100% - 32px)); }
.shell.narrow header { text-align: center; margin-bottom: 20px; }
.form .btn { width: 100%; padding: 12px 14px; }
.form p { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.form h2 { margin: 0; font-family: var(--display); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
a.btn { display: inline-block; text-decoration: none; text-align: center; }
input:focus, select:focus { outline: 2px solid rgba(15, 118, 110, 0.35); outline-offset: 1px; }
select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.topbar .brand { font-size: 20px; text-decoration: none; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.section { margin-top: 32px; }
.section > h2 { font-family: var(--display); font-size: 22px; margin: 0 0 4px; }
.section > .muted { margin: 0 0 14px; }

.table-card { padding: 0; overflow-x: auto; }
.license-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.license-table th:first-child, .license-table td:first-child { padding-left: 16px; }
.license-table th:last-child, .license-table td:last-child { padding-right: 16px; }
.license-table th, .license-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.license-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.license-table tbody tr:last-child td { border-bottom: 0; }
.license-table td:last-child { text-align: right; }
.key-cell { display: flex; align-items: center; gap: 10px; }
.key-cell code { cursor: pointer; font-family: ui-monospace, "IBM Plex Mono", monospace; font-size: 13px; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.icon { display: inline-flex; align-items: center; justify-content: center; padding: 7px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(15, 118, 110, 0.12); color: var(--accent); }
.badge.warn { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.badge.bad { background: rgba(185, 28, 28, 0.12); color: #b91c1c; }
.empty { text-align: center; color: var(--muted); }

.renew-row td { background: rgba(15, 118, 110, 0.05); }
.renew-options { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: normal; }
.tariffs { margin: 0; }
.tariff .btn { width: 100%; }
.tariff .period { color: var(--muted); font-weight: 500; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.legal-note { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.form label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}
.form label.check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent);
}
.placeholder-note { margin: 12px 0 0; }

.shell.legal-shell { width: min(760px, calc(100% - 32px)); }
.legal-doc { overflow-x: auto; }
.legal-doc h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 36px); margin: 0 0 8px; }
.legal-doc .updated { color: var(--muted); margin: 0; }
.legal-doc h2 { font-size: 18px; margin: 28px 0 8px; }
.legal-doc p, .legal-doc li { line-height: 1.55; }
.legal-doc ul, .legal-doc ol { margin: 8px 0 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.legal-doc th, .legal-doc td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
}
.legal-doc th { color: var(--muted); font-size: 12px; font-weight: 600; }
.legal-reqs { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; gap: 6px 16px; margin: 12px 0; }
.legal-reqs dt { color: var(--muted); }
.legal-reqs dd { margin: 0; }

.license-table td.server-cell { white-space: normal; word-break: break-all; max-width: 160px; }
.action-panel { display: grid; gap: 10px; white-space: normal; }
.action-panel .error { margin: 0; }
.panel-pays { display: grid; gap: 8px; }

.pay-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pay-table th, .pay-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: normal;
}
.pay-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.pay-table th:first-child, .pay-table td:first-child { padding-left: 12px; }
.pay-table th:last-child, .pay-table td:last-child { padding-right: 12px; }
.pay-table tbody tr:last-child td { border-bottom: 0; }
.pay-table code { font-family: ui-monospace, "IBM Plex Mono", monospace; font-size: 11px; word-break: break-all; }
.pay-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.feature-grid h3 { margin: 0 0 6px; font-size: 16px; }
.feature-grid p { margin: 0; }
.faq { display: grid; gap: 10px; margin-top: 14px; }
.faq details {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }
@media (max-width: 640px) {
  .shell { padding-top: 28px; }
  .hero-actions { display: grid; }
  .tariffs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .tariffs { grid-template-columns: 1fr; }
}