/* Penna — shared styles
   Tokens come from the logo: navy #1D2B53, teal #19C39C.
   Fonts are self-hosted (shared/fonts) so the page makes no third-party requests. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #1D2B53;
  --navy-deep: #0F1B36;
  --navy-soft: #2F3F6B;
  --teal: #19C39C;
  --teal-ink: #0E8A6F;
  --teal-tint: #E6F8F3;
  --paper: #F4F7FA;
  --white: #FFFFFF;
  --mist: #DCE3EC;
  --mist-soft: #EEF2F6;
  --slate: #4B5670;
  --ink: #16203B;
  --alert: #C0392B;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.95rem;
  --step-4: 2.44rem;
  --step-5: clamp(2.6rem, 2rem + 2.6vw, 3.8rem);

  --wrap: 1180px;
  --gutter: 16px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px -24px rgba(29, 43, 83, 0.35);
}

@media (min-width: 760px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }
h4 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; }
.lede { font-size: var(--step-1); color: var(--slate); max-width: 62ch; line-height: 1.5; }
.small { font-size: var(--step--1); color: var(--slate); }
.measure { max-width: 66ch; }
.center { text-align: center; }
.center .lede, .center .measure { margin-left: auto; margin-right: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy-deep); color: #DCE3EC; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lede, .section-navy .small { color: #B7C2D6; }
.section-navy a { color: var(--white); }
.section-navy a:hover { color: var(--teal); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { max-width: 24ch; }
.section-head .lede { margin-top: 0.5em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: var(--step-0); line-height: 1;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--navy-deep); }
.btn-primary:hover { background: #22D6AD; color: var(--navy-deep); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.section-navy .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.6); }
.section-navy .btn-secondary:hover { background: var(--white); color: var(--navy-deep); }
.btn-lg { padding: 18px 30px; font-size: var(--step-1); }
.btn-sm { padding: 10px 16px; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-note { font-size: var(--step--1); color: var(--slate); margin-top: 10px; }
.section-navy .btn-note { color: #B7C2D6; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--mist);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 500; font-size: var(--step--1); }
.nav a:hover { background: var(--mist-soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--teal-ink); }
.header-cta { display: none; }
.nav-toggle { position: relative; }
.nav-toggle summary { list-style: none; cursor: pointer; padding: 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--step--1); color: var(--navy); }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary svg { width: 22px; height: 22px; }
.nav-toggle[open] summary { background: var(--mist-soft); }
.nav-mobile {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px;
}
.nav-mobile a { padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 500; }
.nav-mobile a:hover { background: var(--mist-soft); }
.nav-mobile .btn { margin-top: 8px; }
@media (min-width: 900px) {
  .nav, .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Pulse motif (from the logo) */
