:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  --bg: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #dedee3;
  --blue: #0071e3;
  --soft: #f5f5f7;
  --danger: #c93635;
  --header: rgb(245 245 247 / 82%);
  --shadow: 0 12px 40px -24px rgb(0 0 0 / 14%);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
a { color: inherit; }
p { margin: 0 0 20px; }
h1, h2, h3 { font-weight: 600; }
.wrap { max-width: 1200px; padding-inline: 40px; margin-inline: auto; }

/* The brand bar stays quiet while the account is the main focus. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; font-size: 21px; letter-spacing: -.8px; font-weight: 600; text-decoration: none; }
.brand img { width: 32px; height: 36px; object-fit: contain; }
.privacy-label { color: var(--muted); font-size: 12px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); align-items: start; gap: 70px; padding: 58px 0 54px; }
.intro-copy { min-width: 0; padding-top: 8px; }
.app-label { display: flex; align-items: center; justify-content: flex-start; gap: 12px; font-size: 17px; font-weight: 500; letter-spacing: -.4px; }
.app-label img { width: 62px; height: 62px; object-fit: contain; background: #fff; padding: 12px; border-radius: 16px; }
h1 { font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -2.3px; line-height: 1.08; margin: 25px 0 22px; }
.lead { max-width: 500px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; letter-spacing: -.25px; }
.steps { display: flex; max-width: 420px; list-style: none; padding: 0; margin: 24px 0 28px; gap: 5px; }
.steps li { flex: 1; padding: 0 5px 11px; color: var(--muted); border-bottom: 2px solid var(--line); font-size: 12px; }
.steps [aria-current=step] { color: var(--ink); border-color: var(--blue); font-weight: 600; }
.secure-note { text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); margin: 21px 0 0; }

/* One consistent surface for login, account scope and completion. */
.panel { width: 100%; max-width: 100%; padding: 34px 36px 28px; border: 1px solid rgb(0 0 0 / 4%); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.8px; margin: 0 0 13px; }
.panel h2 { font-size: 23px; letter-spacing: -.6px; }
.panel p { font-size: 14px; color: var(--muted); }
form { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
label { font-size: 13px; font-weight: 500; }
input:not([type=checkbox], [type=radio]) {
  width: 100%; min-height: 50px; padding: 13px 14px; color: var(--ink);
  background: var(--surface); border: 1px solid #b8b8be; border-radius: 10px;
  font-size: 16px; outline: none;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(0 113 227 / 13%); }
input[type=email] { margin-bottom: 12px; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 17px; height: 17px; flex: none; }
.field-heading { display: flex; align-items: center; justify-content: space-between; }
.primary, .secondary, .danger {
  display: flex; justify-content: center; align-items: center; width: 100%;
  min-height: 48px; padding: 13px 17px; border: 1px solid transparent;
  border-radius: 12px; font-size: 15px; font-weight: 500; text-decoration: none;
}
.primary { background: var(--blue); color: #fff; }
.secondary { background: var(--soft); color: var(--ink); }
.danger { background: var(--danger); color: #fff; }
.primary:enabled:hover { background: #0077ed; }
.danger:enabled:hover { background: #b92f2f; }
#login-submit { margin-top: 13px; }
.text-button { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 400; }
.small { font-size: 12px; }
.recovery-link { display: block; margin: 22px auto 25px; font-size: 13px; }
.panel-footnote { padding-top: 19px; border-top: 1px solid var(--line); text-align: center; font-size: 11px; color: var(--muted); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.verified { font-size: 12px; color: var(--muted); }
.account-email { overflow-wrap: anywhere; }
.scope-options { display: grid; gap: 12px; border: 0; padding: 0; margin: 22px 0; }
.scope-options legend { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.scope-card { display: flex; align-items: start; gap: 11px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.scope-card:has(input:checked) { background: rgb(0 113 227 / 3%); border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.scope-card input { margin: 3px 0; }
.scope-card strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.scope-card span span { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); }
.linked-products { padding: 15px 0; border-block: 1px solid var(--line); }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 400; }
.linked-products ul { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; padding: 0; margin: 10px 0 0; }
.linked-products li { font-size: 13px; }
.impact-note { font-size: 13px; line-height: 1.6; color: var(--muted); padding: 20px 0; }
.success-mark { width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-size: 25px; margin: 0 0 23px; }
.notice { border-radius: 10px; padding: 13px; margin-bottom: 18px; font-size: 13px; line-height: 1.5; color: #9f2525; background: #fff1f0; }
.notice[data-tone=success], .notice[data-tone=info] { color: var(--ink); background: var(--soft); }

/* Plain information rows replace numbered tiles and repeated decorative headings. */
.details { display: grid; grid-template-columns: 260px 1fr; gap: 30px 65px; margin: 0; padding: 42px 0 48px; border-top: 1px solid var(--line); }
.information-heading h2 { margin-bottom: 15px; font-size: 30px; line-height: 1.15; }
.information-heading p { color: var(--muted); font-size: 14px; max-width: 245px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; }
.detail-grid article { padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.detail-grid h3 { margin-bottom: 9px; }
h3 { font-size: 14px; letter-spacing: -.15px; line-height: 1.5; margin: 0; }
.detail-grid p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.retention { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.6; margin: -8px 0 0; }
.faq { max-width: 100%; padding: 0 0 48px; margin: 0; }
.faq h2 { margin-bottom: 25px; }
details { border-bottom: 1px solid var(--line); padding: 21px 0; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; font-size: 15px; font-weight: 500; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary::after { content: "+"; flex: none; color: var(--muted); font-size: 23px; font-weight: 300; line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 16px 35px 0 0; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 85px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 22px; height: 24px; object-fit: contain; }

/* Dialogs share the same materials and restrained motion as the main form. */
dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 36px; border: 0; border-radius: 24px; color: var(--ink); background: var(--surface); box-shadow: 0 25px 90px rgb(0 0 0 / 20%); }
dialog::backdrop { background: rgb(0 0 0 / 26%); backdrop-filter: blur(8px); }
dialog h2 { padding-right: 40px; margin-top: 0; }
dialog h2:focus { outline: none; }
dialog p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.close {
  position: absolute; right: 28px; top: 36px;
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--soft); color: var(--muted);
  appearance: none; -webkit-appearance: none;
}
.close::before { content: ""; position: absolute; inset: -6px; }
.close svg { display: block; width: 12px; height: 12px; pointer-events: none; }
.close:hover { background: var(--line); color: var(--ink); }
.close:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

dialog .primary, dialog .secondary { margin-top: 12px; }
dialog form .primary { margin-top: 4px; }
.consent { display: flex; align-items: start; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 400; margin: 12px 0; }
.consent input { margin: 2px 0; }
.small-note { font-size: 12px !important; }
#recovery-code-fields { display: grid; gap: 10px; }
#recovery-code { letter-spacing: 6px; }
.noscript { padding: 20px; text-align: center; background: #fce0ce; color: #543222; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161617; --surface: #202022; --ink: #f5f5f7;
    --muted: #a1a1a6; --line: #3d3d40; --blue: #2997ff;
    --soft: #2c2c2e; --header: rgb(22 22 23 / 82%);
    --shadow: 0 12px 40px -24px rgb(0 0 0 / 50%);
  }
  .primary { background: #0071e3; }
  .notice { background: #3b2323; color: #ffb9b4; }
  .panel { border-color: rgb(255 255 255 / 4%); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 24px; }
  .topbar { height: 65px; }
  .brand { font-size: 19px; }
  .brand img { width: 28px; height: 31px; }
  .intro { padding: 36px 0 44px; }
  .app-label img { width: 52px; height: 52px; border-radius: 14px; padding: 10px; }
  .app-label { font-size: 16px; }
  h1 { font-size: 43px; letter-spacing: -1.8px; margin: 24px 0 18px; }
  .lead { max-width: 330px; font-size: 15px; }
  .steps { margin: 29px auto 24px; }
  .steps li { font-size: 11px; }
  .panel { padding: 27px 24px 24px; border-radius: 20px; }
  .panel h2 { font-size: 22px; }
  .secure-note { font-size: 11px; }
  .details { padding: 34px 0 40px; }
  h2 { font-size: 24px; }
  .details > h2 { margin-bottom: 24px; }
  .detail-grid article { grid-template-columns: 1fr; gap: 9px; padding: 21px 0; }
  .detail-grid p { font-size: 13px; }
  .faq { padding-bottom: 44px; }
  summary { font-size: 14px; }
  details p { font-size: 13px; }
  .footer { min-height: 95px; gap: 15px; align-items: start; justify-content: center; flex-direction: column; padding-block: 22px; }
  dialog { padding: 30px 25px; border-radius: 21px; }
  .close { top: 28px; right: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, input, .scope-card { transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
  .primary:enabled:active, .secondary:enabled:active, .danger:enabled:active { transform: scale(.985); }
  summary::after { transition: transform .25s ease; }
  details[open] p { animation: settle .3s cubic-bezier(.2,.7,.3,1) both; }
  dialog[open] { animation: present .28s cubic-bezier(.16,1,.3,1) both; }
  dialog[open]::backdrop { animation: backdrop-in .25s ease both; }
  #login-panel, #account-panel, #success-panel { animation: settle .35s cubic-bezier(.2,.7,.3,1) both; }
  .revealed { animation: settle .45s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes settle { from { transform: translateY(7px); opacity: .88; } to { transform: translateY(0); opacity: 1; } }
  @keyframes present { from { transform: translateY(12px) scale(.98); opacity: .82; } to { transform: translateY(0) scale(1); opacity: 1; } }
  @keyframes backdrop-in { from { opacity: .4; } to { opacity: 1; } }
}

/* Two-column first screen: scope information and the real account action stay together. */
.page-nav { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.page-nav a { text-decoration: none; color: var(--muted); }
.page-nav .nav-action { padding: 8px 15px; border-radius: 20px; background: var(--ink); color: var(--surface); }
.app-caption { display: block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; margin-top: 3px; }
.hero-line { display: block; overflow: hidden; padding-bottom: 4px; margin-bottom: -4px; }
.hero-line > span { display: block; }
.accent-line { color: var(--blue); }
.form-column { position: sticky; top: 100px; scroll-margin-top: 100px; }
.form-heading h2 { font-size: 26px; }
.form-heading p { font-size: 13px; max-width: 300px; }
.login-heading { color: var(--muted); font-weight: 400; font-size: 13px; margin: 0; }
#information { scroll-margin-top: 100px; }
.panel:has(#account-panel:not([hidden])) .form-heading,
.panel:has(#success-panel:not([hidden])) .form-heading,
.panel:has(#success-panel:not([hidden])) .steps { display: none; }
.impact-preview { margin-top: 34px; max-width: 510px; }
.impact-preview h2 { font-size: 16px; letter-spacing: -.3px; margin-bottom: 15px; }
.preview-tabs { display: flex; gap: 4px; padding: 4px; background: var(--line); border-radius: 12px; width: fit-content; margin-bottom: 15px; }
.preview-tabs button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; border-radius: 9px; padding: 9px 23px; min-height: 36px; }
.preview-tabs [aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 8%); }
.preview-row { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.preview-row img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.preview-row img[src$="nivo.png"] { background: #fff; border-radius: 9px; padding: 5px; }
.preview-row > div { min-width: 0; flex: 1; }
.preview-row strong { display: block; font-size: 13px; font-weight: 500; }
.preview-row div span { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 3px; }
.state-label { flex: none; font-size: 10px; }
.removed { color: #b43f3f; }
.kept { color: #297c50; }
#preview-description { color: var(--ink); font-size: 12px; line-height: 1.6; margin: 14px 0 8px; min-height: 39px; }
.preview-footnote { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 0; max-width: 470px; }
@media (prefers-color-scheme: dark) {
  .removed { color: #f49090; }
  .kept { color: #82cba0; }
}
@media (min-width: 821px) and (max-width: 1060px) {
  .intro { gap: 36px; }
  h1 { font-size: 45px; letter-spacing: -1.8px; }
  .panel { padding: 29px 27px; }
  .details { grid-template-columns: 220px 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  .intro { display: flex; flex-direction: column; gap: 0; align-items: stretch; padding: 32px 0 36px; }
  .intro-copy { display: contents; }
  .app-label { order: 0; }
  h1 { order: 1; font-size: clamp(39px, 7vw, 54px); margin: 24px 0 16px; }
  .lead { order: 2; max-width: 560px; margin: 0 0 26px; font-size: 15px; }
  .form-column { order: 3; position: static; width: 100%; max-width: 500px; align-self: center; }
  .impact-preview { order: 4; margin: 34px 0 0; max-width: 100%; }
  .details { grid-template-columns: 1fr; gap: 20px; padding: 30px 0 34px; }
  .information-heading h2 { font-size: 26px; }
  .information-heading h2 br { display: none; }
  .information-heading p { max-width: 100%; margin: 0; }
  .detail-grid { gap: 20px 24px; }
  .retention { grid-column: 1; margin: 0; }
  .steps { margin-top: 22px; }
  .form-heading h2 { font-size: 24px; }
  .page-nav { gap: 14px; font-size: 11px; }
  .page-nav .nav-action { padding: 7px 12px; }
}
@media (max-width: 480px) {
  .detail-grid { grid-template-columns: 1fr; gap: 0; }
  .detail-grid article { padding: 18px 0; }
  .preview-tabs { width: 100%; }
  .preview-tabs button { flex: 1; }
  .page-nav > a:first-child { display: none; }
  .preview-row { gap: 10px; }
  .preview-row div span { font-size: 10px; }
  .preview-footnote { font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-line > span { animation: title-reveal .95s cubic-bezier(.16,1,.3,1) both; }
  .hero-line:nth-child(2) > span { animation-delay: .13s; }
  .lead { animation: copy-reveal .8s .16s cubic-bezier(.16,1,.3,1) both; }
  .form-column { animation: copy-reveal .8s .2s cubic-bezier(.16,1,.3,1) both; }
  .preview-tabs button { transition: color .2s, background .25s, box-shadow .25s; }
  .state-label { transition: color .25s; }
  @keyframes title-reveal { from { transform: translateY(27px); opacity: .45; filter: blur(7px); } to { transform: translateY(0); opacity: 1; filter: blur(0); } }
  @keyframes copy-reveal { from { transform: translateY(15px); opacity: .8; } to { transform: translateY(0); opacity: 1; } }
}
