/* roundware.app. The admin's colors: navy #1a1a2e / #16213e / #0f3460, blue #1976d2.
   System fonts, so nothing loads from anywhere else. */
:root {
  --navy: #1a1a2e;
  --navy-2: #16213e;
  --navy-3: #0f3460;
  --blue: #1976d2;
  --blue-dark: #115293;
  --ink: #1d2230;
  --muted: #5b6373;
  --line: #e3e6ec;
  --paper: #ffffff;
  --wash: #f6f7f9;
  --radius: 10px;
  --max: 1120px;
  --text: 720px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* The footer stays at the bottom, however short the page. */
  min-height: 100vh; display: flex; flex-direction: column;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.75em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* -- header and footer ------------------------------------------------------- */
.bar { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top { background: var(--navy); position: sticky; top: 0; z-index: 10; }
.top .bar { min-height: 78px; }
.brand img { display: block; height: 46px; width: auto; }
.top nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: #fff; text-decoration: none; font-size: 0.92rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.top nav a.button { opacity: 1; text-decoration: none; }

/* -- the menu ------------------------------------------------------------------ */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; padding: 6px; border-radius: 8px; color: #fff; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: rgba(255, 255, 255, 0.12); }
.menu summary svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; z-index: 20;
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); padding: 8px; display: flex; flex-direction: column;
}
.top .menu-panel a { padding: 9px 12px; border-radius: 6px; opacity: 0.92; white-space: nowrap; }
.top .menu-panel a:hover, .top .menu-panel a[aria-current] { background: rgba(255, 255, 255, 0.1); opacity: 1; text-decoration: none; }
.top .menu-panel a:last-child { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0 0 6px 6px; padding-top: 12px; }
.bottom { background: var(--navy); color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; margin-top: 72px; }
.bottom .bar { padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.bottom p { margin: 0; opacity: 0.85; }
.bottom p a { text-transform: none; font-size: inherit; letter-spacing: 0; opacity: 1; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bottom a { color: #fff; opacity: 0.8; text-decoration: none; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.03em; }
.bottom a:hover { opacity: 1; text-decoration: underline; }
main.wide + .bottom { margin-top: 0; }

/* -- buttons ---------------------------------------------------------------- */
.button {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600;
  padding: 10px 20px; border-radius: 8px; border: 2px solid var(--blue); line-height: 1.3; text-align: center;
  /* Capitals, as the admin's buttons. */
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.92rem;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button.small { padding: 6px 14px; font-size: 0.9rem; }
.button.large { padding: 14px 28px; font-size: 1.05rem; }
.button.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.button.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.button.outline { background: transparent; color: var(--blue); border-width: 1px; border-color: rgba(25, 118, 210, 0.5); }
.button.outline:hover { background: rgba(25, 118, 210, 0.06); color: var(--blue); }
.button.disabled { background: #e0e0e0; border-color: #e0e0e0; color: rgba(0, 0, 0, 0.38); cursor: default; }
.button.outline.disabled { background: transparent; border-color: rgba(0, 0, 0, 0.12); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* -- ordinary pages ---------------------------------------------------------- */
main { display: block; flex: 1 0 auto; width: 100%; }
main:not(.wide) { max-width: var(--text); margin: 0 auto; padding: 48px 20px 0; }
main:not(.wide):has(.plans) { max-width: var(--max); }
.lede { font-size: 1.15rem; color: var(--muted); }
.note { background: #eef4fc; border-left: 4px solid var(--blue); padding: 10px 14px; border-radius: 6px; }
.center { text-align: center; }

/* -- the home page ----------------------------------------------------------- */
.inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.inner.narrow { max-width: var(--text); }
.hero {
  color: #fff; text-align: center; padding: clamp(56px, 10vw, 110px) 0;
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.82) 50%, rgba(15, 52, 96, 0.78) 100%),
    url(/assets/map-background.webp) center / cover;
}
.hero .icons { width: min(400px, 80%); margin-bottom: clamp(28px, 5vw, 48px); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.5rem); max-width: 860px; margin: 0 auto 0.4em; }
.hero .lede { color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0 auto; font-size: 1.25rem; }
.band { padding: clamp(48px, 8vw, 88px) 0; }
.band h2 { text-align: center; }
.band.light { background: var(--wash); }
.band.dark { background: var(--navy-2); color: rgba(255, 255, 255, 0.88); }
.band.dark h2 { color: #fff; }
.band p.center { max-width: 640px; margin: 0 auto 36px; color: var(--muted); }
.band.dark p { color: rgba(255, 255, 255, 0.88); }
.grid { display: grid; gap: 20px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card.feature { text-align: center; padding: 30px 22px; }
.icon { width: 35px; height: 35px; fill: var(--blue); display: block; margin: 0 auto 16px; }
.icon.big { width: 44px; height: 44px; fill: #fff; opacity: 0.9; margin-bottom: 12px; }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.phones figure { margin: 0; text-align: center; }
.phone {
  width: 230px; margin: 0 auto; border: 10px solid #111; border-radius: 38px; overflow: hidden; background: #111;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22), inset 0 0 0 1px #333;
}
.phone img { display: block; width: 100%; }
.phones figcaption { margin-top: 18px; color: var(--muted); font-size: 0.97rem; }
.phones figcaption strong { display: block; color: var(--navy); font-size: 1.1rem; }
.clients { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.clients li { font-size: 1.15rem; font-weight: 600; color: var(--navy-3); }

/* -- plans ------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin: 32px 0 56px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.plan ul { text-align: left; }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); }
.plan h3 { font-size: 1.4rem; margin: 0; }
.plan .price { margin: 8px 0 18px; color: var(--muted); }
.plan .price strong { font-size: 2.4rem; color: var(--navy); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { padding: 5px 0; font-size: 0.92rem; }
.plan li::before { content: "✓ "; }
main:has(.plans) > h2, main:has(.plans) > .faq, main:has(.plans) > p { max-width: var(--text); }
.band .plans { margin-bottom: 0; }
.faq dt { font-weight: 700; color: var(--navy); margin-top: 22px; }
.faq dd { margin: 4px 0 0; }

/* -- legal ------------------------------------------------------------------- */
.doclist { list-style: none; padding: 0; margin: 28px 0; }
.doclist li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.doclist li:last-child { border-bottom: 1px solid var(--line); }
.doclist a { font-weight: 600; font-size: 1.1rem; }
.doclist span { color: var(--muted); }
.crumbs { font-size: 0.95rem; margin-bottom: 12px; }
.crumbs a::before { content: "← "; }
.legal h1 { margin-bottom: 0.3em; }
.legal h2 { margin-top: 1.8em; font-size: 1.45rem; }
.legal h3 { margin-top: 1.4em; }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 2.2em 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--wash); }
.legal li { margin: 4px 0; }
.legal blockquote { margin: 1em 0; padding: 4px 16px; border-left: 4px solid var(--line); color: var(--muted); }
.history { margin-top: 2.5em; font-size: 0.95rem; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hide-small { display: none; }
  .top .bar { min-height: 56px; padding: 0 14px; gap: 10px; }
  .brand img { height: 26px; }
  .top nav { gap: 12px; flex-wrap: nowrap; white-space: nowrap; }
  .top nav a { font-size: 0.88rem; }
  .top nav a.button.small { padding: 5px 10px; }
  .bottom .bar { flex-direction: column; text-align: center; }
  .bottom nav { justify-content: center; }
}
