/* =============================================================================
 * DreamFactory Trial Portal — plain CSS mirroring www.dreamfactory.com
 *
 * Sources of truth: marketing-site-www/DESIGN.md + design-system.css (tokens) and
 * the live homepage CSS (navbar-23 / footer / section-bg-1st / cta-green / hero-form).
 * Fonts are the site's own woff2 files, self-hosted in public/fonts (byte-identical).
 * No framework, no build step. Sections:
 *   1 tokens   2 base/type   3 nav   4 hero + sections   5 buttons   6 cards/grids
 *   7 forms    8 copy fields  9 trial banner  10 footer  11 admin  12 responsive
 * ============================================================================ */

/* ---- 1. tokens -------------------------------------------------------------- */
@font-face { font-family: 'Interdisplay'; src: url('../fonts/InterDisplay-Medium.woff2') format('woff2'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: 'Interdisplay'; src: url('../fonts/InterDisplay-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Interdisplay'; src: url('../fonts/InterDisplay-Bold.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Medium.woff2') format('woff2'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Bold.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  /* brand ramps (DESIGN.md §1, verbatim) */
  --dreamfactory-coral--100: #FFEDE5; --dreamfactory-coral--200: #FFDBCB; --dreamfactory-coral--300: #FFB595;
  --dreamfactory-coral--400: #FF8C5A; --dreamfactory-coral--500: #DD7345; --dreamfactory-coral--600: #B65F39;
  --dreamfactory-coral--700: #914B2D; --dreamfactory-coral--800: #6D3922; --dreamfactory-coral--900: #4B2717; --dreamfactory-coral--1000: #2B160D;
  --dreamfactory-purple--100: #F1F0F6; --dreamfactory-purple--200: #E2E1ED; --dreamfactory-purple--300: #C6C4DB;
  --dreamfactory-purple--400: #AAA8CA; --dreamfactory-purple--500: #908CBA; --dreamfactory-purple--600: #7571A9;
  --dreamfactory-purple--700: #5C5699; --dreamfactory-purple--800: #423C89; --dreamfactory-purple--900: #29227A; --dreamfactory-purple--1000: #0F0761;

  /* semantic (design-system.css) */
  --df-font: Interdisplay, Inter, Arial, sans-serif;
  --df-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --df-ink: #1D1B2E;
  --df-ink-muted: #5C5699;
  --df-text: #333;                 /* paragraph colour on the live site */
  --df-nav-text: #1a1a2e;          /* --text-primary on the live site */
  --df-cta: var(--dreamfactory-coral--400); --df-cta-hover: var(--dreamfactory-coral--500); --df-cta-text: #FFFFFF;
  --df-demo: #35A86E; --df-demo-hover: #2E9460; --df-demo-text: #FFFFFF;
  --df-link: var(--dreamfactory-coral--600);
  --df-accent: #ff8d5c;            /* hero accent word */
  --df-danger: #e51520;
  --df-line: #e3e3e3;              /* card/nav hairline on the live site */
  --df-bg-light: var(--dreamfactory-purple--100);
  --df-bg-dark: var(--dreamfactory-purple--1000);
  /* hero: coral glow top-left + purple glow bottom-right (live .section-bg-1st) */
  --df-grad-hero: radial-gradient(at 0 0, #ffdbcc 0%, rgba(255,219,204,0) 55%), radial-gradient(at 100% 100%, #e3e2ee 0%, rgba(227,226,238,0) 55%), #fff;
  --df-grad-soft: radial-gradient(772.91% 155.7% at -0.06% 0%, rgba(92,86,153,.10) 0%, rgba(255,141,92,.10) 100%), #fff;
  --df-grad-dark: linear-gradient(135deg, #0F0761 0%, #29227A 60%, #423C89 100%);
  --df-grad-brand: linear-gradient(135deg, #0F0761 0%, #C76854 100%);
  --radius-card: 16px; --radius-pill: 100px; --radius-input: 12px;
  --shadow-pill: 0 8px 24px rgba(14,7,95,.08);
  --shadow-card-hover: 0 12px 16px -4px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03);
  --container: 1304px;
}

/* ---- 2. base + type scale --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--df-font); font-size: 16px; line-height: 24px; color: var(--df-ink); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4, h5, h6 { font-family: var(--df-font); color: var(--df-ink); margin: 0 0 12px; font-weight: 600; }
p { margin: 0 0 12px; color: var(--df-text); }
a { color: var(--df-link); }
a:hover { color: var(--dreamfactory-coral--500); }
strong { font-weight: 600; }
code, pre, kbd { font-family: var(--df-mono); font-size: 13.5px; }
code { background: var(--dreamfactory-purple--100); padding: 1px 6px; border-radius: 6px; color: var(--df-ink); }
.inline-code-dark { background: rgba(255,255,255,.14); color: #fff; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: var(--df-font); }
:focus-visible { outline: 3px solid var(--df-cta); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 1000; }

/* live-site type scale (.h1/.h2/.h3/.h6/.body3/.body4/.footnote) */
.h1 { font-size: 56px; line-height: 56px; font-weight: 500; letter-spacing: -.01em; }
.h2 { font-size: 47.8px; line-height: 52px; font-weight: 500; letter-spacing: -.01em; }
.h3 { font-size: 23px; line-height: 32px; font-weight: 600; }
.h4 { font-size: 20px; line-height: 28px; font-weight: 600; }
.h6 { font-size: 19.2px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.body2 { font-size: 20px; line-height: 32px; }
.body3, .lead { font-size: 18px; line-height: 28px; color: var(--df-text); }
.body4 { font-size: 17px; line-height: 26px; letter-spacing: -.01em; }
.footnote, .small { font-size: 15px; line-height: 20px; }
.xsmall { font-size: 13px; line-height: 20px; }
.accent { color: var(--df-accent); display: inline; }
.color-purple-1000 { color: var(--dreamfactory-purple--1000); }
.color-555 { color: #555; }
.muted { color: var(--df-ink-muted); }
.muted-light { color: var(--dreamfactory-purple--300); }
.center { text-align: center; }
.inline { display: inline; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.narrow-left { max-width: 760px; }
.spacer-8 { height: 8px; } .spacer-16 { height: 16px; } .spacer-24 { height: 24px; } .spacer-32 { height: 32px; } .spacer-48 { height: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #dd7346; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.7); border: 1px solid #ffdbcc; border-radius: var(--radius-pill); padding: 6px 14px; font-size: 13px; line-height: 20px; font-weight: 600; margin-bottom: 24px; }
.eyebrow::before { content: ""; background: var(--df-accent); border-radius: 50%; width: 6px; height: 6px; display: inline-block; }
.eyebrow-light { color: var(--dreamfactory-coral--300); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.link-button { background: none; border: 0; font: inherit; cursor: pointer; color: inherit; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 3. nav (live .newnavbar23) --------------------------------------------- */
.nav { position: sticky; top: 0; left: 0; right: 0; z-index: 310; background: #fff; border-bottom: 1px solid #e3e2ee; font-weight: 500; }
.nav-inner { display: flex; align-items: center; height: 64px; }
.nav-logo { display: flex; align-items: center; padding: 8px 0; margin-right: 0; }
.nav-logo img { display: block; width: 184px; height: 23px; }
.nav-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; margin-left: 16px; min-width: 0; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 400; color: var(--df-nav-text); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; background: transparent; border: 0; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.nav-link.has-menu { padding: 0 8px 0 14px; }
.nav-link:hover { color: var(--df-accent); background: #f0eff5; }
.nav-link:active { background: #e3e2ee; transform: translateY(1px); }
.nav-link:focus-visible { background: #f0eff5; outline: none; box-shadow: 0 0 0 3px rgba(14,7,95,.32); }
.nav-chevron { width: 24px; height: 24px; transition: transform .175s ease-in-out; flex: none; }
.nav-item:hover .nav-chevron, .nav-item:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: 46px; left: 0; min-width: 300px; background: #fff; border: 1px solid #e3e2ee; border-radius: 16px; box-shadow: 0 20px 40px rgba(14,7,95,.14); padding: 10px; margin: 0; list-style: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px); transition: opacity .2s ease, transform .24s cubic-bezier(.22,.61,.36,1), visibility 0s linear .22s; z-index: 320; }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 14px; } /* hover bridge */
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition: opacity .2s ease, transform .24s cubic-bezier(.22,.61,.36,1), visibility 0s; }
.nav-dropdown-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: #dd7346; font-weight: 600; padding: 8px 12px 4px; }
.nav-dropdown-eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--df-accent); border-radius: 2px; }
.nav-dropdown a { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; color: var(--df-nav-text); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 500; }
.nav-dropdown a:hover { background: #f0eff5; color: var(--df-accent); }
.nav-dropdown a span { font-size: 12.5px; line-height: 16px; color: var(--df-ink-muted); font-weight: 400; margin-top: 1px; }
.nav-dropdown a.nav-seeall { flex-direction: row; justify-content: space-between; color: #dd7346; font-weight: 600; margin-top: 4px; border-top: 1px solid #f0eff5; border-radius: 0 0 10px 10px; padding-top: 10px; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-actions .btn { margin-left: 10px; }
.nav-toggle { display: none; width: 83px; height: 60px; margin-left: auto; padding: 0; border: 0; background: url('../img/open-menu.svg') no-repeat 100% 50%; color: transparent; font-size: 12px; cursor: pointer; }
.nav.is-open .nav-toggle { background-image: url('../img/close-menu.svg'); }

/* ---- 4. hero + sections (live .section-n) ----------------------------------- */
.main { flex: 1 0 auto; display: block; }
.section { padding: 80px 0; position: relative; }
.section-hero { background: var(--df-grad-hero); }
.section-light { background: var(--df-bg-light); }
.section-soft { background: var(--df-grad-soft); }
.section-dark { background: var(--df-grad-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p, .section-dark .lead { color: #fff; }
.section-dark a { color: var(--dreamfactory-coral--300); }
.section-tight { padding: 48px 0; }
.section-page { padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.hero-copy .h1 { margin-bottom: 24px; }
.hero-copy .lead { max-width: 560px; margin-bottom: 24px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #555; font-size: 14px; line-height: 20px; margin-top: 16px; }
.hero-foot-dot { background: #ababab; border-radius: 50%; width: 4px; height: 4px; display: inline-block; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--df-text); font-size: 17px; line-height: 26px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--df-demo); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.3-4.2 4.2a1 1 0 0 1-1.4 0L4.3 8.7a1 1 0 1 1 1.4-1.4l1.1 1.1 3.5-3.5a1 1 0 1 1 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.3-4.2 4.2a1 1 0 0 1-1.4 0L4.3 8.7a1 1 0 1 1 1.4-1.4l1.1 1.1 3.5-3.5a1 1 0 1 1 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .h2 { margin-bottom: 16px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 0; }
.cta-row.center { justify-content: center; }
.divider { border: 0; border-top: 1px solid #e3e3e3; margin: 32px 0; }

/* the signature email pill (live .hero-form) */
.hero-form-w { width: 100%; max-width: 480px; margin: 0; }
.hero-form { display: flex; align-items: center; column-gap: 10px; width: 100%; max-width: 480px; padding: 6px 6px 6px 22px; background: #fff; border: 1px solid #e3e3e3; border-radius: 100px; box-shadow: var(--shadow-pill); }
.hero-form-input { flex: auto; min-width: 0; height: auto; margin: 0; padding: 8px 0; color: #222; font-size: 15px; line-height: 24px; background: transparent; border: 0; outline: none; display: inline-flex; }
.hero-form-input::placeholder { color: #8a8a99; }
.hero-form .btn { flex: none; }
.hero-form-w.center { margin-left: auto; margin-right: auto; }

/* ---- 5. buttons: pills (live .cta-green geometry) --------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-pill); font-family: var(--df-font); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: all .125s ease-out; -webkit-appearance: none; appearance: none; }
.btn-demo { background: var(--df-demo); border-color: var(--df-demo); color: var(--df-demo-text); }
.btn-demo:hover { background: var(--df-demo-hover); border-color: var(--df-demo-hover); color: #fff; }
.btn-cta { background: var(--df-cta); border-color: var(--df-cta); color: var(--df-cta-text); }
.btn-cta:hover { background: var(--df-cta-hover); border-color: var(--df-cta-hover); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--df-cta); color: var(--df-cta); padding: 11px 21px; }
.btn-outline:hover { background: var(--df-cta); color: #fff; }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,.85); color: #fff; padding: 11px 21px; }
.btn-outline-light:hover { background: #fff; color: var(--df-ink); }
.btn-danger { background: var(--df-danger); border-color: var(--df-danger); color: #fff; }
.btn-danger:hover { background: #b70f18; border-color: #b70f18; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; line-height: 18px; }
.btn-lg { padding: 14px 28px; font-size: 16px; line-height: 24px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--dreamfactory-purple--300); background: #fff; color: var(--df-ink); font: 600 13px/18px var(--df-font); cursor: pointer; text-decoration: none; transition: all .125s ease-out; }
.chip:hover { border-color: var(--df-cta); color: var(--df-cta-hover); background: var(--dreamfactory-coral--100); }
.chip.is-done { border-color: var(--df-demo); color: var(--df-demo); background: #eaf7f0; }

/* ---- 6. cards + grids (live .card-feature-link) ----------------------------- */
.card { background: #fff; border: 1px solid var(--df-line); border-radius: var(--radius-card); padding: 28px; }
.card + .card { margin-top: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-feature { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--df-line); border-radius: 16px; padding: 24px; height: 100%; transition: box-shadow .2s, border-color .2s; }
.card-feature:hover { border-color: var(--dreamfactory-coral--200); box-shadow: var(--shadow-card-hover); }
.card-feature-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--dreamfactory-coral--100); color: var(--dreamfactory-coral--500); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.card-feature-icon svg { width: 22px; height: 22px; }
.card-feature h3 { margin: 0; }
.card-feature p { margin: 0; }
.badge { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--dreamfactory-coral--100); color: var(--dreamfactory-coral--600); vertical-align: middle; }
.badge-muted { background: var(--dreamfactory-purple--100); color: var(--df-ink-muted); }
.badge-green { background: #eaf7f0; color: #1f7a4c; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--df-ink-muted); } .kv dd { margin: 0; }
.links { list-style: none; padding: 0; margin: 0 0 12px; } .links li { padding: 3px 0; }
.note { background: var(--dreamfactory-purple--100); border: 1px solid var(--dreamfactory-purple--200); border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-size: 15px; line-height: 22px; color: var(--df-ink); }
.note-coral { background: var(--dreamfactory-coral--100); border-color: var(--dreamfactory-coral--200); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
details.details { border-top: 1px solid var(--dreamfactory-purple--200); margin-top: 20px; padding-top: 12px; }
details.details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; color: var(--df-ink); padding: 4px 0; }
details.details summary::-webkit-details-marker { display: none; }
details.details summary::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--dreamfactory-coral--100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12.0588 17L5 9.94124L5.94124 9L12.0588 15.1175L18.1763 9L19.1175 9.94124L12.0588 17Z' fill='%23dd7346'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .175s; }
details.details[open] summary::before { transform: rotate(180deg); }
details.details summary:hover { color: var(--dreamfactory-coral--500); }
details.details > :not(summary) { margin-top: 8px; }
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 4px; }
.os-card { display: block; border: 1px solid var(--df-line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--df-ink); background: #fff; transition: box-shadow .2s, border-color .2s; }
.os-card:hover { border-color: var(--dreamfactory-coral--200); box-shadow: var(--shadow-card-hover); color: var(--df-ink); }
.os-card strong { display: block; margin-bottom: 2px; }
.os-card span { display: block; font-size: 13px; line-height: 18px; color: var(--df-ink-muted); }

/* deploy steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; padding: 24px 0 24px 56px; border-top: 1px solid var(--dreamfactory-purple--200); }
.step:first-child { border-top: 0; padding-top: 8px; }
.step-no { position: absolute; left: 0; top: 24px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--df-grad-brand); color: #fff; font-weight: 700; font-size: 16px; }
.step:first-child .step-no { top: 8px; }
.step h3 { margin-bottom: 4px; }
.step > p.muted { margin-bottom: 12px; }
.step-no-inline { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--df-grad-brand); color: #fff; font-weight: 700; font-size: 15px; margin-right: 8px; vertical-align: middle; }

/* ---- 7. forms ----------------------------------------------------------------- */
.form label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 15px; line-height: 20px; color: var(--df-ink); }
.form label:first-child { margin-top: 0; }
.form .req { color: var(--df-cta-hover); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form input[type=number], .form input[type=search], .form textarea, .form select {
  width: 100%; padding: 12px 16px; font: inherit; font-size: 16px; line-height: 24px; color: #222; background: #fff; border: 1px solid var(--df-line); border-radius: var(--radius-input); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--df-cta); box-shadow: 0 0 0 3px rgba(255,140,90,.2); outline: none; }
.form input[aria-invalid=true] { border-color: var(--df-danger); }
.form fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; } .form legend { font-weight: 600; padding: 0; margin-bottom: 8px; font-size: 15px; line-height: 20px; }
.chips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip-check { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--df-line); border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 20px; margin: 0 !important; font-weight: 500 !important; background: #fff; transition: all .125s ease-out; }
.chip-check:hover { border-color: var(--dreamfactory-coral--300); }
.chip-check:has(input:checked) { border-color: var(--df-cta); background: var(--dreamfactory-coral--100); }
.chip-check input { accent-color: var(--df-cta); margin: 0; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; line-height: 20px !important; margin-top: 20px !important; color: var(--df-text) !important; }
.consent input { margin-top: 3px; accent-color: var(--df-cta); flex: none; }
.form .btn { margin-top: 20px; }
.field-error { color: var(--df-danger); font-size: 14px; line-height: 20px; margin: 6px 0 0; }
.hint { color: var(--df-ink-muted); font-size: 13px; line-height: 20px; margin: 6px 0 0; }
.flash { background: var(--dreamfactory-purple--100); border: 1px solid var(--dreamfactory-purple--200); border-radius: 12px; padding: 12px 16px; margin: 16px 0; font-size: 15px; line-height: 22px; }
.flash-success { background: #eaf7f0; border-color: #bfe6d1; color: #14532d; }
.flash-error { background: #fdecec; border-color: #f5c2c2; color: #7f1d1d; } .flash ul { margin: 0; padding-left: 18px; }
.form-card { padding: 28px 28px 24px; }
.form-card .form-title { margin-bottom: 4px; }

/* ---- 8. copy fields ------------------------------------------------------------ */
.copy-field { margin: 12px 0; min-width: 0; }
.copy-field-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.copy-field-label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--df-ink-muted); }
.copy-field-actions { display: flex; gap: 6px; flex: none; }
.code { display: block; background: var(--dreamfactory-purple--100); border: 1px solid var(--dreamfactory-purple--200); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; margin: 0; max-height: 420px; overflow: auto; font-size: 13.5px; line-height: 20px; color: var(--df-ink); }
.code.masked { letter-spacing: .1em; color: var(--df-ink-muted); }

/* ---- 9. trial banner (mirrors the in-product DfTrialBanner: info > warning > critical) */
.trial-banner { color: #fff; background: var(--df-grad-dark); font-size: 15px; line-height: 22px; }
.trial-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.trial-banner-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.trial-banner-text .sep { opacity: .55; }
.trial-banner a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.trial-banner-remaining { font-weight: 600; font-variant-numeric: tabular-nums; }
.trial-banner-icon { width: 18px; height: 18px; flex: none; margin-right: 2px; }
.trial-banner-actions { display: flex; gap: 8px; flex: none; }
.trial-banner-warning { background: var(--dreamfactory-coral--400); color: var(--dreamfactory-coral--1000); }
.trial-banner-warning .btn-outline-light { border-color: var(--dreamfactory-coral--1000); color: var(--dreamfactory-coral--1000); }
.trial-banner-warning .btn-outline-light:hover { background: var(--dreamfactory-coral--1000); color: #fff; }
.trial-banner-critical { background: var(--df-danger); color: #fff; }
.trial-banner-expired { background: #3f3f46; color: #fff; }
/* small in-card countdown pill */
.countdown-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 14px; line-height: 20px; font-weight: 600; }
.countdown-pill-info { background: var(--dreamfactory-purple--100); color: var(--dreamfactory-purple--900); }
.countdown-pill-warning { background: var(--dreamfactory-coral--100); color: var(--dreamfactory-coral--800); }
.countdown-pill-critical { background: #fdecec; color: #8b1111; }
.countdown-pill-expired { background: #efefef; color: #444; }

/* ---- 10. footer (live .footer: white, hairline top, four 292px columns) --------- */
.footer { background: #fff; border-top: 1px solid #c0c0c0; padding: 32px 0; display: flex; flex-direction: column; gap: 32px; margin-top: auto; }
.footer-w { display: flex; flex-wrap: wrap; gap: 32px; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.footer-col { width: 100%; max-width: 292px; }
.footer-col section + section { margin-top: 32px; }
.footer-logo { display: inline-block; margin-bottom: 4px; }
.footer-logo img { display: block; width: 184px; height: 32px; }
.footer h2.h6 { color: #222; margin: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0; }
.footer-link { display: block; color: #222; padding: 7px 0; font-size: 16px; line-height: 24px; text-decoration: none; border-radius: 8px; }
.footer-link:hover { color: #0073dd; }
.footer-link:active { color: #0053a0; }
.footer-link:focus-visible { background: #f4f6fb; padding-left: 8px; outline: none; }
.link-call-sales { display: block; color: #222; padding: 12px 0 4px; font-size: 16px; line-height: 24px; text-decoration: underline; border-radius: 8px; }
.link-call-sales:hover { color: #0073dd; }
.footer-open { margin: 0; color: #222; font-size: 17px; line-height: 26px; letter-spacing: -.01em; }
.footer .btn.margin-top-12 { margin-top: 12px; }
.footer-social-link { display: flex; align-items: center; gap: 8px; color: #222; padding: 10px 0; font-size: 14px; line-height: 20px; text-decoration: none; border-radius: 8px; }
.footer-social-link svg { width: 24px; height: 24px; flex: none; }
.footer-social-link:hover { background: #f4f6fb; border-radius: 4px; padding-left: 8px; color: #222; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-note { color: #555; margin: 0; font-size: 15px; line-height: 20px; }
.footer-legal-list { display: flex; justify-content: flex-end; align-items: center; list-style: none; margin: 0; padding: 0; }
.footer-link-legal { display: block; color: #444; padding: 7px 15px; font-size: 16px; line-height: 24px; text-decoration: none; border-radius: 8px; }
.footer-link-legal:hover { color: #0073dd; }

/* ---- 11. admin ------------------------------------------------------------------ */
body.admin { background: var(--dreamfactory-purple--100); }
.admin-nav { background: #fff; border-bottom: 1px solid var(--dreamfactory-purple--200); }
.admin-nav-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--df-ink); font-weight: 600; }
.admin-brand img { width: 140px; height: 18px; }
.admin-nav nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.admin-nav nav a, .admin-nav nav .link-button { color: var(--df-ink); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.admin-nav nav a:hover, .admin-nav nav .link-button:hover { background: #f0eff5; color: var(--df-accent); }
.admin-nav nav a.active { background: var(--dreamfactory-purple--100); }
.admin-main { padding: 24px 20px 48px; flex: 1 0 auto; width: 100%; max-width: var(--container); margin: 0 auto; }
.admin h1 { font-size: 28px; line-height: 36px; }
.admin .card { padding: 20px 24px; }
.admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions input { padding: 6px 8px; border: 1px solid #d9d8e3; border-radius: 8px; font: inherit; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--dreamfactory-purple--200); border-radius: 12px; padding: 12px 16px; }
.stat span { display: block; font-size: 13px; color: var(--df-ink-muted); } .stat strong { font-size: 24px; line-height: 32px; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input, .filters select { padding: 8px 10px; border: 1px solid #d9d8e3; border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.filters input[type=search] { flex: 1; min-width: 220px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--dreamfactory-purple--200); border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--dreamfactory-purple--200); vertical-align: top; font-size: 14px; line-height: 20px; }
.table th { background: var(--dreamfactory-purple--100); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--df-ink-muted); }
.table.small th, .table.small td { font-size: 13px; padding: 6px 8px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.pill-active, .pill-hs-synced { background: #eaf7f0; color: #1f7a4c; }
.pill-pending_verification, .pill-hs-pending { background: var(--dreamfactory-purple--100); color: var(--df-ink-muted); }
.pill-expired, .pill-hs-disabled, .pill-hs-skipped { background: #f3f3f3; color: #555; }
.pill-revoked, .pill-hs-failed { background: #fdecec; color: #8b1111; }
.pill-anomaly { background: #c62828; color: #fff; cursor: help; }
.anomaly-box { border: 1px solid #f3b4b4; background: #fff5f5; border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.anomaly-box ul { margin: 6px 0 0; padding-left: 20px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 16px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 4px 10px; border: 1px solid var(--dreamfactory-purple--200); border-radius: 8px; background: #fff; font-size: 14px; text-decoration: none; }

/* ---- 11b. FAQ (/start, mirrors the /trial FAQ on the site) + guides (/guides/https) ---- */
.faq { width: 100%; max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--dreamfactory-purple--200); }
.faq-item:first-child { border-top: 1px solid var(--dreamfactory-purple--200); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; color: var(--df-ink); font-family: var(--df-font); font-size: 18px; line-height: 26px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--dreamfactory-coral--500); border-bottom: 2px solid var(--dreamfactory-coral--500); transform: rotate(45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--dreamfactory-coral--500); }
.faq-a { max-width: 720px; padding-bottom: 8px; }
.faq-a p { margin: 0 0 14px; color: var(--df-text); font-size: 16px; line-height: 26px; }
.guide-narrow { max-width: 900px; }
.guide p, .guide li { color: var(--df-text); }
.guide .step h2 { margin-bottom: 8px; }
.guide .step > p { margin-bottom: 8px; }
.guide .step ul, .guide > ul { padding-left: 20px; margin: 0 0 16px; }
.guide .step ul li, .guide > ul li { margin-bottom: 8px; }
.guide-h { margin: 32px 0 8px; }
.table-wrap { width: 100%; overflow-x: auto; margin: 16px 0 8px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--df-line); }
.guide-table th { font-weight: 600; color: var(--df-ink); background: var(--dreamfactory-purple--100); }
.guide-table td:first-child { width: 42%; }
.https-card { border-color: var(--dreamfactory-coral--200); background: linear-gradient(180deg, var(--dreamfactory-coral--100) 0%, #fff 70%); }

/* ---- 12. responsive (breakpoints mirror the live site: 1440 / 991 / 767 / 479) -- */
@media screen and (min-width: 1440px) { .h1 { font-size: 55px; } }
@media screen and (max-width: 991px) {
  .section { padding: 48px 0; }
  .hero-grid, .dash-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .h2 { font-size: 36px; line-height: 40px; }
  /* mobile nav: logo + MENU toggle; the menu is a full-height coral-100 panel */
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; height: calc(100vh - 64px); margin: 0; padding: 32px 20px; background: var(--dreamfactory-coral--100); flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: auto; }
  .nav.is-open .nav-menu { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-item { width: 100%; }
  .nav-link, .nav-link.has-menu { width: 100%; height: 44px; font-size: 16px; justify-content: space-between; padding: 0 8px; }
  .nav-link.has-menu .nav-chevron { transform: rotate(-90deg); }
  .nav-item:hover .nav-chevron, .nav-item:focus-within .nav-chevron { transform: rotate(-90deg); }
  .nav-item::after, .nav-dropdown { display: none; }
  .nav-actions { margin: 20px 0 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-actions .btn { margin: 8px 0 0; }
  .nav-actions .nav-link { justify-content: flex-start; }
  .trial-banner-inner { flex-direction: column; align-items: flex-start; }
}
@media screen and (max-width: 767px) {
  .section { padding: 40px 0; }
  .h1 { font-size: 40px; line-height: 44px; }
  .h2 { font-size: 36px; line-height: 40px; }
  .os-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
@media screen and (max-width: 479px) {
  .section { padding: 32px 0; }
  .h1 { font-size: 32px; line-height: 36px; font-weight: 600; }
  .h2 { font-size: 28px; line-height: 32px; font-weight: 600; }
  .h3 { font-size: 20px; line-height: 28px; }
  .h6 { font-size: 18px; line-height: 24px; }
  .lead, .body3 { font-size: 16px; line-height: 24px; }
  .grid-2, .chips-grid, .card-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .form-card { padding: 20px; }
  .step { padding-left: 46px; }
  .step-no { width: 32px; height: 32px; font-size: 14px; }
  .cta-row .btn { width: 100%; }
  .copy-field-head { flex-wrap: wrap; }
  .trial-banner-actions { width: 100%; }
  .trial-banner-actions .btn { flex: 1; }
  /* the pill stacks into a card: full-width field above a full-width button */
  .hero-form { flex-direction: column; align-items: stretch; gap: 8px; column-gap: 0; padding: 8px; border-radius: 18px; }
  .hero-form-input { width: 100%; padding: 13px 16px; font-size: 16px; background: #f4f4f6; border-radius: 12px; text-overflow: ellipsis; }
  .hero-form .btn { width: 100%; }
  .footer-legal-list { flex-direction: column; align-items: flex-start; width: 100%; }
  .footer-link-legal { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }
