/* Layout chrome — copied verbatim from the Next.js components (TopBanner, Logo, Nav, Footer, FloatingChat, CheckoutButton). */

/* --- Top promo banner --- */
.top-banner {
          background: #ff7000;
          background: linear-gradient(90deg, #ff7a00 0%, #ff6200 50%, #ff5500 100%);
          color: #ffffff;
          font-family: var(--font-display);
          position: relative;
          z-index: 70;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
        }
        .top-banner__link {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 0.85rem;
          padding: 0.45rem 1rem;
          min-height: 38px;
          text-decoration: none;
          color: #ffffff;
          transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
        }
        .top-banner__link:hover {
          opacity: 0.95;
        }
        .top-banner__link:hover .top-banner__badge {
          transform: scale(1.03);
          background: rgba(0, 0, 0, 0.28);
        }
        .top-banner__text {
          font-size: 0.92rem;
          font-weight: 700;
          letter-spacing: -0.01em;
          white-space: nowrap;
        }
        .top-banner__badge {
          display: inline-flex;
          align-items: center;
          gap: 0.35rem;
          padding: 0.2rem 0.65rem;
          background: rgba(0, 0, 0, 0.2);
          border: 1px solid rgba(255, 255, 255, 0.25);
          border-radius: var(--r-pill);
          font-size: 0.72rem;
          font-weight: 800;
          letter-spacing: 0.05em;
          text-transform: uppercase;
          white-space: nowrap;
          transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
        }
        .top-banner__clock {
          font-size: 0.78rem;
          line-height: 1;
        }
        @media (max-width: 640px) {
          .top-banner__link {
            gap: 0.5rem;
            padding: 0.4rem 0.75rem;
          }
          .top-banner__text {
            font-size: 0.82rem;
          }
          .top-banner__badge {
            font-size: 0.68rem;
            padding: 0.15rem 0.5rem;
          }
        }
        @media (max-width: 420px) {
          .top-banner__text {
            font-size: 0.76rem;
          }
          .top-banner__badge {
            font-size: 0.64rem;
            gap: 0.2rem;
          }
        }

/* --- Logo --- */
.logo { display: inline-flex; align-items: center; line-height: 1; }
        .logo__word {
          position: relative;
          font-family: var(--font-display);
          font-weight: 800;
          font-size: var(--logo-size, 26px);
          letter-spacing: -0.01em;
          color: #ffffff;
          padding-left: 0.12em;
        }
        /* orange right-triangle notch at the lower-left of the L */
        .logo__word::before {
          content: "";
          position: absolute;
          left: -0.02em;
          bottom: 0.02em;
          width: 0.36em;
          height: 0.36em;
          background: var(--accent);
          clip-path: polygon(0 0, 0 100%, 100% 100%);
        }
        .band-paper .logo__word { color: var(--light-ink); }

/* --- Header / navigation --- */
.bar {
          position: sticky; top: 0; z-index: 60;
          border-bottom: 1px solid transparent;
          transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
        }
        .bar--on {
          background: rgba(5, 16, 18, 0.86);
          backdrop-filter: blur(16px) saturate(150%);
          border-bottom-color: var(--line);
        }
        .bar__inner { display: flex; align-items: center; gap: 1rem; height: 74px; }
        .bar__brand { margin-right: auto; }
        .bar__nav { display: flex; align-items: center; gap: .15rem; }
        .bar__link {
          position: relative;
          padding: .5rem .8rem;
          font-size: .93rem; font-weight: 500;
          color: var(--text-dim);
          transition: color var(--dur) var(--ease);
        }
        .bar__link::after {
          content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem;
          height: 2px; border-radius: 2px; background: var(--accent);
          transform: scaleX(0); transform-origin: left;
          transition: transform var(--dur) var(--ease);
        }
        .bar__link:hover { color: var(--text); }
        .bar__link:hover::after, .bar__link.is-active::after { transform: scaleX(1); }
        .bar__link.is-active { color: var(--text); }

        .bar__burger {
          display: none; width: 44px; height: 44px;
          align-items: center; justify-content: center;
          border: 1px solid var(--line-strong); border-radius: 12px;
          background: var(--surface); cursor: pointer;
        }
        .burger, .burger::before, .burger::after {
          content: ""; display: block; width: 19px; height: 2px;
          background: var(--text); border-radius: 2px;
        }
        .burger { position: relative; }
        .burger::before { position: absolute; top: -6px; }
        .burger::after { position: absolute; top: 6px; }

        .sheet {
          position: fixed; inset: 0; z-index: 200;
          display: flex; flex-direction: column;
          background: var(--bg);
          overflow-y: auto;
          animation: sheetIn .18s var(--ease);
        }
        @keyframes sheetIn { from { opacity: 0 } to { opacity: 1 } }
        .sheet__top { display: flex; align-items: center; justify-content: space-between; height: 74px; flex-shrink: 0; }
        .sheet__close {
          width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
          border: 1px solid var(--line-strong); border-radius: 12px;
          background: var(--surface); color: var(--text); cursor: pointer;
          transition: border-color var(--dur), color var(--dur);
        }
        .sheet__close:hover { border-color: var(--accent); color: var(--accent); }
        .sheet__body { display: flex; flex-direction: column; gap: 1.4rem; padding-block: 1rem 2.5rem; }
        .sheet__body nav { display: flex; flex-direction: column; }
        .sheet__link {
          display: flex; align-items: center; justify-content: space-between;
          padding: 1.05rem .2rem;
          font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
          letter-spacing: -.03em;
          border-bottom: 1px solid var(--line);
        }
        .sheet__link svg { color: var(--accent); }

        @media (max-width: 940px) {
          .bar__nav, .bar__cta { display: none; }
          .bar__burger { display: flex; }
        }

/* --- Footer --- */
.foot {
          margin-top: 2rem;
          padding-top: clamp(3rem, 2rem + 4vw, 5rem);
          border-top: 1px solid var(--line);
          background: var(--bg-deep);
        }
        .foot__grid {
          display: grid;
          grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
          gap: 2.5rem;
          padding-bottom: 3rem;
        }
        .foot__blurb { max-width: 30ch; margin: 1.1rem 0 1.4rem; font-size: .93rem; }
        .foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
        .foot__title {
          margin-bottom: .35rem;
          font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
          letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute);
        }
        .foot__link { font-size: .93rem; color: var(--text-dim); transition: color var(--dur); }
        .foot__link:hover { color: var(--accent); }
        .foot__bar {
          display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
          padding: 1.4rem 0 2.2rem;
          border-top: 1px solid var(--line);
          font-size: .84rem;
        }
        .foot__bar p { margin: 0; }
        @media (max-width: 1100px) {
          .foot__grid { grid-template-columns: repeat(3, 1fr); }
          .foot__brand { grid-column: 1 / -1; }
        }
        @media (max-width: 900px) {
          .foot__grid { grid-template-columns: 1fr 1fr; }
          .foot__brand { grid-column: 1 / -1; }
        }
        @media (max-width: 540px) {
          .foot__grid { grid-template-columns: 1fr; }
        }

