/* ============================================
   FORTRESS PROTOCOL v4 — Light Theme
   Standalone — no shared dependencies
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: #555;
  background: #f5f1ec;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #b4d5fe;
}

.page {
  max-width: 780px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 3rem 4.5rem 4rem;
}

.article-header {
  text-align: center;
  margin-bottom: 2.25rem;
  padding-bottom: 0;
}

.article-header__title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #333;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.article-header__byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-header__avatar {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #ddd;
  display: inline-block;
  overflow: hidden;
  position: relative;
}

.article-header__avatar img {
  width: 22px !important;
  height: 22px !important;
  object-fit: cover;
  display: block;
  max-width: none;
}

.article-header__byline a {
  color: #4a8db7;
  text-decoration: none;
}

.article-header__byline a:hover {
  text-decoration: underline;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e5e1dc;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: #fcfbfa;
}

.author-card__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2c5c6e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  overflow: hidden;
}

.author-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card__info {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}

.author-card__name {
  font-weight: 700;
  color: #333;
  font-size: 0.95rem;
}

.author-card__title {
  color: #2c5c6e;
  font-weight: 600;
  font-size: 0.82rem;
}

.scarcity-notice {
  text-align: center;
  margin: 1.5rem 0 2rem;
  padding: 0.9rem 0;
  border-top: 1px solid #e5e1dc;
  border-bottom: 1px solid #e5e1dc;
}

.scarcity-notice__text {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.88rem;
  font-style: italic;
  color: #888;
  letter-spacing: 0.01em;
}

.scarcity-notice__text strong {
  color: #2c5c6e;
  font-style: italic;
  font-weight: 700;
}

p {
  margin-bottom: 1.1rem;
}

strong {
  font-weight: 700;
  color: #333;
}

em {
  font-style: italic;
}

mark {
  background: #fef3ac;
  color: inherit;
  padding: 0.05em 0.15em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

a {
  color: #4a8db7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #35708f;
}

h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.45rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  color: #2c5c6e;
  margin: 2.5rem 0 0.9rem;
}

h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

blockquote {
  border-left: 3px solid #333;
  padding: 0.9rem 1.3rem;
  margin: 1.5rem 0;
  color: #555;
  background: transparent;
}

blockquote strong { color: #222; }
blockquote em { font-style: italic; }
blockquote p { margin-bottom: 0.65rem; }
blockquote p:last-child { margin-bottom: 0; }

ul, ol { margin: 0.75rem 0 1.25rem 1.5rem; }
ul { list-style: disc; }
ol { list-style: decimal; }
li { margin-bottom: 0.35rem; line-height: 1.7; }

hr {
  border: none;
  border-top: 1px solid #e5e1dc;
  margin: 2.5rem 0;
}

.scenario-box {
  border: 1px solid #e5e1dc;
  border-radius: 4px;
  padding: 1.4rem 1.5rem 0;
  margin: 1.35rem 0;
  background: #fcfbfa;
  overflow: hidden;
}

.scenario-box h3 { margin-bottom: 0.75rem; }
.scenario-box p { margin-bottom: 1rem; }

.scenario-box .resolved {
  margin: 1rem -1.5rem 0;
  padding: 0.85rem 1.5rem 0.95rem;
  background: #eef6f0;
  border-top: 2px solid #4caf6a;
}

.scenario-box .resolved__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2e8b4a;
  margin-bottom: 0.3rem;
}

.scenario-box .resolved__label .check { font-size: 0.85rem; }

.scenario-box .resolved__text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #3a3a3a;
  font-weight: 500;
}

.phase-label {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 0.1rem;
}

.phase-sub {
  display: block;
  font-size: 0.88rem;
  color: #999;
  font-style: italic;
  margin-bottom: 1rem;
}

.proof-block {
  border: 1px solid #e5e1dc;
  border-left: 3px solid #2c5c6e;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: #fcfbfa;
}

.proof-block p { font-style: italic; margin-bottom: 0.6rem; }
.proof-block p:last-child { margin-bottom: 0; }

.proof-block .proof-attr {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-style: normal;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.1rem;
}

.guarantee-box {
  border: 1px solid #e5e1dc;
  border-left: 3px solid #4a8db7;
  border-radius: 4px;
  padding: 1.4rem 1.5rem 0.5rem;
  margin: 1.5rem 0;
  background: #fcfbfa;
}

.cta { text-align: center; margin: 2.5rem 0; }

.cta-btn {
  display: inline-block;
  background: #4a8db7;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.cta-btn:hover { background: #3a7499; color: #fff; }

.inline-cta {
  text-align: center;
  margin: 1.5rem 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
}

.inline-cta a { color: #4a8db7; font-weight: 600; }

.footer {
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e5e1dc;
  font-size: 0.78rem;
  color: #bbb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   FUNNEL / APPLICATION FORM STYLES
   ============================================ */

.funnel-step { display: none; }
.funnel-step.active { display: block; }

.back-to-offer {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  color: #999;
  text-decoration: none;
  margin-bottom: 2rem;
}

