/* RealFreeHosting design system. One palette, one radius scale, light + dark via system preference.
   Fonts: Geist / Geist Mono, self-hosted (static/fonts). */
@import url(/static/fonts/fonts.css);

:root {
  --bg: #f6f6f4;
  --surface: #fdfdfc;
  --surface-2: #efefec;
  --fg: #1a1b1e;
  --fg-2: #4b4d55;
  --muted: #6c6f78;
  --line: #e2e2de;
  --line-2: #cfcfca;
  --accent: #14764f;
  --accent-hover: #0f6142;
  --accent-fg: #f7fbf8;
  --accent-soft: #e4f2ea;
  --warn: #9a6b00;
  --warn-soft: #f6efd8;
  --err: #b3261e;
  --err-soft: #f8e4e2;
  --shadow: 0 1px 2px rgb(26 27 30 / .06), 0 8px 24px -12px rgb(26 27 30 / .18);
  --r: 10px;
  --r-sm: 6px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --surface: #17191c;
    --surface-2: #1e2125;
    --fg: #ececee;
    --fg-2: #b9bcc3;
    --muted: #8f939c;
    --line: #272a2f;
    --line-2: #363a40;
    --accent: #3fc48b;
    --accent-hover: #5ad19e;
    --accent-fg: #07160f;
    --accent-soft: #15291f;
    --warn: #e0b23c;
    --warn-soft: #2b2410;
    --err: #f28b82;
    --err-soft: #34191a;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--fg); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: 8px; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.lead { color: var(--fg-2); font-size: 1.05rem; max-width: 62ch; margin-bottom: 28px; }
.muted { color: var(--muted); }
.muted-sm { color: var(--muted); font-size: .82rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { font-weight: 600; font-size: 1.05rem; color: var(--fg); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; position: relative; }
.brand .mark::after { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-fg); }
.brand small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.links a { color: var(--fg-2); font-size: .95rem; }
.links a:hover { color: var(--fg); text-decoration: none; }
.links a.active { color: var(--fg); font-weight: 500; }
main { max-width: 1120px; margin: 0 auto; padding: 40px 20px 80px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.btn.danger:hover { background: var(--err-soft); }
.btn.sm { height: 32px; padding: 0 12px; font-size: .85rem; }
.btn.block { width: 100%; }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.card h3 { margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack { display: grid; gap: 22px; }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: .8rem; letter-spacing: .01em; }
tr:last-child td { border-bottom: 0; }
table.compact th, table.compact td { padding: 7px 8px; font-size: .86rem; }

/* status */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 500; background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.active, .pill.running, .pill.paid, .pill.ok { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.pending_payment, .pill.queued, .pill.provisioning, .pill.open, .pill.reserved { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.past_due, .pill.failed, .pill.cancelled, .pill.destroy_requested, .pill.disabled { background: var(--err-soft); color: var(--err); border-color: transparent; }
.bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; min-width: 120px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.bar.warn i { background: var(--warn); }
.bar.over i { background: var(--err); }
.flash { padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 20px; background: var(--accent-soft); color: var(--fg); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: .95rem; }
.flash.err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.testbanner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .82rem; padding: 6px; border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }

/* forms */
label { display: block; margin: 0 0 6px; font-size: .88rem; font-weight: 500; color: var(--fg-2); }
label + .help, .help { color: var(--muted); font-size: .82rem; margin: -2px 0 0; }
.field { display: grid; gap: 6px; }
form.stack { gap: 16px; }
input, select, textarea { width: 100%; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); font: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 88px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: .95rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; font-size: .84rem; line-height: 1.5; overflow: auto; margin: 0; }
.auth { max-width: 440px; margin: 40px auto; }
.auth h1 { font-size: 1.6rem; margin-bottom: 6px; }
.captcha label { margin-top: 4px; }

/* landing */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.4rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.hero .lead { font-size: 1.15rem; margin-bottom: 26px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.shot { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.1fr 1fr; }
.list { display: grid; gap: 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.list li .n { width: 28px; height: 28px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; font-weight: 600; }
.list li b { display: block; margin-bottom: 2px; }
.list li span { color: var(--fg-2); font-size: .95rem; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin-top: 8px; }
.terms div { border-top: 1px solid var(--line-2); padding-top: 16px; }
.terms b { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.terms span { color: var(--fg-2); font-size: .95rem; }
.band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band h2 { margin: 0 0 4px; }
.band p { margin: 0; color: var(--fg-2); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer .in { max-width: 1120px; margin: 0 auto; padding: 24px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--fg-2); }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .5s cubic-bezier(.16,1,.3,1) both; }
  .hero > *:nth-child(2) { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 860px) {
  .hero, .split, .split.rev { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .m-last { order: 2; }
  .terms { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .kv { grid-template-columns: 1fr; }
  .links { gap: 14px; font-size: .9rem; }
  .links .hide-m { display: none; }
  main { padding: 28px 16px 60px; }
}

/* ---------------- admin (tool UI, same tokens) ---------------- */
.adm { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.adm aside { border-right: 1px solid var(--line); padding: 18px 12px; background: var(--surface); }
.adm aside a { display: block; padding: 7px 12px; border-radius: var(--r-sm); color: var(--fg-2); font-size: .92rem; margin-bottom: 2px; }
.adm aside a:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.adm aside a.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.adm aside .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 12px 6px; }
.adm main { max-width: none; padding: 28px 32px 60px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.tile b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.tile small { color: var(--muted); font-size: .8rem; }
.tile.ok { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tile.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.tile.bad { border-color: color-mix(in srgb, var(--err) 55%, var(--line)); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card.tight { padding: 12px 14px; }
.card h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.actions form { display: inline; }
.actions button { margin: 2px; }
iframe.gf { width: 100%; height: 260px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .84rem; color: var(--fg-2); }
.tabs a.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tabs a:hover { text-decoration: none; background: var(--surface-2); }
pre.log { max-height: 70vh; overflow: auto; font-size: .8rem; line-height: 1.45; white-space: pre-wrap; word-break: break-all; }
.stat { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.stat small { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.plan .price { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .price small { font-size: .85rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 12px 0; color: var(--fg-2); font-size: .92rem; }
.plan li { padding: 3px 0; }
.plan.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; } .adm { grid-template-columns: 1fr; } .adm aside { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); } .adm aside .grp { display: none; } .adm main { padding: 20px 16px 60px; } }
