:root {
  --red: #ac1f2b;
  --red-dark: #8e1a23;
  --red-darker: #741520;
  --yellow: #ffcc00;
  --yellow-dark: #e6b800;
  --ink: #1a1a1a;
  --text: #444444;
  --muted: #555555;
  --faint: #888888;
  --line: #e2e2e2;
  --bg: #f4f4f4;
  --green: #2e9e44;
  --green-text: #2e7d38;
  --amber: #d98a00;
  --amber-text: #9a6200;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-darker); text-decoration: underline; }

[hidden] { display: none !important; }

/* Header */
.site-header { background: #fff; border-bottom: 4px solid var(--red); }
.site-header__top {
  max-width: 1080px; margin: 0 auto; padding: 16px 24px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 48px; width: auto; display: block; }
.site-nav { background: var(--red); }
.site-nav__inner {
  max-width: 1080px; margin: 0 auto; padding: 8px 24px; min-height: 52px;
  display: flex; justify-content: flex-end; align-items: center;
}
.login-host { display: flex; align-items: center; min-height: 1px; }

/* <sesamy-login> theming – the component reads these custom properties through its shadow DOM. */
.login-host {
  --sesamy-font-family: var(--body);
  --sesamy-login-button-font-weight: 600;
  --sesamy-login-button-border-radius: 3px;
  --sesamy-login-popup-border-radius: 3px;
}
/* Red top bar: white outline button, white avatar with red initials. */
#sesamy-login-nav {
  margin: 4px 0;
  --sesamy-login-button-color: #ffffff;
  --sesamy-login-button-background-color: transparent;
  --sesamy-login-avatar-bgcolor: #ffffff;
  --sesamy-login-avatar-textcolor: var(--red);
  --sesamy-login-popup-textcolor: var(--ink);
}
/* White card: solid red button like the mockup's primary button. */
#sesamy-login-card {
  --sesamy-login-button-text-color: #ffffff;
  --sesamy-login-button-border-color: var(--red);
  --sesamy-login-button-background-color: var(--red);
  --sesamy-login-avatar-bgcolor: var(--red);
  --sesamy-login-avatar-textcolor: #ffffff;
}

/* Page */
.page { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kicker__tag {
  background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 700;
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px;
}
.kicker__section { color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.headline {
  font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1.08;
  margin: 0 0 14px; text-wrap: pretty;
}
.lede { font-size: 19px; line-height: 1.5; color: var(--text); margin: 0 0 28px; text-wrap: pretty; }

/* Card */
.card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red);
  padding: 32px; margin-bottom: 36px;
}
.stack { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.stack--wide { align-items: stretch; gap: 20px; }
.card__title {
  font-family: var(--display); font-weight: 700; font-size: 26px; margin: 0;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.card__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.card__text code { font-size: 15px; letter-spacing: 1px; color: var(--ink); }

.status { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status--ok { color: var(--green-text); }
.status--ok .status__dot { background: var(--green); }
.status--warn { color: var(--amber-text); }
.status--warn .status__dot { background: var(--amber); }

.error { margin: 0; font-size: 15px; line-height: 1.5; color: var(--red-darker); }

/* Buttons */
.btn {
  font-family: var(--body); cursor: pointer; border-radius: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:disabled { opacity: 0.7; cursor: default; }
.btn--primary {
  background: var(--red); color: #fff; border: none; padding: 14px 28px;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 1px; text-transform: uppercase;
}
.btn--primary:hover:not(:disabled) { background: var(--red-dark); }
.btn--accent {
  background: var(--yellow); color: var(--ink); border: none; padding: 10px 18px;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 1px; text-transform: uppercase;
}
.btn--accent:hover { background: var(--yellow-dark); }
.btn--ghost {
  background: none; border: 1px solid #cccccc; border-radius: 3px; padding: 6px 12px;
  font-size: 13px; color: var(--muted);
}
.btn--ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn--demo {
  background: none; border: 1px dashed #bbbbbb; border-radius: 3px; padding: 8px 14px;
  font-size: 13px; color: #777777;
}

@keyframes pfa-spin { to { transform: rotate(360deg); } }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  border-radius: 50%; display: inline-block; animation: pfa-spin 0.8s linear infinite; vertical-align: -3px;
}
.spinner--dark { border-color: rgba(0, 0, 0, 0.15); border-top-color: var(--red); }

/* Key */
.keybox {
  background: var(--ink); padding: 22px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.keybox__key { font-size: 24px; letter-spacing: 2px; color: var(--yellow); font-weight: 600; word-break: break-all; }
.meta { display: flex; gap: 32px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.meta strong { color: var(--ink); }
.fineprint { margin: 0; font-size: 14px; color: var(--faint); line-height: 1.5; }

/* Sections */
.section-title {
  font-family: var(--display); font-weight: 700; font-size: 28px; margin: 0 0 18px;
  text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 3px solid var(--ink); padding-bottom: 8px;
}
.steps { margin: 0 0 40px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps__item {
  background: #fff; border: 1px solid var(--line); padding: 16px 20px;
  display: flex; gap: 16px; align-items: baseline; font-size: 16px; line-height: 1.5;
}
.steps__num { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--red); }
.faq { display: flex; flex-direction: column; gap: 20px; font-size: 16px; line-height: 1.55; }
.faq p { margin: 4px 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #aaaaaa; margin-top: 40px; }
.site-footer__inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.site-footer__logo {
  font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff;
  text-transform: uppercase; letter-spacing: 1px;
}
.site-footer a { color: #fff; }

@media (max-width: 600px) {
  .site-header__top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .headline { font-size: 36px; }
  .lede { font-size: 17px; }
  .card { padding: 24px 20px; }
  .keybox__key { font-size: 20px; }
}
