/* "Get your report" pages — matches the site's quiet-luxury language.
   Playfair headings, ink/bronze/warm ground, 44px tap targets, 16px gutters
   at the 390px breakpoint. Loaded only on /get-report and /my-reports. */

/* ─── Returning-customer strip ─────────────────────────────────────────────
   Full-bleed warm-stone band, one line: bronze key, the copy, one action. The
   markup carries its own <link> to this stylesheet so it can sit on any page. */

.rc-strip {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  background: var(--color-stone, #ece7dd);
  border-top: 1px solid var(--color-border, #e8e5df);
  border-bottom: 1px solid var(--color-border, #e8e5df);
}

.rc-strip-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.rc-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  color: var(--color-bronze, #8B6F47);
  background: rgba(139, 111, 71, 0.12);
}

.rc-strip-copy {
  color: var(--color-text-soft, #4b5563);
  font-size: 0.95rem;
  line-height: 1.4;
}

.rc-strip-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent-bronze-dark, #6f5633);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rc-strip-link:hover {
  color: var(--color-accent-bronze, #b08d57);
}

@media (max-width: 760px) {
  .rc-strip-inner {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 0;
  }
  .rc-strip-copy {
    flex: 1 1 100%;
  }
  .rc-strip-link {
    margin-left: 0;
  }
}

.access-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h, 78px) + 48px) 20px 72px;
}

/* The /get-report login narrows to a bank-grade centred card. */
.access-shell-login {
  max-width: 480px;
}

.access-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e8e5df);
  border-radius: var(--radius-lg, 16px);
  padding: 40px 36px;
  box-shadow: var(--shadow-soft, 0 16px 48px rgba(15, 17, 23, 0.05));
}

.access-login {
  text-align: center;
}

.access-login .access-form,
.access-login .access-security {
  text-align: left;
}

.access-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 0 14px;
  border-radius: 50%;
  color: var(--color-accent-bronze, #8B6F47);
  background: rgba(139, 111, 71, 0.12);
}

.access-chip {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-heading, #0f1117);
  background: var(--color-bg-warm, #f7f5f1);
  border: 1px solid var(--color-border-strong, #d4d0c8);
  border-radius: 8px;
  padding: 2px 8px;
  white-space: nowrap;
}

.access-card h1 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-heading, #0f1117);
  margin: 8px 0 12px;
}

.access-lede {
  color: var(--color-text-soft, #4b5563);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.access-form {
  display: grid;
  gap: 16px;
}

.access-field {
  display: grid;
  gap: 8px;
}

.access-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #71717a);
}

.access-field input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  font-size: 1.06rem;
  color: var(--color-text, #1a1f26);
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border-strong, #d4d0c8);
  border-radius: var(--radius-sm, 12px);
  box-sizing: border-box;
}

.access-field input:focus {
  outline: none;
  border-color: var(--color-accent-bronze, #b08d57);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.16);
}

#access-code {
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-submit {
  min-height: 48px;
  margin-top: 4px;
}

.access-submit.is-loading {
  opacity: 0.72;
  cursor: progress;
}

.access-error {
  color: #9b3b2e;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.access-field-error {
  color: #9b3b2e;
  font-size: 0.85rem;
  line-height: 1.4;
}

.access-field input[aria-invalid="true"] {
  border-color: #b4533e;
}

.access-field input[aria-invalid="true"]:focus {
  border-color: #b4533e;
  box-shadow: 0 0 0 3px rgba(180, 83, 62, 0.16);
}

.access-lost {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border, #e8e5df);
  text-align: center;
}

.access-lost-link {
  background: none;
  border: none;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--color-accent-bronze-dark, #8B6F47);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.access-lost-link:hover {
  color: var(--color-accent-bronze, #b08d57);
}

.access-resend-form {
  margin-top: 16px;
  padding: 18px;
  text-align: left;
  background: var(--color-bg-warm, #f7f5f1);
  border: 1px solid var(--color-border, #e8e5df);
  border-radius: var(--radius-md, 14px);
}

.access-resend-submit {
  margin-top: 12px;
}

.access-resend-note {
  color: var(--color-text-soft, #4b5563);
  font-size: 0.92rem;
  margin: 6px 0 0;
}

.access-security {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #e8e5df);
  color: var(--color-text-muted, #71717a);
  font-size: 0.8rem;
  line-height: 1.55;
}

.access-security svg {
  flex: none;
  margin-top: 2px;
  color: var(--color-bronze-text, #7f6540);
}

/* ─── /my-reports ──────────────────────────────────────────────────────────── */

.access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.access-head h1 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  color: var(--color-heading, #0f1117);
  margin: 8px 0 8px;
}

.access-head .access-lede {
  margin: 0;
}

.access-signout {
  min-height: 44px;
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--color-border-strong, #d4d0c8);
  border-radius: var(--radius-sm, 2px);
  color: var(--color-text-soft, #4b5563);
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
}

.access-signout:hover {
  border-color: var(--color-accent-bronze, #b08d57);
  color: var(--color-accent-bronze-dark, #8B6F47);
}

.access-reports {
  display: grid;
  gap: 16px;
}

.access-report-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e8e5df);
  border-radius: var(--radius-lg, 3px);
  padding: 20px 22px;
  display: grid;
  gap: 10px;
}

.access-report-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.access-report-product {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading, #0f1117);
  margin: 0;
}

.access-report-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f5d50;
  background: #e6efe9;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.access-report-address {
  color: var(--color-text-soft, #4b5563);
  font-size: 0.95rem;
  margin: 0;
}

.access-report-meta {
  color: var(--color-text-muted, #71717a);
  font-size: 0.82rem;
  margin: 0;
}

.access-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.access-report-actions .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
}

.access-report-actions .button-secondary {
  background: var(--color-surface, #ffffff);
}

.access-empty {
  text-align: center;
}

.access-empty h2 {
  font-family: var(--font-display, Georgia, serif);
  color: var(--color-heading, #0f1117);
  margin: 8px 0 10px;
}

.access-empty p {
  color: var(--color-text-soft, #4b5563);
}

@media (max-width: 760px) {
  /* The desktop gutter is header + 48px, which on a 660px-tall phone put the
     login card 192px down — a third of the fold spent on nothing, on a page
     whose entire job is two fields and a button. Header + 20px brings the
     card to the top of the fold without crowding the fixed header. */
  .access-shell {
    padding-top: calc(var(--header-h, 78px) + 20px);
    padding-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .access-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .access-card {
    padding: 28px 20px;
  }
  .access-head {
    flex-direction: column;
  }
  .access-report-actions .button {
    flex: 1;
  }
}
