/* Fintech app: Ferngate, an invented mobile bank. Clean white, deep green and a cool mint with Segoe UI headings and tabular numbers. Trust, the app itself, fees and a savings calculator are the product. */

.ft-page {
  --ft-canvas: #fafcfb;
  --ft-surface: #ffffff;
  --ft-band: #edf5f1;
  --ft-ink: #0e1f18;
  --ft-muted: #4a5e55;
  --ft-line: #d8e6df;
  --ft-line-strong: #738a80;
  --ft-accent: #0d6b4b;
  --ft-accent-hover: #09533a;
  --ft-on-accent: #ffffff;
  --ft-tint: #dcf0e6;
  --ft-success: #0d6b4b;
  --ft-danger: #b3261e;
  --ft-focus: #0d6b4b;
  --ft-phone: #0e1f18;
  --ft-screen: #ffffff;
  --ft-c1: #0d6b4b;
  --ft-c2: #2f6fb3;
  --ft-c3: #a15c00;
  --ft-c4: #7a3fb3;
  --ft-head: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --ft-body: "Segoe UI", system-ui, sans-serif;
  --ft-r: 16px;

  background: var(--ft-canvas);
  color: var(--ft-ink);
  font-family: var(--ft-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): deep green night with mint. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .ft-page {
    --ft-canvas: #08130e;
    --ft-surface: #0f1d17;
    --ft-band: #0b1813;
    --ft-ink: #e7f3ed;
    --ft-muted: #a2b9ae;
    --ft-line: #1f3329;
    --ft-line-strong: #6b867a;
    --ft-accent: #6ee7b7;
    --ft-accent-hover: #9cf0cd;
    --ft-on-accent: #03241a;
    --ft-tint: #16302a;
    --ft-success: #6ee7b7;
    --ft-danger: #ff8a80;
    --ft-focus: #6ee7b7;
    --ft-phone: #000000;
    --ft-screen: #0f1d17;
    --ft-c1: #6ee7b7;
    --ft-c2: #7fb4ff;
    --ft-c3: #ffb366;
    --ft-c4: #c9a2ff;
    color-scheme: dark;
  }
}

.ft-page [hidden] { display: none !important; }
:where(.ft-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.ft-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.ft-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.ft-page) a { color: var(--ft-accent); }
:where(.ft-page) :is(h1, h2, h3, h4) { color: inherit; }
.ft-page :focus-visible { outline: 3px solid var(--ft-focus); outline-offset: 2px; }
.ft-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--ft-accent); }
html:has(.ft-page) { scroll-behavior: smooth; }
.ft-page section[id] { scroll-margin-top: 72px; }
.ft-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.ft-header { position: sticky; top: 0; z-index: 20; background: var(--ft-canvas); border-bottom: 1px solid var(--ft-line); }
.ft-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.ft-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--ft-head); color: var(--ft-ink) !important; text-decoration: none; }
.ft-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--ft-tint); stroke: var(--ft-accent); stroke-width: 2; stroke-linejoin: round; }
.ft-nav { margin-left: auto; }
.ft-nav ul { display: flex; gap: 22px; }
.ft-nav a { color: var(--ft-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ft-nav a:hover { color: var(--ft-accent); text-decoration: underline; text-underline-offset: 4px; }
.ft-menu-btn { display: none; }
.ft-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ft-line-strong); border-radius: var(--ft-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.ft-theme-btn:hover { background: var(--ft-tint); }

.ft-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--ft-accent); border-radius: var(--ft-r); font: 700 1rem/1.2 var(--ft-head); text-decoration: none; cursor: pointer; text-align: center;
}
.ft-btn--fill { background: var(--ft-accent); color: var(--ft-on-accent) !important; }
.ft-btn--fill:hover { background: var(--ft-accent-hover); border-color: var(--ft-accent-hover); }
.ft-btn--line { background: transparent; color: var(--ft-accent) !important; }
.ft-btn--line:hover { background: var(--ft-tint); }
.ft-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.ft-btn:disabled { background: var(--ft-band); border-color: var(--ft-line-strong); color: var(--ft-muted) !important; cursor: not-allowed; }

