:root { --bg: #0b0d0c; --bg-soft: #101311; --surface: rgba(255, 255, 255, 0.055); --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f7f5;
  --text-soft: #c5ccc6;
  --text-muted: #a8b0aa;

  --green: #67e69a;
  --green-dark: #28bd69;
  --green-soft: rgba(103, 230, 154, 0.10);

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);

  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(103, 230, 154, 0.10),
      transparent 36%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Connected state */

.ready-card.connected {
  border-color: rgba(103, 230, 154, 0.42);
  border-top-color: #67e69a;

  background:
    linear-gradient(
      180deg,
      rgba(103, 230, 154, 0.16) 0%,
      rgba(20, 36, 28, 0.92) 42%,
      rgba(16, 22, 19, 0.96) 100%
    );

  box-shadow:
    0 0 0 1px rgba(103, 230, 154, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.32);
}

.ready-card.connected .ready-icon {
  background: rgba(103, 230, 154, 0.22);
  color: #8ef0b2;
}

.ready-card.disconnected {
  border-color: rgba(240, 192, 96, 0.38);
  border-top-color: #f0c060;

  background:
    linear-gradient(
      180deg,
      rgba(240, 192, 96, 0.14) 0%,
      rgba(36, 30, 18, 0.92) 42%,
      rgba(16, 22, 19, 0.96) 100%
    );

  box-shadow:
    0 0 0 1px rgba(240, 192, 96, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.32);
}

.ready-card.disconnected .ready-icon {
  background: rgba(240, 192, 96, 0.18);
  color: #f0c060;
}

.connected-device {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 7px;

  color: var(--green);

  font-size: 13px;
  font-weight: 650;
}

.connected-device::before {
  content: "";

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--green);

  box-shadow: 0 0 10px rgba(103, 230, 154, 0.5);
}

.connected-device.offline {
  color: #e8c57a;
}

.connected-device.offline::before {
  background: #e8c57a;
  box-shadow: 0 0 10px rgba(232, 197, 122, 0.45);
}


/* Secret card */

.secret-card {
  display: none;

  max-width: 520px;
  margin: 14px auto 0;

  border: 1px solid var(--border);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.02)
    );

  overflow: hidden;
}

.secret-card.visible {
  display: block;
}

/* Empty receive state — waiting beacon */

.secret-card:has(.secret-content:not(.visible)),
.secret-card:has(.receive-progress:not([hidden])) {
  border-color: rgba(103, 230, 154, 0.28);

  background:
    linear-gradient(
      160deg,
      rgba(103, 230, 154, 0.1) 0%,
      rgba(16, 22, 19, 0.96) 55%,
      rgba(12, 14, 13, 0.98) 100%
    );
}

.secret-empty {
  padding: 28px 20px 24px;

  text-align: center;
}

.receive-progress {
  padding: 28px 20px 24px;

  text-align: center;
}

.receive-progress[hidden] {
  display: none !important;
}

