/* Formsimplify — modern layer (23 Nov 2026, Hugo's Design Agreement: high-end, modern, never "old magazine").
   Loaded after app.css on every page. Same sizes as before; only the look changes:
   - Modern grotesque headings (self-hosted Bricolage Grotesque) instead of the editorial serif; body stays Atkinson Hyperlegible Next.
   - Deep spruce night for the header and the home hero, the brand's lime highlighter as the one bold accent.
   - Depth: layered cards, soft shadows, glass header; a living hero (drifting paper sheets, the W-9 card fills itself).
   - Light motion on everything clickable; none when the device asks for reduced motion. */
:root {
  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --night: #062A21; --night-2: #0B3B2F; --night-3: #124D3D;
  --bg: #F1F5F2;
  --glass: rgba(6, 42, 33, .86);
  --shadow: 0 1px 2px rgba(6, 42, 33, .06), 0 10px 30px -14px rgba(6, 42, 33, .28);
  --shadow-lift: 0 2px 4px rgba(6, 42, 33, .08), 0 22px 44px -18px rgba(6, 42, 33, .38);
}
body { background: var(--bg); }
h1, h2, h3, .brand-word, .qc-num, .trust-list strong, .pf-meter-num, .pl-name, .ac-slip .name {
  font-family: var(--display); font-optical-sizing: auto; letter-spacing: -0.025em;
}
h1 { font-weight: 800; letter-spacing: -0.035em; }
h2 { font-weight: 750; }
.brand-word { font-weight: 800; }

