/* MasterCloud UI - design tokens + shared components. RTL first, logical properties only. */
:root {
  --brand: #1062FE;
  --brand-600: #0B4AD1;
  --brand-700: #0838A3;
  --brand-50: #EEF4FF;
  --brand-100: #DCE7FF;
  --brand-200: #B9CFFF;
  --mint: #22C55E;
  --gold: #F8D000; --gold-2: #E5BF00; --gold-soft: #FFF6C2; --green: #08C868; --violet: #1062FE;
  --amber: #F59E0B;
  --ink: #0B1220;
  --ink-2: #334155;
  --ink-3: #5B6B80; /* AA on tinted surfaces (5:1 on #EEF4FF) */
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --ok: #16A34A;
  --err: #DC2626;
  --font-head: "Rubik", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Rubik", monospace;
  --font-body: "Assistant", "Heebo", system-ui, -apple-system, Arial, sans-serif;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 1px 1px rgba(11, 18, 32, .04);
  --shadow: 0 10px 30px -12px rgba(11, 18, 32, .18), 0 2px 6px rgba(11, 18, 32, .05);
  --shadow-lg: 0 30px 60px -20px rgba(16, 98, 254, .25), 0 8px 20px -8px rgba(11, 18, 32, .12);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .8);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --nav-h: 76px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.mc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
/* Type: Rubik for display (tight tracking, line-height near 1, like the best Hebrew editorial sites), Assistant for reading. */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3.7vw, 46px); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 2vw, 25px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.hl { color: inherit; background: var(--brand-100); background-repeat: no-repeat; background-position: 100% 0; background-size: 100% 100%; padding: .02em .12em; margin-inline: -.03em; border-radius: .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: hlIn .9s var(--ease) .35s both; }
@keyframes hlIn { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .hl { animation: none; } }
.mono, .k-label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ic { flex: none; }
.money { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.money .cur { font-size: .7em; font-weight: 700; margin-inline-end: 1px; vertical-align: 2px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(8, 200, 104, .18); }
.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: min(60ch, 100%); text-wrap: pretty; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; }
.section-head .num { font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; padding-top: 8px; border-top: 3px solid var(--gold); grid-row: 1 / 3; align-self: start; white-space: nowrap; }
.section-head h2 { grid-column: 2; }
.section-head .lead { grid-column: 2; margin: 6px 0 0; }
.section-head .pill { display: none; }
.grad-text { color: inherit; }

/* Buttons */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--btn-bg); color: var(--btn-fg); font-family: var(--font-head); font-weight: 700; font-size: 16px;
  cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; }
