/* ==========================================================================
   Formidify — shared site stylesheet
   Plain CSS, no build step, no external resources.
   Brand: Formidify blue #0042CB, teal accent #03A3BF (blue→teal gradient).
   ========================================================================== */

/* ---- Reset / base ---------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

:root {
  /* Brand */
  --blue: #0042cb;
  --blue-hover: #0035a3;
  --blue-deep: #001747;
  --blue-navy: #000f2e;
  --blue-tint: #ecf2fe;
  --blue-tint-2: #d7e3fc;
  --teal: #03a3bf;
  --teal-text: #067387; /* darkened teal for accessible small text */
  --gradient: linear-gradient(90deg, #0042cb 0%, #03a3bf 100%);

  /* Neutrals */
  --ink: #26303f;
  --ink-soft: #4b5768;
  --ink-faint: #6e7a8c;
  --paper: #ffffff;
  --mist: #f5f7fb;
  --line: #dfe5f0;

  /* Feedback */
  --warn-bg: #fff7e0;
  --warn-border: #e6b800;
  --warn-ink: #664d00;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 23, 71, 0.08), 0 8px 24px rgba(0, 23, 71, 0.07);
  --max: 1080px;
  --max-narrow: 46rem;
}

h1, h2, h3, h4 {
  color: var(--blue-deep);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

code {
  font-family: Consolas, "Cascadia Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--blue-deep);
  white-space: nowrap;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ---- Layout helpers --------------------------------------------------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: var(--max-narrow);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---- Header / navigation ---------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--gradient);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.brand .brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.brand .brand-tm {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--ink-faint);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--teal);
}

.site-nav .btn {
  margin-left: 0.5rem;
}

/* .site-nav a's link color outranks .btn-primary; restate white for the nav CTA */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:focus-visible {
  color: #fff;
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 0.75em 1.5em;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 2px 6px rgba(0, 66, 203, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}

.btn-outline {
  background: var(--paper);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--blue-tint);
  color: var(--blue-hover);
}

