/* The store's log-in, sign-up, reset and email-confirm pages (account/intent/shopper_base.html).
   A full-bleed doodled flash photo with one proof card on the left, a white form column on the right. Below
   900 px the photo becomes a 232 px strip with the card laid over its bottom edge. Tokens are AppSumo's own
   (appsumo-next tailwind.config.js). Every transition names its properties, and all motion stops under
   prefers-reduced-motion. */
@font-face { font-family: 'SA Barlow'; font-weight: 600; font-display: swap; src: url('../fonts/barlow/Barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'SA Barlow'; font-weight: 700; font-display: swap; src: url('../fonts/barlow/Barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'SA Barlow'; font-weight: 800; font-display: swap; src: url('../fonts/barlow/Barlow-800.woff2') format('woff2'); }
@font-face { font-family: 'SA Barlow'; font-weight: 800; font-style: italic; font-display: swap; src: url('../fonts/barlow/Barlow-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'SA Roboto'; font-weight: 400; font-display: swap; src: url('../fonts/roboto/Roboto-Regular.woff2') format('woff2'); }
@font-face { font-family: 'SA Roboto'; font-weight: 500; font-display: swap; src: url('../fonts/roboto/Roboto-Medium.woff2') format('woff2'); }

@view-transition { navigation: auto; }

.sa {
  --forest: #09292b; --forest-hover: #0f3a3d; --pearl: #021414; --spruce: #2f4b4c;
  --dorado: #ffbc00; --dorado-press: #f2ae00;
  --mint: #c7ffcc; --mint-soft: #e2fde5; --moss: #036e03;
  --iceberg: #f5f5f9; --sundog: #eaeaf0; --gravel: #c7ced7;
  --body: #434d59; --muted: #5a6879; --link: #0b58c3;
  --brick: #c22f0f; --brick-soft: #ffebe7; --brick-ink: #741c09;
  --r-card: 20px; --r-ctl: 12px; --r-inner: 8px;
  --shadow-card: 0 1px 1px rgb(2 20 20 / 0.04), 0 6px 16px -4px rgb(2 20 20 / 0.10), 0 24px 48px -12px rgb(2 20 20 / 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-swap: cubic-bezier(0.2, 0, 0, 1);
  --f-head: 'SA Barlow', Barlow, 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'SA Roboto', Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;

  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: 52fr 48fr;
  background: #fff; color: var(--pearl);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-align: left;
}
html body.sa-body { background: #fff; margin: 0; }
html body.sa-body .primary-container.with-new-navbar main.sa-main-wrap { margin: 0 !important; padding: 0 !important; }
.sa *, .sa *::before, .sa *::after { box-sizing: border-box; }
.sa ::selection { background: rgb(255 188 0 / 0.35); color: var(--pearl); }
:where(.sa) img { display: block; max-width: 100%; }
:where(.sa) :is(button, input) { font: inherit; color: inherit; }
.sa a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sa a:hover { color: var(--link); text-decoration-thickness: 2px; }
.sa :focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; border-radius: 6px; }
:where(.sa) :is(h1, h2, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; padding: 0; }
:where(.sa) :is(ul, ol) { list-style: none; }
.sa [hidden] { display: none !important; }

/* ---------- art column ---------- */
.sa-art {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--forest);
  isolation: isolate;
}
.sa-art-img {
  position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important;
  object-fit: cover; object-position: var(--pos); outline: 1px solid rgb(0 0 0 / 0.1); outline-offset: -1px;
  view-transition-name: sa-art;
}
.sa a.sa-back {
  position: absolute; z-index: 2; left: 28px; top: 24px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgb(2 20 20 / 0.62); color: #fff; text-decoration: none;
  font: 600 14px/1 var(--f-head); letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 0.2s var(--ease-swap);
}
.sa a.sa-back:hover { background: rgb(2 20 20 / 0.8); color: #fff; }
.sa-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Google's desktop One Tap card lands here; the proof card sits bottom left, so they never meet. */
.sa-gsi { position: absolute; z-index: 3; top: 16px; right: 16px; width: 368px; height: 196px; pointer-events: none; }
.sa-gsi > * { pointer-events: auto; }
.sa-proof { position: absolute; z-index: 2; left: 32px; bottom: 32px; width: min(400px, calc(100% - 64px)); view-transition-name: sa-proof; }
.sa-proof-order, .sa-proof-pay_once { width: min(420px, calc(100% - 64px)); }

/* ---------- form column ---------- */
.sa-side { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 0 32px; }
.sa-top, .sa-main, .sa-foot { width: 100%; max-width: 440px; margin-inline: auto; }
.sa-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; flex: none; }
.sa-logo { display: inline-flex; align-items: center; min-height: 44px; }
.sa-logo img { width: 132px; height: auto; }
.sa a.sa-help { position: relative; font-size: 15px; font-weight: 500; }
.sa a.sa-help::after { content: ''; position: absolute; inset: -12px -10px; }
.sa-top-right { display: flex; align-items: center; gap: 16px; }
/* The checkout header carries the stepper and "Secure checkout", so it runs wider than the form. */
.sa-top-checkout { max-width: 580px; }
.sa-secure { white-space: nowrap; }
.sa-steps { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.sa-steps li { display: inline-flex; align-items: center; gap: 6px; }
.sa-steps li + li::before { content: '\203A'; color: var(--gravel); margin: 0 4px; }
.sa-steps [aria-current] { color: var(--pearl); font-weight: 500; }
.sa-step-n {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px;
  font: 700 12px/1 var(--f-head); box-shadow: inset 0 0 0 1px var(--gravel); color: var(--muted);
}
.sa-steps [aria-current] .sa-step-n { background: var(--forest); color: #fff; box-shadow: none; }
.sa-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--body); }
.sa-secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.sa-main { flex: 1; display: flex; align-items: center; padding: 24px 0 48px; }
.sa-panel { width: 100%; }
.sa footer.sa-foot { background: none; border: 0; margin-top: 0; }
.sa-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 0 0 28px; font-size: 13px; color: var(--muted); }
.sa .sa-foot a { color: var(--muted); }

/* ---------- headline ---------- */
.sa-h1 {
  font: 800 clamp(34px, 3.3vw, 46px)/1.06 var(--f-head); letter-spacing: -0.015em; color: var(--pearl);
  text-wrap: balance; view-transition-name: sa-headline;
}
.sa-h1:focus { outline: none; }
.sa-h-phone { display: none; }
.sa-sw { position: relative; font-style: italic; font-weight: 800; white-space: nowrap; }
.sa-swoosh { position: absolute; left: -2%; bottom: -0.2em; width: 106%; height: 0.34em; overflow: visible; pointer-events: none; }
.sa-swoosh path { fill: none; stroke: var(--dorado); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.sa-h-deal { white-space: nowrap; }
.sa-h-logo {
  display: inline-block !important; width: 0.8em; height: 0.8em; margin: 0 0.16em 0 0.02em; vertical-align: -0.07em;
  border-radius: 0.2em; background: #fff; outline: 1px solid rgb(0 0 0 / 0.1); outline-offset: -1px; object-fit: contain;
}
.sa-lede { margin-top: 14px !important; font-size: 17px; line-height: 1.55; color: var(--body); text-wrap: pretty; max-width: 42ch; }
.sa-lede b { color: var(--pearl); font-weight: 500; }
/* A confirmed perk (AUTH_CLAIMS): one short line under the lede. */
.sa-perk { width: fit-content; margin-top: 14px !important; padding: 7px 12px; border-radius: 8px; background: var(--mint-soft); font-size: 15px; line-height: 1.4; color: var(--pearl); }
.sa-perk b { font-weight: 600; }

.sa-w { display: inline-block; }
.sa-enter .sa-w { animation: sa-word-in 0.5s var(--ease-out) both; animation-delay: calc(var(--i) * 32ms); }
.sa-enter .sa-swoosh path { animation: sa-draw 0.7s var(--ease-out) both; animation-delay: calc(var(--words, 3) * 32ms + 420ms); }
@keyframes sa-word-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
@keyframes sa-draw { from { stroke-dashoffset: 320; } }


/* ---------- buttons ---------- */
.sa-auth { margin-top: 26px; }
.sa-actions, .sa-form { display: grid; gap: 12px; }
.sa-form { margin: 12px 0 0; }
.sa-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 52px; padding: 0 20px; border: 0; border-radius: var(--r-ctl); cursor: pointer; text-decoration: none;
  font: 700 17px/1 var(--f-head); letter-spacing: 0.005em; color: var(--pearl);
  transition-property: transform, background-color, box-shadow; transition-duration: 0.15s; transition-timing-function: var(--ease-swap);
}
.sa-btn:active { transform: scale(0.96); }
.sa-btn svg { width: 20px; height: 20px; flex: none; }
.sa-btn-google { background: var(--forest); color: #fff; box-shadow: 0 1px 2px rgb(2 20 20 / 0.06); }
.sa-btn-google:hover { background: var(--forest-hover); }
.sa-g { width: 28px; height: 28px; border-radius: 999px; background: #fff; display: grid; place-items: center; flex: none; }
.sa-g svg { width: 16px; height: 16px; }
.sa a.sa-btn { text-decoration: none; }
.sa-btn-outline, .sa a.sa-btn-outline { background: #fff; color: var(--pearl); box-shadow: inset 0 0 0 1px var(--gravel); font-weight: 600; }
.sa-btn-outline:hover, .sa a.sa-btn-outline:hover { box-shadow: inset 0 0 0 1px var(--body); color: var(--pearl); }
.sa-btn-outline svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sa-btn-gold, .sa a.sa-btn-gold { background: var(--dorado); color: var(--pearl); box-shadow: inset 0 -2px 0 rgb(2 20 20 / 0.12); }
.sa-btn-gold:hover, .sa a.sa-btn-gold:hover { background: var(--dorado-press); color: var(--pearl); }
.sa-btn[disabled] { cursor: progress; }
.sa-last {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%; padding: 3px 8px; border-radius: 999px;
  background: var(--mint); color: var(--forest); font: 600 12px/1.2 var(--f-body);
}
.sa-alt .sa-last { position: static; translate: none; margin-left: 6px; }

/* Google's button while the page leaves for Google's sign-in: a white spinner on forest. */
.sa-btn-google .sa-spin { border-color: rgb(255 255 255 / 0.3); border-top-color: #fff; }
.sa-btn-google[data-state] .sa-g, .sa-btn-google[data-state] .sa-last { opacity: 0; }

/* busy -> done: the label blurs out, a spinner, then a check. */
.sa-btn .sa-lbl { transition: opacity 0.2s var(--ease-swap), filter 0.2s var(--ease-swap), transform 0.2s var(--ease-swap); }
.sa-spin, .sa-ok {
  position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; opacity: 0; transform: scale(0.25); filter: blur(4px);
  transition: opacity 0.2s var(--ease-swap), transform 0.2s var(--ease-swap), filter 0.2s var(--ease-swap);
}
.sa-spin { border: 2.5px solid rgb(2 20 20 / 0.2); border-top-color: var(--pearl); border-radius: 999px; animation: sa-spin 0.8s linear infinite; }
.sa-ok svg { width: 22px; height: 22px; fill: none; stroke: var(--pearl); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sa-btn[data-state] .sa-lbl { opacity: 0; filter: blur(4px); transform: scale(0.9); }
.sa-btn[data-state='busy'] .sa-spin, .sa-btn[data-state='done'] .sa-ok { opacity: 1; transform: none; filter: none; }
@keyframes sa-spin { to { rotate: 360deg; } }

.sa-or { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.sa-or::before, .sa-or::after { content: ''; flex: 1; height: 1px; background: var(--sundog); }

/* ---------- fields ---------- */
.sa-field { display: grid; gap: 6px; }
.sa-field label { margin: 0; font: 500 15px/1.3 var(--f-body); color: var(--pearl); }
.sa-field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sa-field-row a { position: relative; font-size: 14px; }
.sa-field-row a::after { content: ''; position: absolute; inset: -12px -8px; }
.sa-input-wrap { position: relative; }
.sa-input {
  display: block; width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: var(--r-ctl); background: #fff;
  box-shadow: inset 0 0 0 1px var(--gravel); font-size: 17px; outline: none;
  transition: box-shadow 0.15s var(--ease-swap);
}
.sa-input::placeholder { color: var(--muted); }
.sa-input:hover { box-shadow: inset 0 0 0 1px var(--body); }
.sa-input:focus { box-shadow: inset 0 0 0 2px var(--forest), 0 0 0 4px rgb(255 188 0 / 0.45); }
.sa-input[aria-invalid='true'] { box-shadow: inset 0 0 0 2px var(--brick); }
.sa-input-wrap .sa-input { padding-right: 76px; }
.sa-show {
  position: absolute; right: 6px; top: 6px; height: 40px; min-width: 58px; padding: 0 10px; border: 0; border-radius: 6px; /* 12 - 6 inset */
  background: none; cursor: pointer; font: 500 15px/1 var(--f-body); color: var(--link);
  transition: background-color 0.15s var(--ease-swap);
}
.sa-show:hover { background: var(--iceberg); }
.sa-hint { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); transition: color 0.2s var(--ease-swap); }
.sa-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sa-hint.sa-met { color: var(--moss); }
/* Every error is one brick-outlined row with the same drawn icon: a field's error sits between the field and
   its button, the form's sits above the submit. */
.sa-err, .sa-alert {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 14px 16px; border-radius: var(--r-ctl);
  background: var(--brick-soft); box-shadow: inset 0 0 0 1px rgb(194 47 15 / 0.35); color: var(--brick-ink); font-size: 15px; line-height: 1.45;
}
.sa-err { margin-top: 8px; padding: 10px 14px; font-size: 14px; }
.sa-err[hidden], .sa-alert[hidden] { display: none; }
.sa-err::before, .sa-alert::before {
  content: ''; width: 20px; height: 20px; margin-top: 1px; background: currentColor;
  -webkit-mask: var(--sa-err-icon) center / contain no-repeat; mask: var(--sa-err-icon) center / contain no-repeat;
}
.sa { --sa-err-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='9.5'/%3E%3Cpath d='M11 6.5v5.5'/%3E%3Ccircle cx='11' cy='15.5' r='.6'/%3E%3C/svg%3E"); }
.sa-alert:focus { outline: none; }
.sa .sa-alert a { color: var(--brick-ink); font-weight: 500; }
#pa-social-error { margin-top: 12px; }
.sa-whoami {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 6px 6px 14px; border-radius: var(--r-ctl);
  background: var(--iceberg); font-size: 16px;
}
.sa-whoami span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sa-whoami button { height: 40px; padding: 0 12px; border: 0; border-radius: 6px; /* 12 - 6 inset */ background: none; cursor: pointer; color: var(--link); font: 500 15px/1 var(--f-body); transition: background-color 0.15s var(--ease-swap); }
.sa-whoami button:hover { background: #fff; }
.sa-recaptcha:empty, .pa-recaptcha:empty { display: none; }

/* The steps. Without JS (no .sa-js) every field shows and the step buttons stay hidden. */
.sa-show-choose, .sa-show-email, .sa-show-password { display: none !important; }
.sa-js [data-step='choose'] .sa-show-choose { display: flex !important; }
.sa-js [data-step='choose'] p.sa-show-choose { display: block !important; }
.sa-js [data-step='email'] .sa-show-email { display: flex !important; }
.sa-js [data-step='password'] .sa-show-password { display: flex !important; }
.sa-js [data-step='choose'] .sa-form { display: none; }
.sa-js [data-step='email'] .sa-pw-field, .sa-js [data-step='email'] .sa-submit { display: none; }
.sa-js [data-step='password'] .sa-email-field { display: none; }
.sa-js [data-step='email'] .sa-form, .sa-js [data-step='password'] .sa-form { animation: sa-word-in 0.35s var(--ease-out) both; }

/* ---------- small print ---------- */
.sa-alt { margin-top: 12px !important; font-size: 14px; color: var(--muted); text-align: center; }
.sa-alt button {
  position: relative; border: 0; background: none; padding: 0; cursor: pointer; color: var(--link);
  font: 500 14px/1.4 var(--f-body); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.sa-alt button::after { content: ''; position: absolute; inset: -12px -8px; }
.sa-fine { margin-top: 12px !important; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: pretty; }
.sa .sa-fine a { color: var(--muted); }
.sa-next { margin-top: 14px !important; font-size: 14px; color: var(--body); text-wrap: pretty; }
.sa-bought { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--iceberg); font-size: 14px; line-height: 1.5; color: var(--body); }
.sa-bought b { color: var(--pearl); font-weight: 500; }
.sa-swap { margin-top: 22px !important; font-size: 15px; color: var(--body); text-align: center; }
.sa-swap a { position: relative; font-weight: 500; }
.sa-swap a::after { content: ''; position: absolute; inset: -12px -8px; }

/* ---------- taco picker (review) ---------- */
.sa-pick { margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: var(--iceberg); }
.sa-pick-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--body); }
.sa-pick-hd b { font: 700 16px/1.2 var(--f-head); color: var(--pearl); }
.sa-picker { display: flex; align-items: center; gap: 2px; margin: 6px 0 0 -6px; }
.sa-picker button {
  width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 10px; display: grid; place-items: center;
  transition: transform 0.2s var(--ease-out), background-color 0.15s var(--ease-swap);
}
.sa-picker button:hover { background: #fff; }
.sa-picker button:active { transform: scale(0.96); }
.sa-picker img { width: 30px; height: 23px; filter: grayscale(1); opacity: 0.32; transition: filter 0.2s var(--ease-swap), opacity 0.2s var(--ease-swap); }
.sa-picker button.sa-on img { filter: none; opacity: 1; }
.sa-picker button.sa-pop img { animation: sa-pop 0.4s var(--ease-out); }
@keyframes sa-pop { 45% { transform: scale(1.18); } }
.sa-picker-say { margin-left: 8px; font: 600 15px/1.2 var(--f-head); color: var(--body); font-variant-numeric: tabular-nums; }

/* ---------- proof cards ---------- */
.sa-card { display: grid; gap: 12px; padding: 18px; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); color: var(--pearl); }
.sa-card-title { font: 800 18px/1.2 var(--f-head); }
.sa-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sa-card-head span { font-size: 13px; color: var(--muted); text-align: right; }
.sa-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--sundog); font-size: 15px; color: var(--body); }
.sa-card-foot b { font: 800 22px/1 var(--f-head); color: var(--moss); }
.sa-money { font-variant-numeric: tabular-nums; }
.sa-note { font-size: 14px; line-height: 1.45; color: var(--body); text-wrap: pretty; }
.sa-note b { color: var(--pearl); font-weight: 500; }
.sa-more { font-size: 14px; color: var(--muted); }
.sa-quote { font: 600 19px/1.35 var(--f-head); text-wrap: pretty; }
.sa-quote-sm { font-size: 17px; }
.sa-who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sa-who b { color: var(--pearl); font-weight: 500; }
.sa-who-text { flex: 1; min-width: 0; }
.sa-review-inline { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--sundog); }
.sa-count { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--sundog); font-size: 14px; color: var(--body); }
.sa-count b { font: 800 20px/1 var(--f-head); color: var(--pearl); font-variant-numeric: tabular-nums; }
.sa-faces { display: flex; }
.sa-faces img { width: 28px; height: 28px; border-radius: var(--r-inner); background: #fff; outline: 2px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); object-fit: contain; }
.sa-faces img:first-child { margin-left: 0; }

.sa-tile {
  position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) / 4);
  overflow: hidden; background: #fff; outline: 1px solid rgb(0 0 0 / 0.1); outline-offset: -1px;
  font: 700 calc(var(--s) / 2.4) / 1 var(--f-head); color: var(--muted);
}
.sa-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
/* A white logo (a wordmark made for dark pages) sits on a forest plate; `shopper_scripts.html` sets the class. */
.sa-tile img.sa-on-dark, .sa-h-logo.sa-on-dark { background: var(--forest); padding: 12%; }
.sa-h-logo.sa-on-dark { padding: 2px; }
.sa-tile:has(img.sa-on-dark) { background: var(--forest); }
/* A wordmark sits on a plate as wide as it needs (`--ar`, capped at 4:1), cropped to its main row. */
.sa-tile.sa-logo-wide { width: calc(var(--s) * var(--ar)); border-radius: calc(var(--s) / 4); }
.sa-tile.sa-logo-wide > span { visibility: hidden; }
.sa-tile.sa-logo-wide img { padding: 0; }
.sa-h-logo.sa-logo-wide { width: calc(0.8em * var(--ar)); }

.sa-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sa-row-text { display: grid; min-width: 0; }
.sa-row-name { font: 800 19px/1.15 var(--f-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-row-detail { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-price { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.sa-price b { display: block; font: 800 22px/1 var(--f-head); }
.sa-price s { font-size: 14px; color: var(--muted); }
.sa-price small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--moss); }

.sa-tacos { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
.sa-tacos-row { display: flex; gap: 2px; }
.sa-tacos-row img { width: 17px; height: 13px; }
.sa-tacos-base img { filter: grayscale(1); opacity: 0.3; }
.sa-tacos-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.sa-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--body); }
.sa-rating b { color: var(--pearl); font-weight: 500; font-variant-numeric: tabular-nums; }

.sa-deal { padding: 0; overflow: hidden; gap: 0; }
.sa-deal-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--forest); }
.sa-deal-body { display: grid; gap: 10px; padding: 16px 18px 18px; }

.sa-thread { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--sundog); }
.sa-thread:first-child { padding-top: 0; border-top: 0; }
.sa-thread-q { font: 600 17px/1.35 var(--f-head); }
.sa-thread-meta { font-size: 13px; color: var(--muted); }

