/* ==========================================================================
   SIZEMET — MANAGED PROFILE CLAIM WEB ENTRY
   Development implementation stylesheet. Register UUX-PRIV-008.

   Approved visual semantics are preserved from the frozen package.
   Values are taken from Figma file oayr1LI3ykWXqXVcqhMx4V.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SIZEMET TOKENS
   Measured from the design file. Do not substitute approximations.
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --sz-selection:        #2323FF;  /* selection / accent */
  --sz-selection-tint:   #F4F4FF;  /* selected surface */

  /* Text */
  --sz-text:             #111111;
  --sz-text-label:       #1A1A1A;
  --sz-text-secondary:   #6B6B6B;
  --sz-text-muted:       #7A7A7A;
  --sz-text-inverse:     #FFFFFF;

  /* Surfaces */
  --sz-surface:          #FFFFFF;
  --sz-surface-card:     #F4F4F4;
  --sz-surface-track:    #EDEDED;

  /* Controls */
  --sz-btn-primary:      #000000;
  --sz-btn-disabled:     #C8C8C8;
  --sz-border:           #CCCCCC;
  --sz-border-subtle:    #EDEDED;

  /* Status */
  --sz-success:          #18A34A;
  --sz-warning:          #EBB102;
  --sz-danger:           #E5484D;

  /* Geometry */
  --sz-radius-button:    40px;
  --sz-radius-card:      16px;
  --sz-radius-tile:      12px;
  --sz-control-height:   48px;   /* exceeds the 44px minimum target */
  --sz-content-max:      393px;
  --sz-gutter:           20px;

  /* Type
     NOTE FOR IMPLEMENTATION: the Sizemet design language uses Poppins.
     No third-party font is loaded here, by instruction. The host must
     SELF-HOST Poppins and prepend it to this stack. See README section 6. */
  --sz-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
             Roboto, Helvetica, Arial, sans-serif;

  --sz-motion: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --sz-motion: 0ms; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sz-surface);
  color: var(--sz-text);
  font-family: var(--sz-font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 3px solid var(--sz-selection);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Headings receive programmatic focus on every state change so that keyboard
   and screen-reader users are carried to the new content. They are NOT
   controls, and must not acquire a control-style focus ring — a blue outline
   around a static heading reads as something you can activate.
   The screen-reader focus transition is preserved; only the visual indicator
   is suppressed, and only for non-interactive targets. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.sz-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   Mobile-first. Verified at 320px and 393px.
   -------------------------------------------------------------------------- */
.sz-shell {
  flex: 1;
  width: 100%;
  max-width: var(--sz-content-max);
  margin: 0 auto;
  padding: 40px var(--sz-gutter) 32px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 359px) {
  .sz-shell { padding-left: 16px; padding-right: 16px; }
}

/* Tablet and desktop: the sheet stays phone-width and centres, because the
   journey is a phone journey. Widening it would imply a desktop capability
   the product does not have. */
@media (min-width: 768px) {
  .sz-shell {
    padding-top: 72px;
    justify-content: center;
    min-height: 100svh;
  }
}

.sz-state { display: none; }
.sz-state[data-active="true"] { display: flex; flex-direction: column; flex: 1; }

.sz-body-block { flex: 1; }
.sz-actions { margin-top: 32px; }

/* --------------------------------------------------------------------------
   4. MARK AND ICONS
   -------------------------------------------------------------------------- */
.sz-mark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sz-text);
  margin-bottom: 40px;
}

.sz-icon {
  width: 60px; height: 60px;
  border-radius: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin-bottom: 24px;
}
.sz-icon--warning { border: 2px solid var(--sz-warning); color: var(--sz-warning); }
.sz-icon--success { border: 2px solid var(--sz-success); color: var(--sz-success); }

/* --------------------------------------------------------------------------
   5. TYPE
   -------------------------------------------------------------------------- */
.sz-h1 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--sz-text);
  margin: 0 0 12px;
}

.sz-body {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--sz-text-secondary);
  margin: 0 0 16px;
}
.sz-body:last-child { margin-bottom: 0; }

.sz-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sz-text-muted);
  margin: 12px 0 0;
}

/* --------------------------------------------------------------------------
   6. STEP LIST — return-to-email instructions
   -------------------------------------------------------------------------- */
.sz-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 18px;
  background: var(--sz-surface-card);
  border-radius: var(--sz-radius-tile);
  counter-reset: sz-step;
}
.sz-steps li {
  counter-increment: sz-step;
  position: relative;
  padding-left: 30px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sz-text-secondary);
  margin-bottom: 10px;
}
.sz-steps li:last-child { margin-bottom: 0; }
.sz-steps li::before {
  content: counter(sz-step);
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 10px;
  background: var(--sz-text);
  color: var(--sz-text-inverse);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* --------------------------------------------------------------------------
   7. CONTROLS
   Minimum target 48px, exceeding the 44px requirement.
   -------------------------------------------------------------------------- */
.sz-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--sz-control-height);
  padding: 12px 20px;
  border-radius: var(--sz-radius-button);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity var(--sz-motion) ease, background var(--sz-motion) ease;
}
.sz-btn + .sz-btn { margin-top: 16px; }
.sz-btn:active { opacity: 0.85; }

.sz-btn--primary {
  background: var(--sz-btn-primary);
  color: var(--sz-text-inverse);
}
.sz-btn--secondary {
  background: var(--sz-surface);
  color: var(--sz-text);
  border-color: var(--sz-border);
}
.sz-btn--quiet {
  background: transparent;
  color: var(--sz-text);
  border-color: transparent;
  font-size: 15px;
}
.sz-btn[aria-disabled="true"],
.sz-btn:disabled {
  background: var(--sz-btn-disabled);
  color: var(--sz-text-inverse);
  border-color: transparent;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   8. LOADING
   -------------------------------------------------------------------------- */
.sz-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.sz-spinner {
  width: 32px; height: 32px;
  border-radius: 16px;
  border: 3px solid var(--sz-surface-track);
  border-top-color: var(--sz-text);
  animation: sz-spin 800ms linear infinite;
}
@keyframes sz-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .sz-spinner { animation: none; border-top-color: var(--sz-text); }
}


