/* HelpdeskTune */
:root {
  --ink: #1b2430;
  --muted: #4a5666;
  --bg: #ffffff;
  --alt: #f3f5f8;
  --line: #d5dae1;
  --accent: #1f4e79;
  --accent-dark: #163a5a;
  --focus: #e0a800;
  --sticky-clearance: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-bottom: var(--sticky-clearance);
}

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: 0.5rem;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.75rem; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.site-header .wrap {
  max-width: 72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.header-link {
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 0;
}

section { padding: 2.5rem 0; }
section.alt { background: var(--alt); }

.hero { padding: 2.5rem 0 3rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); }

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.cta-row .btn { flex: 1; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--accent); }
.btn-secondary:hover { background: var(--alt); }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.platforms li {
  margin: 0;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--bg);
}

.rule {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--alt);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-weight: 600;
}

.plans { display: grid; gap: 1rem; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}
.plan .price {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.plan p:last-child { margin-bottom: 0; }
.plan-pilot {
  border: 2px solid var(--accent);
}
.plan-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin: 0 0 0.75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  margin-bottom: 0.75rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.1rem;
  min-height: 3rem;
}
details p { padding: 0 1.1rem; }
details p:last-child { margin-bottom: 1rem; }

a:focus-visible,
.btn:focus-visible,
summary:focus-visible,
.sticky-cta a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer p { margin-bottom: 0.75rem; }

.sticky-cta {
  position: relative;
  flex: 0 0 auto;
  background: var(--accent);
  text-align: center;
  z-index: 10;
}
.sticky-cta a {
  display: block;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 40rem) {
  html { scroll-padding-bottom: 0; height: auto; }
  body {
    display: block;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .page { overflow: visible; min-height: 0; }
  h1 { font-size: 2.4rem; }
  .cta-row { flex-direction: row; align-items: stretch; }
  .plans { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 2rem; }
}