.back-to-offer:hover { color: #4a8db7; }

.progress { margin-bottom: 2.25rem; }

.progress__labels {
  display: flex;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 0.45rem;
}

.progress__track {
  height: 5px;
  background: #e8e5e0;
  border-radius: 3px;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  background: #4a8db7;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.field { margin-bottom: 1.35rem; }

.field__label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.35rem;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  color: #333;
  background: #fff;
  border: 1px solid #d5d1cc;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  transition: border-color 0.15s;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: #4a8db7;
  box-shadow: 0 0 0 2px rgba(74, 141, 183, 0.15);
}

.field__textarea { resize: vertical; min-height: 5rem; line-height: 1.6; }

.field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.field__helper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 0.3rem;
  font-style: italic;
}

.field__error {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  color: #c44;
  margin-top: 0.3rem;
  min-height: 0;
}

.field__error:empty { display: none; }
.required { color: #c44; }

.field__row { display: grid; gap: 1rem; }
.field__row--2 { grid-template-columns: 1fr 1fr; }
.field__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.field__row .field { margin-bottom: 0; }

.field--checkbox { display: flex; align-items: flex-start; gap: 0.5rem; }
.field--checkbox input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; accent-color: #4a8db7; }
.field--checkbox label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  color: #777;
  line-height: 1.5;
}
.field--checkbox label a { color: #4a8db7; }

.funnel-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e5e0;
}

.btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  display: inline-block;
  text-align: center;
}

.btn--primary { background: #4a8db7; color: #fff; }
.btn--primary:hover { background: #3a7499; }
.btn--ghost { background: transparent; color: #999; border: 1px solid #d5d1cc; padding: 0.6rem 1.25rem; }
.btn--ghost:hover { border-color: #4a8db7; color: #4a8db7; }
.btn--full { flex: 1; }

.info-card {
  border: 1px solid #e5e1dc;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  background: #fcfbfa;
  margin: 1.5rem 0;
}

.info-card__title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.5rem;
}

.video-placeholder {
  border: 1px solid #e5e1dc;
  border-radius: 4px;
  background: #f9f7f5;
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Wrapper around the embedded video. No dark frame — clean rounded card
   sitting on the page background. Same treatment on desktop and mobile;
   only the aspect ratio swaps between breakpoints. */
.video-placeholder--has-video {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
}

/* Desktop (>= 601px): 16:9 landscape video with CapCut blur fill baked in. */
.video-embed-wrap {
  margin: 0 auto;
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.12),
              0 2px 8px  rgba(20, 20, 20, 0.06);
}

@supports not (aspect-ratio: 1) {
  .video-embed-wrap { height: 0; width: 100%; max-width: 720px; padding-top: 56.25%; }
}

.video-embed-wrap .video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #000;
}

/* Caption sits as a plain italic line below the video on the page background. */
.video-placeholder--has-video .video-placeholder__label {
  margin: 0.85rem 0 0;
  padding: 0;
  background: transparent;
  color: #888;
  font-style: italic;
  font-size: 0.82rem;
}

/* Mobile (<= 600px): 9:16 vertical video, height-capped so the CTA stays in view. */
@media (max-width: 600px) {
  .video-embed-wrap {
    aspect-ratio: 9 / 16;
    max-width: 100%;
    /* Pick the smaller of: full available width, or a 9:16 frame that fits
       within ~72% of viewport height. Guarantees no pillars and a visible CTA. */
    width: min(100%, calc(72svh * 9 / 16));
    background: #f9f7f5;
  }

  @supports not (aspect-ratio: 1) {
    .video-embed-wrap { height: 0; width: 100%; padding-top: 177.78%; }
  }

  .video-embed-wrap .video-embed {
    background: transparent;
  }

  .video-placeholder--has-video .video-placeholder__label {
    font-size: 0.78rem;
    padding: 0 1rem;
  }
}

.video-placeholder__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4a8db7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.video-placeholder__play svg { width: 20px; height: 20px; fill: #fff; }

.video-placeholder__label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  color: #999;
  font-style: italic;
}

.deposit-summary {
  border: 1px solid #e5e1dc;
  border-radius: 4px;
  overflow: hidden;
  margin: 1.75rem 0;
  background: #fcfbfa;
}

.deposit-summary__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid #eeebe7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: #333;
}

.deposit-summary__header .checkmark { color: #2e7d4f; font-size: 1rem; }

.deposit-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1.35rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  color: #555;
  border-bottom: 1px solid #eeebe7;
}

.deposit-summary__row:last-child { border-bottom: none; }
.deposit-summary__row--total { background: #f5f1ec; }
.deposit-summary__amount { font-weight: 700; color: #333; font-size: 1.05rem; }

.confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f5ed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.confirmation-icon svg { width: 28px; height: 28px; stroke: #2e7d4f; fill: none; stroke-width: 2.5; }

.funnel-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e1dc;
  display: flex;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  color: #bbb;
}

@media (max-width: 840px) {
  .page { margin: 0; border-radius: 0; box-shadow: none; padding: 2rem 2.5rem 3rem; }
}

@media (max-width: 600px) {
  body { font-size: 15px; background: #fff; }
  .page { padding: 1.75rem 1.25rem 2.5rem; }
  .article-header__title { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .scenario-box { padding: 1.1rem 1rem 0.5rem; }
  .author-card { flex-direction: column; text-align: center; }
  .field__row--2, .field__row--3 { grid-template-columns: 1fr; }
  .funnel-nav { flex-direction: column-reverse; }
  .funnel-footer { flex-direction: column; gap: 0.25rem; text-align: center; }
}
