/* VertexCMS marketing site. Brand concept: a "V" whose two strokes meet at a single vertex - many
   inputs converging on one point, i.e. one place where a case comes together.
   Palette (contrast on white): navy #14213D 15:1, teal #0B6B7A 6:1, slate #3D4A5C 8.6:1.
   Amber #FFB703 is decoration only (never text on white); text on amber is navy (9:1). */
:root {
    --navy: #14213D;
    --navy-soft: #1F3157;
    --teal: #0B6B7A;
    --teal-dark: #08535F;
    --amber: #FFB703;
    --ink: #1B2430;
    --slate: #3D4A5C;
    --mist: #F3F6FA;
    --line: #D5DDE8;
    --white: #FFFFFF;
    --radius: 12px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--amber); border-radius: 4px; }
main:focus { outline: none; }

.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--navy); color: var(--white); padding: .6rem 1rem; border-radius: 0 0 8px 8px; z-index: 10; }
.skip-link:focus { top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: -.01em; }
.brand-name span { color: var(--teal); }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--ink); font-weight: 600; padding: .4rem .1rem; }
.nav-list a:hover { color: var(--teal-dark); text-decoration: underline; }
.nav-list a[aria-current="page"]:not(.button) { border-bottom: 3px solid var(--amber); }

/* Buttons */
.button { display: inline-block; background: var(--teal); color: var(--white); text-decoration: none; font-weight: 700; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid var(--teal); cursor: pointer; font-family: inherit; font-size: 1rem; }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.button-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.button-secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.button-outline { background: var(--white); color: var(--teal-dark); }
.button-outline:hover { background: var(--teal-dark); color: var(--white); }
.button-small { padding: .45rem 1.1rem; }
.nav-list .button, .nav-list .button:hover { color: var(--white); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: var(--white); padding-block: clamp(3rem, 8vw, 6rem); }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { font-size: 1.25rem; max-width: 60ch; color: #E4EAF3; }
.hero .accent { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero a:focus-visible, .cta a:focus-visible, .site-footer a:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 6px var(--teal); }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.alt { background: var(--mist); }
.section-intro { max-width: 62ch; color: var(--slate); }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.alt .card { border-color: transparent; box-shadow: 0 1px 3px rgba(20, 33, 61, .12); }
.tag { display: inline-block; background: var(--navy); color: var(--white); font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.tag-soon { background: var(--amber); color: var(--navy); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.4rem 1.4rem 1.4rem 4rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 1.2rem; top: 1.2rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; }

/* Page header (inner pages) */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head p { max-width: 62ch; color: var(--slate); font-size: 1.15rem; margin-bottom: 0; }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin-block: 1.25rem; }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--white); }
caption { text-align: left; padding: .5rem 0; color: var(--slate); }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); }
tbody th { font-weight: 700; color: var(--navy); }
td.nowrap { white-space: nowrap; }
code.cred { background: var(--mist); border: 1px solid var(--line); padding: .1rem .4rem; border-radius: 6px; font-size: .95em; }

/* Pricing */
.price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: .25rem 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--slate); }
.plan ul { padding-left: 1.1rem; }
.placeholder-note { background: #FFF6DB; border: 1px solid var(--amber); border-left-width: 6px; border-radius: 8px; padding: .9rem 1.1rem; }

/* Forms */
.form { max-width: 34rem; }
label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--navy); }
.hint { color: var(--slate); font-size: .95rem; margin: .25rem 0 .75rem; }
input[type="text"] { width: 100%; font: inherit; padding: .7rem .85rem; border: 2px solid #5B6B82; border-radius: 8px; }
input[aria-invalid="true"] { border-color: #A4161A; }
/* The focus ring (outline + offset + box-shadow) extends ~6px past the field, so keep the submit button clear of it. */
.form input[type="text"] + p { margin-top: 1.5rem; }
.error { color: #8A1115; font-weight: 700; margin: .5rem 0; }
.error::before { content: "\26A0\FE0F  "; }
.callout { background: var(--mist); border-left: 6px solid var(--teal); border-radius: 8px; padding: 1rem 1.25rem; margin-block: 1.25rem; }

/* CTA band */
.cta { background: var(--navy); color: var(--white); text-align: center; padding-block: 3rem; }
.cta h2 { color: var(--white); }
.cta p { color: #E4EAF3; max-width: 55ch; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: #0D1630; color: #D8E0EC; padding-top: 2.25rem; }
.site-footer a { color: #FFFFFF; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #FFFFFF; }
.footer-brand span { font-weight: 400; font-size: 1rem; color: #D8E0EC; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; }
.copyright { margin-top: 1.5rem; padding-block: 1rem; border-top: 1px solid #2A3658; font-size: .9rem; }

@media (max-width: 640px) {
    .header-row { justify-content: center; }
    .nav-list { justify-content: center; }
    .site-header { position: static; }
}