.pulse { width: 100%; height: 28px; }
.pulse path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%230E8A6F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.section-navy .checks li::before { background-color: rgba(25,195,156,0.18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: var(--step--1); color: var(--slate); }
.chips li { display: inline-flex; align-items: center; gap: 7px; }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.section-navy .chips { color: #B7C2D6; }

/* Grids */
.grid-2 { display: grid; gap: 28px; }
.grid-3 { display: grid; gap: 28px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Feature columns (text-first, no card chrome) */
.feature { border-top: 3px solid var(--teal); padding-top: 18px; }
.feature h3 { margin-bottom: 0.4em; }
.feature p { color: var(--slate); margin: 0; }
.section-navy .feature { border-top-color: var(--teal); }
.section-navy .feature p { color: #B7C2D6; }

/* Module list: Core vs add-on hierarchy */
.modules { display: grid; gap: 24px; }
@media (min-width: 900px) { .modules { grid-template-columns: 1.6fr 1fr; } }
.core-panel { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-lg); overflow: hidden; }
.core-panel header { padding: 18px 24px; background: var(--navy); color: var(--white); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.core-panel header h3 { color: var(--white); margin: 0; }
.core-panel header span { color: var(--teal); font-weight: 600; font-size: var(--step--1); }
.core-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 640px) { .core-panel ul { grid-template-columns: 1fr 1fr; } }
.core-panel li { padding: 18px 24px; border-top: 1px solid var(--mist); }
@media (min-width: 640px) { .core-panel li:nth-child(2n) { border-left: 1px solid var(--mist); } }
.core-panel li strong { display: block; color: var(--navy); margin-bottom: 4px; }
.core-panel li span { color: var(--slate); font-size: var(--step--1); }
.addons { display: grid; gap: 16px; align-content: start; }
.addon { border: 1px solid var(--mist); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 18px 20px; background: var(--white); }
.addon .price { font-family: var(--font-display); font-size: var(--step-2); color: var(--navy); font-weight: 600; line-height: 1; margin: 6px 0 8px; }
.addon .price small { font-family: var(--font-body); font-size: var(--step--1); color: var(--slate); font-weight: 500; }
.addon p { color: var(--slate); font-size: var(--step--1); margin: 0; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-ink); }
.tag-muted { background: var(--mist-soft); color: var(--slate); }

/* Specialty tiles */
.specialties { display: grid; gap: 20px; }
@media (min-width: 760px) { .specialties { grid-template-columns: 1fr 1fr; } }
.specialty { border: 1px solid var(--mist); border-radius: var(--radius-lg); padding: 26px; background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.specialty h3 { margin: 0; font-size: var(--step-2); }
.specialty p { color: var(--slate); margin: 0; }
.specialty ul { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; color: var(--ink); font-size: var(--step--1); }
.specialty ul li::before { content: "·"; color: var(--teal); font-weight: 700; margin-right: 8px; }
.specialty a.more { margin-top: auto; font-weight: 600; }
.specialty-dev { background: var(--paper); border-style: dashed; }

/* Pricing calculator */
.calc { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.calc-body { display: grid; gap: 0; }
@media (min-width: 760px) { .calc-body { grid-template-columns: 1fr 1fr; } }
.calc-inputs { padding: 28px; display: grid; gap: 22px; align-content: start; }
.calc-total { padding: 28px; background: var(--navy-deep); color: var(--white); display: flex; flex-direction: column; gap: 14px; }
.stepper { display: grid; gap: 8px; }
.stepper label { font-weight: 600; color: var(--navy); }
.stepper .hint { font-size: var(--step--1); color: var(--slate); }
.stepper-ctl { display: inline-flex; justify-self: start; align-items: center; border: 1px solid var(--mist); border-radius: 999px; overflow: hidden; }
.stepper-ctl button { width: 44px; height: 44px; border: 0; background: var(--white); color: var(--navy); font-size: 1.3rem; cursor: pointer; }
.stepper-ctl button:hover { background: var(--mist-soft); }
.stepper-ctl output { min-width: 56px; text-align: center; font-weight: 700; font-size: var(--step-1); color: var(--navy); }
.calc-total .total { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; font-weight: 600; }
.calc-total .total small { font-family: var(--font-body); font-size: var(--step-0); color: #B7C2D6; font-weight: 500; }
.calc-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: var(--step--1); color: #B7C2D6; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines li span:last-child { color: var(--white); font-weight: 600; }
.calc-total .btn { align-self: flex-start; margin-top: 4px; }
.billing-toggle { display: inline-flex; border: 1px solid var(--mist); border-radius: 999px; padding: 3px; background: var(--paper); }
.billing-toggle button { border: 0; background: transparent; color: var(--slate); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: var(--step--1); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.billing-toggle button small { font-weight: 500; opacity: 0.85; }
.calc-total .fine { font-size: 0.85rem; color: #93A2BD; margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--mist); border-radius: var(--radius-lg); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--mist); vertical-align: top; }
thead th { border-top: 0; background: var(--paper); color: var(--navy); font-weight: 700; }
td strong { color: var(--navy); }
td .sub { display: block; color: var(--slate); font-size: 0.85rem; margin-top: 2px; }
.num { white-space: nowrap; }

/* Security list */
.assurances { display: grid; gap: 22px 32px; margin: 0; }
@media (min-width: 640px) { .assurances { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .assurances { grid-template-columns: repeat(3, 1fr); } }
.assurances div { padding-left: 18px; border-left: 2px solid var(--teal); }
.assurances dt { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.assurances dd { margin: 0; color: var(--slate); font-size: var(--step--1); }
.section-navy .assurances dt { color: var(--white); }
.section-navy .assurances dd { color: #B7C2D6; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; color: var(--navy); position: relative; font-size: var(--step-0); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--teal-ink); font-weight: 400; transition: transform 160ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; color: var(--slate); max-width: 70ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band .lede { margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B7C2D6; padding: 56px 0 32px; font-size: var(--step--1); }
.site-footer .cols { display: grid; gap: 32px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--white); margin: 0 0 12px; font-size: var(--step--1); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #DCE3EC; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer .logo img { height: 34px; filter: brightness(0) invert(1); }
.site-footer .brand p { margin: 14px 0 0; max-width: 34ch; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #93A2BD; font-size: 0.85rem; }

/* Inner page hero */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 56px); }
.page-hero .kicker { color: var(--teal-ink); font-weight: 600; margin-bottom: 10px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .btn-row { margin-top: 24px; }

/* Prose blocks on inner pages */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink); }
.notice { border: 1px solid var(--mist); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 16px 20px; background: var(--paper); }
.notice p:last-child { margin: 0; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