.ft-eyebrow { font-weight: 700; color: var(--ft-accent); font-size: .92rem; letter-spacing: .02em; }
.ft-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--ft-head); }
.ft-sub { color: var(--ft-muted); margin-top: 8px; max-width: 64ch; }
.ft-head { margin-bottom: 26px; }
.ft-sec { padding: 72px 0; }
.ft-band { background: var(--ft-band); }
.ft-muted { color: var(--ft-muted); }
.ft-small { font-size: .9rem; color: var(--ft-muted); }

.ft-hero { padding: 64px 0 56px; }
.ft-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.ft-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--ft-head); margin-top: 10px; }
.ft-lede { font-size: 1.15rem; color: var(--ft-muted); margin-top: 16px; max-width: 54ch; }
.ft-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ft-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--ft-muted); font-size: .95rem; }
.ft-facts strong { color: var(--ft-ink); }
.ft-panel { padding: 24px; background: var(--ft-surface); border: 1px solid var(--ft-line); border-radius: calc(var(--ft-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.ft-panel-title { font: 700 1.1rem var(--ft-head); margin-bottom: 12px; }

.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.ft-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--ft-surface); border: 1px solid var(--ft-line); border-radius: var(--ft-r); }
.ft-card h3 { font: 700 1.15rem/1.25 var(--ft-head); }
.ft-card p { color: var(--ft-muted); font-size: .96rem; }
.ft-card .ft-btn { margin-top: auto; align-self: flex-start; }
.ft-card.is-on { border: 2px solid var(--ft-accent); }
.ft-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--ft-r) var(--ft-r) 0 0; background: var(--ft-tint); position: relative; overflow: hidden; }
.ft-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--ft-canvas); opacity: .7; }
.ft-price { font: 700 1.5rem var(--ft-head); color: var(--ft-ink); }
.ft-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ft-line-strong); font-size: .82rem; font-weight: 600; color: var(--ft-ink); }
.ft-badge--on { background: var(--ft-tint); border-color: var(--ft-accent); }
.ft-badge--bad { border-color: var(--ft-danger); color: var(--ft-danger); }
.ft-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--ft-muted); }

.ft-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ft-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--ft-line-strong); border-radius: 999px; background: var(--ft-surface); color: var(--ft-ink); font: 600 .95rem var(--ft-body); cursor: pointer; }
.ft-chip:hover { border-color: var(--ft-accent); }
.ft-chip[aria-pressed="true"] { background: var(--ft-accent); border-color: var(--ft-accent); color: var(--ft-on-accent); }
.ft-count { font-weight: 600; margin-bottom: 14px; }
.ft-empty { padding: 28px; text-align: center; border: 1px dashed var(--ft-line-strong); border-radius: var(--ft-r); }

.ft-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.ft-steps li { padding: 22px; background: var(--ft-surface); border: 1px solid var(--ft-line); border-radius: var(--ft-r); counter-increment: st; }
.ft-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--ft-accent); color: var(--ft-on-accent); font-weight: 700; }
.ft-steps h3 { font: 700 1.1rem var(--ft-head); }
.ft-steps p { color: var(--ft-muted); font-size: .95rem; margin-top: 4px; }

.ft-table { width: 100%; border-collapse: collapse; background: var(--ft-surface); border: 1px solid var(--ft-line); border-radius: var(--ft-r); overflow: hidden; }
.ft-table th, .ft-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ft-line); vertical-align: top; }
.ft-table th { font-size: .88rem; color: var(--ft-muted); background: var(--ft-band); }
.ft-table td.ft-num, .ft-table th.ft-num { text-align: right; font-variant-numeric: tabular-nums; }

.ft-meter { height: 10px; border-radius: 999px; background: var(--ft-line); overflow: hidden; }
.ft-meter span { display: block; height: 100%; background: var(--ft-accent); border-radius: inherit; }
.ft-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.ft-stat strong { display: block; font: 700 2rem/1.1 var(--ft-head); }
.ft-stat span { color: var(--ft-muted); font-size: .92rem; }

.ft-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.ft-qs details { border-bottom: 1px solid var(--ft-line); }
.ft-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.ft-qs p { padding: 0 0 16px; color: var(--ft-muted); }