.sa-bar-row { display: grid; grid-template-columns: 148px 1fr auto; align-items: center; gap: 12px; font-size: 14px; color: var(--body); }
.sa-bar-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sa-bar-row b { font: 800 20px/1 var(--f-head); color: var(--pearl); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.sa-bar { position: relative; height: 10px; border-radius: 999px; background: var(--iceberg); overflow: hidden; }
.sa-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--dorado); transform-origin: left; }
.sa-bar-rent .sa-bar i { background: var(--gravel); }
.sa-enter .sa-bar i { animation: sa-grow 0.9s var(--ease-out) both; animation-delay: 300ms; }
.sa-enter .sa-bar-rent .sa-bar i { animation-delay: 420ms; }
@keyframes sa-grow { from { transform: scaleX(0); } }

.sa-member { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--mint-soft); font-variant-numeric: tabular-nums; }
.sa-member > span:first-child { font-size: 14px; color: var(--spruce); }
.sa-member b { font: 800 26px/1 var(--f-head); }
.sa-member s { margin-right: 8px; font-size: 15px; color: var(--muted); }
.sa-perks { display: grid; gap: 8px; font-size: 15px; color: var(--body); }
.sa-perks li { display: flex; align-items: center; gap: 8px; }
.sa-perks svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--moss); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.sa-lines { display: grid; gap: 8px; font-size: 15px; color: var(--body); font-variant-numeric: tabular-nums; }
.sa-lines div { display: flex; justify-content: space-between; gap: 12px; }
.sa-lines dt { font-weight: 400; }
.sa-lines dd { margin: 0; }
.sa-lines .sa-save dd { color: var(--moss); font-weight: 500; }
.sa-lines .sa-total { padding-top: 10px; border-top: 1px solid var(--sundog); color: var(--pearl); font-weight: 500; }
.sa-shield { display: flex; align-items: center; gap: 8px; }
.sa-shield svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--moss); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.sa-m { display: none; }

