@font-face {
  font-family: Fraunces;
  src: url("../fonts/Fraunces72pt-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("../fonts/Fraunces72pt-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/Geist-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/Geist-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/Geist-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/Geist-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: JetBrains Mono;
  src: url("../fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: JetBrains Mono;
  src: url("../fonts/JetBrainsMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --petrol-navy: #000D29;
  --deep-navy: #081226;
  --violet: #A855F7;
  --cyan: #38BDF8;
  --hazard: #E879F9;
  --ink-1: #F8FAFC;
  --ink-2: #E2E8F0;
  --ink-3: #94A3B8;
  --card-border: rgba(255, 255, 255, 0.16);
  --subtle-border: rgba(248, 250, 252, 0.08);
  --input-border: rgba(248, 250, 252, 0.12);
  --input-surface: rgba(248, 250, 252, 0.05);
  font-family: Geist, sans-serif;
  color: var(--ink-1);
  background: var(--petrol-navy);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--petrol-navy);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(74% 50% at 0% 0%, rgba(168, 85, 247, 0.09) 0%, rgba(168, 85, 247, 0) 72%),
    radial-gradient(74% 50% at 100% 100%, rgba(56, 189, 248, 0.09) 0%, rgba(56, 189, 248, 0) 72%),
    var(--petrol-navy);
  font-size: 15px;
  line-height: 22px;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: 32px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 10px;
  min-height: 32px;
  margin-bottom: 24px;
  color: var(--ink-1);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.brand-name {
  font-family: Fraunces, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 0;
}

main {
  width: 100%;
}

.delete-card,
.placeholder-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  background-color: rgba(8, 18, 38, 0.92);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 55%);
}

.step-panel {
  opacity: 1;
  transition: opacity 180ms ease;
}

.step-panel.is-changing {
  opacity: 0;
}

.step-panel h1,
.step-panel h2,
.placeholder-card h1 {
  margin: 0 0 8px;
  color: var(--ink-1);
  font-family: Fraunces, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.step-copy,
.step-neutral,
.step-error,
.review-email,
.legal-copy,
.legal-copy li {
  overflow-wrap: anywhere;
}

.step-copy,
.step-neutral,
.review-email,
.legal-copy,
.legal-copy li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 22px;
}

.step-copy {
  margin: 0 0 24px;
}

.step-neutral {
  margin: 0 0 20px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.form-label {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.text-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink-1);
  background: var(--input-surface);
  font-family: Geist, sans-serif;
  font-size: 15px;
  line-height: 22px;
}

.text-input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.code-input {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.28em;
  text-align: center;
  padding-left: 0.28em;
  font-variant-numeric: tabular-nums;
}

.primary-button,
.secondary-button,
.destructive-button,
.resend-button {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  padding: 0 14px;
  cursor: pointer;
  font-family: Geist, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 1.8px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}

.primary-button {
  border: 1px solid var(--violet);
  color: var(--petrol-navy);
  background: var(--violet);
}

.primary-button:hover:not(:disabled) {
  background: #A855F7;
}

.primary-button:disabled {
  cursor: not-allowed;
  color: var(--ink-2);
  background: rgba(168, 85, 247, 0.32);
  border-color: rgba(168, 85, 247, 0.72);
}

.secondary-button {
  border: 1px solid var(--card-border);
  color: var(--ink-1);
  background: transparent;
}

.secondary-button:hover:not(:disabled) {
  background: rgba(248, 250, 252, 0.04);
}

.destructive-button {
  border: 1px solid var(--hazard);
  color: var(--hazard);
  background: transparent;
}

.destructive-button:hover:not(:disabled) {
  background: rgba(232, 121, 249, 0.10);
}

.destructive-button:disabled {
  cursor: not-allowed;
  color: var(--hazard);
  border-color: rgba(232, 121, 249, 0.5);
  background: rgba(232, 121, 249, 0.06);
}

.secondary-button:disabled,
.resend-button:disabled {
  cursor: not-allowed;
}

.inline-error {
  margin: -6px 0 16px;
  color: var(--hazard);
  font-size: 13px;
  line-height: 19px;
  overflow-wrap: anywhere;
}

.resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  text-align: center;
}

.resend-button {
  width: auto;
  min-height: 36px;
  border: 0;
  padding: 4px 2px;
  color: var(--cyan);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.resend-button:disabled {
  color: var(--ink-2);
}

.countdown,
.mono-date,
.mono-code {
  color: var(--ink-1);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.review-email {
  margin: 0 0 18px;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.benefit-list {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.benefit-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-top: 1px solid var(--subtle-border);
}

.benefit-row:last-child {
  border-bottom: 1px solid var(--subtle-border);
}

.benefit-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--cyan);
}

.benefit-text {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.legal-details {
  margin: 0 0 18px;
  border-top: 1px solid var(--subtle-border);
  padding-top: 14px;
}

.legal-details summary {
  min-height: 32px;
  display: flex;
  align-items: center;
  color: var(--cyan);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-copy {
  padding-top: 10px;
  font-size: 13px;
  line-height: 19px;
}

.legal-copy p {
  margin: 0 0 10px;
}

.legal-copy ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal-copy li {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 19px;
}

.confirm-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 18px 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 22px;
}

.confirm-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--violet);
}

.scheduled-date {
  display: block;
  margin: 4px 0 18px;
  color: var(--ink-1);
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  line-height: 24px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.step-actions {
  display: grid;
  gap: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.support-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px;
}

.language-toggle button {
  min-width: 38px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  font-family: Geist, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.language-toggle button[aria-pressed="true"] {
  color: var(--ink-1);
  background: rgba(56, 189, 248, 0.22);
}

.copyright {
  white-space: nowrap;
}

.placeholder-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.placeholder-card .brand-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.placeholder-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--violet);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--petrol-navy);
  background: var(--violet);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.not-found {
  text-align: center;
}

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

@media (max-width: 360px) {
  .step-panel h1,
  .step-panel h2,
  .placeholder-card h1 {
    font-size: 27px;
    line-height: 33px;
  }

  .site-footer {
    gap: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
