/* Application confirmation page — styles */
:root{
    --navy:#0F2745;
    --navy-soft:#3D5573;
    --ink-muted:#64748B;
    --line:#E3E8EF;
    --wash:#F6F8FA;
    --green:#1E874B;
    --green-soft:#E8F5ED;
    --green-line:#BFE3CE;
    --radius:14px;
    --font:"IBM Plex Sans","IBMPlexSans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{
    background:#fff;
    color:var(--navy);
    font-family:var(--font);
    font-size:17px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    display:flex;
    flex-direction:column;
    min-height:100vh;
  }
  a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
  a:hover{color:#166238}

  /* ---------- Header ---------- */
  .site-header{
    border-bottom:1px solid var(--line);
    padding:18px 20px;
    display:flex;
    justify-content:center;
  }
  .brand{
    font-weight:600;
    font-size:15px;
    letter-spacing:.02em;
    color:var(--navy);
    text-decoration:none;
  }

  /* ---------- Main ---------- */
  main{
    flex:1;
    display:flex;
    justify-content:center;
    padding:56px 20px 64px;
  }
  .card{margin:auto 0}
  .card{
    width:100%;
    max-width:620px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:0 1px 2px rgba(15,39,69,.04),0 12px 32px -12px rgba(15,39,69,.12);
    padding:44px 36px 40px;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:22px;
  }

  /* ---------- Success mark (loading -> success) ---------- */
  .mark{width:76px;height:76px;position:relative;flex:none}
  .mark svg{width:100%;height:100%;display:block;overflow:visible}
  .mark .track{fill:none;stroke:var(--line);stroke-width:4;animation:trackOut .3s ease .7s forwards}
  .mark .spin{
    fill:none;stroke:var(--green);stroke-width:4;stroke-linecap:round;
    stroke-dasharray:44 176;
    transform-origin:50% 50%;
    animation:spin .9s linear infinite,spinOut .2s ease .7s forwards;
  }
  .mark .disc{fill:var(--green-soft);transform:scale(.6);transform-origin:50% 50%;opacity:0;animation:discIn .45s cubic-bezier(.2,.9,.3,1.2) .7s forwards}
  .mark .ring{fill:none;stroke:var(--green);stroke-width:4;stroke-dasharray:220;stroke-dashoffset:220;animation:draw .5s ease .75s forwards}
  .mark .tick{
    fill:none;stroke:var(--green);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;
    stroke-dasharray:40;stroke-dashoffset:40;
    animation:draw .4s ease 1.05s forwards;
  }
  @keyframes spin{to{transform:rotate(360deg)}}
  @keyframes spinOut{to{opacity:0}}
  @keyframes trackOut{to{opacity:0}}
  @keyframes discIn{to{opacity:1;transform:scale(1)}}
  @keyframes draw{to{stroke-dashoffset:0}}

  /* ---------- Reveal ---------- */
  .reveal{opacity:0;transform:translateY(8px);animation:revealIn .45s ease forwards}
  @keyframes revealIn{to{opacity:1;transform:none}}
  .reveal:nth-of-type(1){animation-delay:1.00s}
  .reveal:nth-of-type(2){animation-delay:1.08s}
  .reveal:nth-of-type(3){animation-delay:1.16s}
  .reveal:nth-of-type(4){animation-delay:1.24s}
  .reveal:nth-of-type(5){animation-delay:1.32s}
  @media (prefers-reduced-motion:reduce){
    .reveal{opacity:1;transform:none;animation:none}
    .mark .spin,.mark .track{opacity:0;animation:none}
    .mark .disc{opacity:1;transform:none;animation:none}
    .mark .ring,.mark .tick{stroke-dashoffset:0;animation:none}
  }

  /* ---------- Type ---------- */
  .status{
    display:inline-flex;align-items:center;gap:8px;
    background:var(--green-soft);
    border:1px solid var(--green-line);
    color:#15653A;
    font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
    padding:6px 12px;border-radius:999px;
    white-space:nowrap;
    width:fit-content;
  }
  h1{
    margin:0;
    font-size:clamp(26px,6vw,34px);
    line-height:1.22;
    letter-spacing:-.015em;
    font-weight:600;
    text-wrap:pretty;
  }
  .lede{
    margin:0;
    max-width:52ch;
    color:var(--navy-soft);
    font-size:17px;
    text-wrap:pretty;
  }
  .notice{
    width:100%;
    background:var(--wash);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:18px 20px;
    text-align:left;
    display:flex;
    gap:12px;
    align-items:flex-start;
    color:var(--navy);
    font-size:16px;
    font-weight:500;
  }
  .notice svg{flex:none;margin-top:2px;color:var(--green)}
  .final{
    margin:0;
    color:var(--ink-muted);
    font-size:15px;
  }
  .btn{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:52px;
    padding:14px 30px;
    background:var(--navy);
    color:#fff;
    font-family:var(--font);
    font-size:17px;font-weight:600;
    border:none;border-radius:10px;
    text-decoration:none;
    cursor:pointer;
    transition:background .18s ease,transform .18s ease;
  }
  .btn:hover{background:#183759;color:#fff}
  .btn:active{transform:translateY(1px)}
  .btn:focus-visible,a:focus-visible{outline:3px solid #9CC6FF;outline-offset:2px}
  .ref{
    margin:0;
    font-size:14px;
    color:var(--ink-muted);
  }
  .ref strong{color:var(--navy);font-weight:600}

  .video{
    width:100%;
    aspect-ratio:16/9;
    background:#0F2745;
    border:1px solid var(--line);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:0 8px 24px -12px rgba(15,39,69,.28);
  }
  .video video,.video iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
    object-fit:cover;
  }

  /* ---------- Footer ---------- */
  .site-footer{
    border-top:1px solid var(--line);
    padding:28px 20px 36px;
    text-align:center;
    color:var(--ink-muted);
    font-size:14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
  }
  .site-footer .company{color:var(--navy);font-weight:600}
  .footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 20px;padding:0;margin:0;list-style:none}
  .footer-links a{color:var(--navy-soft);text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
  .footer-links a:hover{color:var(--navy);text-decoration:underline}

  @media (max-width:520px){
    body{font-size:16px}
    main{padding:24px 16px 40px}
    .card{padding:30px 20px 28px;border-radius:16px;gap:16px}
    .mark{width:64px;height:64px}
    .notice{padding:16px 16px}
    .lede,.notice{font-size:16px}
    .site-footer{padding:22px 16px 28px}
  }
  @media (max-width:360px){
    .card{padding:26px 16px 24px}
    h1{font-size:24px}
  }
