/* components.css: buttons, cards, lists, FAQ, form, notices. */

/* Buttons. White bold text on orange reaches WCAG AA only as large text,
   so button labels are 19px bold (large text is 18.66px bold or more). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--on-dark);
  box-shadow: 0 6px 18px rgba(243, 100, 43, 0.28);
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: var(--on-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-dark:hover {
  color: var(--on-dark);
  border-color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
}

.btn-header {
  min-height: 44px;
  padding: 8px 20px;
  box-shadow: none;
}

.text-link {
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-2);
}

.card-title {
  font-size: 1.1875rem;
}

.card-accent {
  position: relative;
  padding-top: 36px;
}

.card-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 40px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--orange);
}

.feature,
.audience {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover,
.audience:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--blue-tint-2);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
}

/* How it works */
.steps {
  display: grid;
  gap: 24px;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step p {
  color: var(--text-2);
  margin: 0;
}

.how-visual {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* Also included */
.also {
  margin-top: 48px;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.also-heading {
  font-size: 1rem;
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 1em;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
}

.check-list .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--green-text);
  stroke-width: 2.25;
}

@media (min-width: 760px) {
  .check-list-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
    margin: 0;
  }
}

/* Accuracy proof points */
.proof-grid {
  display: grid;
  gap: 20px;
  list-style: none;
}

@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.proof {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.45;
}

.fn-mark {
  color: var(--green);
  margin-left: 2px;
}

.footnote {
  margin: 28px 0 0;
  font-size: 0.875rem;
  color: var(--on-dark-2);
}

/* Security points */
.point-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.point-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.point-list .icon-badge {
  margin: 0;
}

.point-list h3 {
  margin: 2px 0 4px;
  font-size: 1.0625rem;
}

.point-list p {
  margin: 0;
  color: var(--text-2);
}

.point-list-wide {
  margin-top: 32px;
}

.small-print {
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* FAQ: native details and summary, keyboard usable without script. */
.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq summary:hover {
  color: var(--blue);
}

.faq details > p {
  margin: -4px 0 22px;
  color: var(--text-2);
  max-width: 44em;
}

/* Final call to action band */
.cta-band {
  background: var(--navy);
  background-image: radial-gradient(700px 300px at 50% 120%, rgba(11, 85, 142, 0.6), transparent 70%);
  color: var(--on-dark-2);
  text-align: center;
  padding: 88px 0;
}

.cta-band h2 {
  color: var(--on-dark);
}

.cta-inner p {
  margin: 0 auto 28px;
  max-width: 34em;
  font-size: 1.1875rem;
}

/* Demo form */
.form-wrap {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .form-wrap {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.demo-form,
.form-done {
  padding: 32px;
}

@media (min-width: 700px) {
  .demo-form,
  .form-done {
    padding: 40px;
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint-2);
  outline: none;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.field [aria-invalid="true"] {
  border-color: #b42318;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b42318;
}

/* The honeypot: off screen for people, present for form-filling bots. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demo-form {
  position: relative;
}

.form-notice {
  margin: 8px 0 16px;
  padding: 14px 16px;
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
}

.form-status {
  min-height: 1.5em;
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #b42318;
}

.form-done h2 {
  margin-bottom: 12px;
}

.form-aside {
  padding-top: 8px;
}

.aside-heading {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* About */
.about-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  background: var(--canvas);
  border-radius: var(--radius-lg);
  text-align: center;
}

.about-logo img {
  width: 240px;
  margin-bottom: 16px;
}

/* Legal pages */
.legal h2 {
  font-size: 1.375rem;
  margin-top: 32px;
}

.legal-address {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
}

/* Reveal on scroll: only with script and only without reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .js [data-reveal][data-revealed] {
    opacity: 1;
    transform: none;
  }
}

/* Script-only and no-script variants (boot.js sets .js before first paint). */
.no-js .js-only,
.js .no-js-only {
  display: none;
}
