/* Gladiatus Master site. The brand is the panel's and the BMC cover's
   (design/icon/profile/cover.html): dark leather browns, a gold gradient,
   Cinzel for titles and Inter for text, the gear-and-sword icon.
   Logical properties only (inline/block), so Hebrew (rtl) mirrors itself.
   No script, nothing from other sites: the fonts are files in assets/fonts. */

/* Fonts (SIL Open Font License, assets/fonts/OFL-*.txt) ------------------- */

@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/cinzel-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/cinzel-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens ----------------------------------------------------------------- */

:root {
  /* light pages: parchment */
  --page: #EFE4C8;
  --page-soft: #E6D8B4;
  --card: #FAF3E1;
  --text: #3A2414;
  --text-2: #5F4528;
  --text-faint: #846A45;
  --border: #CDB27A;
  --border-subtle: #DCC9A0;
  --link: #7A4F12;

  /* dark leather and gold: the cover's colours */
  --ink-0: #1A0C04;
  --ink-1: #2E1709;
  --ink-2: #4A2611;
  --ink-line: #5C3A1C;
  --gold-hi: #F1CF74;
  --gold: #D9A945;
  --gold-lo: #A9771F;
  --gold-grad: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%);
  --cream: #F4E7C5;
  --cream-2: #D8C597;

  --ok: #2F7D36;
  --ph-bg: #FFE36E;
  --ph-text: #3A2C18;

  --title: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --gutter: 16px;
  --band: clamp(48px, 7vw, 88px);
  color-scheme: light;
}

/* Cinzel and Inter have no Hebrew letters: Latin words stay in Cinzel, Hebrew falls
   through to the system's sans-serif. */
:root:lang(he) { --title: "Cinzel", system-ui, "Segoe UI", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--title); line-height: 1.2; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-block: 0 .6rem; letter-spacing: .01em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-block: 0 .8rem; }
h3 { font-size: 1.12rem; margin-block: 1.4rem .35rem; }
:lang(he) h1, :lang(he) h2, :lang(he) h3 { letter-spacing: 0; }
p, ul, ol { margin-block: 0 1rem; }
ul, ol { padding-inline-start: 1.4rem; }
li { margin-block-end: .35rem; }
strong { color: inherit; font-weight: 600; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; background: var(--page-soft); padding: 1px 5px; border-radius: 4px; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: var(--gutter); inset-block-start: -40px;
  background: var(--card); padding: 6px 10px; border-radius: 6px; z-index: 10;
}
.skip:focus { inset-block-start: 8px; }

/* Header ----------------------------------------------------------------- */

.top {
  background: var(--ink-0);
  border-block-end: 1px solid var(--ink-line);
  color: var(--cream);
}
.top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-block: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
  font-family: "Cinzel", Georgia, serif; font-size: 1.15rem; font-weight: 700; letter-spacing: .03em;
}
.brand:hover { color: var(--gold-hi); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-inline-start: auto; }
.main-nav a { color: var(--cream-2); text-decoration: none; padding-block: 4px; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--gold-hi); }
.main-nav a[aria-current="page"] { color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--gold); }
.langs { display: flex; gap: 2px; font-size: .85rem; background: var(--ink-1); border: 1px solid var(--ink-line); border-radius: 999px; padding: 2px; }
.langs a, .langs span { color: var(--cream-2); text-decoration: none; padding: 3px 10px; border-radius: 999px; }
.langs a:hover { color: var(--gold-hi); }
.langs span[aria-current] { color: var(--ink-0); background: var(--gold-grad); font-weight: 600; }

/* Main and content pages ------------------------------------------------- */

main.wrap { padding-block: 40px 64px; }
main.wrap > h2 { margin-block-start: 2.6rem; }
main.wrap > h3 { margin-block-start: 1.6rem; }

.prose {
  max-width: 76ch;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 44px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 8px 24px -18px rgba(58, 36, 20, .45);
}
.prose h1 { color: var(--ink-1); }
.prose h2 { font-size: 1.3rem; padding-block-start: 1.2rem; margin-block-start: 1.6rem; border-block-start: 1px solid var(--border-subtle); }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 62ch; }
.meta { color: var(--text-faint); font-size: .9rem; margin-block-end: 1.6rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px;
}

.note {
  background: var(--page-soft);
  border-inline-start: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  margin-block: 0 1.2rem;
}

.toc { background: var(--page); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 14px 18px; margin-block-end: 1.6rem; }
.toc ol { margin: 0; }

