/* NFD Secure Share. Follows the "NFD Secure Share" design board.
   Brand: primary #005b82, accent #0084bd, dark #001f29, highlight #7fd0f2.
   Fonts are self-hosted (fonts/OFL-*.txt). The CSP forbids inline styles,
   so every visual is here. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #005b82;
  --accent: #0084bd;
  --dark: #001f29;
  --sky: #7fd0f2;
  --white: #ffffff;
  --ink-2: #3d5560;
  --ink-3: #4a6672;
  --on-dark-1: #cfe2ea;
  --on-dark-2: #b8d3de;
  --on-dark-3: #8fb4c3;
  --line-light: #cfe0e8;
  --field-bg: #f7fbfd;
  --chip-bg: #e3f2f9;
  --error-light: #8a1c1c;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); line-height: 1.5; }
body.theme-dark { background: var(--dark); color: var(--white); }
body.theme-light { background: #eef4f7; color: var(--dark); }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

.theme-dark a { color: var(--sky); }
.theme-dark a:hover { color: var(--white); }
.theme-light a { color: var(--accent); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.theme-light button:focus-visible, .theme-light a:focus-visible { outline-color: var(--accent); }

.icon { width: 20px; height: 20px; flex: none; }
.icon-xs { width: 15px; height: 15px; }

/* -- animations ------------------------------------------------------------ */
@keyframes ssFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ssRing { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ssFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ssFloatTilt { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes ssShrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes ssFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ssSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes ssPop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ssGrid { from { background-position: 0 0; } to { background-position: 48px 48px; } }
@keyframes ssBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ssDash { to { stroke-dashoffset: -40; } }
@keyframes ssFade { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }
@keyframes ssSpin { to { transform: rotate(360deg); } }

/* -- public pages (dark) ---------------------------------------------------- */
.grid-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(127, 208, 242, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 208, 242, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: ssGrid 12s linear infinite;
}
.site-head, .site-foot {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-head { padding: 28px 24px; animation: ssFadeUp .6s ease-out both; }
.logo { height: 44px; width: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(127, 208, 242, .35);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #cfeaf6;
}
.head-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.compliance { font-size: 12px; font-weight: 600; color: #9fbfcc; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); animation: ssBlink 2s ease-in-out infinite; }
.site-foot {
  padding: 22px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  gap: 12px;
  font-size: 12px;
  color: var(--on-dark-3);
}

.stage {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* lock mark */
.lockmark {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ssFadeUp .7s .1s ease-out both;
}
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ssRing 2.8s ease-out infinite; }
.ring-late { animation-delay: 1.4s; }
.lockbox {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 132, 189, .35);
  transition: background .5s ease;
  animation: ssFloat 4s ease-in-out infinite;
}
.lockbox svg { width: 44px; height: 44px; overflow: visible; }
.shackle { transform-origin: 17px 11px; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.lockmark.open .lockbox { background: var(--primary); }
.lockmark.open .shackle { transform: translateY(-3px) rotate(28deg); }

/* ready state */
.intro {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
  animation: ssFadeUp .7s .2s ease-out both;
}
.intro h1, .result-head h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.sub { font-size: 17px; line-height: 1.55; color: var(--on-dark-2); max-width: 480px; text-wrap: pretty; }
.intro h1 + .sub { margin-top: -14px; }
.intro-wide { max-width: 640px; }
.intro-wide .sub { max-width: none; }
.facts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: 10px;
}
.fact {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.fact .k { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--on-dark-3); }
.fact .v { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.v-row { display: flex; align-items: center; gap: 8px; }
.pips { display: flex; gap: 4px; }
.pip { width: 14px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.pip.on { background: var(--sky); }

.cta {
  position: relative;
  overflow: hidden;
  min-height: 60px;
  width: 100%;
  max-width: 360px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 14px 34px rgba(0, 132, 189, .45);
}
.cta:hover { background: #0091cf; }
.cta:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.cta:disabled .sweep { display: none; }
.sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  animation: ssSweep 2.6s ease-in-out infinite;
}
.fine { font-size: 13px; line-height: 1.6; color: #9fbfcc; max-width: 500px; }
.alert {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(127, 208, 242, .1);
  border: 1px solid rgba(127, 208, 242, .35);
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

/* revealed state */
.result {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: ssFadeUp .5s ease-out both;
}
.result-head { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.result-head h1 { font-size: clamp(28px, 4.5vw, 38px); line-height: 1.15; }
.result-head .sub { font-size: 15px; }
.panel {
  background: var(--white);
  color: var(--dark);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.panel-secret { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); }
.eyebrow-accent { color: var(--sky); letter-spacing: .12em; }
.secret {
  resize: none;
  width: 100%;
  border: 1px solid #d7e6ee;
  background: #f3f8fb;
  border-radius: 12px;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  text-align: center;
  color: var(--accent);
  transition: color .4s ease;
  overflow: hidden;
}
.secret.done { color: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background .3s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn.grow { flex: 1 1 200px; }
.btn-accent { border: 0; background: var(--accent); color: var(--white); font-size: 16px; font-weight: 800; }
.btn-accent.copied { background: var(--primary); }
.btn-primary { border: 0; background: var(--primary); color: var(--white); }
.theme-dark .panel a.btn-primary { color: var(--white); align-self: flex-start; min-height: 48px; }
.btn-primary:hover { background: #004a6a; }
.btn-ghost { flex: 0 1 160px; border: 1.5px solid #b9d3df; background: var(--white); color: var(--primary); }
#copy-check .icon { animation: ssPop .35s ease-out both; }
.timer { display: flex; flex-direction: column; gap: 8px; }
.timer-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.clock { font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 800; }
.bar { height: 6px; border-radius: 3px; background: #e3eef3; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); transform-origin: left; }
.bar-fill.run { animation: ssShrink 300s linear both; }
.bar-fill.fill-in { animation: ssFill 1.1s ease-in-out both; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.tip {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-dark-1);
}
.tip strong { color: var(--white); }
.tip .pip { width: 22px; height: 8px; border-radius: 4px; }
.tip .pips { gap: 5px; flex: none; }
.tip-icon { width: 22px; height: 22px; color: var(--sky); }

/* gone page */
.gone-mark {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  animation: ssFadeUp .7s ease-out both;
}
.gone-rings { position: absolute; inset: 0; width: 150px; height: 150px; }
.ring-dash { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 10; animation: ssDash 3s linear infinite; }
.ring-faint { stroke: rgba(127, 208, 242, .25); stroke-width: 1.5; animation: ssFade 3s ease-in-out infinite; }
.gone-box {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ssFloatTilt 5s ease-in-out infinite;
}
.gone-box svg { width: 40px; height: 40px; }
.panel-help {
  width: 100%;
  max-width: 640px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: ssFadeUp .7s .2s ease-out both;
}
.panel-help h2 { font-size: 16px; font-weight: 800; }
.panel-help p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.panel-help .phone { font-size: 13px; }
.panel-help .phone a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* -- tech form (light) ------------------------------------------------------- */
.tech-head { background: var(--dark); color: var(--white); }
.tech-head-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.brandline { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo-sm { height: 36px; width: auto; }
.vr { width: 1px; height: 26px; background: rgba(255, 255, 255, .2); }
.product { font-size: 15px; font-weight: 700; }
.product span { color: var(--on-dark-3); font-weight: 500; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--on-dark-1); }
#whoname { color: var(--white); font-weight: 600; margin-left: -4px; }
.link-light {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 6px;
  color: var(--sky);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.tech {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}
.tech-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; animation: ssFadeUp .6s ease-out both; }
.tech-intro { display: flex; flex-direction: column; gap: 8px; }
.tech-intro h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.tech-intro p { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.card {
  background: var(--white);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(0, 31, 41, .05), 0 18px 40px rgba(0, 31, 41, .08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; }
.field label.eyebrow { font-size: 11px; font-weight: 800; }
.muted { font-weight: 500; color: var(--ink-3); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.tech input, .tech textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--line-light);
  border-radius: 12px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--field-bg);
  transition: border-color .2s, box-shadow .2s;
}
.tech textarea { padding: 14px 16px; resize: vertical; }
.tech input:focus, .tech textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 132, 189, .18); }
.mono { font-family: var(--mono) !important; }
.tech textarea.mono { font-size: 16px; }
.tech input.url { min-height: 52px; font-size: 13px; color: var(--primary); background: #f3f8fb; }
.hint { font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip-bg);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
.btn-lg {
  min-height: 56px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 91, 130, .3);
}
.btn-lg .icon { width: 19px; height: 19px; }
.alert-light {
  background: #fbeeee;
  border: 1px solid #efc9c9;
  color: var(--error-light);
  font-weight: 600;
}
.card-busy { padding: 48px 26px; align-items: center; gap: 18px; animation: ssFadeUp .3s ease-out both; }
.card-busy .bar { width: 100%; max-width: 360px; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--chip-bg); border-top-color: var(--accent); animation: ssSpin .8s linear infinite; }
.busy-text { font-size: 17px; font-weight: 700; }
#done { animation: ssFadeUp .45s ease-out both; }
.done-head { display: flex; align-items: center; gap: 14px; }
.done-head > div { display: flex; flex-direction: column; gap: 2px; }
.done-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  animation: ssPop .45s ease-out both;
}
.done-badge .icon { width: 24px; height: 24px; stroke-width: 3; }
.done-title { font-size: 20px; font-weight: 800; }
.done-meta { font-size: 13px; color: var(--ink-2); }
.tech .btn-ghost { flex: 0 1 200px; }

.how {
  flex: 1 1 300px;
  min-width: 0;
  background: var(--dark);
  color: var(--white);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: ssFadeUp .6s .15s ease-out both;
}
.how ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.how li { display: flex; gap: 14px; }
.how li > div { display: flex; flex-direction: column; gap: 3px; }
.how strong { font-size: 14px; }
.how li span:not(.num) { font-size: 13px; line-height: 1.5; color: var(--on-dark-2); }
.num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(127, 208, 242, .14);
  color: var(--sky);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 560px) {
  .site-head { padding: 20px 16px; }
  .logo { height: 36px; }
  .stage { padding: 16px 16px 40px; }
  .tech { padding: 28px 16px 40px; }
  .card, .panel-secret { padding: 20px; }
  .site-foot { padding: 20px 16px 24px; }
  .vr { display: none; }
  .brandline { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .bar-fill.run { animation: none; }
}
