/* The extension page: a light, centered hero over a soft wash of the brand blues, the real extension playing in a
   browser window, then the steps, privacy on a deep blue panel, and the website. The page runs no script. */
.ext { position: relative; isolation: isolate; max-width: 1040px; margin: 0 auto; padding: 0 var(--g) 120px; }
.ext-hero { max-width: 860px; margin: 56px auto 0; text-align: center; }
.ext-hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; color: var(--ink); }
.ext-hero .lede { max-width: 640px; margin: 20px auto 0; font-size: 20px; line-height: 1.5; color: #3E4D66; }
.ext-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 30px; }
.ext-add { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; box-shadow: 0 10px 24px rgba(10, 35, 102, 0.25); transition: transform 0.2s, box-shadow 0.2s; }
.ext-add img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.ext-add:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(10, 35, 102, 0.32); }
.ext-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ext-cta span { font-size: 15px; color: var(--muted); }

/* The wash: three blurred pools of the brand blues (and a little violet and cyan) behind the hero and the window. It
   sits on the page itself, under everything in it, so it never covers the text or the buttons. */
.site-head::before { display: none; } /* this page has its own, taller wash that reaches behind the demo */
.ext-show { position: relative; margin-top: 56px; }
.ext::before { content: ''; position: absolute; top: -60px; height: 1400px; left: calc(50% - 50vw); right: calc(50% - 50vw); /* the screen's full width, no wider */ z-index: -1; pointer-events: none; filter: blur(60px);
  background: radial-gradient(38% 45% at 28% 42%, rgba(60, 135, 238, 0.85), transparent 70%), radial-gradient(34% 40% at 74% 32%, rgba(140, 120, 255, 0.7), transparent 70%),
    radial-gradient(40% 36% at 52% 82%, rgba(80, 210, 255, 0.6), transparent 70%); }

/* One 20-second loop in four 5-second scenes; every part runs the same clock (--t), so they stay in step. The tabs light
   up and fill as their scene plays. Easing is the slow-out curve the home page uses. */
.ext-show { --t: 20s; --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
.ext-tabs { position: relative; display: flex; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 auto 18px; gap: 2px; padding: 4px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(10, 35, 102, 0.08); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.ext-tabs span { position: relative; overflow: hidden; flex: none; padding: 8px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted);
  animation: tab-on var(--t) linear infinite; }
.ext-tabs span::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; animation: tab-fill var(--t) linear infinite; animation-delay: inherit; }
.ext-tabs .t-b, .ext-caps .c-b { animation-delay: -15s; }
.ext-tabs .t-c, .ext-caps .c-c { animation-delay: -10s; }
.ext-tabs .t-d, .ext-caps .c-d { animation-delay: -5s; }
@keyframes tab-on { 0%, 24% { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(10, 35, 102, 0.14); }
  26%, 98% { background: transparent; color: var(--muted); box-shadow: none; } 100% { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(10, 35, 102, 0.14); } }
@keyframes tab-fill { 0% { transform: scaleX(0); opacity: 1; } 24% { transform: scaleX(1); opacity: 1; } 26%, 100% { transform: scaleX(1); opacity: 0; } }