.btn-inverse {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.btn-inverse:hover,
.btn-inverse:focus-visible {
  background: var(--blue-tint);
  border-color: var(--blue-tint);
  color: var(--blue-hover);
}

.btn-lg {
  font-size: 1.08rem;
  padding: 0.85em 1.8em;
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(60rem 30rem at 110% -20%, rgba(3, 163, 191, 0.1), transparent 60%),
    radial-gradient(50rem 28rem at -15% 10%, rgba(0, 66, 203, 0.08), transparent 60%),
    var(--paper);
  padding: 4.5rem 0 4rem;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 1.1rem;
}

.hero h1 {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.hero .subhead {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.hero-note strong {
  color: var(--ink-soft);
}

/* ---- Trust band --------------------------------------------------------- */

.trust-band {
  background: var(--blue-deep);
  color: #fff;
  padding: 2.4rem 0;
}

.trust-band .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-band .shield {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
}

.trust-band p {
  margin: 0;
  flex: 1 1 24rem;
  font-size: 1.06rem;
  line-height: 1.6;
}

.trust-band strong {
  color: #7fd7e6;
}

.trust-band a {
  color: #b9cef9;
  text-decoration: underline;
  white-space: nowrap;
}

/* ---- Sections ----------------------------------------------------------- */

.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--mist);
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head .kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---- Feature rows -------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

.feature-copy h3 {
  font-size: 1.45rem;
}

.feature-copy .feature-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 0.6rem;
}

.feature-copy p {
  color: var(--ink-soft);
}

.feature-copy ul {
  color: var(--ink-soft);
  padding-left: 1.2rem;
  margin: 0;
}

.feature-copy li {
  margin-bottom: 0.4rem;
}

.feature:nth-child(even) .feature-copy {
  order: 2;
}

.feature:nth-child(even) .feature-visual {
  order: 1;
}

/* ---- Feature visuals (CSS mockups) --------------------------------------- */

.feature-visual {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.mock-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.mock-card + .mock-card {
  margin-top: 0.9rem;
}

.mock-card .mock-title {
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
}

.mock-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.mock-label {
  flex: 0 0 5.4rem;
  font-weight: 600;
  color: var(--ink-faint);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.mock-current {
  color: #a33c3c;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(163, 60, 60, 0.55);
}

.mock-suggested {
  color: #1c7a35;
  font-weight: 600;
}

.mock-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.mock-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35em 0.9em;
  border-radius: 6px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: #fff;
}

.mock-btn-primary {
  background: var(--blue);
  color: #fff;
}

.mock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.mock-list li {
  padding: 0.28rem 0;
}

.mock-num {
  display: inline-block;
  min-width: 2.6rem;
  font-weight: 700;
  color: var(--blue);
}

.mock-muted {
  color: var(--ink-faint);
}

.mock-flag {
  border-bottom: 2px dotted #c0392b;
}

.mock-chip {
  display: inline-block;
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-2);
  color: var(--blue-hover);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2em 0.8em;
  margin-top: 0.6rem;
}

.mock-arrow {
  text-align: center;
  color: var(--teal-text);
  font-weight: 700;
  margin: 0.55rem 0;
}

/* Privacy diagram */

.privacy-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.pd-box {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.pd-box .pd-head {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.pd-stays {
  border-left: 4px solid var(--blue);
}

.pd-stays .pd-head { color: var(--blue); }

.pd-leaves {
  border-left: 4px solid var(--teal);
}

.pd-leaves .pd-head { color: var(--teal-text); }

.pd-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.pd-tokens span {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12em 0.7em;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-family: Consolas, "Cascadia Mono", Menlo, monospace;
}

/* ---- How it works --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.steps-footnote {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin: 2rem auto 0;
  max-width: 36rem;
}

/* ---- Screenshot placeholders ---------------------------------------------- */

.video-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.shot-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.shot-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.shot-body {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 12px;
  border: 2px dashed var(--blue-tint-2);
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(
    -45deg,
    #fbfcff,
    #fbfcff 12px,
    #f3f6fd 12px,
    #f3f6fd 24px
  );
  text-align: center;
  padding: 1rem;
}

.shot-body .shot-label {
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.95rem;
}

.shot-body .shot-hint {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.shot-caption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
}

/* ---- CTA band --------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(105deg, #0035a3 0%, #0042cb 45%, #03a3bf 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 1.8rem;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band .cta-small {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Footer ------------------------------------------------------------------- */

.site-footer {
  background: var(--blue-navy);
  color: #b6c2d6;
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.2rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  margin-bottom: 0.7rem;
}

.footer-brand .fb-name {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  margin: 0;
  max-width: 24rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #b9cef9;
}

.site-footer a:hover {
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: #8494ab;
}

.footer-legal p {
  margin: 0 0 0.4rem;
}

/* ---- Inner pages (legal / docs / support) --------------------------------------- */

.page-hero {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.3rem;
}

.page-hero .page-meta {
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin: 0;
}

.page-body {
  padding: 3rem 0 4rem;
}

.article h2 {
  margin-top: 2.6rem;
  padding-top: 0.4rem;
  font-size: 1.45rem;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin-top: 1.8rem;
  color: var(--blue-deep);
}

.article ul,
.article ol {
  padding-left: 1.4rem;
  color: var(--ink);
}

.article li {
  margin-bottom: 0.45rem;
}

.article .lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

/* Draft banner for legal pages */

.draft-banner {
  background: var(--warn-bg);
  border: 1.5px solid var(--warn-border);
  border-left-width: 6px;
  border-radius: var(--radius-sm);
  color: var(--warn-ink);
  padding: 1rem 1.25rem;
  margin: 0 0 2.2rem;
  font-size: 0.98rem;
}

.draft-banner strong {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Callouts */

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}

.callout.warn {
  border-left-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-ink);
}

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

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.6rem;
}

table.data {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
}

table.data caption {
  text-align: left;
  font-weight: 700;
  color: var(--blue-deep);
  padding-bottom: 0.5rem;
}

table.data th,
table.data td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

table.data th {
  background: var(--mist);
  color: var(--blue-deep);
  font-weight: 700;
}

/* FAQ (details/summary) */

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 0.8rem;
  padding: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue-deep);
  padding: 0.95rem 1.15rem;
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013"; /* en dash as minus */
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq .faq-a {
  padding: 0.95rem 1.15rem;
  color: var(--ink-soft);
}

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

/* On-this-page nav (docs) */

.toc {
  border: 1px solid var(--line);
  background: var(--mist);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2.4rem;
  font-size: 0.95rem;
}

.toc strong {
  display: block;
  color: var(--blue-deep);
  margin-bottom: 0.4rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.3rem;
}

.toc li {
  margin-bottom: 0.25rem;
}

/* Workflow inline diagram (docs) */

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.2rem 0 1.6rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.flow span.flow-step {
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-2);
  color: var(--blue-hover);
  border-radius: 999px;
  padding: 0.3em 1em;
}

.flow span.flow-arrow {
  color: var(--teal-text);
}

/* Back-to-top helper on long pages */

.top-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

/* ---- Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .feature:nth-child(even) .feature-copy {
    order: 1;
  }

  .feature:nth-child(even) .feature-visual {
    order: 2;
  }

  .steps,
  .shots {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .header-inner {
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .top-link {
    display: none;
  }
}
