/* FacelessMint sign-in and account pages (activate, account, welcome, privacy, terms). The site's own
   look (site.css): cream desk, ink text and hairlines, the chrome-yellow button, Archivo. */

.acct-head { padding-top: 44px; }
.acct-head h1 { font-size: clamp(34px, 4.6vw, 52px); }
.acct-section { padding: 26px 0 84px; }
.acct-box { max-width: 460px; margin: 0 auto; }
.acct-box.wide { max-width: 980px; }
.acct-loading { text-align: center; color: var(--muted); }

/* hidden must win over the display rules below (the email-code step stays hidden until a code is sent). */
.fm-panel [hidden], .fm-panel[hidden] { display: none !important; }
.fm-panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 12px 30px rgba(28, 26, 21, 0.08); }
.fm-panel > p { margin: 0 0 12px; }
.fm-panel > p:last-child { margin-bottom: 0; }
.fm-google { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px; }
.fm-google > div { width: 100%; display: flex; justify-content: center; }
.fm-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 13px; }
.fm-or::before, .fm-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.fm-form { display: flex; flex-direction: column; gap: 8px; }
.fm-form label, .fm-form legend { font-weight: 650; font-size: 14px; }
.fm-form input, .fm-form textarea, .fm-rename input { font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 10px 12px; width: 100%; }
.fm-form input:focus, .fm-form textarea:focus, .fm-rename input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.fm-form .btn { margin-top: 6px; }
.fm-form textarea { resize: vertical; }
.fm-otp, .fm-code-input { font-family: var(--display) !important; font-stretch: 92%; font-weight: 760; font-size: 26px !important; letter-spacing: 0.18em; text-align: center; text-transform: uppercase; }
.fm-captcha:empty { display: none; }
.fm-sent { margin: 0 0 6px; color: var(--muted); font-size: 14.5px; }
.fm-sent b { color: var(--text); word-break: break-all; }
.fm-links, .fm-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fm-links { justify-content: space-between; margin-top: 4px; }
.fm-row.fm-wrap { gap: 10px; }
.fm-link { all: unset; cursor: pointer; color: var(--accent-2, #5b4400); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.fm-link:hover { color: var(--text); }
.fm-link:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 3px; }
.fm-link[disabled] { opacity: 0.5; cursor: default; text-decoration: none; }
.fm-link.danger { color: #a8401a; }
.fm-msg { color: #8f1d12; font-size: 14px; margin: 10px 0 0; min-height: 0; }
.fm-msg:empty { display: none; }
.fm-fine { color: var(--faint); font-size: 13.5px; margin: 14px 0 0; line-height: 1.5; }
.fm-fine b { color: var(--text); word-break: break-all; }
.acct-box > .fm-fine { text-align: center; }
.fm-note { max-width: 980px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(28, 26, 21, 0.18); font-size: 14.5px; }
.fm-mock-google { font-size: 14px; white-space: normal; text-align: center; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* The confirm card */
.fm-device { font-size: 18px; line-height: 1.4; }
.fm-device b { font-weight: 760; }
.fm-code { font-family: var(--display); font-stretch: 92%; font-weight: 800; font-size: clamp(34px, 10vw, 46px); letter-spacing: 0.08em; text-align: center; background: #fff; border: 1.5px solid var(--text); border-radius: 10px; padding: 12px 8px 10px; margin: 8px 0 4px; white-space: nowrap; }
.fm-warn { font-size: 14px; color: var(--text); background: var(--panel-2); border-left: 3px solid var(--primary); padding: 9px 12px; border-radius: 4px; margin: 16px 0 !important; }
.fm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fm-done .fm-device { margin-bottom: 8px; }
.fm-welcome { margin-top: 16px; }
.fm-welcome h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.fm-welcome .fm-fine { margin: 0 0 8px; }
.fm-checks { border: 0; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fm-checks legend { margin-bottom: 6px; padding: 0; }
.fm-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500 !important; font-size: 14.5px !important; }
.fm-check input { width: auto !important; accent-color: var(--text); }

/* /account */
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.fm-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.fm-card h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.1; }
.fm-card .fm-fine:first-of-type { margin-top: 0; }
.fm-plan { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.fm-plan-name { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 34px; line-height: 1; }
.fm-plan span { color: var(--muted); }
.fm-list { list-style: none; margin: 12px 0 0; padding: 0; }
.fm-list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.fm-li-main { flex: 1; min-width: 160px; }
.fm-li-main b { display: block; font-weight: 650; word-break: break-word; }
.fm-li-main span { color: var(--faint); font-size: 13.5px; }
.fm-actions { display: inline-flex; gap: 12px; }
.fm-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.fm-tag.ok { color: var(--ok); }
.fm-status { font-size: 13px; color: var(--muted); }
.fm-status.refunded, .fm-status.failed, .fm-status.fraudulent { color: #a8401a; }
.fm-empty { color: var(--faint); margin: 8px 0 0; }
.fm-rename { display: flex; gap: 8px; align-items: center; width: 100%; }
.fm-rename input { flex: 1; min-width: 0; }
.fm-card .fm-row { margin-top: 14px; }
.fm-card .btn.ghost[aria-disabled='true'] { pointer-events: none; }

/* /privacy and /terms */
.legal { max-width: 760px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 30px 34px; }
.legal h2 { font-family: var(--display); font-stretch: 84%; font-weight: 780; font-size: 24px; margin: 28px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #3a372f; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--faint); font-size: 14px; margin: 0 0 18px; }

@media (max-width: 760px) {
  .fm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .acct-head { padding-top: 30px; }
  .fm-panel { padding: 18px; }
  .fm-pair { grid-template-columns: 1fr; }
  .legal { padding: 22px 18px; }
  .fm-card { padding: 18px; }
}

/* The split sign-in pages (activate, welcome): the sign-in side on chrome white (40%), and a wall of
   our sample videos sliding past on the desk (60%), as in the app. */
body.split-page { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 40%) 1fr; background: var(--bg); }
.split-side { position: relative; z-index: 1; min-height: 100vh; background: var(--chrome); border-right: 1px solid var(--line); display: grid; align-items: center; padding: 48px 56px; }
.split-inner { width: min(400px, 100%); margin: 0 auto; }
.split-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-bottom: 44px; }
.split-brand b { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 22px; line-height: 1; }
.split-side h1 { margin: 0 0 10px; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.02; text-wrap: balance; }
.split-sub { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.split-sub[hidden] { display: none; }
.split-side #activate, .split-side #welcome { margin-top: 26px; }
.split-side .fm-panel { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.split-side .fm-code { background: var(--bg-2); }
.split-side .fm-welcome.compact { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.split-side .acct-loading { text-align: left; }
.split-side > .split-inner > div > .fm-fine { text-align: left; }

.wall { position: sticky; top: 0; height: 100vh; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); }
.wall-cols { position: absolute; inset: -26% 5% -26% 9%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; transform: perspective(1800px) rotateX(9deg) rotateZ(-7deg); transform-origin: 50% 50%; }
.wall-track { display: flex; flex-direction: column; animation: wall-up var(--dur, 74s) linear infinite; will-change: transform; }
.wall-col.down .wall-track { animation-direction: reverse; }
.wall-col:nth-child(2) .wall-track { animation-delay: -23s; }
.wall-col:nth-child(3) .wall-track { animation-delay: -41s; }
.wall-card { position: relative; aspect-ratio: 9 / 16; margin-bottom: 22px; border-radius: 12px; overflow: hidden; background: var(--panel-3); box-shadow: 0 1px 0 rgba(28, 26, 21, 0.06), 0 16px 36px rgba(28, 26, 21, 0.2); transform: translateZ(0); }
.wall-card img, .wall-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes wall-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
.wall.paused .wall-track { animation-play-state: paused; }
.wall.still .wall-track { animation: none; }
.wall.still .wall-col:nth-child(2) { margin-top: -18%; }
@media (prefers-reduced-motion: reduce) { .wall-track { animation: none !important; } }

/* Narrow screens: the wall is a short strip on top; the form keeps the page. */
@media (max-width: 900px) {
  body.split-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .wall { order: -1; position: relative; height: 190px; }
  .wall-cols { inset: -70% -4%; gap: 14px; }
  .wall-card { margin-bottom: 14px; border-radius: 10px; }
  .split-side { min-height: 0; border-right: 0; border-top: 1px solid var(--line); padding: 28px 20px 48px; align-items: start; }
  .split-brand { margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .wall { height: 150px; }
}