/* ---------- inbox and done pages ---------- */
.sa-mailto { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.sa-mailto .sa-btn { min-height: 48px; font-size: 16px; }
.sa-addr { display: inline-flex; margin-top: 18px; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--iceberg); font-weight: 500; overflow-wrap: anywhere; }
.sa-resend { margin-top: 22px !important; font-size: 15px; color: var(--body); }
.sa-resend button { border: 0; background: none; padding: 8px 4px; margin: -8px -4px; cursor: pointer; color: var(--link); font-weight: 500; font-variant-numeric: tabular-nums; }
.sa-resend button[disabled] { color: var(--muted); cursor: default; }
.sa .sa-resend a[aria-disabled='true'] { pointer-events: none; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.sa-cameo { display: inline-block !important; width: 44px; height: 44px; margin-left: 8px; vertical-align: -4px; border-radius: 999px; background: var(--mint); padding: 4px; }
.sa-cta { display: grid; gap: 12px; margin-top: 26px; }

/* ---------- view transitions between log in and create account ---------- */
::view-transition-old(sa-art) { animation: 0.45s var(--ease-swap) both sa-fade-out; }
::view-transition-new(sa-art) { animation: 0.7s var(--ease-out) both sa-art-in; }
::view-transition-old(sa-proof) { animation: 0.2s var(--ease-swap) both sa-fade-out; }
::view-transition-new(sa-proof) { animation: 0.55s 0.2s var(--ease-out) both sa-proof-in; }
::view-transition-old(sa-headline), ::view-transition-new(sa-headline) { animation: none; }
::view-transition-old(sa-headline) { display: none; }
@keyframes sa-art-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes sa-fade-out { to { opacity: 0; } }
@keyframes sa-proof-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- phone: header, a 232 px art strip, the card over its edge, then the form ---------- */
@media (max-width: 900px) {
  .sa { display: flex; flex-direction: column; min-height: 0; }
  .sa-side { display: contents; }
  .sa-top { order: 0; height: 56px; padding: 0 16px; max-width: none; }
  .sa-logo img { width: 112px; }
  .sa-art { order: 1; position: relative; top: auto; height: auto; overflow: visible; background: none; }
  .sa-art-img { position: relative; inset: auto; height: 232px !important; object-position: var(--pos-sm); }
  .sa a.sa-back, .sa-gsi { display: none; }
  .sa-proof { position: relative; left: auto; bottom: auto; width: auto; margin: -80px 16px 0; }
  .sa-proof:has(> .sa-card.sa-d:only-child) { display: none; }
  .sa-main { order: 3; flex: none; padding: 20px 16px 32px; max-width: none; }
  .sa-foot { order: 4; max-width: none; padding: 0 16px calc(220px + env(safe-area-inset-bottom, 0px)); }
  .sa-d { display: none !important; }
  .sa-m { display: grid; }
  .sa-card { padding: 12px 14px; gap: 8px; }
  .sa-deal { padding: 0; }
  .sa-deal-body { padding: 12px 14px; gap: 6px; }
  .sa-quote { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sa-who { font-size: 13px; }
  .sa-row-name { font-size: 17px; }
  .sa-price b { font-size: 19px; }
  .sa-thread { padding-top: 8px; }
  .sa-thread-q { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sa-card-foot { padding-top: 8px; }
  .sa-member { padding: 8px 12px; }
  .sa-member b { font-size: 20px; }
  .sa-bar-row { grid-template-columns: 120px 1fr auto; font-size: 13px; }
  .sa-bar-row b { font-size: 17px; }
  .sa-h1 { font-size: 30px; }
  .sa-has-phone .sa-h-desk { display: none; }
  .sa-has-phone .sa-h-phone { display: inline; }
  .sa-h-logo { width: 24px; height: 24px; }
  .sa-h-logo.sa-logo-wide { width: calc(24px * var(--ar)); }
  .sa-lede { font-size: 16px; margin-top: 10px !important; }
  .sa-auth { margin-top: 20px; }
  .sa-actions, .sa-form { gap: 10px; }
  .sa-pick { margin-top: 16px; padding: 10px 12px; }
  .sa-btn { min-height: 50px; }
  .sa-mailto { grid-template-columns: 1fr; }
  .sa-secure-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sa-steps { font-size: 13px; gap: 2px; }
  .sa-steps li + li::before { margin: 0 2px; }
  .sa-step-n { display: none; }
  .sa-top-right { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sa *, .sa *::before, .sa *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .sa-btn:active, .sa-picker button:active { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