/* The window: a frosted rim around a plain browser, lifted off the wash. */
.ext-win { padding: 10px; border-radius: 24px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: inset 0 1px 0 #fff, 0 50px 100px rgba(10, 35, 102, 0.16), 0 10px 30px rgba(10, 35, 102, 0.08); }
.ext-browser { --bar: 46px; position: relative; border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(10, 35, 102, 0.08); }
.ext-bar { display: flex; align-items: center; gap: 14px; height: var(--bar); padding: 0 14px; background: #EEF2F7; border-bottom: 1px solid var(--line); }
.ext-dots { display: flex; gap: 7px; }
.ext-dots i { width: 11px; height: 11px; border-radius: 50%; background: #C9D2DE; }
.ext-addr { position: relative; flex: 1; min-width: 0; height: 30px; border-radius: 15px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ext-url { position: absolute; inset: 0 14px; display: flex; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; animation: var(--t) linear infinite; }
.u-a { animation-name: url-a; } .u-c { animation-name: url-c; } .u-d { animation-name: url-d; }
@keyframes url-a { 0%, 49% { opacity: 1; } 51%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes url-c { 0%, 49% { opacity: 0; } 51%, 74% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes url-d { 0%, 74% { opacity: 0; } 76%, 97% { opacity: 1; } 99%, 100% { opacity: 0; } }
.ext-icon { width: 22px; height: 22px; border-radius: 6px; animation: icon-ring var(--t) linear infinite; }
@keyframes icon-ring { 0%, 33% { box-shadow: 0 0 0 0 rgba(26, 95, 219, 0); } 34% { box-shadow: 0 0 0 7px rgba(26, 95, 219, 0.28); }
  37%, 49% { box-shadow: 0 0 0 5px rgba(26, 95, 219, 0.14); } 51%, 100% { box-shadow: 0 0 0 0 rgba(26, 95, 219, 0); } }

/* The layers, bottom to top: the checkout page (always there), the note, the popup, setup, the order question. */
.ext-stage { position: relative; aspect-ratio: 1000 / 525; overflow: hidden; background: #F4F6F9; }
.ly { position: absolute; display: block; animation: var(--t) var(--ease) infinite; }
.ext-stage img { height: auto; }
.ly-page, .ly-setup, .ly-ask { inset: 0; width: 100%; }
.ly-note { left: 64.35%; top: 3.14%; width: 34.05%; border-radius: 6.2% / 5.7%; box-shadow: 0 18px 40px rgba(11, 63, 191, 0.28); animation-name: note; }
.ly-pop { right: 1.4%; top: 0.8%; width: 36%; aspect-ratio: 360 / 520; overflow: hidden; border-radius: 12px; transform-origin: 92% 0;
  box-shadow: 0 18px 50px rgba(11, 26, 62, 0.3), 0 0 0 1px rgba(11, 26, 62, 0.1); animation-name: pop; }
.ly-pop img { display: block; width: 100%; }
.ly-setup { animation-name: setup; }
.ly-ask { animation-name: ask; }
@keyframes note { 0%, 3% { opacity: 0; transform: translateX(28px) scale(0.96); } 9% { opacity: 1; transform: none; }
  24% { opacity: 1; transform: none; } 28%, 100% { opacity: 0; transform: translateX(14px) scale(0.98); } }
@keyframes pop { 0%, 34.5% { opacity: 0; transform: translateY(-14px) scale(0.96); } 39% { opacity: 1; transform: none; }
  52% { opacity: 1; transform: none; } 52.5%, 100% { opacity: 0; transform: translateY(-14px) scale(0.96); } }
@keyframes setup { 0%, 48% { opacity: 0; transform: scale(1.04); } 52.5% { opacity: 1; transform: scale(1.02); } 77% { opacity: 1; transform: scale(1); }
  77.5%, 100% { opacity: 0; transform: scale(1.04); } }
@keyframes ask { 0%, 73% { opacity: 0; transform: scale(1.03); } 77.5% { opacity: 1; transform: none; } 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* The pointer moves to the toolbar button and clicks it, which opens the popup. */
.ext-cursor { position: absolute; z-index: 3; width: 26px; height: 26px; fill: #0B1A3E; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round;
  filter: drop-shadow(0 3px 6px rgba(11, 26, 62, 0.35)); opacity: 0; animation: cursor var(--t) var(--ease) infinite; }
@keyframes cursor { 0%, 25% { opacity: 0; left: 46%; top: 62%; transform: none; } 27% { opacity: 1; left: 46%; top: 62%; }
  33% { left: calc(100% - 30px); top: calc(var(--bar) / 2 - 6px); transform: none; } 34% { transform: scale(0.82); } 35.5% { transform: none; }
  40% { opacity: 1; left: calc(100% - 30px); top: calc(var(--bar) / 2 - 6px); } 43%, 100% { opacity: 0; left: calc(100% - 30px); top: calc(var(--bar) / 2 - 6px); } }

.ext-caps { position: relative; min-height: 3em; margin-top: 20px; }
.ext-cap { position: absolute; inset: 0; margin: 0; text-align: center; font-size: 17px; line-height: 1.5; color: var(--muted); animation: cap var(--t) linear infinite; }
@keyframes cap { 0%, 23.5% { opacity: 1; transform: none; } 25.5%, 98% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }

/* No motion: the checkout with its note, and the first caption. */
@media (prefers-reduced-motion: reduce) {
  .ext-show *, .ext-show *::after { animation: none !important; }
  .ly-note, .u-a, .c-a { opacity: 1; }
  .ly-pop, .ly-setup, .ly-ask, .ext-cursor, .ext-url:not(.u-a), .ext-cap:not(.c-a) { opacity: 0; }
  .ext-tabs .t-a { background: #fff; color: var(--ink); }
}

/* The steps: three glass cards, numbered because they happen in order. */
.ext-sec { margin-top: 88px; }
.ext h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); }
.ext-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0; padding: 0; }
.ext-steps li { counter-increment: step; position: relative; padding: 24px 24px 26px; border-radius: 22px; font-size: 16px; line-height: 1.6; color: var(--fg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)); border: 1px solid #fff;
  box-shadow: 0 1px 0 rgba(10, 35, 102, 0.04), 0 18px 40px rgba(10, 35, 102, 0.08); }
.ext-steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px;
  font-size: 17px; font-weight: 600; color: #fff; background: linear-gradient(160deg, var(--bloom-2), var(--bloom-4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 14px rgba(11, 63, 191, 0.3); }
.ext-steps b, .ext-private b { display: block; text-wrap: balance; margin-bottom: 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.ext-counts p, .ext-more p { max-width: 680px; margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--fg); }

/* Privacy on a deep blue panel lit by the same wash, with glass tiles. */
.ext-private { position: relative; isolation: isolate; overflow: hidden; margin-top: 88px; padding: 48px clamp(22px, 4vw, 48px); border-radius: 30px; color: #fff;
  background: radial-gradient(50% 80% at 88% 0%, rgba(140, 120, 255, 0.55), transparent 70%), radial-gradient(45% 70% at 8% 100%, rgba(80, 210, 255, 0.35), transparent 70%),
    linear-gradient(135deg, var(--bloom-3), var(--bloom-5));
  box-shadow: 0 30px 70px rgba(11, 63, 191, 0.28); }
.ext-private h2 { color: #fff; }
.ext-private ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; }
.ext-private li { padding: 20px 22px 20px 62px; position: relative; border-radius: 18px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.ext-private li::before { content: ''; position: absolute; left: 20px; top: 21px; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.ext-private li::after { content: ''; position: absolute; left: 28px; top: 23.5px; width: 7px; /* centred in the circle, measured */ height: 12px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ext-private b { color: #fff; }
.ext-private > p { margin-top: 22px; font-size: 16px; color: rgba(255, 255, 255, 0.85); }
.ext-private a, .ext-more a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ext-private :focus-visible { outline-color: #fff; }
.ext-more { margin-top: 88px; }
.ext-more a { color: var(--accent); }
.ext-fine { margin-top: 40px; font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .ext-hero { margin-top: 32px; }
  .ext-hero .lede { font-size: 18px; }
  .ext-show { margin-top: 40px; }
  .ext-tabs span { padding: 7px 8px; font-size: 12.5px; }
  .ext-tabs span::after { left: 6px; right: 6px; }
  .ext-browser { --bar: 36px; }
  .ext-win { padding: 6px; border-radius: 16px; }
  .ext-browser { border-radius: 11px; }
  .ext-bar { height: 36px; gap: 10px; }
  .ext-dots { display: none; }
  .ext-addr { height: 24px; }
  .ext-caps { min-height: 4.5em; }
  .ext-cap { font-size: 15px; }
  .ext-steps, .ext-private ul { grid-template-columns: minmax(0, 1fr); }
  .ext-sec, .ext-private, .ext-more { margin-top: 64px; }
}
@media (max-width: 380px) { .ext-tabs span { padding: 6px 6px; font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .ext-add { transition: none; } }
