/* ==========================================================================
   MyPACS — marketing site
   Single stylesheet, no build step. Edit values in :root to re-skin.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand:        #0b6bcb;
  --brand-600:    #0a5fb4;
  --brand-700:    #084d93;
  --brand-tint:   #eaf3fd;

  --ink:          #10192a;
  --ink-soft:     #46536b;
  --ink-faint:    #6b7889;

  --bg:           #ffffff;
  --bg-alt:       #f5f8fc;
  --bg-deep:      #0d1b2f;

  --line:         #e2e8f2;
  --line-strong:  #cbd6e6;

  --ok:           #17855a;

  --radius:       14px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 2px rgba(16,25,42,.06), 0 1px 3px rgba(16,25,42,.05);
  --shadow-md:    0 4px 14px rgba(16,25,42,.07), 0 2px 6px rgba(16,25,42,.05);
  --shadow-lg:    0 18px 44px rgba(16,25,42,.11), 0 6px 14px rgba(16,25,42,.06);

  --wrap:         1120px;
  --wrap-narrow:  760px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.12rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .89em;
  background: var(--brand-tint);
  color: var(--brand-700);
  padding: .12em .42em;
  border-radius: 6px;
  word-break: break-word;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap.narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section > .wrap > h2 { text-align: center; }
.section-lede {
  max-width: 62ch;
  margin: 14px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip:focus { left: 0; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -.02em;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-sm { font-size: 1.05rem; }
.brand-sm .brand-mark { width: 27px; height: 27px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav > a {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
}
.nav > a:hover {
  color: var(--ink);
  background: var(--bg-alt);
  text-decoration: none;
}
.nav > a.btn { color: #fff; margin-left: 8px; }
.nav > a.btn:hover { color: #fff; background: var(--brand-600); }

/* Hamburger (CSS-only, driven by the hidden checkbox) */
.nav-button { display: none; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
  text-align: center;
}
.btn:hover {
  background: var(--brand-600);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

.btn-sm { padding: 9px 17px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.03rem; }
.btn-block { display: flex; width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-700); border-color: var(--brand); }

.btn-invert { background: #fff; color: var(--brand-700); }
.btn-invert:hover { background: #f0f6ff; color: var(--brand-700); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 9vw, 118px) 0 clamp(50px, 7vw, 88px);
  background:
    radial-gradient(900px 420px at 12% -8%, #e6f0fd 0%, transparent 62%),
    radial-gradient(760px 400px at 92% 4%, #eef5ff 0%, transparent 60%),
    var(--bg);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-tint);
  border: 1px solid #d3e5fb;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { max-width: 17ch; margin-inline: auto; }
.lede {
  max-width: 60ch;
  margin: 22px auto 0;
  font-size: clamp(1.03rem, 1.7vw, 1.19rem);
  color: var(--ink-soft);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
  margin-top: 32px;
}
.fineprint { margin-top: 16px; font-size: .87rem; color: var(--ink-faint); }
.fineprint.centered { text-align: center; }

/* ---------- Trust strip ---------- */
.strip { background: var(--bg-deep); color: #fff; padding: 30px 0; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}
.strip-grid > div { display: flex; flex-direction: column; gap: 3px; }
.strip-grid strong { font-size: 1.24rem; font-weight: 700; letter-spacing: -.02em; }
.strip-grid span { font-size: .86rem; color: #a9bdd6; line-height: 1.45; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: .97rem; }

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 17px;
}
.icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rolelist { list-style: none; padding: 0; margin-top: 13px; display: grid; gap: 8px; }
.rolelist li {
  font-size: .93rem;
  color: var(--ink-soft);
  padding-left: 17px;
  position: relative;
}
.rolelist li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.rolelist b { color: var(--ink); font-weight: 600; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.steps > li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.num {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 15px;
}
.steps h3 { margin-bottom: 7px; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

.callout {
  margin: 34px auto 0;
  max-width: 620px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 17px 22px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.callout b { color: var(--ink); }

/* ---------- Spec table ---------- */
.spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec th, .spec td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: .96rem;
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th {
  width: 33%;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-alt);
  white-space: nowrap;
}
.spec td { color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 48px;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--line-strong);
}

.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.price-card.featured::before {
  background: linear-gradient(90deg, var(--brand), #4da3f5);
  height: 5px;
}

.badge {
  position: absolute;
  top: 30px;
  right: 24px;
  background: var(--brand-tint);
  color: var(--brand-700);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.22rem; }
.plan-desc { color: var(--ink-faint); font-size: .92rem; margin-top: 3px; }

.price { margin: 18px 0 24px; color: var(--ink-faint); font-size: .93rem; }
.price span {
  display: block;
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.035em;
  line-height: 1.05;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  text-align: left;
  display: grid;
  gap: 11px;
  flex: 1;
}
.ticks li {
  position: relative;
  padding-left: 29px;
  font-size: .94rem;
  color: var(--ink-soft);
}
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6bcb' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

#pricing .fineprint.centered {
  margin-top: 26px;
  max-width: 62ch;
  margin-inline: auto;
}

.note { margin-top: 28px; text-align: center; color: var(--ink-soft); font-size: .95rem; }

/* ---------- FAQ ---------- */
details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 13px;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease;
}
details:first-of-type { margin-top: 40px; }
details[open] { border-color: var(--line-strong); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 52px 17px 22px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  border-radius: var(--radius);
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--brand); }
summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -6px;
  border-right: 2.2px solid var(--ink-faint);
  border-bottom: 2.2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details > p { padding: 0 22px 19px; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.roadmap li {
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 15px 20px;
  color: var(--ink-soft);
  font-size: .96rem;
}
.roadmap b { color: var(--ink); font-weight: 600; }

/* ---------- Closing CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 55%, #2f8ae0 100%);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 7vw, 88px) 0;
}
.cta h2 { color: #fff; }
.cta p { margin: 13px auto 30px; color: #dbeafe; max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #9fb3cd; padding: 50px 0 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 34px;
}
.site-footer .brand span { color: #fff; }
.site-footer .muted { margin-top: 11px; font-size: .92rem; color: #7f95b1; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: #9fb3cd; font-size: .93rem; }
.site-footer nav a:hover { color: #fff; }
.legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 20px;
  font-size: .86rem;
  color: #6d84a1;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 20px; }
  .price-card.featured { order: -1; }
}

@media (max-width: 860px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 780px) {
  .nav-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
    background: var(--bg);
  }
  .nav-button span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 22px 20px;
    display: none;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav > a { padding: 12px 10px; font-size: 1rem; }
  .nav > a.btn { margin: 8px 0 0; }

  .nav-toggle:checked ~ .nav-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-header { position: relative; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .strip-grid { grid-template-columns: 1fr; text-align: left; }
  .cta-row .btn { width: 100%; }
  .spec th, .spec td { display: block; width: 100%; white-space: normal; }
  .spec th { border-bottom: 0; padding-bottom: 4px; }
  .spec td { padding-top: 0; }
  .price-card { padding: 30px 22px; }
  .footer-inner { flex-direction: column; gap: 22px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .cta, .skip, .nav-button { display: none; }
  body { font-size: 12pt; }
  .card, .steps > li, details { box-shadow: none; break-inside: avoid; }
}