table { border-collapse: collapse; width: 100%; margin-block-end: 1.2rem; font-size: .95rem; }
th, td { text-align: start; vertical-align: top; padding: 8px 10px; border-block-end: 1px solid var(--border-subtle); }
th { background: var(--page-soft); }
.table-scroll { overflow-x: auto; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 1px solid var(--gold-lo);
  background: var(--gold-grad); color: var(--ink-0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 16px -10px rgba(26, 12, 4, .8);
}
.btn:hover { color: var(--ink-0); filter: brightness(1.06); }
.btn-quiet { background: transparent; color: var(--link); border-color: var(--border); box-shadow: none; }
.btn-quiet:hover { background: var(--card); color: var(--text); filter: none; }
span.btn[aria-disabled] { cursor: default; filter: saturate(.55); opacity: .9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-block: 1.4rem; }

/* Home: bands ------------------------------------------------------------ */

.home > .band { padding-block: var(--band); }
.band-soft { background: var(--page-soft); border-block: 1px solid var(--border-subtle); }
.band-dark {
  background: radial-gradient(ellipse 80% 140% at 50% 0%, var(--ink-2) 0%, var(--ink-1) 55%, var(--ink-0) 100%);
  color: var(--cream);
}
.band-dark h2, .band-dark h3 { color: var(--gold-hi); }
.band-dark a { color: var(--gold-hi); }
.band-dark a:hover { color: var(--cream); }

.home h2 { text-align: center; }
.home h2 + p { text-align: center; color: var(--text-2); max-width: 60ch; margin-inline: auto; margin-block-end: 2rem; }
.band-dark h2 + p { color: var(--cream-2); }
/* A thin gold rule under every section title, like the cover's. */
.home h2::after {
  content: ""; display: block; width: 72px; height: 2px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Hero */

.hero {
  background:
    url("gear.svg") no-repeat right -90px top -70px / 420px 420px,
    url("gear.svg") no-repeat left -110px bottom -150px / 380px 380px,
    radial-gradient(ellipse 70% 120% at 50% 30%, var(--ink-2) 0%, var(--ink-1) 55%, var(--ink-0) 100%);
  color: var(--cream);
  border-block-end: 1px solid var(--ink-line);
}
.hero-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.hero-icon { width: clamp(96px, 16vw, 168px); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .04em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; margin-block-end: .4rem;
}
:lang(he) .hero h1 { text-transform: none; }
.hero .lead { color: var(--cream); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero .btn-quiet { color: var(--gold-hi); border-color: var(--gold-lo); }
.hero .btn-quiet:hover { background: rgba(241, 207, 116, .08); color: var(--cream); }
.trial-line { color: var(--cream-2); font-size: .95rem; margin: 0; }
.trial-line::before { content: "✦ "; color: var(--gold); }

/* Module cards */

.modules { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.module { position: relative; padding-block-start: 26px; transition: transform .15s ease, box-shadow .15s ease; }
.module:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -20px rgba(58, 36, 20, .7); }
.module-icon {
  display: block; width: 52px; height: 52px; padding: 10px; margin-block-end: 12px;
  background: var(--ink-1); border: 1px solid var(--gold-lo); border-radius: 50%;
}
.module h3 { margin-block: 0 .6rem; color: var(--ink-1); }
.module ul { list-style: none; margin: 0; padding: 0; }
.module li { padding-block: 5px; border-block-start: 1px solid var(--border-subtle); margin: 0; }
.module li:first-child { border-block-start: 0; }

/* Feature list */

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.features li {
  margin: 0; padding: 18px 20px 18px 20px; padding-inline-start: 54px; position: relative;
  background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius); color: var(--text-2);
}
.features li::before {
  content: ""; position: absolute; inset-inline-start: 18px; inset-block-start: 21px;
  width: 22px; height: 22px; background: url("icon.svg") no-repeat center / contain;
}
.features strong { display: block; color: var(--text); margin-block-end: 2px; }

/* Screenshots: filled from config.screenshots (1280x800 PNGs) */

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.gallery figure { margin: 0; grid-column: span 2; }
.gallery figure:nth-child(-n+2) { grid-column: span 3; }
.gallery img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border: 1px solid var(--ink-line); border-radius: 10px; background: var(--ink-0);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.gallery a { display: block; border-radius: 10px; }
.gallery a:hover img { border-color: var(--gold); }
.gallery figcaption { color: var(--cream-2); font-size: .9rem; margin-block-start: 8px; text-align: center; }

/* Steps */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 22px; margin: 0; color: var(--text-2); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; margin-block-end: 12px;
  background: var(--ink-1); color: var(--gold-hi); border: 1px solid var(--gold-lo);
  font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: 1.1rem;
}
.steps strong { display: block; color: var(--text); font-size: 1.05rem; margin-block-end: 4px; }
.home .steps + p { text-align: center; }

/* Pricing call to action */

.cta { text-align: center; }
.cta p { max-width: 62ch; margin-inline: auto; color: var(--cream); }
.cta-links a:first-child {
  display: inline-block; margin-block: .6rem; margin-inline-end: 10px; padding: 12px 22px; border-radius: 10px;
  background: var(--gold-grad); color: var(--ink-0); font-weight: 600; text-decoration: none; border: 1px solid var(--gold-lo);
}
.cta-links a:first-child:hover { color: var(--ink-0); filter: brightness(1.06); }

.home > .band:last-child { text-align: center; }

/* Pricing page ----------------------------------------------------------- */

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-block: 1.8rem; align-items: stretch; }
.plan { text-align: center; position: relative; display: flex; flex-direction: column; justify-content: center; padding-block: 28px; }
.plan h3 { margin-block: 0 .3rem; color: var(--ink-1); }
.plan .amount { font-family: "Cinzel", Georgia, serif; font-size: 2.6rem; font-weight: 700; color: var(--ink-1); line-height: 1.15; }
.plan .per { color: var(--text-faint); font-size: .95rem; }
.plan p { margin: 1rem 0 0; }
.plan.trial { background: transparent; border-style: dashed; border-color: var(--border); }
.plan.featured {
  background: radial-gradient(ellipse 90% 110% at 50% 0%, var(--ink-2) 0%, var(--ink-1) 60%, var(--ink-0) 100%);
  border: 1px solid var(--gold); color: var(--cream);
  box-shadow: 0 18px 40px -24px rgba(26, 12, 4, .9);
}
.plan.featured h3, .plan.featured .amount { color: var(--gold-hi); }
.plan.featured .per { color: var(--cream-2); }
.badge {
  position: absolute; inset-block-start: -13px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 90%;
  padding: 3px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  background: var(--gold-grad); color: var(--ink-0); border: 1px solid var(--gold-lo);
}

