/* Time Capsule Success - Mobile-first styles */

:root {
  --bg-dark: #0f0f10;
  --text: #ffffff;
  --muted: #d9d9d9;
  --accent: #ffa800; /* TripleTen orange */
  --accent-hover: #ffb300;
  --card-radius: 16px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
}

.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.success-hero {
  position: relative;
  min-height: 100vh;
  background-position: center;
  background-size: cover;
  padding: 16px 10px 24px; /* match mobile spacing seen in mock */
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,12,0.96) 0%,
    rgba(12,12,14,0.92) 20%,
    rgba(18,18,20,0.86) 45%,
    rgba(22,22,24,0.80) 70%,
    rgba(26,26,26,0.65) 100%
  );
}

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  padding: 28px 18px 22px;
  text-align: center;
}

.title {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  margin: 6px 0 14px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 10px;
}

.description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
}

.cta {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  margin: 6px auto 0;
  background: var(--accent);
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(255,168,0,0.35);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255,168,0,0.45);
}

/* Small devices tweaks */
@media (max-width: 360px) {
  .card { padding: 24px 14px 18px; }
  .title { font-size: 26px; }
  .cta { font-size: 15px; }
}

/* Tablet/Desktop enhancements */
@media (min-width: 768px) {
  .success-hero {
    min-height: 80vh;
    padding: 40px 20px;
  }
  .card {
    max-width: 520px;
    padding: 36px 28px 28px;
    border-radius: 18px;
  }
  .title { font-size: 40px; }
  .subtitle { font-size: 16px; }
  .description { font-size: 16px; }
  .cta { font-size: 18px; padding: 16px 26px; max-width: 340px; border-radius: 14px; }
}

/* Desktop wide banner layout to match mock */
@media (min-width: 1024px) {
  .success-page {
    padding: 12px 12px 24px;
  }
  .success-hero {
    min-height: 100vh; /* fill full screen height on desktop */
    padding: 60px 40px;
    margin: 0 10px; /* rounded card look */
    border-radius: 16px;
    overflow: hidden; /* clip overlay/background to rounded corners */
    background-position: center;
  }
  .success-hero .overlay {
    /* slightly lighter to let background show through like mock */
    background: linear-gradient(
      to bottom,
      rgba(10,10,12,0.80) 0%,
      rgba(12,12,14,0.78) 20%,
      rgba(18,18,20,0.70) 45%,
      rgba(22,22,24,0.55) 70%,
      rgba(26,26,26,0.45) 100%
    );
  }
  .card {
    max-width: 1000px; /* wide centered block */
    background: transparent; /* no dark card, text sits over overlay */
    box-shadow: none;
    backdrop-filter: none;
    padding: 0 24px; /* inner spacing */
  }
  .title {
    font-size: clamp(48px, 6vw, 72px);
    line-height: 1.08;
    margin: 0 0 18px;
  }
  .subtitle,
  .description {
    color: #ededed;
    font-size: clamp(16px, 1.5vw, 18px);
    margin-bottom: 10px;
  }
  .description { margin-top: 6px; }
  .cta {
    max-width: 340px;
    font-size: 18px;
    padding: 16px 26px;
    border-radius: 14px;
  }
}

.title {
    /* Sans/Header 72/Display */
    font-family: Gramatika;
    font-size: var(--size-header-72, 72px);
    font-style: normal;
    font-weight: 700;
    line-height: var(--line-height-header-72, 100px);
  }

.subtitle, .description {
    /* Sans/Header 20/Medium */
    font-family: var(--font-default, Suisse Intl);
    font-size: var(--size-header-20, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: var(--line-height-header-20, 24px);
    margin-bottom: 25px;
    /* 120% */
}