/* Petry Solutions — shared styles */
:root {
  /* Petry Solutions brand palette, sampled from the logo:
     navy wordmark #174168, slate #465B70, ring/arrow gradient #256385 → #2F888C → #61B574 → #9BD462 */
  --ink: #142f4c;
  --ink-soft: #465B70;
  --bg: #F8FAF9;
  --surface: #ffffff;
  --sand: #EDF4F1;
  --brand: #174168;
  --brand-dark: #0f2e4b;
  --accent: #2F888C;
  --accent-dark: #23727A;   /* CTA fill: keeps white button text readable (5.5:1) */
  --accent-text: #1F6B70;   /* teal for small text on light backgrounds */
  --green: #61B574;
  --lime: #9BD462;
  --brand-gradient: linear-gradient(120deg, #256385 0%, #2F888C 40%, #61B574 75%, #9BD462 100%);
  --on-dark: #eef3f6;
  --on-dark-soft: #c2d0dc;
  --line: #dde7e4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 65, 104, 0.09);
  --max: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6em; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--sand { background: var(--sand); }
.section--brand { background: var(--brand); color: var(--on-dark); }
.section--brand h2, .section--brand h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .8em; }
.section--brand .eyebrow, .panel .eyebrow, .cta-band .eyebrow { color: var(--lime); }
h1, h2 { color: var(--brand); }
.section--brand h2, .cta-band h2 { color: #fff; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent-dark); color: #fff; }
.btn--primary:hover { background: #1b5c63; color: #fff; }
.btn--ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--sand); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 250, 249, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
/* Logo: horizontal lockup on a transparent background (white lettering in the footer) */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { display: block; flex: none; height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-text); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-links .btn { padding: 10px 20px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 90px 0 100px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(97,181,116,.2), rgba(47,136,140,.08) 45%, transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-card { background: var(--surface); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-card h3 { font-size: 1.15rem; margin-bottom: 1em; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--ink-soft); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174168' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.page-hero { padding: 76px 0 60px; background: var(--sand); overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero .lead { margin-bottom: 0; }
/* On wide screens, the brand symbol fills the open space to the right of the page title */
@media (min-width: 961px) {
  .page-hero .container > * { max-width: 680px; }
  .page-hero .container::after { content: ""; position: absolute; right: 40px; top: 50%; width: 240px; height: 240px; transform: translateY(-50%); background: url("../img/mark.png") center / contain no-repeat; opacity: .18; pointer-events: none; }
}

/* Cards & grids */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 50px; height: 50px; border-radius: 12px; background: var(--sand); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; }
.card-link { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 8px; }
.card-link::after { content: " →"; }
.card-link:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.section-head { margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.panel { background: var(--brand); color: var(--on-dark); border-radius: 22px; padding: 44px; }
.panel h3 { color: #fff; }
.panel p { color: var(--on-dark-soft); }
.panel .check-list li { color: var(--on-dark); }
.panel .check-list li::before, .section--brand .check-list li::before { background-color: var(--accent-dark); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: #fff; }
.stat span { font-size: .9rem; opacity: .85; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 2.2rem; color: var(--accent); font-weight: 600; }
.section--brand .step p { color: var(--on-dark-soft); }
.step .step-icon { position: absolute; top: 4px; right: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--lime); }
.step .step-icon svg { width: 22px; height: 22px; }

/* Services detail */
.service { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; }
.service h2 { font-size: 1.8rem; }
.service ul { padding-left: 1.2em; color: var(--ink-soft); }
.service ul li { margin-bottom: 6px; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--sand); color: var(--brand); margin: 0 6px 6px 0; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--serif); font-size: 2.2rem; color: var(--brand); margin: 6px 0 4px; }
.price-card .price small { font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }
.price-card ul { flex: 1; margin: 18px 0 24px; }
.price-card .price-note { font-size: .88rem; color: var(--accent-text); font-weight: 600; margin: 0; }
.price-card.featured { border: 2px solid var(--green); position: relative; }
.price-card.featured::before { content: attr(data-badge); position: absolute; top: -13px; left: 32px; background: var(--accent-dark); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }

/* Guided start (home hero card) */
.hero-card-note { color: var(--ink-soft); font-size: .95rem; margin: -6px 0 14px; }
.path-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.path-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; transition: border-color .2s, background .2s, transform .2s; }
.path-list a::after { content: "→"; color: var(--accent-text); font-weight: 700; flex: none; }
.path-list a:hover { border-color: var(--accent-dark); background: #e8f3f2; color: var(--ink); transform: translateX(2px); }

/* Price list */
.price-list { list-style: none; padding: 0; margin: 0 0 18px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list strong { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); white-space: nowrap; padding: 0 3px; background: linear-gradient(transparent 60%, rgba(155, 212, 98, .5) 60%); }
.pay-plan { display: flex; gap: 10px; align-items: flex-start; background: #e6f4ea; color: #1d5534; border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.pay-plan svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }

/* Back Pocket callout */
.callout { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box; border-radius: 22px; padding: 32px 36px; box-shadow: var(--shadow); }
.callout .callout-price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--brand); text-align: center; }
.callout .callout-price small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.callout h3 { margin-bottom: .3em; }
.callout p { margin: 0; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* CTA band */
.cta-band { background: var(--brand); color: var(--on-dark); border-radius: 24px; padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 560px; }

/* Forms */
.form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .92rem; }
label .opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 136, 140, .2); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.error-msg { color: #b3261e; font-size: .85rem; min-height: 1em; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { font-weight: 500; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--bg); }
.radio-row input { width: auto; accent-color: var(--brand); }
.radio-row label:has(input:checked) { border-color: var(--accent-dark); background: #e5f2f1; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-dark); flex: none; }
.form-section-title { grid-column: 1 / -1; font-family: var(--serif); font-size: 1.15rem; margin: 10px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e5f2ea; color: #1d5b34; }
.form-status.error { background: #fbe9e7; color: #8c1d18; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }

.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sand); color: var(--brand); display: grid; place-items: center; }
.contact-info .icon svg { width: 22px; height: 22px; }
.contact-info strong { display: block; }

/* Footer */
.site-footer { background: var(--brand-dark); color: var(--on-dark-soft); padding: 64px 0 30px; margin-top: 0; border-top: 4px solid transparent; border-image: var(--brand-gradient) 1; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .logo { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }

/* Plan Finder (plan-finder.html) */
.pf-wrap { display: flex; flex-direction: column; gap: 64px; padding-top: 56px; padding-bottom: 64px; max-width: 960px; }
.pf-wrap section { scroll-margin-top: 96px; }
.pf-wrap h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.pf-stack { display: flex; flex-direction: column; gap: 22px; }
.pf-group { display: flex; flex-direction: column; gap: 10px; }
.pf-group h3 { margin-top: 18px; color: var(--accent-text); font-size: 1.1rem; }
.pf-small { font-size: .9rem; }
.pf-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pf-jump { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .95rem; }
.pf-jump a { font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.pf-jump a:hover { border-color: var(--accent); }
.pf-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pf-track { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.pf-track:hover { border-color: var(--accent); }
.pf-track[aria-pressed="true"] { border-color: var(--accent-dark); background: #e8f3f2; box-shadow: var(--shadow); }
.pf-track b { font-family: var(--serif); font-size: 1.25rem; color: var(--brand); }
.pf-track:focus-visible, .pf-tab:focus-visible, .pf-add:focus-visible, .pf-x:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.pf-q { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-q legend { font-weight: 600; font-size: 1.05rem; padding: 0; margin-bottom: 10px; color: var(--ink); }
.pf-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-opt { position: relative; font-weight: 400; }
.pf-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; }
.pf-opt span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: .97rem; }
.pf-opt input:checked + span { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; font-weight: 600; }
.pf-opt input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.pf-result { background: var(--surface); border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.pf-result h3 { margin: 0; color: var(--brand); }
.pf-rec { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.pf-rec:first-child { border-top: 0; }
.pf-price { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; text-align: right; color: var(--brand); white-space: nowrap; }
.pf-desc { grid-column: 1 / -1; color: var(--ink-soft); font-size: .95rem; }
.pf-tag { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; background: #e5eef6; color: var(--brand); }
.pf-tag--start { background: #e6f4ea; color: #1d5534; }
.pf-why { background: #e6f4ea; color: #1d5534; border-radius: 10px; padding: 12px 14px; font-size: .95rem; margin: 0; }
.pf-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: pfs; }
.pf-steps li { counter-increment: pfs; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 3px solid transparent; border-image: var(--brand-gradient) 1; }
.pf-steps li::before { content: "Step " counter(pfs); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent-text); }
.pf-steps b { font-family: var(--serif); color: var(--brand); }
.pf-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.pf-tab { all: unset; cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pf-tab[aria-selected="true"] { color: var(--brand); border-color: var(--green); }
.pf-item { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.pf-name { font-weight: 600; }
.pf-item .pf-price { font-size: 1.05rem; }
.pf-inc { grid-column: 1 / -1; color: var(--ink-soft); font-size: .93rem; max-width: 70ch; }
.pf-add { all: unset; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--accent-text); padding: 4px 12px; border: 1.5px solid var(--accent-dark); border-radius: 999px; white-space: nowrap; }
.pf-add[aria-pressed="true"] { background: var(--accent-dark); color: #fff; }
.pf-callout { border-left: 4px solid var(--green); padding: 4px 0 4px 14px; font-size: .95rem; margin: 8px 0 0; }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pf-facts div { display: flex; flex-direction: column; gap: 4px; }
.pf-facts b { font-family: var(--serif); color: var(--brand); }
.pf-intake { display: flex; flex-direction: column; gap: 18px; }
.pf-igroup { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 20px 20px; margin: 0; min-width: 0; }
.pf-igroup legend { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; padding: 0 6px; color: var(--brand); }
.pf-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.pf-form label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; min-width: 0; }
.pf-form label[hidden] { display: none; }
.pf-wide { grid-column: 1 / -1; }
textarea.pf-short { min-height: 90px; }
.pf-privacy { font-size: .9rem; color: var(--ink-soft); border-left: 4px solid var(--green); padding: 2px 0 2px 12px; }
.has-tray { padding-bottom: 76px; }
.pf-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 3px solid transparent; border-image: var(--brand-gradient) 1; box-shadow: 0 -8px 24px rgba(23, 65, 104, .1); padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)); }
.pf-tray-in { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.pf-tray-total { font-family: var(--serif); font-weight: 600; color: var(--brand); }
.pf-btn-sm { padding: 9px 18px; font-size: .92rem; }
.pf-panel { max-width: 960px; margin: 12px auto 0; display: flex; flex-direction: column; gap: 12px; max-height: 62vh; overflow: auto; padding-bottom: 4px; }
.pf-panel ul { margin: 0; padding: 0; list-style: none; }
.pf-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.pf-panel textarea { min-height: 160px; font-size: .88rem; }
.pf-x { all: unset; cursor: pointer; color: var(--ink-soft); font-size: .85rem; text-decoration: underline; }
.pf-status { font-size: .9rem; color: #1d5534; font-weight: 600; }
@media (max-width: 520px) {
  .pf-item { grid-template-columns: 1fr auto; }
  .pf-item .pf-add { grid-column: 1 / -1; justify-self: start; }
  .pf-wrap { gap: 48px; padding-top: 40px; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .callout { grid-template-columns: auto 1fr; }
  .callout .btn { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links .btn { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 70px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band, .panel, .form-wrap, .callout { padding: 32px 24px; }
  .callout { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .btn-row .btn { flex: 1 1 100%; }
  .container { padding: 0 16px; }
}

/* Promo banner (every page) */
.promo-banner { background: var(--brand); color: #fff; text-align: center; padding: 11px 16px; font-size: .95rem; border-bottom: 3px solid transparent; border-image: var(--brand-gradient) 1; }
.promo-banner p { margin: 0; }
.promo-banner a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.promo-banner a:hover { color: var(--lime); }