.receive-progress h2 {
  margin: 0 0 16px;

  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.receive-progress p {
  margin: 12px 0 0;

  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.receive-beacon--compact {
  width: 72px;
  height: 72px;

  margin-bottom: 12px;
}

.receive-progress-track {
  width: min(100%, 240px);
  height: 6px;

  margin: 0 auto;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(103, 230, 154, 0.12);
}

.receive-progress-bar {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background: linear-gradient(
    90deg,
    rgba(103, 230, 154, 0.55),
    rgba(103, 230, 154, 0.95)
  );

  transition: width 180ms ease-out;
}

.receive-beacon {
  position: relative;

  width: 88px;
  height: 88px;

  margin: 0 auto 16px;

  display: grid;
  place-items: end center;
}

.receive-fringe {
  position: absolute;
  left: 50%;
  bottom: 38px;

  width: 28px;
  height: 14px;

  margin-left: -14px;

  border: 2px solid rgba(103, 230, 154, 0.55);
  border-bottom: none;
  border-radius: 28px 28px 0 0;

  transform-origin: 50% 100%;
  animation: receiveFringe 2.4s ease-out infinite;
}

.receive-fringe--1 {
  width: 36px;
  height: 18px;
  margin-left: -18px;
  animation-delay: 0s;
}

.receive-fringe--2 {
  width: 52px;
  height: 26px;
  margin-left: -26px;
  animation-delay: 0.8s;
}

.receive-fringe--3 {
  width: 68px;
  height: 34px;
  margin-left: -34px;
  animation-delay: 1.6s;
}

@keyframes receiveFringe {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  25% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

.receive-tower {
  position: relative;
  z-index: 1;

  width: 36px;
  height: 44px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;

  margin-bottom: 2px;
}

.receive-tower-dish {
  width: 14px;
  height: 14px;

  margin-bottom: -2px;

  border: 2.5px solid #67e69a;
  border-radius: 50%;

  background: rgba(103, 230, 154, 0.12);

  box-shadow: 0 0 14px rgba(103, 230, 154, 0.35);
}

.receive-tower-mast {
  width: 3px;
  height: 16px;

  border-radius: 2px;

  background: linear-gradient(180deg, #8ef0b2, #67e69a);
}

.receive-tower-legs {
  width: 22px;
  height: 12px;

  margin-top: -1px;

  background:
    linear-gradient(
      115deg,
      transparent 42%,
      #67e69a 42%,
      #67e69a 52%,
      transparent 52%
    ),
    linear-gradient(
      -115deg,
      transparent 42%,
      #67e69a 42%,
      #67e69a 52%,
      transparent 52%
    );
}

.receive-tower-base {
  width: 20px;
  height: 3px;

  margin-top: 1px;

  border-radius: 2px;

  background: rgba(103, 230, 154, 0.75);
}

.secret-empty h2 {
  margin: 0 0 6px;

  font-size: 18px;
  font-weight: 750;

  letter-spacing: -0.02em;
  color: #e8f8ee;
}

.secret-empty p {
  max-width: 300px;

  margin: 0 auto;

  color: #9fd4b3;

  font-size: 14px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .receive-fringe {
    animation: none;
    opacity: 0.45;
  }

  .receive-fringe--1 {
    transform: scale(0.85);
  }

  .receive-fringe--2 {
    transform: scale(1);
  }

  .receive-fringe--3 {
    transform: scale(1.1);
    opacity: 0.25;
  }
}

/* Legacy empty icon (unused) */

.secret-empty-icon {
  width: 32px;
  height: 32px;

  margin: 0 auto 10px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: var(--green-soft);

  overflow: hidden;
}

.secret-empty-icon img {
  display: block;
  border-radius: 6px;
}


/* Credential content */

.secret-content {
  display: none;
}

.secret-content.visible {
  display: block;
}

.secret-header {
  padding: 14px 16px;

  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  border-bottom: 1px solid var(--border);
}

.secret-meta {
  min-width: 0;

  text-align: center;
}

.secret-icon {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: var(--green-soft);

  overflow: hidden;
  flex-shrink: 0;
}

.secret-icon img {
  display: block;
  border-radius: 6px;
}

.secret-title {
  font-size: 15px;
  font-weight: 750;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secret-subtitle {
  margin-top: 1px;

  color: var(--text-soft);

  font-size: 13px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secret-status {
  padding: 4px 8px;

  border-radius: 999px;

  background: var(--green-soft);

  color: var(--green);

  font-size: 12px;
  font-weight: 750;

  flex-shrink: 0;
}


/* Fields — keys/values left, actions stay on the right */

.credential-fields {
  padding: 2px 16px 6px;

  text-align: left;
}

.credential-field {
  padding: 12px 0;

  border-bottom: 1px solid var(--border);

  text-align: left;
}

.credential-field:last-child {
  border-bottom: 0;
}

.field-label {
  margin-bottom: 6px;

  color: var(--text-soft);

  font-size: 11px;
  font-weight: 700;

  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-value-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.field-value {
  min-width: 0;

  flex: 1 1 auto;

  padding-top: 2px;

  color: var(--text);

  font-size: 15px;
  line-height: 1.5;

  text-align: left;

  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* Preserve note line breaks; still wraps long tokens. */
.field-value.field-value--multiline {
  white-space: pre-wrap;
}

.password-value {
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.password-value[data-revealed="true"] {
  letter-spacing: 0.02em;
  white-space: pre-wrap;
}

.field-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;

  flex: 0 0 auto;
  margin-left: auto;
}

.field-hint {
  margin: 8px 0 0;

  color: var(--text-muted);

  font-size: 12px;
  line-height: 1.4;

  text-align: left;
}

.copy-button {
  flex-shrink: 0;

  padding: 6px 10px;

  border: 1px solid var(--border);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.035);

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 700;

  line-height: 1.2;

  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.075);

  border-color: var(--border-strong);

  color: var(--text);
}

.copy-button:disabled {
  opacity: 0.45;
  cursor: default;
}


/* Footer */

.secret-footer {
  padding: 8px 14px;

  background: rgba(255, 255, 255, 0.018);

  color: var(--text-soft);

  font-size: 12px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;
}

.secret-footer span {
  margin-right: 5px;

  color: var(--green);
}


@media (max-width: 700px) {

  .secret-header {
    padding: 12px 14px;
  }

  .credential-fields {
    padding: 2px 14px 6px;
  }

  .secret-footer {
    padding: 8px 14px;
  }

  /* Keep value left / actions right even on narrow screens. */
  .field-value-row {
    flex-direction: row;
    align-items: flex-start;
  }

}


/* Continue button in pairing modal */

#continuePairing {
  margin-bottom: 10px;
}


.forget-button {
  width: 100%;
  margin-top: 10px;

  color: var(--text-muted);

  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 150ms ease;
}

.forget-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;

  color: var(--text-muted);

  transition:
    color 160ms ease,
    font-weight 160ms ease;
}

.forget-button:hover {
  color: #ff5f5f;

  background: rgba(255, 70, 70, 0.07);

  border-color: rgba(255, 80, 80, 0.25);
}

.forget-button:hover .forget-icon {
  color: #ff4d4d;
  font-weight: 900;
}

.forget-confirm-button {
  width: 100%;
  margin-bottom: 10px;

  background: #e54848;
  border-color: #e54848;

  color: #ffffff;

  box-shadow:
    0 10px 28px rgba(229, 72, 72, 0.16);

  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 150ms ease,
    box-shadow 160ms ease;
}

.forget-confirm-button:hover {
  background: #f05252;
  border-color: #f05252;

  box-shadow:
    0 12px 32px rgba(229, 72, 72, 0.24);
}

.forget-confirm-button span {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}



/* Navigation */

nav {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 34px;
  height: 34px;

  display: block;

  border-radius: 10px;

  box-shadow:
    0 8px 24px rgba(54, 201, 119, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 13px;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Main */

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;

  padding: 28px 24px 48px;

  flex: 1;
}

.hero {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 11px;

  border: 1px solid rgba(103, 230, 154, 0.16);
  border-radius: 999px;

  background: var(--green-soft);

  color: var(--green);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 0 4px rgba(103, 230, 154, 0.08),
    0 0 16px rgba(103, 230, 154, 0.5);
}

h1 {
  margin: 16px 0 12px;

  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.02;

  letter-spacing: -0.065em;
  font-weight: 780;
}

h1 span {
  color: var(--green);
}

.hero-description {
  max-width: 480px;
  margin: 0 auto 22px;

  color: var(--text-soft);

  font-size: 15px;
  line-height: 1.5;

  letter-spacing: -0.01em;
}

.get-app {
  max-width: 680px;
  margin: 40px auto 0;

  padding-top: 28px;

  border-top: 1px solid var(--border);

  text-align: center;
}

.get-app-label {
  margin: 0 0 14px;

  color: var(--text-soft);

  font-size: 13px;
  letter-spacing: -0.01em;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 0 auto;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;

  opacity: 0.92;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.store-badge:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.store-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.store-badge-google img {
  /* Play badge art includes extra transparent padding. */
  height: 58px;
  margin: -9px 0;
}

/* Ready card — status panel (distinct from feature/secret glass cards) */

.ready-card {
  max-width: 520px;

  margin: 24px auto 0;

  padding: 16px 18px 18px;

  border: 1px solid rgba(103, 230, 154, 0.28);
  border-top: 3px solid #67e69a;
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(103, 230, 154, 0.12) 0%,
      rgba(18, 28, 22, 0.94) 40%,
      rgba(14, 18, 16, 0.98) 100%
    );

  box-shadow:
    0 0 0 1px rgba(103, 230, 154, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.32);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  text-align: left;
}

.ready-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ready-icon-wrap {
  position: relative;

  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  flex-shrink: 0;
}

.ready-radar {
  position: absolute;
  inset: 0;
  margin: auto;

  pointer-events: none;
  border-radius: 50%;
}

.ready-radar--ring {
  width: 40px;
  height: 40px;

  border: 1.5px solid rgba(103, 230, 154, 0.55);

  animation: readyRadarPulse 2.4s ease-out infinite;
}

.ready-radar--delay {
  animation-delay: 1.2s;
}

.ready-radar--sweep {
  width: 48px;
  height: 48px;

  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 250deg,
    rgba(103, 230, 154, 0.08) 290deg,
    rgba(103, 230, 154, 0.35) 330deg,
    transparent 360deg
  );

  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));

  animation: readyRadarSweep 3.2s linear infinite;
  opacity: 0.85;
}

.ready-card.connected .ready-radar--ring {
  border-color: rgba(103, 230, 154, 0.7);
}

.ready-card.connected .ready-radar--sweep {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 250deg,
    rgba(103, 230, 154, 0.12) 290deg,
    rgba(142, 240, 178, 0.5) 330deg,
    transparent 360deg
  );
}

.ready-card.disconnected .ready-radar--ring {
  border-color: rgba(240, 192, 96, 0.65);
  animation-duration: 3s;
}

.ready-card.disconnected .ready-radar--sweep {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 250deg,
    rgba(240, 192, 96, 0.1) 290deg,
    rgba(240, 192, 96, 0.45) 330deg,
    transparent 360deg
  );
  animation-duration: 4s;
}

