/* Privo.fyi — interstitial "stop" page.
   Built from Figma node 224:2 (BlueAT Network Brand Kit), using the Privo theme tokens from style.css.
   Standalone on purpose: style.css has global h1/body rules that would fight the card layout. */

:root {
  --bg: #1c1310;
  --peach: #d4975c;
  --cream: #e8c28a;
  --black: #000;

  --radius-lg: 17px;
  --card-radius: 20px; /* from Figma */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding: 50px 16px;

  background:
    radial-gradient(
      circle at 75% 18%,
      rgba(212, 151, 92, .11),
      transparent 28rem
    ),
    var(--bg);

  color: var(--black);
  font-family: "Inria Serif", Georgia, serif;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--bg);
  color: var(--peach);
}

a {
  color: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* Black ring: cream (the theme's ring) has no contrast on the peach card. */
:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* --------------------------------
   Card
-------------------------------- */

.card {
  position: relative;

  width: 100%;
  max-width: 440px;
  min-height: 732px;

  padding: 10px 47px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background: var(--peach);
  border-radius: var(--card-radius);

  box-shadow: 12px 14px 0 rgba(0, 0, 0, .16);
}

.stop-icon {
  flex: none;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100px;
  height: 100px;

  border-radius: 50%;

  background: var(--bg);
  color: var(--peach);

  font-size: 50px;
  line-height: 1;
}

h1 {
  margin: 36px 0 0;

  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.lede {
  margin: 28px 0 0;

  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lede strong {
  font-weight: 700;
}

.source-note {
  margin: 12px 0 0;

  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.source-note strong {
  font-weight: 700;
}

.countdown {
  margin: 48px 0 4px;

  font-size: 16px;
  line-height: 1.2;
}

.countdown strong {
  font-weight: 700;
}

/* --------------------------------
   Proceed button (matches .generate)
-------------------------------- */

.proceed {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 70px;
  padding: 10px 16px;

  border: 1px solid var(--black);
  border-radius: var(--card-radius);

  background: var(--black);
  color: var(--peach);

  font-size: 24px;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;

  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease;
}

.proceed:hover {
  transform: translateY(-1px);
  background: var(--bg);
  color: var(--cream);
}

.proceed:active {
  transform: none;
}

.disclaimer {
  margin: 8px 0 0;

  font-size: 13px;
  line-height: 1.2;
}

/* --------------------------------
   Footer
-------------------------------- */

.spacer {
  flex: 1 1 auto;
  min-height: 24px;
}

.powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  height: 40px;
  padding: 0 14px 0 10px;

  border-radius: var(--card-radius);

  background: var(--black);
  color: var(--peach);

  font-size: 15px;
  text-decoration: none;

  transition:
    background .18s ease,
    color .18s ease;
}

.powered:hover {
  background: var(--bg);
  color: var(--cream);
}

.powered i {
  font-size: 22px;
  line-height: 1;
}

.powered em {
  font-style: italic;
}

.footer-links {
  margin: 16px 0 0;

  font-size: 14px;
}

.footer-links a {
  text-underline-offset: 2px;
}

/* --------------------------------
   Error state
-------------------------------- */

.card.is-error .proceed {
  display: none;
}

.error-detail {
  margin: 20px 0 0;

  font-size: 16px;
  line-height: 1.3;
}

.error-detail code {
  padding: 1px 6px;

  border-radius: 6px;

  background: rgba(232, 194, 138, .45);

  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  white-space: nowrap;
}

.error-detail ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.error-detail li + li {
  margin-top: 6px;
}

[hidden] {
  display: none !important;
}

/* --------------------------------
   Reduced motion
-------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------
   Responsive
-------------------------------- */

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .card {
    min-height: calc(100dvh - 32px);
    padding-left: 24px;
    padding-right: 24px;

    box-shadow: 6px 8px 0 rgba(0, 0, 0, .16);
  }

  h1 {
    font-size: 32px;
  }
}