.btn-lg { min-height: 58px; padding-inline: 30px; font-size: 18px; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; border-color: transparent; box-shadow: 0 8px 22px -8px rgba(16, 98, 254, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--ink); border-color: transparent; box-shadow: 0 10px 24px -10px rgba(229, 191, 0, .8); }
.btn-gold:hover { --btn-bg: var(--gold-2); }
.btn-primary:hover { --btn-bg: var(--brand-600); box-shadow: 0 14px 30px -10px rgba(16, 98, 254, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { --btn-bg: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { --btn-bg: var(--surface); box-shadow: var(--shadow-sm); border-color: var(--line); }
.btn-soft { --btn-bg: var(--brand-50); --btn-fg: var(--brand-700); border-color: var(--brand-100); }
.btn-soft:hover { --btn-bg: var(--brand-100); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--ink); border-color: transparent; box-shadow: var(--shadow-sm); }
/* liquid glass shine that follows the cursor */
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), transparent 60%);
}
.btn-shine:hover::after { opacity: 1; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic.go { transform: translateX(-4px); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.glass { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9); }
.icon-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.icon-badge.violet { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.icon-badge.mint { background: #ECFDF3; color: #15803D; border-color: #C7F0D6; }
.icon-badge.amber { background: #FFF7E6; color: #B45309; border-color: #FDE7B5; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.pill.mint { background: #ECFDF3; color: #15803D; border-color: #C7F0D6; }
.pill.violet { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.pill.gold { background: var(--gold-soft); color: #6B5300; border-color: #F3E08A; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.check-list .ic { color: var(--ok); margin-top: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav-in {
  pointer-events: auto; max-width: var(--wrap); margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(8px, 1.2vw, 18px); padding-inline: 12px 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: var(--shadow);
  transition: box-shadow .3s, background-color .3s;
}
.brand img { height: 52px; width: auto; }
.brand { flex: none; }
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); }
.logo-svg { height: var(--lh, 44px); width: auto; display: block; overflow: visible; }
.logo-tag { font-family: var(--font-head); font-weight: 700; font-size: calc(var(--lh, 44px) * .22); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); direction: ltr; }
/* the single gold accent dot: pulses gently */
.logo-dot { transform-box: fill-box; transform-origin: center; animation: logoDot 2.6s ease-in-out infinite; }
@keyframes logoDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .logo-dot { animation: none; } }
.logo-spark { transform-origin: 38px 25.5px; animation: sparkle 3.2s var(--ease) infinite; }
@keyframes sparkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(15deg); } }
@media (prefers-reduced-motion: reduce) { .logo-spark { animation: none; } }
.nav-links { display: flex; flex-wrap: nowrap; gap: clamp(0px, .4vw, 4px); margin-inline-start: 0; }
.nav-links a { padding: 10px clamp(6px, .85vw, 12px); border-radius: 999px; font-weight: 600; white-space: nowrap; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav-links a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-login-m { display: none; }
.nav-cta { margin-inline-start: auto; display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; }
.nav-cta .btn { white-space: nowrap; }
/* Language toggle: a compact pill, so the extra control cannot push the bar to a second line. */
.nav-lang { width: 46px; padding: 0; justify-content: center; font-weight: 800; letter-spacing: .02em; }
.nav-lang span { display: inline !important; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; place-items: center; cursor: pointer; }
@media (max-width: 1240px) {
  :root { --nav-h: 64px; }
  .nav-links { position: absolute; inset-inline: var(--gutter); top: calc(var(--nav-h) + 20px); flex-direction: column; padding: 10px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s, transform .2s, visibility 0s; }
  .nav-links .nav-login-m { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; color: var(--brand-700); }
  .nav-links a { padding: 14px 16px; font-size: 18px; }
  .nav-burger { display: grid; }
  .nav-cta .btn-ghost span { display: none; }
  .nav-cta .btn-ghost { width: 44px; padding: 0; justify-content: center; }
  .brand img { height: 44px; } .brand .logo { --lh: 38px; }
}
/* Phones: the bar carries logo + order + language + burger, and all four have to fit
   on 375px without the burger sliding out of the pill. */
@media (max-width: 520px) { .nav-cta .btn-primary { min-height: 42px; padding-inline: 12px; font-size: 14px; } .nav-cta .btn-primary .ic { display: none; } .brand .logo { --lh: 26px !important; } .nav-cta .btn-ghost { display: none; } .nav-cta .nav-lang { display: inline-flex; width: 38px; min-height: 38px; } .nav-cta { gap: 6px; } .nav-burger { width: 40px; height: 40px; } .nav-in { gap: 6px; padding-inline: 8px 10px; } }


/* Logged-in account menu (a <details> dropdown on desktop; the same links live in the burger list on phones) */
.nav-acct { position: relative; }
.nav-acct > summary { list-style: none; cursor: pointer; }
.nav-acct > summary::-webkit-details-marker { display: none; }
.nav-acct-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 210px; display: grid; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 60; }
.nav-acct-menu a { padding: 11px 14px; border-radius: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.nav-acct-menu a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-acct-menu .nav-acct-out { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: #B42318; }
.nav-links .nav-sub { padding-inline-start: 28px; font-size: 16px; color: var(--ink-3); }
@media (max-width: 1240px) { .nav-acct { display: none; } }

/* Aurora background */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; animation: drift 18s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; inset-inline-start: -10%; top: -20%; background: radial-gradient(circle, #9DBDFF 0%, transparent 65%); }
.aurora i:nth-child(2) { width: 50vw; height: 50vw; max-width: 600px; max-height: 600px; inset-inline-end: -12%; top: -5%; background: radial-gradient(circle, #D9C7FF 0%, transparent 65%); animation-delay: -6s; animation-duration: 22s; }
.aurora i:nth-child(3) { width: 45vw; height: 45vw; max-width: 520px; max-height: 520px; inset-inline-start: 30%; bottom: -30%; background: radial-gradient(circle, #B6F2E4 0%, transparent 65%); animation-delay: -12s; animation-duration: 26s; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(11, 18, 32, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); opacity: .5; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6%, 8%, 0) scale(1.12); } }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(.96) translateY(12px); }
.no-js [data-reveal] { opacity: 1; transform: none; }
/* headline that rises word by word */
.rise .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.rise .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.rise.in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .rise .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .aurora i { animation: none; }
  .marquee-track { animation: none !important; }
}

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink-2); white-space: nowrap; }
.marquee-item .ic { color: var(--gold-2); fill: var(--gold); }
@keyframes marquee { to { transform: translateX(50%); } }

/* Cycle toggle */
.cycle-toggle { display: inline-flex; margin-top: 22px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cycle-toggle button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, color .2s; }
.cycle-toggle button.is-on { background: var(--ink); color: #fff; }
.cycle-toggle button.is-on .pill { background: rgba(255, 255, 255, .15); color: #fff; border-color: transparent; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 22px; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--brand-200); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-3); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--brand); }
.faq .faq-a { padding: 0 0 20px; color: var(--ink-2); max-width: 66ch; }

/* Footer */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-in { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 40px 28px; padding-block: 56px 36px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 14px; } .footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--ink-3); font-size: 15px; max-width: 42ch; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.footer-col a { color: var(--ink-2); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--brand); }
.footer-col span { color: var(--ink-2); font-size: 15px; display: inline-flex; align-items: flex-start; gap: 8px; }
.footer-col span .ic { flex: none; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
@media (max-width: 1100px) { .footer-in { grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-in { grid-template-columns: minmax(0, 1fr); } }

/* Utilities */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* pointer tilt (set by ui.js) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--ty, 0)); transition: transform .15s ease-out, box-shadow .25s, border-color .2s, background-color .2s; }

/* Pixel pass 2026-09-28: 40px+ targets on the billing toggle */
.cycle-toggle button { min-height: 40px; }
.footer-col { gap: 0; }
.footer-col h4 { margin-bottom: 8px; }
.footer-col a { min-height: 40px; padding-block: 6px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 40px; }
.brand { min-height: 40px; display: inline-flex; align-items: center; }

/* smart header: shrinks once scrolled, hides on scroll down, returns on scroll up (layout height stays constant) */
.nav { transition: transform .35s var(--ease); }
.nav.hide { transform: translateY(-115%); }
.nav-in { transition: box-shadow .3s, background-color .3s, height .3s var(--ease), margin-bottom .3s var(--ease); }
@media (min-width: 961px) {
  .nav.scrolled .nav-in { height: 60px; margin-bottom: 16px; }
  .nav.scrolled .brand .logo { --lh: 32px !important; }
  .nav.scrolled .nav-cta .btn { padding-block: 9px; }
}

/* ===== checkout modal + completion (shared by home and wizard) ===== */
/* inline checkout (last step on the same page) */
.q-checkout[hidden] { display: none; }
.q-checkout { min-height: 0; padding-top: 12px; }
.q-in > .q-frame, .q-in > .q-done, .q-in > .q-stale { max-width: 860px; }
.q-frame { border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.q-frame iframe { display: block; width: 100%; height: 720px; border: 0; transition: height .25s var(--ease); }
.q-stale { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: #FFF6C2; border: 1px solid var(--gold); font-weight: 600; }
.q-done { display: grid; gap: 10px; justify-items: start; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.q-done .fa-check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(8, 200, 104, .15); }
.q-done h3 { font-size: clamp(22px, 2.4vw, 30px); }
.q-done p { color: var(--ink-2); }
.q-done-domain span { font-family: var(--font-mono); font-weight: 600; color: var(--brand-700); }
.q-done-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
body.checkout-on .rc-bar { display: none !important; }
body.rc-done .receipt, body.rc-done .rc-bar { display: none !important; }
@media (max-width: 1279px) { .q-in > .q-frame { max-width: none; } }
/* checkout modal (Isaac: a popup div, not a new window) */
.co-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.co-modal[hidden] { display: none; }
.co-backdrop { position: absolute; inset: 0; background: rgba(11, 18, 32, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: coFade .25s var(--ease); }
.co-panel { position: relative; width: min(760px, 100%); max-height: 92vh; display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; animation: coIn .4s var(--ease-spring); }
@keyframes coIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes coFade { from { opacity: 0; } to { opacity: 1; } }
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.co-head b { font-family: var(--font-head); font-size: 18px; font-weight: 700; display: block; }
.co-sub { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.co-sub svg { color: var(--green); }
.co-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.co-close:hover { background: var(--brand-50); color: var(--brand); }
.co-body { overflow: auto; -webkit-overflow-scrolling: touch; padding: 10px 12px 12px; }
.co-body .q-frame { border: 0; border-radius: 0; box-shadow: none; max-width: none; }
.co-body .q-done { box-shadow: none; border: 0; }
.co-modal .q-stale { margin: 10px 12px 0; }
body.co-open { overflow: hidden; }
@media (max-width: 600px) {
  .co-modal { padding: 0; }
  .co-panel { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .co-panel, .co-backdrop { animation: none; } }
/* the green check belongs only to the completion screen: bigger, with a celebratory pop */
.q-done { justify-items: center; text-align: center; padding: 34px 26px; }
.q-done .fa-check { width: 84px; height: 84px; box-shadow: 0 0 0 12px rgba(8, 200, 104, .14), 0 16px 32px -12px rgba(8, 200, 104, .6); animation: donePop .6s var(--ease-spring) both; }
.q-done .fa-check svg { width: 38px; height: 38px; }
@keyframes donePop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.q-done-actions { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .q-done .fa-check { animation: none; } }