.facts { list-style: none; padding: 0; }
.facts li { padding-inline-start: 1.6rem; position: relative; }
.facts li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: bold; }

/* FAQ -------------------------------------------------------------------- */

details { background: var(--page); border: 1px solid var(--border-subtle); border-radius: 10px; margin-block-end: 10px; }
summary { cursor: pointer; padding: 13px 16px; font-weight: 600; }
summary::marker { color: var(--gold-lo); }
details > div { padding: 0 16px 6px; }
details[open] summary { border-block-end: 1px solid var(--border-subtle); margin-block-end: 10px; }

/* Placeholders (draft builds only; --live never shows them) ------------- */

mark.ph {
  background: var(--ph-bg); color: var(--ph-text);
  border: 1px dashed #A06A00; border-radius: 4px;
  padding: 0 4px; font: 600 .85rem/1.5 var(--sans);
}
.bottom mark.ph { font-size: .75rem; }

/* Footer ----------------------------------------------------------------- */

.bottom {
  background: var(--ink-0); color: var(--cream-2);
  border-block-start: 1px solid var(--ink-line);
  padding-block: 40px 24px; font-size: .92rem;
}
.foot-grid { display: grid; gap: 28px 40px; grid-template-columns: 2fr 1fr 1.2fr; padding-block-end: 26px; border-block-end: 1px solid var(--ink-line); }
.foot-brand .brand { margin-block-end: 12px; }
.independence { max-width: 52ch; margin: 0; color: var(--cream-2); }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a, .foot-contact a { color: var(--cream); text-decoration: none; }
.foot-nav a:hover, .foot-contact a:hover { color: var(--gold-hi); text-decoration: underline; }
.foot-nav a[aria-current="page"] { color: var(--gold-hi); }
.foot-contact { display: flex; flex-direction: column; gap: 8px; }
.foot-label { font-family: "Cinzel", Georgia, serif; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
:lang(he) .foot-label { font-family: var(--title); }
.foot-contact span[aria-disabled] { color: var(--cream-2); }
.copy { margin: 18px 0 0; color: var(--cream-2); opacity: .75; font-size: .85rem; }

/* Phones ----------------------------------------------------------------- */

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure, .gallery figure:nth-child(-n+2) { grid-column: span 1; }
  .gallery figure:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  main.wrap { padding-block: 20px 44px; }
  .prose { padding: 20px 18px; border-radius: 10px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero .actions { justify-content: center; }
  .hero { background-size: 260px 260px, 240px 240px, auto; }
  .main-nav { margin-inline-start: 0; }
  .top-inner { gap: 8px 16px; }
  .langs { order: 3; }
  .features li { padding-inline-start: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .module { transition: none; }
  .module:hover { transform: none; }
}