@keyframes readyRadarPulse {
  0% {
    transform: scale(0.72);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes readyRadarSweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ready-radar--ring,
  .ready-radar--sweep {
    animation: none;
  }

  .ready-radar--ring {
    opacity: 0.35;
    transform: scale(1.05);
  }

  .ready-radar--sweep {
    opacity: 0;
  }
}

.ready-icon {
  position: relative;
  z-index: 1;

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: rgba(103, 230, 154, 0.18);

  color: var(--green);

  font-size: 18px;

  overflow: hidden;
  flex-shrink: 0;
}

.ready-icon img {
  display: block;
  border-radius: 7px;
}

.ready-title {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.ready-subtitle {
  margin-top: 2px;

  color: #9fd4b3;

  font-size: 13px;
}

.ready-message {
  margin: 12px 0 14px;

  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.5;
}

/* Buttons */

.actions {
  display: grid;
  gap: 10px;
}

.actions .button {
  width: 100%;
}

.button {
  min-height: 44px;

  border-radius: 13px;

  border: 1px solid transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 14px;
  font-weight: 720;

  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.button img {
  display: block;
  border-radius: 4px;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--green);
  color: #07110b;

  box-shadow:
    0 10px 28px rgba(103, 230, 154, 0.15);
}

.button-primary:hover {
  background: #7aeca8;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

/* Trust */

.trust-row {
  margin-top: 14px;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 20px;

  color: var(--text-soft);

  font-size: 13px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trust-item span {
  color: var(--green);
}

.home-how-link {
  margin: 18px 0 0;
  text-align: center;
}

.home-how-link a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.home-how-link a:hover {
  color: var(--green);
}

/* Security panel (nav → #security) */

.security-panel {
  max-width: 640px;
  margin: 48px auto 0;
  padding: 28px 22px 26px;

  border: 1px solid rgba(103, 230, 154, 0.22);
  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      rgba(103, 230, 154, 0.08) 0%,
      rgba(18, 24, 20, 0.96) 42%,
      rgba(12, 14, 13, 0.98) 100%
    );

  text-align: left;
  scroll-margin-top: 24px;
}

.security-panel .section-eyebrow {
  margin: 0 0 8px;
}

.security-panel h2 {
  margin: 0 0 10px;

  font-size: clamp(22px, 4vw, 28px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--text);
}

.security-lead {
  margin: 0 0 22px;

  max-width: 52ch;

  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.55;
}

.security-points {
  margin: 0;
  padding: 0;

  list-style: none;

  display: grid;
  gap: 14px;
}

.security-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 12px 12px 12px 10px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.025);
}

.security-point-icon {
  flex-shrink: 0;

  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: var(--green-soft);

  color: var(--green);

  font-size: 12px;
  font-weight: 800;
}

.security-points strong {
  display: block;

  margin-bottom: 4px;

  color: var(--text);

  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.security-points p {
  margin: 0;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.5;
}

.security-more {
  margin: 18px 0 0;

  color: var(--text-muted);

  font-size: 13px;
  line-height: 1.5;
}

.security-more a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.security-more a:hover {
  text-decoration: underline;
}

.security-panel--page {
  max-width: 640px;
  margin: 0 auto;
  scroll-margin-top: 0;
}

.security-panel--page h1 {
  margin: 0 0 10px;

  font-size: clamp(26px, 5vw, 34px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: var(--text);
}

/* Features (kept for any legacy embeds; primary copy lives on how-it-works) */

.features {
  margin-top: 48px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature {
  padding: 16px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.025);
}

.feature-icon {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: var(--green-soft);

  color: var(--green);

  font-size: 14px;

  overflow: hidden;
}

.feature-icon img {
  display: block;
  border-radius: 5px;
}

.feature h2 {
  margin: 12px 0 6px;

  font-size: 15px;
  font-weight: 750;
}

.feature p {
  margin: 0;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.5;
}

/* How it works */

.how-section {
  max-width: 760px;
  margin: 48px auto 0;

  text-align: center;
}

.section-eyebrow {
  color: var(--green);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.how-section h2 {
  margin: 8px 0 8px;

  font-size: 26px;
  letter-spacing: -0.04em;
}

.how-section > p {
  margin: 0 auto;

  max-width: 480px;

  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.5;
}

.how-more-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--green);
  font-weight: 600;
}

.how-more-link:hover {
  text-decoration: underline;
}

.steps {
  margin-top: 24px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;

  text-align: left;
}

.step {
  padding: 14px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.025);
}

.step-number {
  color: var(--green);

  font-size: 12px;
  font-weight: 800;
}

.step h3 {
  margin: 8px 0 4px;

  font-size: 14px;
}

.step p {
  margin: 0;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.5;
}

/* Footer */

footer {
  width: 100%;
  max-width: 1120px;

  margin: 0 auto;

  padding: 18px 24px;

  border-top: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--text-soft);

  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text-soft);
}


