/* ============================================================
   PIP — Homepage Stylesheet
   index.html
   ============================================================ */

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

    :root {
      --navy: #002B5B;
      --navy-light: #0A4AA3;
      --ice: #56C7F2;
      --lime: #B8FF2C;
      --bg: #F7FAFD;
      --surface: #FFFFFF;
      --border: #DDE6F2;
      --text: #1B2430;
      --muted: #5B6678;
    }

    body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
    a { text-decoration: none; color: inherit; }

    /* ── TOP BAR ── */
    .top-bar {
      background: var(--navy);
      padding: 14px 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .top-bar img { height: 32px; width: auto; }
    .top-bar-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 20px;
      border-radius: 10px;
      background: rgba(255,255,255,.1);
      border: 1px solid rgba(255,255,255,.2);
      color: rgba(255,255,255,.8);
      font-size: .8rem;
      font-weight: 600;
      transition: background .2s, color .2s;
    }
    .top-bar-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
    .top-bar-btn svg { width: 14px; height: 14px; }

    /* ── HERO ── */
    .hero {
      background: linear-gradient(160deg, #001A3A 0%, #002B5B 60%, #003d7a 100%);
      padding: 80px 48px 72px;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url('../img/watermark-PIP-3.png');
      background-repeat: repeat;
      background-size: auto;
      opacity: .03;
      pointer-events: none;
    }
    .hero-inner {
      max-width: 900px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 48px;
      align-items: center;
    }
    .hero-label {
      font-size: .7rem;
      font-weight: 700;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--ice);
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
    }
    .hero-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); }
    .hero h1 {
      font-family: 'Montserrat', sans-serif;
      font-size: clamp(1.8rem, 3.5vw, 2.8rem);
      font-weight: 800;
      color: #fff;
      line-height: 1.18;
      letter-spacing: -.02em;
      margin-bottom: 16px;
    }
    .hero p {
      font-size: 1rem;
      color: rgba(255,255,255,.6);
      line-height: 1.75;
      max-width: 520px;
    }
    .hero-cta-card {
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 18px;
      padding: 32px 28px;
      text-align: center;
      min-width: 220px;
    }
    .hero-cta-card p {
      font-size: .8rem;
      color: rgba(255,255,255,.45);
      line-height: 1.6;
      margin-bottom: 20px;
    }
    .btn-start {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 14px 24px;
      border-radius: 12px;
      background: var(--ice);
      color: var(--navy);
      font-family: 'Montserrat', sans-serif;
      font-size: .88rem;
      font-weight: 800;
      transition: background .2s;
    }
    .btn-start:hover { background: #7AD4F5; }
    .btn-start svg { width: 15px; height: 15px; }
    .hero-meta {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 20px;
    }
    .hero-meta-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: .75rem;
      color: rgba(255,255,255,.4);
    }
    .hero-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--ice); }

    /* ── SECTION COMMONS ── */
    .section { padding: 72px 48px; }
    .section-inner { max-width: 900px; margin: 0 auto; }
    .section-label {
      font-size: .68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .14em;
      color: var(--navy-light);
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }
    .section-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); }
    .section-heading {
      font-family: 'Montserrat', sans-serif;
      font-size: clamp(1.4rem, 2.5vw, 2rem);
      font-weight: 800;
      color: var(--navy);
      letter-spacing: -.02em;
      margin-bottom: 12px;
    }
    .section-body { font-size: .95rem; color: var(--muted); line-height: 1.8; max-width: 640px; }

    /* ── WHAT'S COVERED ── */
    .covered { background: var(--surface); }
    .covered-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 40px;
    }
    .covered-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 24px 20px;
    }
    .covered-num {
      font-family: 'Montserrat', sans-serif;
      font-size: .72rem;
      font-weight: 800;
      color: var(--ice);
      letter-spacing: .08em;
      margin-bottom: 10px;
    }
    .covered-card h3 {
      font-family: 'Montserrat', sans-serif;
      font-size: .9rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 8px;
    }
    .covered-card p { font-size: .82rem; color: var(--muted); line-height: 1.6; }

    /* ── WHAT TO HAVE READY ── */
    .ready { background: var(--bg); }
    .ready-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 36px;
    }
    .ready-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 16px 18px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
    }
    .ready-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(0,43,91,.06);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .ready-icon svg { width: 16px; height: 16px; color: var(--navy); }
    .ready-item h4 { font-size: .87rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
    .ready-item p { font-size: .78rem; color: var(--muted); line-height: 1.5; }

    /* ── WHAT HAPPENS NEXT ── */
    .next-section { background: var(--surface); }
    .next-layout {
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 56px;
      align-items: start;
      margin-top: 0;
    }
    .next-image-wrap {
      position: sticky;
      top: 88px;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 24px 64px rgba(0,0,0,.12);
      border: 1px solid var(--border);
    }
    .next-image-wrap img {
      width: 100%;
      aspect-ratio: 3/4;
      object-fit: cover;
      object-position: center;
      display: block;
    }
    .next-steps {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin-top: 36px;
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
    }
    .next-step {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      padding: 24px 28px;
      border-bottom: 1px solid var(--border);
    }
    .next-step:last-child { border-bottom: none; }
    .next-step-num {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--navy);
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-size: .85rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .next-step:nth-child(2) .next-step-num { background: var(--navy-light); }
    .next-step:nth-child(3) .next-step-num { background: var(--ice); color: var(--navy); }
    .next-step:nth-child(4) .next-step-num { background: var(--lime); color: var(--navy); }
    .next-step h3 { font-family: 'Montserrat', sans-serif; font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
    .next-step p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

    /* ── BOTTOM CTA ── */
    .bottom-cta {
      background: linear-gradient(160deg, #001A3A 0%, #002B5B 100%);
      padding: 72px 48px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .bottom-cta::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(86,199,242,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(86,199,242,.04) 1px, transparent 1px);
      background-size: 48px 48px;
      pointer-events: none;
    }
    .bottom-cta-inner { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
    .bottom-cta h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 12px; }
    .bottom-cta p { font-size: .95rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 32px; }
    .btn-cta-large {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 40px;
      border-radius: 14px;
      background: var(--ice);
      color: var(--navy);
      font-family: 'Montserrat', sans-serif;
      font-size: .95rem;
      font-weight: 800;
      transition: background .2s, transform .15s;
    }
    .btn-cta-large:hover { background: #7AD4F5; transform: translateY(-2px); }
    .btn-cta-large svg { width: 16px; height: 16px; }

    /* ── FOOTER ── */
    footer { background: var(--navy); padding: 24px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    footer img { height: 28px; width: auto; }
    footer p { font-size: .75rem; color: rgba(255,255,255,.3); }
    footer a { font-size: .75rem; color: rgba(255,255,255,.35); transition: color .2s; }
    footer a:hover { color: rgba(255,255,255,.7); }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      /* Gutters */
      .top-bar, .section, .hero, .bottom-cta, footer { padding-left: 20px; padding-right: 20px; }

      /* Section vertical padding */
      .section { padding-top: 48px; padding-bottom: 48px; }
      .hero    { padding-top: 52px; padding-bottom: 52px; }
      .bottom-cta { padding-top: 52px; padding-bottom: 52px; }

      /* Hero — stack text above CTA card */
      .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
      }
      .hero-cta-card { text-align: center; }
      .hero-meta { align-items: center; }

      /* Covered grid — 2 col on tablet */
      .covered-grid { grid-template-columns: 1fr 1fr; }

      /* Ready grid — single column */
      .ready-grid { grid-template-columns: 1fr; }

      /* Next steps — stack image below on mobile */
      .next-layout { grid-template-columns: 1fr; gap: 32px; }
      .next-image-wrap { position: static; }
      .next-image-wrap img { aspect-ratio: 4/3; }
      .next-step { padding: 20px 20px; gap: 14px; }

      /* Bottom CTA button — full width */
      .btn-cta-large { display: flex; justify-content: center; width: 100%; }

      /* Footer — stack */
      footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    }

    @media (max-width: 480px) {
      /* Covered grid — single column on small phones */
      .covered-grid { grid-template-columns: 1fr; }

      /* Tighter section vertical padding */
      .section { padding-top: 40px; padding-bottom: 40px; }

      /* Next step number — slightly smaller */
      .next-step-num { width: 30px; height: 30px; font-size: .78rem; flex-shrink: 0; }

      /* Prevent covered cards from cramping */
      .covered-card { padding: 20px 16px; }

      /* Start button full-width */
      .btn-start { width: 100%; }

      /* ios tap target size */
      .top-bar-btn { min-height: 44px; }
    }