:root {
  --paper: #f3f0e8;
  --surface: #fbfaf6;
  --ink: #17231d;
  --muted: #627069;
  --line: #d8d5cb;
  --lime: #c8f06a;
  --green: #1f6b56;
  --red: #b54b35;
  --sans: "Aptos", "Segoe UI Variable", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 5%, rgba(200, 240, 106, .3), transparent 27rem),
    radial-gradient(circle at 8% 90%, rgba(31, 107, 86, .09), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.activation-shell {
  width: min(1180px, calc(100% - 64px));
  min-height: 100vh;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, .74fr);
  gap: clamp(50px, 9vw, 120px);
  align-items: center;
  padding: 60px 0;
}

.activation-copy {
  min-height: 680px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--ink);
}

.brand-mark span {
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}

.brand-mark span:nth-child(1) {
  transform: translateY(-6px);
}

.brand-mark span:nth-child(2) {
  width: 26px;
  transform: translateX(3px);
}

.brand-mark span:nth-child(3) {
  width: 12px;
  transform: translate(-5px, 6px);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: .08em;
}

.brand-copy small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .19em;
}

.copy-main {
  margin-block: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(31, 107, 86, .1);
}

h1 {
  margin: 26px 0 22px;
  font-family: var(--serif);
  font-size: clamp(54px, 6.3vw, 82px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.lead {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 42px;
  border-block: 1px solid var(--line);
}

.trust-list div {
  padding: 19px 18px 19px 0;
  border-right: 1px solid var(--line);
}

.trust-list div + div {
  padding-left: 18px;
}

.trust-list div:last-child {
  border-right: 0;
}

.trust-list span {
  color: var(--green);
  font-family: var(--serif);
  font-size: 10px;
}

.trust-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.trust-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 11px;
}

.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.activation-panel {
  width: 100%;
}

.panel-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 26px;
  background: rgba(251, 250, 246, .92);
  box-shadow: 0 30px 80px rgba(35, 51, 43, .12);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.lock-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--lime);
}

.lock-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.panel-kicker {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.panel-head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .065em;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder {
  color: #aaa89f;
  font-weight: 500;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 107, 86, .09);
}

.field-hint {
  margin: 7px 0 19px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.activate-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 17px 0 20px;
  border: 0;
  border-radius: 11px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.activate-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #d4f786;
}

.activate-button:disabled {
  cursor: wait;
  opacity: .65;
}

.activate-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.form-message {
  min-height: 34px;
  margin-top: 12px;
  color: var(--red);
  font-size: 10px;
  line-height: 1.6;
}

.form-message.is-success {
  color: var(--green);
}

.device-box {
  padding: 13px 14px;
  border-radius: 10px;
  background: #eeece4;
}

.device-box span,
.device-box small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.device-box strong {
  display: block;
  margin: 2px 0;
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restore-state {
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 13px;
  border-radius: 10px;
  background: rgba(31, 107, 86, .08);
}

.restore-state:not([hidden]) {
  display: flex;
}

.restore-state p {
  margin: 0;
}

.restore-state strong,
.restore-state small {
  display: block;
  font-size: 10px;
}

.restore-state small {
  margin-top: 2px;
  color: var(--muted);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(31, 107, 86, .2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.support-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 9px;
}

.support-row span:last-child {
  color: var(--ink);
  font-weight: 700;
}

.terms {
  margin: 25px 8px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
  text-align: center;
}

.terms a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .activation-shell {
    width: min(100% - 32px, 620px);
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 30px 0 44px;
  }

  .activation-copy {
    min-height: 0;
  }

  .copy-main {
    margin: 58px 0 0;
  }

  h1 {
    font-size: clamp(46px, 13vw, 68px);
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .trust-list div,
  .trust-list div + div {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-list div:last-child {
    border-bottom: 0;
  }

  .small-note {
    margin-top: 22px;
  }

  .panel-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .support-row {
    display: block;
    text-align: center;
  }

  .support-row span {
    display: block;
  }
}