/* Forget confirmation */

#forgetModal .modal-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

#confirmForget {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: none;
}

#confirmForget:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* Overlay popup — avoid generic names like .modal /
   .modal-backdrop; Safari content blockers hide those. */

.flickfly-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.82);

  z-index: 2147483000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.flickfly-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.flickfly-sheet {
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - 48px);

  overflow: auto;
  -webkit-overflow-scrolling: touch;

  padding: 30px;

  border: 1px solid var(--border-strong);
  border-radius: 26px;

  background:
    linear-gradient(
      145deg,
      #151a17,
      #101311
    );

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.58);

  text-align: center;

  opacity: 1;
  transform: none;
}

.modal-icon {
  width: 44px;
  height: 44px;

  margin: 0 auto 14px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background: var(--green-soft);

  color: var(--green);

  font-size: 20px;

  overflow: hidden;
}

.modal-icon img {
  display: block;
  border-radius: 8px;
}

.flickfly-sheet h2 {
  margin: 0;

  font-size: 22px;
  letter-spacing: -0.03em;
}

.modal-description {
  margin: 10px auto 22px;

  max-width: 330px;

  color: var(--text-muted);

  font-size: 13px;
  line-height: 1.6;
}

/* QR */

/* QR */

.qr-wrapper {
  --qr-box: min(230px, calc(100vw - 64px));

  width: var(--qr-box);
  height: var(--qr-box);
  aspect-ratio: 1 / 1;

  margin: 20px auto;
  padding: 15px;

  display: grid;
  place-items: center;

  background: white;
  border-radius: 20px;

  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.32);

  box-sizing: border-box;
}