/* ---------- header: a glass bar on deep spruce ---------- */
.notice { background: var(--night); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-head { position: sticky; top: 0; z-index: 45; background: var(--glass); border-bottom: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); color: #fff; }
.site-head .wrap { gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; }
.site-head .brand, .site-head .brand-word { color: #fff; }
.site-head .pilot-tag { background: var(--hi); color: var(--night); border-color: transparent; }
.nav { gap: 2px; }
.nav > a, .nav-more > summary { color: rgba(255,255,255,.92); }
.nav > a:hover, .nav-more > summary:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav > a[aria-current="page"] { color: #fff; }
.nav-more[open] > summary { background: rgba(255,255,255,.12); }
.nav-menu { box-shadow: var(--shadow-lift); border-radius: 16px; }
.nav-menu a { color: var(--ink); }
@media (max-width: 899px) { .nav-more > summary { border-color: rgba(255,255,255,.6); } }
.site-head .lang { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.site-head .lang:hover { background: rgba(255,255,255,.12); }
.site-head .ac-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.site-head .ac-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-head .ac-btn.ac-create { background: var(--hi); border-color: var(--hi); color: var(--night); box-shadow: 0 6px 18px -8px rgba(226,241,91,.7); }
.site-head .ac-btn.ac-create:hover { background: #EEF88A; border-color: #EEF88A; color: var(--night); }
.site-head .snd > summary { color: #fff; }
.site-head .snd > summary:hover { background: rgba(255,255,255,.12); }
.site-head :focus-visible { outline-color: var(--hi); }

/* ---------- buttons: same size, more depth ---------- */
.btn { box-shadow: 0 1px 0 rgba(6,42,33,.04); }
.btn.primary { background: linear-gradient(180deg, #11604B, var(--spruce)); border-color: var(--spruce); box-shadow: 0 8px 20px -10px rgba(13,74,58,.7); }
.btn.primary:hover { background: linear-gradient(180deg, #146E56, #0F5543); }

/* ---------- cards and panels: layered, soft depth ---------- */
.panel, .price-card, .ticket, .pf-section, .pf-entry, .lockbox, .imf-item, .review-table, .say, .ac-auth-card, .plan {
  border-radius: 20px; box-shadow: var(--shadow); border-color: rgba(6,42,33,.09);
}
.panel { background: linear-gradient(180deg, #fff, #FBFDFB); }
.price-card, .imf-item, .ticket { transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) { .price-card:hover, .imf-item:hover, .ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); } }
.ac-slip { box-shadow: 8px 8px 0 var(--night), var(--shadow-lift); }

/* ---------- home hero: deep spruce night, living scene ---------- */
.home .hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-bottom: 0;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(226,241,91,.16), transparent 60%),
              radial-gradient(900px 520px at -10% 110%, rgba(39,160,120,.28), transparent 60%),
              linear-gradient(160deg, var(--night) 0%, var(--night-2) 55%, var(--night-3) 100%); }
.home .hero h1 { color: #fff; }
.home .hero .lead { color: rgba(255,255,255,.84); }
.home .hero .not-gov { color: rgba(255,255,255,.78); border-left-color: rgba(226,241,91,.6); }
.home .hero .count-line { color: rgba(255,255,255,.8); }
.home .hero .btn.ghost { color: #fff; }
.home .hero .btn.ghost:hover { background: rgba(255,255,255,.1); }
.home .hero .slip-search .row { box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); border-color: transparent; }
.home .hero .slip-search .btn.primary { background: var(--hi); border-color: var(--hi); color: var(--night); box-shadow: 0 10px 24px -10px rgba(226,241,91,.75); }
.home .hero .slip-search .btn.primary:hover { background: #EEF88A; }
/* drifting paper sheets (drawn in the page, no downloads) */
.home .hero::before, .home .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 150'%3E%3Crect x='1' y='1' width='118' height='148' rx='10' fill='%23ffffff' fill-opacity='.06' stroke='%23ffffff' stroke-opacity='.22'/%3E%3Cpath d='M16 26h70M16 44h88M16 62h60M16 80h80' stroke='%23ffffff' stroke-opacity='.28' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M14 104l92-6' stroke='%23E2F15B' stroke-opacity='.75' stroke-width='12' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.home .hero::before { width: 170px; height: 212px; left: 47%; top: 8%; transform: rotate(-12deg); }
.home .hero::after { width: 120px; height: 150px; left: 4%; bottom: -30px; transform: rotate(9deg); opacity: .35; }
@media (max-width: 979px) { .home .hero::before { left: auto; right: -40px; top: 2%; opacity: .3; } }
/* the W-9 card: glass edge, a lime glow, and it fills itself again and again */
.home .qcard-paper { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.65), 0 0 120px -40px rgba(226,241,91,.45); }
.home .qcard-paper::before { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.home .qc-caption { color: rgba(255,255,255,.78); }
.trust { background: linear-gradient(180deg, var(--night-3), #0E4536); border-bottom: 0; color: #fff; }
.trust-list li { border-color: rgba(255,255,255,.1); }
.trust-list strong { color: var(--hi); }
.trust-list span { color: rgba(255,255,255,.8); }

@media (prefers-reduced-motion: no-preference) {
  .home .hero::before { animation: drift 14s ease-in-out infinite alternate; }
  .home .hero::after { animation: drift2 18s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate(0, 0) rotate(-12deg); } to { transform: translate(-18px, 26px) rotate(-6deg); } }
  @keyframes drift2 { from { transform: translate(0, 0) rotate(9deg); } to { transform: translate(22px, -18px) rotate(3deg); } }
  .home .qcard { animation: float 7s ease-in-out infinite alternate; }
  @keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
  .home .qc-plain mark { animation: swipe .9s .5s cubic-bezier(.2,.7,.2,1) forwards, reswipe 7s 3s ease-in-out infinite; }
  @keyframes reswipe { 0%, 70% { background-size: 100% 100%; } 78% { background-size: 0 100%; } 90%, 100% { background-size: 100% 100%; } }
  .home .qc-choices li.on::before { animation: tickpop 7s 3s ease-in-out infinite; }
  @keyframes tickpop { 0%, 80% { transform: scale(1); } 86% { transform: scale(.6); } 92% { transform: scale(1.18); } 100% { transform: scale(1); } }
  .home .qc-progress span { animation: fillbar 7s 1s ease-in-out infinite; }
  @keyframes fillbar { 0% { width: 8%; } 55%, 100% { width: 22%; } }
  .panel, .say, .ac-auth-card { animation: rise .35s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* fixes after the first look: the demo card keeps dark text; one header row on computers */
.home .qcard-paper { color: var(--ink); }
@media (min-width: 1100px) {
  .site-head .wrap { flex-wrap: wrap; }   /* the nav moves to its own row only when it does not fit (for example logged in) */
  .nav { flex-wrap: nowrap; }
  .nav > a, .nav-more > summary { padding: 8px 9px; white-space: nowrap; }
  .nav .ac-auth { margin-left: 6px; }
}

/* the notice link may wrap on small phones (the Spanish text is longer) */
@media (max-width: 480px) { .notice a { white-space: normal; } }
