:root {
  --ink: #08130f;
  --paper: #f1f0e8;
  --acid: #b9f227;
  --line: rgba(8, 19, 15, .16);
  --muted: #69716b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--acid); color: var(--ink); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, sans-serif;
  min-width: 320px;
}
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 5; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.nav { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.account-nav { display: flex; align-items: center; gap: 23px; }
.account-nav a { color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.account-button { padding: 12px 16px; background: var(--ink); color: var(--paper) !important; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.05em; }
.brand > span:last-child > span { font-weight: 400; }
.brand-mark { width: 28px; height: 28px; position: relative; display: block; transform: rotate(-9deg); }
.brand-mark i { position: absolute; width: 11px; height: 25px; border: 3px solid var(--ink); border-radius: 10px; transform: rotate(45deg); }
.brand-mark i:first-child { left: 3px; top: 2px; }
.brand-mark i:last-child { right: 3px; bottom: 2px; }
.step-label, footer > span { font: 500 11px/1 DM Mono, monospace; letter-spacing: .13em; }
.hero { padding: 94px 0 78px; position: relative; }
.hero::after { content: "IOS"; position: absolute; right: 0; top: 50px; color: transparent; -webkit-text-stroke: 1px rgba(8,19,15,.08); font-size: clamp(150px, 24vw, 320px); font-weight: 800; line-height: 1; z-index: -1; }
h1 { font-size: clamp(52px, 7.7vw, 104px); line-height: .94; letter-spacing: -.07em; max-width: 950px; margin: 0 0 36px; font-weight: 700; }
h1 em { font-family: Georgia, serif; font-weight: 400; }
.hero > p { max-width: 580px; color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0 0 38px; }
.signer { background: var(--ink); color: var(--paper); padding: 46px; border-radius: 2px; box-shadow: 16px 16px 0 var(--acid); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.15); }
.step-label { color: var(--acid); }
h2 { font-size: 34px; letter-spacing: -.045em; margin: 10px 0 0; }
.counter strong { font-size: 35px; color: var(--acid); }
.counter span { font: 11px DM Mono, monospace; color: #8e9691; margin-left: 5px; }
.file-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.dropzone { min-height: 245px; border: 1px dashed rgba(255,255,255,.28); padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: .2s ease; }
.dropzone:hover, .dropzone.dragging { background: rgba(185,242,39,.05); border-color: var(--acid); }
.dropzone:focus-within { outline: 2px solid var(--acid); outline-offset: 3px; }
.dropzone.selected { border-style: solid; border-color: var(--acid); background: rgba(185,242,39,.07); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-number { position: absolute; top: 17px; left: 17px; font: 10px DM Mono, monospace; color: #7f8983; }
.file-icon { width: 54px; height: 63px; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; font: 10px DM Mono, monospace; color: var(--acid); margin-bottom: 18px; clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%); }
.dropzone.selected .file-icon { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.dropzone strong { font-size: 15px; }
.dropzone small { margin: 6px 0 18px; color: #87908b; }
.file-name { font: 9px DM Mono, monospace; letter-spacing: .1em; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 4px; max-width: 90%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.selected .file-name { color: var(--acid); border-color: var(--acid); }
.password-field { margin-top: 12px; border: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: 160px 1fr auto; align-items: center; padding: 0 20px; }
.password-field > span { font: 10px DM Mono, monospace; letter-spacing: .12em; color: #929994; }
.password-field input { height: 64px; border: 0; outline: 0; background: none; color: white; font: 15px Manrope, sans-serif; }
.password-field:focus-within { border-color: var(--acid); }
.password-field button { background: none; border: 0; color: var(--acid); font: 9px DM Mono, monospace; cursor: pointer; }
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.form-footer p { font-size: 12px; color: #949c97; }
.lock { color: var(--acid); border: 1px solid var(--acid); border-radius: 50%; padding: 0 3px; margin-right: 7px; }
.sign-button, .install-button { height: 62px; min-width: 278px; padding: 0 12px 0 27px; border: 0; background: var(--acid); color: var(--ink); font: 700 12px Manrope, sans-serif; letter-spacing: .07em; display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-decoration: none; }
.sign-button b, .install-button b { font-size: 23px; padding: 4px 9px; }
.button-progress { display: none; }
.sign-button.loading .button-label { display: none; }
.sign-button.loading .button-progress { display: flex; align-items: center; gap: 10px; }
.button-progress i { width: 13px; height: 13px; border: 2px solid rgba(8,19,15,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sign-button:disabled { cursor: wait; opacity: .8; }
.sign-button:hover:not(:disabled), .install-button:hover { background: #c9ff3b; }
.sign-button:focus-visible, .install-button:focus-visible, .again:focus-visible, .password-field button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.error { margin-top: 20px; padding: 14px 18px; border: 1px solid #ff756c; color: #ffaaa4; font-size: 13px; }
.result { text-align: center; padding: 70px 20px 30px; }
.result-check { margin: 0 auto 24px; width: 70px; height: 70px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; font-size: 30px; }
.result h2 { font-size: 44px; }
.app-meta { margin: 35px auto; display: flex; justify-content: center; gap: 1px; max-width: 700px; }
.app-meta span { background: rgba(255,255,255,.06); padding: 18px 30px; flex: 1; min-width: 0; }
.app-meta small { display: block; font: 9px DM Mono, monospace; color: #818b85; margin-bottom: 7px; }
.app-meta strong { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-button { max-width: 350px; margin: auto; }
.direct-link { color: #abb3ae; font-size: 12px; display: inline-block; margin-top: 18px; }
.expiry { color: #7f8983; font: 10px DM Mono, monospace; margin-top: 28px; }
.again { border: 0; border-bottom: 1px solid #6f7772; color: white; background: none; font: 9px DM Mono, monospace; padding: 0 0 5px; cursor: pointer; }
.dark-label { color: #65705f; }
.section-heading h2 { font-size: clamp(34px, 4.2vw, 55px); line-height: 1.04; max-width: 530px; }
.how { padding: 145px 0 130px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 42px; }
.how article { border-top: 1px solid var(--line); padding-top: 22px; position: relative; }
.how article > b { font: 12px DM Mono, monospace; background: var(--acid); padding: 5px 7px; position: absolute; top: -12px; right: 0; }
.how h3 { font-size: 23px; margin: 8px 0 12px; }
.how p { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 300px; }
footer { min-height: 120px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
footer p { font-size: 11px; color: var(--muted); }
footer > span { color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { height: 72px; }
  .account-nav { gap: 12px; }
  .account-nav a { font-size: 10px; }
  .account-button { padding: 10px; }
  .hero { padding: 65px 0 55px; }
  h1 { margin-top: 25px; font-size: clamp(48px, 15vw, 70px); }
  .hero > p { font-size: 15px; }
  .signer { padding: 24px 18px; box-shadow: 8px 8px 0 var(--acid); }
  .panel-heading h2 { font-size: 27px; }
  .file-grid { grid-template-columns: 1fr; }
  .dropzone { min-height: 175px; }
  .password-field { grid-template-columns: 1fr auto; padding-top: 16px; }
  .password-field > span { grid-column: 1 / -1; }
  .password-field input { height: 48px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .sign-button { width: 100%; margin-top: 15px; }
  .app-meta { flex-direction: column; }
  .result { padding-inline: 0; }
  .result h2 { font-size: 34px; }
  .how { padding: 80px 0; }
  .section-heading { display: block; }
  .how-grid { grid-template-columns: 1fr; gap: 35px; }
  footer { padding: 30px 0; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; } }