#qrcode {
  width: 200px;
  height: 200px;
  max-width: 100%;
  max-height: 100%;

  display: grid;
  place-items: center;
}

#qrcode img,
#qrcode canvas {
  display: block;

  width: 200px !important;
  height: 200px !important;

  max-width: 100%;
  max-height: 100%;
}

#qrcode .qr-error {
  margin: 0;
  padding: 8px;

  color: #7a1f1f;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.scan-instruction {
  margin: 14px 0 12px;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.5;
}

.pair-code-panel {
  margin: 4px 0 18px;
  padding: 16px 14px;

  border: 1px solid var(--border-strong);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.03);

  text-align: center;
}

.pair-code-label {
  margin-bottom: 10px;

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pair-code-value {
  margin: 0 0 12px;

  color: var(--text);

  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.pair-code-copy {
  width: auto;
  min-width: 132px;
  margin: 0 auto;
  padding: 10px 16px;
}

.pair-code-hint {
  margin: 12px 0 0;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.45;
}

.pairing-code {
  margin-top: 16px;

  padding: 11px 14px;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.025);

  color: var(--text-soft);

  font-size: 13px;

  word-break: break-all;
}

.pairing-code strong {
  display: block;

  margin-bottom: 4px;

  color: var(--text-soft);

  font-size: 12px;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-close {
  width: 100%;
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */

@media (max-width: 700px) {
  nav {
    padding: 14px 16px;
  }

  .nav-links {
    gap: 14px;
  }

  main {
    padding: 20px 16px 36px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-description {
    font-size: 14px;
  }

  .ready-card {
    margin-top: 20px;
    padding: 16px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .trust-row {
    flex-direction: column;
    gap: 8px;
  }

  .trust-item {
    justify-content: center;
  }

  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .features,
  .how-section {
    margin-top: 36px;
  }

  footer {
    padding: 16px;

    flex-direction: column;
    gap: 12px;
  }

  .flickfly-sheet {
    padding: 22px 18px;
  }

}

/* Privacy / legal pages */

.legal-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.legal-card {
  padding: 28px 28px 32px;

  border: 1px solid var(--border);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.02)
    );
}

.legal-card h1 {
  margin: 8px 0 10px;

  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 780;
}

.legal-updated {
  margin: 0 0 20px;

  color: var(--text-soft);

  font-size: 13px;
}

.legal-lead {
  margin: 0 0 28px;

  color: var(--text-soft);

  font-size: 16px;
  line-height: 1.55;
}

.legal-card h2 {
  margin: 28px 0 10px;

  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.6;
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card li strong {
  color: var(--text);
  font-weight: 700;
}

.legal-card a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: var(--primary-light, #83f1ad);
}

.legal-card code {
  padding: 1px 6px;

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.06);

  color: var(--text);

  font-size: 0.92em;
}

.legal-note {
  margin-top: 24px !important;
  padding-top: 16px;

  border-top: 1px solid var(--border);

  color: var(--text-muted) !important;

  font-size: 13px !important;
}

@media (max-width: 700px) {
  .legal-main {
    padding: 20px 16px 48px;
  }

  .legal-card {
    padding: 22px 18px 26px;
  }
}

/* User guide — larger type for readability */

.guide-main {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.guide-card {
  padding: 32px 36px 40px;

  border: 1px solid rgba(103, 230, 154, 0.22);
  border-radius: 22px;

  background:
    linear-gradient(
      160deg,
      rgba(103, 230, 154, 0.08) 0%,
      rgba(18, 24, 20, 0.96) 40%,
      rgba(14, 16, 15, 0.98) 100%
    );
}

.guide-card h1 {
  margin: 8px 0 14px;

  font-size: clamp(34px, 5.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 780;
}

.guide-lead {
  margin: 0 0 24px;

  color: var(--text);

  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;

  margin: 0 0 32px;
  padding: 16px 18px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.03);
}

.guide-toc a {
  color: var(--green);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.guide-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-section {
  margin-bottom: 36px;
  scroll-margin-top: 88px;
}

.guide-card h2 {
  margin: 0 0 14px;

  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.guide-card p,
.guide-card li,
.guide-card dd {
  color: var(--text-soft);

  font-size: 18px;
  line-height: 1.65;
}

.guide-card p {
  margin: 0 0 14px;
}

.guide-emphasis {
  color: var(--text) !important;
  font-size: 19px !important;
  font-weight: 550;
}

.guide-list {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.guide-list li {
  margin-bottom: 12px;
}

.guide-list li strong,
.guide-safety li strong {
  color: var(--text);
  font-weight: 700;
}

.guide-steps {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.guide-steps li {
  margin-bottom: 16px;

  color: var(--text-soft);

  font-size: 18px;
  line-height: 1.65;
}

.guide-steps li strong {
  color: var(--text);
}

.guide-callout {
  margin: 18px 0 8px;
  padding: 16px 18px;

  border-radius: 14px;

  font-size: 17px;
  line-height: 1.6;
}

.guide-callout-safe {
  border: 1px solid rgba(103, 230, 154, 0.28);

  background: rgba(103, 230, 154, 0.1);

  color: var(--text-soft);
}

.guide-callout-safe strong {
  color: #b8f0ce;
}

.guide-faq {
  margin: 0;
}

.guide-faq dt {
  margin: 20px 0 8px;

  color: var(--text);

  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.guide-faq dt:first-child {
  margin-top: 4px;
}

.guide-faq dd {
  margin: 0 0 4px;

  color: var(--text-soft);

  font-size: 18px;
  line-height: 1.65;
}

.guide-card a:not(.button) {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-card a:not(.button):hover {
  color: #83f1ad;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 28px;
  padding-top: 24px;

  border-top: 1px solid var(--border);
}

.guide-actions .button {
  width: auto;
  min-width: 180px;
  text-decoration: none;
}

.guide-actions .button-primary {
  color: #0b0d0c;
}

.guide-actions .button-secondary {
  color: var(--text);
}

.guide-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 12px;

  color: var(--green);

  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.guide-help-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .guide-main {
    padding: 20px 16px 48px;
  }

  .guide-card {
    padding: 24px 18px 28px;
  }

  .guide-lead {
    font-size: 18px;
  }

  .guide-card h2 {
    font-size: 22px;
  }

  .guide-card p,
  .guide-card li,
  .guide-card dd,
  .guide-steps li,
  .guide-faq dd {
    font-size: 17px;
  }

  .guide-actions .button {
    width: 100%;
  }
}
