:root {
  --ink: #183849;
  --blue: #176285;
  --paper: #f3f7f9;
  --white: #fff;
  --muted: #536b79;
  --line: #c9dce5;
  --green: #167655;
  --danger: #a42d2d;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.masthead {
  max-width: 1120px;
  margin: auto;
  padding: 27px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.8px;
}
.brand span {
  font-weight: 400;
}
.trial {
  font-size: 12px;
  color: var(--blue);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
}
.layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 70px;
  margin: 22px auto 70px;
  padding: 0 36px;
}
.intro {
  padding-top: 15px;
}
.intro h1 {
  font-size: 39px;
  line-height: 1.6;
  letter-spacing: -1.7px;
  font-weight: 700;
  margin: 12px 0 20px;
}
.intro p {
  font-size: 15px;
  color: var(--muted);
}
#steps {
  list-style: none;
  padding: 0;
  margin: 38px 0;
  counter-reset: step;
}
#steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 51px;
  font-size: 14px;
  color: var(--muted);
}
#steps li[hidden] {
  display: none;
}
#steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  width: 29px;
  height: 29px;
  border-radius: 50%;
  font-size: 12px;
}
#steps li[aria-current="step"] {
  color: var(--blue);
  font-weight: 700;
}
#steps li[aria-current="step"]::before {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.assurance {
  border-left: 3px solid var(--green);
  padding-left: 16px;
}
.workspace {
  min-width: 0;
}
#current-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  min-height: 300px;
  box-shadow: 0 8px 0 #e3edf2;
}
h2 {
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 18px;
}
h3 {
  font-size: 17px;
  margin: 16px 0 8px;
}
p {
  margin: 12px 0 20px;
}
button,
.button {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: white;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-block;
  margin: 10px 8px 0 0;
  text-decoration: none;
  min-height: 48px;
}
button.secondary, .button.secondary {
  background: #e9f1f5;
  color: var(--blue);
}
button.danger {
  background: white;
  border: 1px solid var(--danger);
  color: var(--danger);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #e6a641;
  outline-offset: 4px;
}
input[type="text"] {
  font: inherit;
  border: 1px solid var(--muted);
  padding: 12px;
  width: 100%;
  border-radius: 6px;
  margin: 7px 0;
}
label {
  display: block;
  margin-top: 16px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 10px;
}
.code {
  display: block;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
  background: var(--paper);
  padding: 17px;
  text-align: center;
  border: 1px dashed var(--line);
  margin: 18px 0;
}
.small {
  font-size: 13px;
  color: var(--muted);
}
.success {
  color: var(--green);
  font-weight: 600;
}
.notes {
  margin: 28px 0;
  font-size: 13px;
  color: var(--muted);
}
.notes h2 {
  font-size: 14px;
  margin-bottom: 8px;
}
.notes ul {
  padding-left: 20px;
}
.notes p {
  line-height: 1.9;
}
summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  padding: 10px 0;
  min-height: 44px;
}
footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 13px;
}
footer a {
  padding: 10px 0;
  min-height: 44px;
}
.help-layout {
  max-width: 850px;
  margin: 28px auto 64px;
  padding: 0 32px;
}
.help-heading h1 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.5;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}
.help-heading p, .field-hint { color: var(--muted); }
.help-topics { display: flex; gap: 12px 25px; flex-wrap: wrap; margin: 28px 0 40px; }
.help-topics a { display: inline-block; padding: 10px 0; min-height: 44px; }
.faq-group { margin: 40px 0; scroll-margin-top: 24px; }
.faq-group details { border-bottom: 1px solid var(--line); padding: 12px 0; scroll-margin-top: 16px; }
.faq-group details[open] { padding-bottom: 18px; }
.faq-group details p { margin: 12px 0; max-width: 44em; }
.faq-group summary { font-size: 16px; }
.help-contact { margin: 40px 0; padding-top: 26px; border-top: 1px solid var(--line); }
.help-notice { border-left: 3px solid var(--green); padding: 4px 0 4px 20px; margin: 28px 0; }
.help-notice p { margin: 10px 0; font-size: 14px; }
.report-form { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.report-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.report-form legend { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.report-form label { font-weight: 600; font-size: 15px; }
.help-layout textarea, .report-form select, .report-form input[type="datetime-local"] {
  display: block;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  margin: 7px 0;
  background: var(--white);
  color: var(--ink);
}
.help-layout textarea { resize: vertical; overflow-wrap: anywhere; }
.field-hint { font-size: 12px; margin: 0 0 20px; }
.report-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-row > div { min-width: 0; }
.report-consent { display: flex; align-items: flex-start; line-height: 1.8; }
.report-consent input { flex-shrink: 0; margin-top: 4px; }
#copy-status { color: var(--ink); overflow-wrap: anywhere; }
#preview-subject, #preview-recipient { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .help-layout { padding: 0 20px; margin-top: 20px; }
  .report-form { padding: 20px 16px; }
  .report-row { grid-template-columns: 1fr; gap: 0; }
  .help-layout .button, .help-layout button { max-width: 100%; }
  .help-topics { gap: 10px 18px; }
}
.policy {
  max-width: 840px;
  margin: 20px auto 60px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.policy h1 {
  font-size: 28px;
  line-height: 1.5;
}
.policy h2 {
  margin-top: 32px;
}
.policy li {
  margin-bottom: 8px;
}
.policy nav a {
  display: inline-block;
  margin: 8px 20px 8px 0;
  padding: 10px 0;
  min-height: 44px;
}
a {
  color: var(--blue);
}
.field-error {
  color: var(--danger);
  font-weight: 600;
  margin: 8px 0 0;
}
#error {
  color: var(--danger);
  background: #fff0ef;
  padding: 16px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
#challenge {
  margin: 0 0 12px;
}
#challenge-status {
  margin: 0 0 12px;
}
.location {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.review-full {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  background: var(--paper);
  padding: 20px;
  border-radius: 6px;
}
.capacity {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.capacity strong {
  flex: none;
  white-space: nowrap;
}
.qr {
  width: 144px;
  height: 144px;
  display: block;
  margin: 16px auto;
}
.qr svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 760px) {
  .masthead {
    padding: 20px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 auto 40px;
    padding: 0 20px;
  }
  .intro {
    padding: 0;
  }
  .intro h1 {
    font-size: 28px;
    margin: 0 0 12px;
    line-height: 1.5;
  }
  .intro > p:not(.assurance) {
    display: none;
  }
  .intro > p.assurance {
    font-size: 13px;
    margin: 0 0 8px;
  }
  #steps {
    display: flex;
    margin: 20px 0;
    gap: 8px;
    justify-content: space-between;
  }
  #steps li {
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: anywhere;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
    flex: 1;
  }
  #steps li[hidden] {
  display: none;
}
#steps li::before {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  #current-step {
    padding: 24px 20px;
    min-height: 230px;
  }
  h2 {
    font-size: 20px;
  }
  .code {
    font-size: 18px;
    letter-spacing: 0;
  }
  .notes {
    margin-top: 24px;
  }
  button, .button {
    width: 100%;
    margin-right: 0;
  }
  .trial {
    font-size: 12px;
  }
  .brand {
    font-size: 21px;
  }
}

/* Keep the next setup action distinct from secondary recovery controls. */
.next-action {
  border-left: 3px solid var(--blue);
  padding: 10px 0 10px 16px;
  font-weight: 600;
  line-height: 1.8;
}
.setup-recovery {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 12px;
}
/* Consent: plain-language points and a large tap target for the terms check. */
.consent-points {
  padding-left: 20px;
  margin: 12px 0 4px;
  font-size: 14px;
  line-height: 1.7;
}
.consent-points li {
  margin: 4px 0;
}
.terms-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px 0;
  cursor: pointer;
}
.terms-check input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 0;
  flex: none;
}
