/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
    :root {
      --bg: #f7f8fb;
      --surface: #ffffff;
      --text: #111827;
      --muted: #6b7280;
      --green: #10b981;
      --green-dark: #059669;
      --border: rgba(15, 23, 42, 0.08);
      --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
    }
    * {
      box-sizing: border-box;
    }
    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--bg);
      color: var(--text);
      scroll-behavior: smooth;
    }
    a {
      color: inherit;
      text-decoration: none;
    }
    .page {
      overflow-x: hidden;
    }
    
    .site-header {
        position: sticky;
        top: 0;
        z-index: 10;

        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;

        padding: 12px 40px;
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(15,23,42,0.08);
        -webkit-backdrop-filter: blur(18px);
    }

    .brand {
        justify-self: start;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 700;
        font-size: 1rem;
    }
    .brand-icon {
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: var(--green);
      display: grid;
      place-items: center;
      color: white;
      font-weight: 700;
    }
    .nav-links {
        justify-self: center;
        display: flex;
        gap: 32px;
        font-size: 0.95rem;
        color: var(--muted);
    }
    .nav-links a:hover {
      color: var(--text);
    }
    .cta-header {
        justify-self: end;
        display: flex;
    }
    .btn-primary {
      border: none;
      outline: none;
      cursor: pointer;
      border-radius: 999px;
      padding: 10px 20px;
      color: white;
      background: var(--green);
      font-weight: 600;
      transition: transform 0.2s ease, background 0.2s ease;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      background: var(--green-dark);
    }
    .hero {
      position: relative;
      padding: 80px 24px 48px;
      min-height: calc(100vh - 96px);
      display: grid;
      gap: 24px;
      align-items: center;
      justify-items: center;
      text-align: center;
      background: radial-gradient(circle at top left, rgba(16,185,129,0.16), transparent 28%),
                  radial-gradient(circle at right, rgba(59,130,246,0.06), transparent 24%);
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.8), transparent 25%),
                        radial-gradient(circle at 80% 60%, rgba(15,23,42,0.05), transparent 25%);
      pointer-events: none;
    }
    .hero-content {
      position: relative;
      max-width: 680px;
      z-index: 1;
      margin: 0 auto;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
      padding: 10px 16px;
      border-radius: 999px;
      background: rgba(16,185,129,0.09);
      color: var(--green);
      font-size: 0.82rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-weight: 700;
    }
    .hero h1 {
      font-size: clamp(2.2rem, 4vw, 3rem);
      line-height: 1.04;
      margin: 0;
      letter-spacing: -0.035em;
    }
    .hero h1 em {
      font-style: normal;
      color: var(--green);
    }
    .hero p {
      max-width: 520px;
      margin: 16px auto 24px;
      color: var(--muted);
      font-size: 0.98rem;
      line-height: 1.7;
    }
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }
    .btn-secondary {
      border: 1px solid rgba(15,23,42,0.12);
      background: white;
      color: var(--text);
      border-radius: 999px;
      padding: 14px 24px;
      cursor: pointer;
      transition: transform 0.2s ease, border-color 0.2s ease;
    }
    .btn-secondary:hover {
      transform: translateY(-2px);
      border-color: rgba(15,23,42,0.2);
    }
    .hero-features {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 28px;
      position: relative;
      z-index: 1;
    }
    .feature-pill {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 18px 20px;
      background: rgba(255,255,255,0.8);
      border: 1px solid rgba(15,23,42,0.08);
      border-radius: 16px;
      box-shadow: 0 12px 40px rgba(15,23,42,0.06);
    }
    .feature-pill span {
      width: 34px;
      height: 34px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: rgba(16,185,129,0.12);
      color: var(--green);
      font-weight: 700;
    }
    .hero-background {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image: radial-gradient(circle at 70% 10%, rgba(59,130,246,0.1), transparent 22%),
                        radial-gradient(circle at 40% 90%, rgba(16,185,129,0.08), transparent 20%);
    }
    .how-it-works {
      padding: 64px 40px;
      display: grid;
      gap: 32px;
      background: white;
    }
    .how-it-works-header {
      max-width: 640px;
      margin: 0 auto;
      text-align: center;
    }
    .how-it-works-header h2 {
      margin: 0 0 16px;
      font-size: 0.95rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--green);
    }
    .how-it-works-header h3 {
      margin: 0;
      font-size: clamp(2rem, 3vw, 3rem);
      line-height: 1.05;
    }
    .how-it-works-header p {
      margin-top: 18px;
      color: var(--muted);
      line-height: 1.8;
    }
    .how-grid {
      display: grid;
      grid-template-columns: minmax(320px, 420px) 1fr;
      gap: 52px;
      align-items: center;
      max-width: 1140px;
      margin: 0 auto;
    }
    .phone-screen {
      max-width: 320px;   /* or whatever feels right */
      margin: 0 auto;
    }

    .phone-screen img {
      width: 100%;
      height: auto;
      border-radius: 26px;
    }
    .phone-placeholder {
      color: rgba(255,255,255,0.72);
      text-align: center;
      font-size: 0.95rem;
      line-height: 1.6;
      max-width: 240px;
      padding: 18px;
    }
    .steps-list {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
      min-height: 420px;
    }
    .step-card {
      display: grid;
      grid-template-columns: 48px 1fr;
      gap: 18px;
      align-items: start;
    }
    .step-badge {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      background: rgba(16,185,129,0.15);
      color: var(--green);
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 1rem;
    }
    .step-heading {
      margin: 0 0 6px;
      font-size: 1.05rem;
      font-weight: 700;
    }
    .step-description {
      margin: 0;
      color: var(--muted);
      line-height: 1.75;
    }
    .contact-cta {
      padding: 70px 40px;
      background: #f8fafc;
      display: grid;
      gap: 28px;
      justify-items: center;
      text-align: center;
    }
    .flash-messages {
      width: 100%;
      max-width: 720px;
    }
    .flash {
      border-radius: 18px;
      padding: 18px 22px;
      font-weight: 600;
      border: 1px solid rgba(16,185,129,0.2);
      background: rgba(16,185,129,0.1);
      color: rgba(15,23,42,0.95);
    }
    .flash-alert {
      border-color: rgba(239,68,68,0.25);
      background: rgba(254,226,226,0.9);
      color: #991b1b;
    }
    .contact-form {
      width: 100%;
      max-width: 720px;
      display: grid;
      gap: 18px;
      text-align: left;
    }
    .form-group {
      display: grid;
      gap: 10px;
    }
    .form-group label {
      font-weight: 700;
      color: var(--text);
      font-size: 0.95rem;
    }
    .form-control {
      width: 100%;
      border: 1px solid rgba(15,23,42,0.12);
      border-radius: 18px;
      padding: 16px 18px;
      font-size: 1rem;
      color: var(--text);
      background: white;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .form-control:focus {
      outline: none;
      border-color: var(--green);
      box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
    }
    .form-actions {
      display: flex;
      justify-content: flex-end;
    }
    .contact-cta h2 {
      margin: 0 0 16px;
      font-size: clamp(2rem, 3vw, 3rem);
    }
    .contact-cta p {
      margin: 0;
      max-width: 680px;
      color: var(--muted);
      line-height: 1.8;
    }
    .small-features {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
      margin-top: 40px;
    }
    .small-feature {
      background: white;
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 18px 20px;
      min-width: 220px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }
    .small-feature-icon {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: rgba(16,185,129,0.14);
      display: grid;
      place-items: center;
      color: var(--green);
      font-weight: 700;
    }
    .speiry-heading {
      font-size: clamp(4.5rem, 7vw, 5.5rem);
      font-weight: 800;
      margin: 0 0 24px;
      color: var(--green);
      letter-spacing: -0.02em;
    }
    .site-footer {
      border-top: 1px solid rgba(15,23,42,0.08);
      background: white;
      padding: 24px 40px;
      margin-top: 60px;
    }

    .footer-content {
      max-width: 1140px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.9rem;
      color: var(--muted);
    }

    .footer-links {
      display: flex;
      gap: 24px;
    }

    .footer-links a:hover {
      color: var(--text);
    }

    .legal-wrapper {
    padding: 80px 24px;
    background: radial-gradient(circle at top left, rgba(16,185,129,0.12), transparent 30%);
    
    display: flex;
    flex-direction: column;
    align-items: center; /* 👈 this centers everything */
    }

    .legal-card {
    width: 100%;
    max-width: 820px;  /* 👈 controls readable width */
    margin: 0 auto;    /* 👈 backup centering */
    }

    .legal-hero {
      text-align: center;
      margin-bottom: 40px;
    }

    .legal-hero h1 {
      font-size: clamp(2.5rem, 4vw, 3.5rem);
      margin: 0;
      letter-spacing: -0.03em;
    }

    .legal-updated {
      margin-top: 12px;
      color: var(--muted);
    }

    .legal-card p {
    margin: 0;
    line-height: 1.75;
    color: #374151;
    }

    .legal-card > p + p {
    margin-top: 16px;
    }

    /* Section spacing */
    .legal-section {
    margin-top: 32px;
    }

    /* Headings */
    .legal-section h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    }

    .legal-section h3 {
    margin: 12px 0 6px;
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 600;
    }

    /* Lists */
    .legal-section ul {
    margin: 12px 0 0;
    padding-left: 18px;
    }

    .legal-section li {
    margin-bottom: 6px;
    color: #4b5563;
    }

    /* Remove ugly default HR spacing */
    .legal-card hr {
    display: none;
    }
    @media (max-width: 1024px) {
      .site-header, .cta-header, .hero, .how-it-works, .contact-cta {
        padding-left: 24px;
        padding-right: 24px;
      }
    }
    @media (max-width: 820px) {
      .site-header {
        flex-wrap: wrap;
        gap: 16px;
      }
      .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
      }
      .how-grid {
        grid-template-columns: 1fr;
      }
      .phone-screen {
        max-width: 100%;
        margin: 0 auto;
      }
      .steps-list {
        min-height: auto;
      }
      .hero-features {
        grid-template-columns: 1fr;
      }
    }
    .btn-primary:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        background: #94a3b8 !important; /* overrides green */
        box-shadow: none;
    }   
    .sms-opt-in-section {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .opt-in-header {
        text-align: center;
        max-width: 520px;
        margin: 0 auto 24px;
    }
    