/* Basic Reset / Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body Setup */
  body {
    font-family: 'Nunito', sans-serif;
    background-color: #121212; /* Dark Background */
    color: #ffffff;           /* Light Text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
  }
  
  /* Hero Section */
  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem;
    width: 100%;
  }
  
  .app-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  
  .app-name {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
  }
  
  .tagline {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
  }
  
  /* CTA Button (using <a> styled like a button) */
  .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-family: inherit;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    background-color: #00c4b4; /* Accent Color */
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  }
  
  .cta-button:hover {
    background-color: #00a89b;
    transform: scale(1.05);
  }

  .cta-button.secondary {
    background-color: transparent;
    border: 1px solid #2f2f2f;
    color: #ffffff;
  }

  .cta-button.secondary:hover {
    background-color: #1f1f1f;
    transform: scale(1.02);
  }
  
  /* Features Section */
  .features-section {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
  }
  
  .features-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .features-list li {
    font-size: 1rem;
    font-weight: 400;
    background: #1e1e1e;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 16px; /* Rounded corners */
  }

  .feature-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }

  .subscription-page {
    width: 100%;
  }

  .portal-section {
    width: 100%;
    max-width: 960px;
    padding: 0 1rem 4rem;
  }

  .portal-shell {
    display: grid;
    gap: 1.5rem;
  }

  .portal-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }

  .portal-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
  }

  .portal-card p {
    color: #cfd3d6;
    line-height: 1.7;
  }

  .portal-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(0, 196, 180, 0.12);
    color: #80f0e6;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
  }

  .apple-sign-in-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .apple-sign-in-button:hover {
    background: #f5f5f7;
    transform: translateY(-1px);
  }

  .apple-sign-in-button__icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    flex: 0 0 auto;
  }

  .apple-sign-in-button__label {
    white-space: nowrap;
  }

  .portal-message {
    border-radius: 16px;
    padding: 1rem 1.25rem;
    border: 1px solid #2f2f2f;
    line-height: 1.6;
  }

  .portal-message.info {
    background: #1e2627;
    color: #d8fbf7;
  }

  .portal-message.error {
    background: #30171d;
    border-color: #6f2535;
    color: #ffc9d5;
  }

  .portal-message.success {
    background: #152820;
    border-color: #1e6e59;
    color: #c9ffe8;
  }

  .portal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .portal-meta-item {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 1rem;
  }

  .portal-meta-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #8f9499;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .portal-meta-value {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #ffffff;
    overflow-wrap: anywhere;
  }

  .portal-qr-block {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .portal-qr-image {
    width: min(320px, 100%);
    padding: 0.75rem;
    border-radius: 18px;
    background: #ffffff;
  }

  .portal-payload {
    padding: 1rem;
    border-radius: 16px;
    background: #151515;
    border: 1px solid #2a2a2a;
    font-family: "SFMono-Regular", "Menlo", monospace;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }

  .portal-form {
    display: inline-flex;
  }

  @media (max-width: 640px) {
    .portal-card {
      padding: 1.25rem;
    }

    .portal-actions,
    .portal-form {
      width: 100%;
    }

    .portal-actions .cta-button,
    .portal-actions .apple-sign-in-button,
    .portal-form .cta-button {
      width: 100%;
    }
  }
  
  /* Footer */
  .footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #777;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
  }

  .footer-link {
    color: #00c4b4;
    text-decoration: none;
  }

  .footer-link:hover {
    text-decoration: underline;
  }
  