.ft-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--ft-surface); border: 1px solid var(--ft-line); border-radius: calc(var(--ft-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.ft-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ft-field--full { grid-column: 1 / -1; }
.ft-field label, .ft-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.ft-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ft-line-strong); border-radius: calc(var(--ft-r) - 2px); background: var(--ft-canvas); color: var(--ft-ink); font: 1rem var(--ft-body); }
.ft-field textarea { min-height: 110px; resize: vertical; }
.ft-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--ft-danger); }
.ft-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.ft-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--ft-accent); }
.ft-hint { font-size: .88rem; color: var(--ft-muted); margin-top: 6px; }
.ft-error { color: var(--ft-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.ft-error::before { content: "! "; }
.ft-status { font-weight: 600; }
.ft-status.is-ok { padding: 14px 16px; border-radius: calc(var(--ft-r) - 2px); background: var(--ft-tint); border-left: 4px solid var(--ft-success); }

.ft-footer { padding: 28px 0; border-top: 1px solid var(--ft-line); color: var(--ft-muted); font-size: .92rem; }
.ft-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .ft-header-in { flex-wrap: wrap; gap: 10px; }
  .ft-theme-btn { margin-left: auto; }
  .ft-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--ft-line-strong); border-radius: var(--ft-r); background: transparent; color: var(--ft-ink); font: 600 .95rem var(--ft-body); cursor: pointer;
  }
  .ft-nav { display: none; order: 5; width: 100%; margin: 0; }
  .ft-nav.is-open { display: block; padding-bottom: 12px; }
  .ft-nav ul { flex-direction: column; gap: 0; }
  .ft-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--ft-line); }
  .ft-header-cta { display: none; }
  .ft-hero-in, .ft-faq-in, .ft-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .ft-sec { padding: 52px 0; }
  .ft-fields { grid-template-columns: minmax(0, 1fr); }
  .ft-form { padding: 20px; }
  .ft-table thead { display: none; }
  .ft-table, .ft-table tbody, .ft-table tr, .ft-table td { display: block; width: 100%; }
  .ft-table tr { border-bottom: 1px solid var(--ft-line-strong); padding: 6px 0; }
  .ft-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .ft-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ft-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.ft-page) { scroll-behavior: auto; }
}

@media print {
  .ft-header, .ft-theme-btn, .ft-form { display: none; }
}

/* This template's own sections */
.ft-phone { width: min(300px, 100%); margin: 0 auto; padding: 12px; border-radius: 36px; background: var(--ft-phone); }
.ft-screen { padding: 22px 18px; border-radius: 26px; background: var(--ft-screen); color: var(--ft-ink); }
.ft-ph-small { color: var(--ft-muted); font-size: .85rem; }
.ft-ph-small b { color: var(--ft-ink); }
.ft-ph-bal { font: 700 2rem var(--ft-head); font-variant-numeric: tabular-nums; margin: 2px 0 6px; }
.ft-ph-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 14px 0 12px; }
.ft-ph-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: .9rem; border-bottom: 1px solid var(--ft-line); }
.ft-ph-list span:first-child { display: flex; gap: 8px; align-items: center; }
.ft-dot { width: 10px; height: 10px; border-radius: 50%; }
.ft-k1 { background: var(--ft-c1); } .ft-k2 { background: var(--ft-c2); } .ft-k3 { background: var(--ft-c3); } .ft-k4 { background: var(--ft-c4); }
.ft-two { display: grid; gap: 40px; align-items: start; }
.ft-lab { display: block; font-weight: 700; margin: 18px 0 6px; }
.ft-two input[type="range"] { width: 100%; }
.ft-big { font: 700 2.4rem var(--ft-head); font-variant-numeric: tabular-nums; margin: 4px 0 10px; }
.ft-sum div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ft-line); }
.ft-sum dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.ft-hint { color: var(--ft-muted); font-size: .88rem; margin-top: 10px; }
.ft-fees td:nth-child(2) { background: var(--ft-tint); }
.ft-fees td:nth-child(2), .ft-fees td:nth-child(2) b { color: var(--ft-ink); }
