/*
 * Sign up, sign in, magic links, passwords and invitations (layout "devise"):
 * the step between hirebalzac.ai and the onboarding Studio, in the same dark
 * "Night" look. Tokens come from studio.css (.studio, .auth).
 *
 * Scoped under .auth because Propshaft links every stylesheet on every page.
 */

.auth {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  overflow: hidden;
}
.auth > *:not(.st-glow):not(.st-grain) { position: relative; z-index: 1; }
.auth [hidden] { display: none !important; }
:where(.auth) a { color: inherit; text-decoration: none; }
.auth ::selection { background: var(--ember); color: #fff; }
.auth :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ── Form column ── */
.au-main { display: flex; flex-direction: column; min-height: 100dvh; padding: 0 clamp(20px, 5vw, 72px); }
.au-top { flex: none; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.au-logo { display: flex; color: #fff; }
.au-switch { margin: 0; font-size: 14px; color: var(--fg-3); text-align: right; }
.au-switch a { margin-left: 4px; color: #fff; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.au-switch a:hover { text-decoration-color: var(--amber); }
.au-card { width: min(440px, 100%); margin: auto; padding: 28px 0 40px; }
.au-foot { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 18px 0 24px; font-size: 13px; color: var(--fg-3); }
.au-foot a:hover { color: #fff; }

/* ── Type ── */
.au-site {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-bottom: 18px;
  padding: 6px 12px 6px 7px; border-radius: 99px; font-size: 14px; font-weight: 650;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hair-2);
}
.au-site img { width: 20px; height: 20px; border-radius: 5px; background: #fff; padding: 2px; }
.au-site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-site i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.au-kick { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.au-title { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: clamp(38px, 4.2vw, 54px); text-wrap: balance; overflow-wrap: anywhere; }
.au-lede { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--fg-2); }
.au-lede b { color: #fff; font-weight: 650; }
.au-perks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--fg-2); }
.au-perks li { display: inline-flex; align-items: center; gap: 7px; }
.au-perks svg { width: 15px; height: 15px; color: var(--ember); flex: none; }

/* ── Actions ── */
.au-stack { display: grid; gap: 14px; margin-top: 28px; }
.au-stack form { margin: 0; }
.au-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; padding: 0 18px;
  border: 0; border-radius: 14px; background: #fff; color: #1f1f1f; font: 700 15.5px var(--f-body); cursor: pointer;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.au-google:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.95), 0 0 0 4px rgba(255, 255, 255, 0.08); }
.au-google svg { width: 20px; height: 20px; flex: none; }
.au-or { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: var(--hair-2); }

.au-inline {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.au-inline:focus-within { border-color: rgba(255, 165, 82, 0.7); box-shadow: 0 0 60px -18px rgba(255, 106, 61, 0.6); }
.au-inline svg { width: 18px; height: 18px; flex: none; color: var(--fg-3); }
.au-inline input {
  flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; border-radius: 0; outline: 0; box-shadow: none;
  background: transparent; color: #fff; font: 500 16px var(--f-body);
}
.au-inline input:focus { outline: none; box-shadow: none; }
.au-inline input::placeholder, .au-input::placeholder { color: rgba(240, 232, 248, 0.4); }

.au-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px;
  border: 0; border-radius: 12px; background: var(--ember); color: #fff; font: 700 15px var(--f-body); white-space: nowrap; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(255, 90, 60, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s;
}
.au-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -10px rgba(255, 90, 60, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.au-btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.au-btn-block { width: 100%; height: 52px; font-size: 15.5px; }
.au-btn-glass { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--hair-2); box-shadow: none; }
.au-btn-glass:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }

.au-form { display: grid; gap: 16px; }
.au-field { display: grid; gap: 7px; }
.au-field label, .au-label { font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.au-input {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; outline: 0; box-shadow: none;
  background: rgba(255, 255, 255, 0.06); color: #fff; font: 500 16px var(--f-body); transition: border-color 0.2s, box-shadow 0.2s;
}
.au-input:focus { border-color: rgba(255, 165, 82, 0.8); box-shadow: 0 0 0 3px rgba(255, 165, 82, 0.15); outline: none; }
.au-input:disabled { color: var(--fg-3); background: rgba(255, 255, 255, 0.03); }
.au-hint { font-size: 12.5px; color: var(--fg-3); }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.au-link { font-size: 14px; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); }
.au-link:hover { color: #fff; text-decoration-color: var(--amber); }
.au-terms { margin: 22px 0 0; font-size: 12.5px; color: var(--fg-3); }
.au-terms a { text-decoration: underline; text-underline-offset: 2px; }
.au-terms a:hover { color: #fff; }

.au-flash { margin: 0 0 22px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.au-flash-ok { color: #a7f3d0; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
.au-flash-bad { color: #fecaca; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); }
.au-errors { margin: 0 0 18px; padding: 12px 14px 12px 32px; border-radius: 12px; font-size: 14px; color: #fecaca; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); }
.au-errors li { margin: 2px 0; list-style: disc; }

.au-more { margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 14px; }
.au-more summary { list-style: none; cursor: pointer; font-size: 14px; color: var(--fg-2); display: inline-flex; align-items: center; gap: 8px; }
.au-more summary::-webkit-details-marker { display: none; }
.au-more summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.au-more[open] summary::after { transform: rotate(225deg) translate(-2px, 0); }
.au-more summary:hover { color: #fff; }
.au-more .au-form { margin-top: 16px; }

/* ── Magic link sent ── */
.au-mail { position: relative; width: 84px; height: 84px; margin-bottom: 26px; display: grid; place-items: center; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); border: 1px solid var(--hair-2);
  box-shadow: 0 0 80px -10px rgba(255, 106, 61, 0.6); animation: st-float 3.2s ease-in-out infinite; }
.au-mail svg { width: 40px; height: 40px; color: #fff; }
.au-mail::after { content: ''; position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--ember); border: 3px solid var(--night-0); animation: st-ping 1.8s ease-out infinite; }
.au-inbox { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.au-inbox .au-btn { height: 50px; }
.au-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: au; }
.au-steps li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 12px; font-size: 15px; color: var(--fg-2); counter-increment: au; }
.au-steps li::before { content: counter(au); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--f-mono); font-size: 12px; color: var(--gold); background: rgba(255, 106, 61, 0.14); border: 1px solid rgba(255, 140, 100, 0.3); }
.au-steps b { color: #fff; font-weight: 650; }

/* ── Site setup (layout "site_setup"): the page a setup link opens ── */
.au-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.au-tab {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 600;
  color: var(--fg-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair-2); transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.au-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.au-tab[aria-current="page"] { color: #fff; background: rgba(255, 106, 61, 0.14); border-color: rgba(255, 165, 82, 0.7); }
.au-setup { margin-top: 26px; }
.au-setup > .au-hint { display: block; margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.au-stack.au-setup { gap: 10px; }
.au-stack.au-setup .au-flash { margin: 0; }
.au-done::after { display: none; }
.au-title-site { font-size: clamp(32px, 3.4vw, 44px); }

/* ── Showcase ── */
.au-show {
  display: flex; flex-direction: column; justify-content: center; gap: 30px; min-height: 100dvh; padding: 56px clamp(24px, 4vw, 64px);
  border-left: 1px solid var(--hair);
  background: radial-gradient(70% 55% at 55% 42%, rgba(255, 106, 61, 0.13), transparent 70%), rgba(255, 255, 255, 0.015);
}
.sh-stage { position: relative; width: min(560px, 100%); aspect-ratio: 560 / 450; margin: 0 auto; }
.sh-card {
  position: absolute; overflow: hidden; border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.25);
  animation: sh-focus 12s var(--ease) infinite both; animation-delay: calc(var(--i) * 2.4s);
}
.sh-site { left: 0; top: 0; width: 57%; rotate: -2.5deg; }
.sh-kw { right: 0; top: 5%; width: 44%; rotate: 2deg; }
.sh-doc { left: 3%; top: 41%; width: 43%; rotate: 1.5deg; }
.sh-serp { right: 1%; top: 40%; width: 52%; rotate: -1.5deg; }
.sh-ai { left: 25%; top: 71%; width: 50%; rotate: 2.5deg; }

/* site */
.sh-bar { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; background: #f3f0f2; border-bottom: 1px solid #ece7ee; }
.sh-bar > i { width: 7px; height: 7px; border-radius: 50%; background: #d9d3dd; }
.sh-bar span { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; min-width: 0; padding: 2px 9px 2px 6px; border-radius: 6px; background: #fff; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-bar img, .sh-url img, .sh-cite img { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.sh-page { height: 150px; padding: 12px 14px; }
.sh-nav { display: flex; align-items: center; gap: 8px; }
.sh-nav b { width: 46px; height: 9px; border-radius: 4px; background: var(--ink); }
.sh-nav i { width: 22px; height: 5px; border-radius: 3px; background: #e7e2e6; }
.sh-nav i:first-of-type { margin-left: auto; }
.sh-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; margin-top: 18px; }
.sh-hero div { display: grid; gap: 7px; align-content: start; }
.sh-hero div i { height: 6px; border-radius: 3px; background: #e7e2e6; }
.sh-hero div i.h { height: 11px; background: #2b2531; }
.sh-hero div i.s { width: 62%; }
.sh-hero em { width: 64px; height: 18px; margin-top: 5px; border-radius: 6px; background: var(--ember); }
.sh-img { border-radius: 10px; background: linear-gradient(140deg, #ffd8c7, #ffa552 55%, #ff5a3c); min-height: 84px; }
.sh-beam {
  position: absolute; inset: 30px 0 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(255, 90, 60, 0.12) 47%, rgba(255, 140, 80, 0.5) 49.6%, #ff5a3c 50%, transparent 50.3%, transparent 100%);
  background-size: 100% 200%; animation: st-beam 3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.sh-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 4px 10px 4px 8px; border-radius: 99px; background: rgba(17, 13, 24, 0.9); color: #fff; font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); flex: none; }

/* keywords */
.sh-kw { padding: 12px 14px 10px; }
.sh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sh-head b { font-family: var(--f-display); font-size: 14px; font-weight: 800; }
.sh-head em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: #d9472d; white-space: nowrap; }
.sh-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px 46px; align-items: center; gap: 7px; height: 26px; border-top: 1px solid #f1edef; }
.sh-row .t { height: 6px; width: 85%; border-radius: 3px; background: #e2dde1; }
.sh-row .b { height: 6px; border-radius: 3px; background: #f1edef; overflow: hidden; }
.sh-row .b i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--sheen); animation: sh-grow 12s var(--ease) infinite both; animation-delay: calc(2.4s + var(--r) * 0.12s); }
.sh-row b { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; text-align: right; }
.sh-row em { justify-self: end; padding: 1px 6px; border-radius: 99px; font-style: normal; font-size: 9.5px; font-weight: 700; }
.sh-row em.easy { color: #15803d; background: #e7f7ec; }
.sh-row em.medium { color: #a16207; background: #fef6d8; }

/* article */
.sh-doc { padding-bottom: 12px; }
.sh-cover { display: block; height: 64px; background: linear-gradient(120deg, #ff5a3c, #ffa552 55%, #ffe0b5); background-size: 200% 100%; animation: st-shimmer 6s linear infinite; }
.sh-dkw { display: block; margin: 10px 12px 0; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #d9472d; }
.sh-dtitle { display: block; width: 86%; height: 10px; margin: 6px 12px 0; border-radius: 4px; background: var(--ink); }
.sh-dtitle.s { width: 54%; }
.sh-p { display: block; width: 90%; height: 6px; margin: 8px 12px 0; border-radius: 3px; background: #e2dde1; animation: sh-type 12s steps(12) infinite both; }
.sh-p:nth-of-type(5) { animation-delay: 4.8s; }
.sh-p:nth-of-type(6) { animation-delay: 5.1s; }
.sh-p:nth-of-type(7) { animation-delay: 5.4s; }
.sh-p.s { width: 60%; animation-delay: 5.7s; }

/* google */
.sh-serp { padding: 12px 14px 14px; }
.sh-g { display: flex; align-items: center; gap: 8px; }
.sh-g svg { flex: none; }
.sh-q { flex: 1; height: 22px; margin-right: 44px; border-radius: 99px; border: 1px solid #e5e2e6; }
.sh-res { margin-top: 10px; }
.sh-url { display: flex; align-items: center; gap: 6px; margin: 0; font-family: Arial, sans-serif; font-size: 11px; color: #202124; white-space: nowrap; overflow: hidden; }
.sh-url span { color: #4d5156; }
.sh-title { display: block; width: 84%; height: 9px; margin-top: 7px; border-radius: 3px; background: #1a0dab; opacity: 0.85; }
.sh-title.s { width: 52%; }
.sh-snip { display: block; width: 96%; height: 6px; margin-top: 7px; border-radius: 3px; background: #e2dde1; }
.sh-snip.s { width: 70%; }
.sh-rank { position: absolute; top: 10px; right: 12px; display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--ember); color: #fff; font: 800 14px var(--f-display); box-shadow: 0 6px 16px -6px rgba(255, 90, 60, 0.9); }
.sh-tick { display: inline-block; height: 1.15em; overflow: hidden; line-height: 1.15em; }
.sh-tick b { display: block; animation: sh-tick 12s var(--ease) infinite both; animation-delay: 7.2s; }

/* AI answer */
.sh-ai { padding: 12px 14px 14px; }
.sh-ai-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sh-ai-top svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; }
.sh-ai-top b { font-size: 13px; font-weight: 750; }
.sh-line { display: block; width: 94%; height: 6px; margin-top: 8px; border-radius: 3px; background: #e2dde1; }
.sh-line.s { width: 58%; }
.sh-cite {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 10px; padding: 4px 10px 4px 6px; border-radius: 99px;
  background: #fff1ec; border: 1px solid #ffc9b8; color: #c2391f; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: sh-cite 12s var(--pop) infinite both; animation-delay: 9.6s;
}

/* steps + proof */
.sh-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sh-steps li {
  padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 650; color: var(--fg-3); border: 1px solid var(--hair);
  animation: sh-step 12s var(--ease) infinite both; animation-delay: calc(var(--i) * 2.4s);
}
.sh-quote { display: flex; align-items: center; gap: 16px; width: min(540px, 100%); margin: 0 auto; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair); }
.sh-quote img { width: 60px; height: 60px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.sh-quote blockquote { margin: 0; }
.sh-quote p { margin: 0; font-size: 15px; line-height: 1.45; color: #fff; }
.sh-quote figcaption { margin-top: 5px; font-size: 13px; color: var(--fg-3); }
.sh-quote figcaption b { color: var(--fg-2); font-weight: 650; }

@keyframes sh-focus {
  0%, 22%, 100% { z-index: 1; scale: 1; filter: saturate(0.65) brightness(0.62); }
  3%, 18% { z-index: 5; scale: 1.05; filter: none; box-shadow: 0 34px 80px -28px rgba(0, 0, 0, 0.95), 0 0 0 2px rgba(255, 90, 60, 0.9), 0 0 70px -12px rgba(255, 90, 60, 0.75); }
}
@keyframes sh-step {
  0%, 22%, 100% { color: var(--fg-3); background: transparent; border-color: var(--hair); }
  3%, 18% { color: #fff; background: rgba(255, 90, 60, 0.16); border-color: rgba(255, 140, 100, 0.55); }
}
@keyframes sh-grow { 0% { width: 0; } 6%, 94% { width: var(--w); } 100% { width: 0; } }
@keyframes sh-type { 0% { clip-path: inset(0 100% 0 0); } 6%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes sh-tick { 0% { transform: translateY(0); } 4% { transform: translateY(-100%); } 8% { transform: translateY(-200%); } 12%, 94% { transform: translateY(-300%); } 100% { transform: translateY(0); } }
@keyframes sh-cite { 0% { opacity: 0; scale: 0.6; } 4% { opacity: 1; scale: 1.1; } 7%, 94% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 0.6; } }

@media (prefers-reduced-motion: reduce) {
  .auth *, .auth *::before, .auth *::after { animation: none !important; transition: none !important; }
}

@media (max-height: 780px) and (min-width: 981px) {
  .sh-stage { width: min(470px, 100%); }
  .au-show { gap: 22px; padding-block: 32px; }
}
@media (max-width: 980px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .au-show { display: none; }
}
@media (max-width: 520px) {
  .au-inline { flex-wrap: wrap; padding: 8px; }
  .au-inline svg { display: none; }
  .au-inline input { height: 42px; padding: 0 8px; }
  .au-inline .au-btn { width: 100%; }
  .au-switch { font-size: 13px; }
}

/* ── Trial (subscriptions#trial, layout "trial") ── */
.trial { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: visible; overflow-x: clip; }
.tr-offer { width: min(480px, 100%); margin: auto; padding: 24px 0 56px; }
.tr-plan {
  margin-top: 26px; padding: 22px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--hair-2); box-shadow: 0 40px 90px -50px rgba(255, 90, 60, 0.6);
}
.tr-plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.tr-plan-name strong { display: block; font-family: var(--f-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tr-plan-name span { font-size: 14px; color: var(--fg-2); }
.tr-price { display: grid; justify-items: end; gap: 4px; text-align: right; }
.tr-price em { font-style: normal; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--gold); background: rgba(255, 106, 61, 0.14); border: 1px solid rgba(255, 140, 100, 0.3); }
.tr-price div { display: flex; align-items: baseline; gap: 6px; }
.tr-price s { font-size: 15px; color: var(--fg-3); }
.tr-price b { font-family: var(--f-display); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.tr-price small { font-size: 14px; color: var(--fg-2); }
.tr-feats { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 9px; }
.tr-feats li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.4; color: var(--fg-2); }
.tr-feats li svg { width: 16px; height: 16px; margin-top: 1px; color: var(--ember); }
.tr-feats b { color: #fff; font-weight: 650; }
.tr-cta { height: 56px; font-size: 16.5px; }
.tr-fine { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--fg-3); text-align: center; }
.tr-fine b { color: var(--fg-2); }
.tr-trust { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13.5px; color: var(--fg-3); }
.tr-trust b { color: #fff; font-weight: 650; }
.tr-faces { display: flex; flex: none; }
.tr-faces img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--night-0); }
.tr-faces img + img { margin-left: -10px; }

.tr-side { position: relative; min-height: 100dvh; border-left: 1px solid var(--hair); background: radial-gradient(70% 55% at 55% 40%, rgba(255, 106, 61, 0.12), transparent 70%), rgba(255, 255, 255, 0.015); }
.tr-side > .au-show { border-left: 0; background: none; }
.tr-recap { display: flex; flex-direction: column; justify-content: center; min-height: 100dvh; width: min(540px, 100%); margin: 0 auto; padding: 56px clamp(20px, 4vw, 48px); }
.tr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tr-stats div { padding: 14px 14px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--hair); }
.tr-stats strong { display: block; font-family: var(--f-display); font-size: 28px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.tr-stats span { font-size: 12.5px; color: var(--fg-3); }
.tr-article { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin-top: 14px; overflow: hidden; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95), 0 0 70px -20px rgba(255, 106, 61, 0.45); transition: transform 0.3s var(--pop); }
.tr-article:hover { transform: translateY(-2px); }
.tr-cover { display: block; background: #2a1f2e; }
.tr-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-article-body { display: grid; align-content: center; gap: 4px; padding: 14px 16px; }
.tr-tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #d9472d; }
.tr-article strong { font-family: var(--f-display); font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tr-kick-queue { margin-top: 30px; }
.tr-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-queue li {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "type lock" "title lock" "kw lock"; column-gap: 14px; row-gap: 3px;
  padding: 13px 14px 13px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--hair-2); overflow: hidden;
  animation: st-chip 0.6s var(--ease) both; animation-delay: calc(var(--i) * 0.12s + 0.2s);
}
.tr-queue li::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 165, 82, 0.09) 50%, transparent 70%); background-size: 250% 100%; animation: st-shimmer 4s linear infinite; animation-delay: calc(var(--i) * 0.6s); pointer-events: none; }
.tr-type { grid-area: type; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }
.tr-queue strong { grid-area: title; font-size: 14.5px; font-weight: 650; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-kw { grid-area: kw; font-family: var(--f-mono); font-size: 11.5px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-lock { grid-area: lock; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--gold); background: rgba(255, 106, 61, 0.14); border: 1px solid rgba(255, 140, 100, 0.3); }
.tr-lock svg { width: 15px; height: 15px; }
.tr-more { margin: 10px 0 0; font-size: 13.5px; color: var(--fg-3); text-align: center; }

.tr-faq { grid-column: 1 / -1; padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px) 24px; border-top: 1px solid var(--hair); }
.tr-faq .au-title { font-size: clamp(32px, 3.6vw, 46px); text-align: center; }
.tr-qs { width: min(720px, 100%); margin: 32px auto 0; display: grid; gap: 10px; }
.tr-qs details { border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair); }
.tr-qs summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 16px; font-weight: 650; }
.tr-qs summary::-webkit-details-marker { display: none; }
.tr-qs summary::after { content: '+'; flex: none; font-family: var(--f-mono); font-size: 20px; font-weight: 400; color: var(--amber); transition: transform 0.2s; }
.tr-qs details[open] summary::after { transform: rotate(45deg); }
.tr-qs p { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.tr-foot { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .trial { grid-template-columns: minmax(0, 1fr); }
  .tr-side { min-height: 0; border-left: 0; border-top: 1px solid var(--hair); }
  .tr-side > .au-show { display: none; }
  .tr-recap { min-height: 0; padding-block: 40px; }
}
@media (max-width: 520px) {
  .tr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-plan { padding: 18px; }
  .tr-plan-head { flex-direction: column; }
  .tr-price { justify-items: start; text-align: left; }
  .tr-article { grid-template-columns: 90px minmax(0, 1fr); }
}