/* --- Floating WhatsApp button --- */
.fab {
          position: fixed;
          right: clamp(1rem, 3vw, 1.6rem);
          bottom: clamp(1rem, 3vw, 1.6rem);
          z-index: 70;
          display: inline-flex; align-items: center; gap: .55rem;
          padding: .8rem 1.1rem;
          border-radius: var(--r-pill);
          background: #25D366;
          color: #04301a;
          font-family: var(--font-display); font-weight: 700; font-size: .92rem;
          box-shadow: 0 18px 40px -16px rgba(37, 211, 102, .6);
          transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
        }
        .fab:hover {
          transform: translateY(-3px);
          box-shadow: 0 24px 48px -14px rgba(37, 211, 102, .7);
        }
        @media (max-width: 480px) {
          .fab__label { display: none; }
          .fab { padding: .85rem; }
        }

/* --- Checkout modal --- */
.co {
          width: min(680px, 100vw); max-width: 100vw;
          padding: 0; border: 0; border-radius: var(--r-lg);
          background: transparent; color: var(--text);
          overflow: visible;
        }
        .co::backdrop { background: rgba(3, 10, 12, .78); backdrop-filter: blur(4px); }

        .co__shell {
          display: flex; flex-direction: column;
          height: min(86vh, 860px);
          border-radius: var(--r-lg); overflow: hidden;
          background: var(--surface);
          box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
        }

        .co__head {
          flex: 0 0 auto;
          display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 0 1rem;
          padding: .55rem 1.1rem .7rem;
          background:
            radial-gradient(420px 130px at 12% -30%, rgba(255,125,0,.16), transparent 70%),
            var(--surface-2);
          border-bottom: 1px solid var(--line);
        }
        .co__brand { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; line-height: 1; }
        .co__mark { width: 3px; height: 14px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
        .co__brandname { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: -.01em; }
        .co__step {
          padding: .1rem .5rem; border-radius: var(--r-pill);
          background: rgba(255,255,255,.08); color: var(--text-dim);
          font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
        }
        .co__order {
          grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between;
          gap: 1rem; margin-top: 0;
        }
        .co__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
        .co__sub { margin: .2rem 0 0; font-size: .85rem; color: var(--text-dim); }
        .co__price {
          margin: 0; flex-shrink: 0;
          font-family: var(--font-display); font-weight: 800; font-size: 1.45rem;
          letter-spacing: -.035em; color: var(--accent); line-height: 1;
        }
        .co__x {
          flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
          border: 0; border-radius: 8px; background: transparent; color: var(--text-dim); cursor: pointer;
          transition: background var(--dur), color var(--dur);
        }
        .co__x:hover { background: rgba(255,255,255,.08); color: var(--text); }

        .co__trust {
          flex: 0 0 auto;
          display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
          gap: .9rem; margin: 0; padding: .4rem 1.1rem; list-style: none;
          background: var(--surface-2); border-bottom: 1px solid var(--line);
          font-size: .78rem; color: var(--text-dim);
        }
                .co__trust li { display: inline-flex; align-items: center; gap: .35rem; }
        .co__trust svg { color: oklch(78% .16 152); }

        /* The provider's page opens with its own logo block, which pushed the form
           and the pay button below the fold. The frame is cross-origin so its scroll
           position cannot be set from here — instead the frame is grown by --crop and
           pulled up by the same amount, so it opens on the form.

           Measured on the payment page at both frame widths: the logo ends at 56px
           and the card starts at 105px, so 88px clears the logo and still leaves
           ~17px above the card. If the provider changes that header, this is the one
           number to re-measure — too large and it would clip the top of the card. */
        .co__body {
          --crop: 88px;
          position: relative; flex: 1 1 auto; min-height: 0;
          overflow: hidden; background: #f7f9fb;
        }
        .co__frame {
          display: block; width: 100%; border: 0; background: #f7f9fb;
          height: calc(100% + var(--crop));
          margin-top: calc(-1 * var(--crop));
        }

        .co__loading {
          position: absolute; inset: 0; z-index: 2;
          display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
          padding: 1.5rem; text-align: center; background: #f7f9fb;
        }
        .co__spinner {
          width: 30px; height: 30px; border-radius: 50%;
          border: 3px solid rgba(0,0,0,.12); border-top-color: var(--accent);
          animation: coSpin .8s linear infinite;
        }
        @keyframes coSpin { to { transform: rotate(360deg); } }
        .co__loadtitle { margin: .6rem 0 0; font-weight: 600; color: #0f172a; }
        .co__loadnote { margin: 0; font-size: .85rem; color: #55606e; max-width: 34ch; }
        .co__slow { margin-top: 1rem; color: #0f172a; border-color: rgba(0,0,0,.2); }

        .co__foot {
          flex: 0 0 auto;
          box-shadow: 0 -8px 20px -12px rgba(0,0,0,.5);
          display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
          padding: .5rem 1.1rem; background: var(--surface-2);
          border-top: 1px solid var(--line); font-size: .76rem;
        }
        .co__secure { display: inline-flex; align-items: center; gap: .4rem; color: oklch(78% .16 152); }
        .co__cards { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .5rem; border-radius: 6px; background: #fff; }
        .co__newtab { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-dim); }
        .co__newtab:hover { color: var(--accent); }

        @media (max-width: 640px) {
          .co { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
          .co__shell { height: 100dvh; max-height: 100dvh; border-radius: 0; }
          /* Fill the space rather than leaving a white band under short content. */
          .co__body { flex: 1 1 auto; min-height: 0; }
          .co__head { padding: .9rem 1rem; }
          .co__trust { gap: .75rem; padding: .5rem 1rem; font-size: .72rem; }
          .co__foot { padding: .7rem 1rem; gap: .5rem .8rem; justify-content: center; text-align: center; }
          .co__newtab { width: 100%; justify-content: center; }
        }
        @media (prefers-reduced-motion: reduce) { .co__spinner { animation-duration: 2s; } }

/* --- Mobile sheet visibility (React rendered it conditionally) --- */
.sheet[hidden] { display: none; }

/* --- Toggled panels (pricing tiers, setup guides, filters) use the hidden attribute. --- */
[hidden] { display: none !important; }
