/* ==========================================================================
   Purposeful Solutions Web Design: site styles

   Contents
   1. Design tokens (colors, fonts, sizes)
   2. Base elements
   3. Layout helpers
   4. Components: buttons, header, footer, cards, forms
   5. Page sections: hero, home, services, pricing, FAQ, contact
   6. Responsive adjustments

   Naming: plain, descriptive class names. Variants use a double dash,
   for example .btn--ghost or .section--tight.
   ========================================================================== */

/* 1. Design tokens
   -------------------------------------------------------------------------- */

:root {
    /* The site is always dark, whatever the visitor's device setting */
    color-scheme: dark;
    --color-bg: #0d0a1f;
    --color-surface: #17122f;
    --color-ink: #eeebf8;
    --color-muted: #a49ebd;
    --color-line: #2b2450;
    --color-accent: #a274ff;
    --color-accent-ink: #0d0a1f;
    --color-highlight: #a274ff;
    --color-bg-alt: #120d28;
    --accent-soft: rgb(162 116 255 / 0.12);
    --accent-line: rgb(162 116 255 / 0.35);
    --accent-glow: rgb(162 116 255 / 0.45);

    /* Darker bands (header, hero, closing call to action, footer) */
    --band-bg: #090617;
    --band-ink: #f3f1fa;
    --band-muted: #b1abc9;
    --band-line: #251e47;

    /* Dark single-color client logos are shown in white */
    --logo-filter: brightness(0) invert(1);

    --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

    --container-width: 1120px;
    --radius: 10px;
    --radius-small: 6px;
}

/* 2. Base elements
   -------------------------------------------------------------------------- */

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

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

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

a {
    color: inherit;
}

/* Keep the hidden attribute working on elements that set their own display */
[hidden] {
    display: none !important;
}

p {
    margin: 0;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 5.4vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

/* 3. Layout helpers
   -------------------------------------------------------------------------- */

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

.section {
    padding: 56px 0;
}

.section--tight {
    padding-top: 0;
}

/* Slightly lighter background so neighboring sections read as separate */
.section--alt {
    border-block: 1px solid var(--color-line);
    background: var(--color-bg-alt);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.spaced {
    margin-top: 16px;
}

/* Small uppercase label above a heading */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* Intro paragraph under a heading */
.lede {
    max-width: 62ch;
    font-size: 1.12rem;
    color: var(--color-muted);
}

.note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Hidden from view but still read by screen readers (or ignored, with aria-hidden) */
.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;
}

/* Hidden until focused with the keyboard */
.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: var(--radius-small);
    background: var(--color-highlight);
    color: var(--band-bg);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* 4. Components
   -------------------------------------------------------------------------- */

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-small);
    background: var(--color-accent);
    color: var(--color-accent-ink);
    font: 600 1rem var(--font-body);
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn--ghost {
    border-color: var(--color-line);
    background: transparent;
    color: var(--color-ink);
}

.band .btn {
    border-color: var(--color-highlight);
    background: var(--color-highlight);
    color: #150f33;
}

.band .btn--ghost {
    border-color: var(--band-line);
    background: transparent;
    color: var(--band-ink);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.more-link {
    margin-top: 20px;
}

.more-link a {
    font: 500 0.9rem var(--font-mono);
    color: var(--color-accent);
    text-decoration: none;
}

.more-link a:hover {
    text-decoration: underline;
}

/* Dark band used by the header, hero, closing call to action and footer */

.band {
    background: var(--band-bg);
    color: var(--band-ink);
}

.band .lede,
.band .eyebrow {
    color: var(--band-muted);
}

/* Site header */

.site-header {
    border-bottom: 1px solid var(--band-line);
    background: var(--band-bg);
    color: var(--band-ink);
}

.header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 14px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: auto;
    height: 42px;
}

.brand-name {
    display: block;
    font: 800 1.1rem var(--font-display);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-tagline {
    font: 400 0.66rem var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--band-muted);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

.main-nav a {
    padding: 7px 12px;
    border-radius: var(--radius-small);
    color: var(--band-muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--band-ink);
}

.main-nav a[aria-current='page'] {
    background: var(--band-line);
    color: var(--band-ink);
}

.main-nav a.btn,
.main-nav a.btn[aria-current='page'] {
    margin-left: 6px;
    padding: 8px 16px;
    border-color: var(--color-highlight);
    background: var(--color-highlight);
    color: #150f33;
    font-size: 0.92rem;
}

/* Compact menu button, shown on small screens only (see section 6) */

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid var(--band-line);
    border-radius: var(--radius-small);
    background: transparent;
    color: var(--band-ink);
    font: 600 0.92rem var(--font-body);
    cursor: pointer;
}

/* Three bars drawn with the span and its two pseudo-elements */
.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

/* Bars turn into an X while the menu is open */
.menu-toggle[aria-expanded='true'] .menu-icon {
    background: transparent;
}

.menu-toggle[aria-expanded='true'] .menu-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        transition: none;
    }
}

/* Site footer */

.closer {
    padding: 56px 0 64px;
}

/* Centered panel with a purple glow so the page ends on a strong note */
.closer-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-block: 52px;
    border: 1px solid var(--accent-line);
    border-radius: 16px;
    background:
        radial-gradient(ellipse 70% 90% at 50% 0%, rgb(162 116 255 / 0.3), transparent 70%),
        linear-gradient(135deg, #1c1340, #110b29);
    box-shadow: 0 30px 80px -40px var(--accent-glow);
    text-align: center;
}

.closer-panel .cta-row {
    justify-content: center;
}

.site-footer {
    padding: 32px 0 22px;
    border-top: 1px solid var(--band-line);
    background: var(--band-bg);
    color: var(--band-muted);
    font-size: 0.92rem;
}

.site-footer .brand {
    color: var(--band-ink);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px 40px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-wrap: anywhere;
}

.footer-nav a,
.footer-contact a {
    color: var(--band-muted);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--band-ink);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 30px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--band-line);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.footer-links a {
    color: var(--band-muted);
}

.footer-links a:hover {
    color: var(--band-ink);
}

/* Texas Veterans Commission seal on a white circle */
.seal {
    display: grid;
    flex: none;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #ffffff;
}

.seal img {
    width: 74px;
}

/* Cards: shared look for content boxes */

.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
}

/* Content cards lift slightly on hover */
.audience-grid .card,
.service-card,
.phase-body,
.contact-card,
blockquote {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.audience-grid .card:hover,
.service-card:hover,
.phase-body:hover,
.contact-card:hover,
blockquote:hover {
    transform: translateY(-4px);
    border-color: var(--accent-line);
    box-shadow: 0 18px 40px -24px var(--accent-glow);
}

/* Line icon in a tinted square at the top of a card */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--color-accent);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

/* Sections fade up as they scroll into view (see assets/js/reveal.js) */
.reveal-ready .reveal {
    opacity: 0;
    translate: 0 20px;
    transition:
        opacity 0.7s ease,
        translate 0.7s ease;
}

.reveal-ready .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .audience-grid .card:hover,
    .service-card:hover,
    .phase-body:hover,
    .contact-card:hover,
    blockquote:hover {
        transform: none;
    }
}

/* Recent work: a browser frame and a phone frame playing scroll-through videos */
.showcase {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: center;
    gap: 56px;
}

.showcase-media {
    position: relative;
    padding: 0 12% 48px 0;
}

.showcase-browser,
.showcase-phone {
    margin: 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 70px -30px var(--accent-glow);
}

.showcase-browser {
    border: 1px solid var(--accent-line);
    border-radius: var(--radius);
}

.showcase-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-surface);
}

.showcase-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-line);
}

.showcase-bar b {
    flex: 1;
    margin-right: 33px;
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.showcase-video {
    display: block;
    width: 100%;
    height: auto;
}

.showcase-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 26%;
    border: 5px solid #26203f;
    border-radius: 22px;
}

.showcase-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.showcase-text p {
    color: var(--color-muted);
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.showcase-tags li {
    padding: 5px 12px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--color-ink);
    font-size: 0.8125rem;
}

@media (max-width: 900px) {
    .showcase {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* Testimonials */

blockquote {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 26px 28px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
}

blockquote::before {
    content: '\201C';
    height: 40px;
    font: 800 5.2rem/0.85 var(--font-display);
    color: var(--color-accent);
}

blockquote p {
    font-size: 1.05rem;
    line-height: 1.6;
}

blockquote footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-line);
    font-size: 0.9rem;
    color: var(--color-muted);
}

blockquote footer b {
    display: block;
    color: var(--color-ink);
}

/* Client logo beside the name */
.quote-logo {
    flex-shrink: 0;
    width: auto;
    max-width: 110px;
    height: 44px;
    object-fit: contain;
}

/* Forms */

form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

label {
    font: 400 0.74rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-small);
    background: var(--color-bg);
    color: var(--color-ink);
    font: 400 1rem var(--font-body);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.form-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--color-muted);
}

button:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* 5. Page sections
   -------------------------------------------------------------------------- */

/* Page heading on inner pages */

.page-head {
    /* Top and bottom only, so .container keeps its side padding */
    padding-top: 56px;
    padding-bottom: 52px;
}

/* Inner page header: a smaller version of the home hero's glow and grid */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--band-line);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgb(162 116 255 / 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgb(162 116 255 / 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 55% 90% at 25% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 55% 90% at 25% 30%, #000 10%, transparent 70%);
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle 380px at 15% 15%, rgb(162 116 255 / 0.18), transparent 70%);
    pointer-events: none;
}

/* A page that is only a header (the 404 page) lets it fill the screen */
main:has(> .page-hero:only-child) {
    display: flex;
    flex-direction: column;
}

.page-hero:only-child {
    flex: 1;
    border-bottom: 0;
}

/* The section right under a page header needs its top padding back */
.page-hero + .section--tight {
    padding-top: 48px;
}

.page-head h1,
.page-title {
    margin: 12px 0 14px;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
}

/* Home: hero */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 72px 0 80px;
}

/* Faint grid that fades out from behind the headline */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgb(162 116 255 / 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgb(162 116 255 / 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 75% at 30% 40%, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 75% at 30% 40%, #000 15%, transparent 75%);
}

/* Soft purple glows behind the headline and the checklist */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle 420px at 18% 20%, rgb(162 116 255 / 0.2), transparent 70%),
        radial-gradient(circle 360px at 82% 55%, rgb(162 116 255 / 0.14), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
}

.hero .eyebrow {
    color: var(--color-highlight);
}

.hero h1 {
    margin-top: 14px;
}

.hero h1 em {
    font-style: normal;
    color: var(--color-highlight);
}

.hero .lede {
    margin: 20px 0 28px;
}

.proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--band-line);
    font: 400 0.78rem var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--band-muted);
}

.proof span::before {
    content: '● ';
    color: var(--color-highlight);
}

/* "Included in every build" checklist in the hero */
.build-spec {
    padding: 24px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgb(162 116 255 / 0.1), rgb(255 255 255 / 0.03));
    box-shadow:
        0 0 0 4px rgb(162 116 255 / 0.05),
        0 24px 60px -24px var(--accent-glow);
    font-family: var(--font-mono);
    font-size: 0.86rem;
}

.build-spec h2 {
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-highlight);
}

.build-spec ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.build-spec li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--band-line);
}

.build-spec li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.build-spec li span:last-child {
    color: var(--color-highlight);
    white-space: nowrap;
}

/* Home: client logos */

.clients {
    padding-top: 40px;
}

/* Logos scroll in a slow loop. The row is repeated once (clone is hidden from
   screen readers) and the track slides by exactly one row, so the loop is seamless.
   The edges fade so logos ease in and out. */
.logo-marquee {
    margin-top: 18px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: logo-scroll 40s linear infinite;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

.logo-row {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 64px;
    padding-right: 64px;
}

.logo-row img {
    flex-shrink: 0;
    width: auto;
    height: 88px;
    object-fit: contain;
}

.logo-row .logo--wide {
    height: 60px;
}

.logo-row .logo--tall {
    height: 104px;
}

@keyframes logo-scroll {
    to {
        transform: translateX(-50%);
    }
}

/* Reduced motion: no scrolling, just the original still row */
@media (prefers-reduced-motion: reduce) {
    .logo-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .logo-track {
        width: auto;
        animation: none;
    }

    .logo-marquee .logo-row {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 24px 40px;
        padding-right: 0;
    }

    .logo-row--clone {
        display: none;
    }
}

.logo--mono {
    filter: var(--logo-filter);
}

/* Home: who we build for */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.audience-grid .card {
    gap: 8px;
    padding: 22px;
}

.audience-grid p {
    font-size: 0.94rem;
    color: var(--color-muted);
}

/* Home: about */

.about {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 52px;
}

.founder {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow:
        0 0 0 1px var(--color-line),
        14px 14px 0 0 rgb(162 116 255 / 0.16);
}

.about-text p {
    max-width: 72ch;
    color: var(--color-muted);
}

.about-text p + p {
    margin-top: 14px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 72ch;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
    font-size: 0.92rem;
    color: var(--color-muted);
}

.credential b {
    display: block;
    font-size: 1rem;
    color: var(--color-ink);
}

/* Services */

.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    gap: 10px;
    padding: 24px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-muted);
}

.service-tag {
    font: 500 0.72rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.service-link {
    margin-top: auto;
    padding-top: 10px;
    font: 500 0.8rem var(--font-mono);
    color: var(--color-accent);
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

.phases {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.phases {
    position: relative;
}

/* Line joining the numbered dots, from the first dot to the last */
.phases::before {
    content: '';
    position: absolute;
    top: 21px;
    left: 22px;
    right: calc((100% - 64px) / 5 - 22px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--accent-line));
}

.phase {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phase-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    background: var(--color-bg-alt);
    box-shadow:
        0 0 0 6px var(--color-bg-alt),
        0 0 24px -4px var(--accent-glow);
    font: 600 1rem var(--font-mono);
    color: var(--color-accent);
}

.phases .card {
    flex: 1;
    gap: 6px;
    padding: 18px;
}

.phases p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.phase-num {
    font: 500 0.74rem var(--font-mono);
    letter-spacing: 0.12em;
    color: var(--color-accent);
}

/* Pricing */

.includes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 26px;
    font-size: 0.9rem;
}

.includes b {
    margin-right: 6px;
}

.includes span {
    padding: 4px 12px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: var(--color-surface);
}

.tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.tier {
    position: relative;
    gap: 14px;
    padding: 28px 26px;
}

.tier p {
    font-size: 0.94rem;
    color: var(--color-muted);
}

.tier ul {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 0.94rem;
    list-style: none;
}

.tier li {
    position: relative;
    padding: 8px 0 8px 20px;
    border-top: 1px solid var(--color-line);
}

.tier li::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.tier--featured {
    border: 2px solid var(--color-accent);
    background: linear-gradient(180deg, rgb(162 116 255 / 0.14), var(--color-surface) 45%);
    box-shadow:
        0 0 0 6px rgb(162 116 255 / 0.06),
        0 30px 70px -30px var(--accent-glow);
}

.tier-flag {
    position: absolute;
    top: -12px;
    left: 22px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--color-accent);
    color: var(--color-accent-ink);
    font: 500 0.68rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tier-time {
    font: 400 0.78rem var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.price {
    font: 800 2.4rem var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
}

.price small {
    display: block;
    margin-bottom: 6px;
    font: 400 0.76rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* Care plans and add-ons */
.price-panel {
    padding: 24px 26px;
}

.price-panel h3 {
    margin-bottom: 12px;
}

.price-rows {
    font-size: 0.94rem;
}

.price-rows div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-top: 1px solid var(--color-line);
}

.price-rows div span:last-child {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.price-rows small {
    display: block;
    font-size: 0.84rem;
    color: var(--color-muted);
}

/* Long-form text (privacy policy) */

.prose {
    max-width: 70ch;
}

.prose h2 {
    margin: 36px 0 12px;
    font-size: 1.4rem;
}

.prose p,
.prose li {
    color: var(--color-muted);
}

.prose p + p {
    margin-top: 12px;
}

.prose ul {
    margin: 12px 0;
    padding-left: 20px;
}

.prose li + li {
    margin-top: 8px;
}

.prose b {
    color: var(--color-ink);
}

/* FAQ */

.faq {
    max-width: 820px;
}

/* Heading on the left, questions on the right */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 48px;
}

.faq-layout .section-head {
    position: sticky;
    top: 32px;
    margin-bottom: 0;
}

.faq-layout .faq {
    max-width: none;
}

details {
    padding: 16px 0;
    border-top: 1px solid var(--color-line);
}

details:last-child {
    border-bottom: 1px solid var(--color-line);
}

summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 1.04rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

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

summary::after {
    content: '+';
    font: 500 1.3rem var(--font-mono);
    line-height: 1;
    color: var(--color-accent);
}

details[open] summary::after {
    content: '–';
}

details p {
    max-width: 66ch;
    margin-top: 10px;
    color: var(--color-muted);
}

/* Contact */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 48px;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.contact-direct small {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    text-decoration: none;
}

.contact-card .card-icon {
    flex-shrink: 0;
    margin-bottom: 0;
}

.contact-value {
    color: var(--color-ink);
    overflow-wrap: anywhere;
}

.contact-card:hover .contact-value {
    text-decoration: underline;
}

/* The form is the main thing on the page */
.contact form {
    border-color: var(--accent-line);
    background: linear-gradient(180deg, rgb(162 116 255 / 0.08), var(--color-surface) 40%);
    box-shadow:
        0 0 0 6px rgb(162 116 255 / 0.05),
        0 30px 70px -30px var(--accent-glow);
}

/* The prepared email shown after the form is submitted */
.form-result {
    display: none;
    flex-direction: column;
    grid-column: 1 / -1;
    gap: 12px;
    padding: 16px;
    border: 1px dashed var(--color-accent);
    border-radius: var(--radius-small);
    font-size: 0.93rem;
}

.form-result.is-visible {
    display: flex;
}

.form-result pre {
    margin: 0;
    font: 400 0.85rem var(--font-mono);
    white-space: pre-wrap;
    color: var(--color-muted);
}

/* 6. Responsive adjustments
   -------------------------------------------------------------------------- */

/* Tablets and small laptops */
@media (max-width: 900px) {
    .section {
        padding: 44px 0;
    }

    .hero-grid,
    .about,
    .contact,
    .two-col,
    .services,
    .tiers {
        grid-template-columns: minmax(0, 1fr);
    }

    .audience-grid,
    .phases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .founder {
        max-width: 260px;
    }

    .phases::before {
        display: none;
    }

    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .faq-layout .section-head {
        position: static;
        margin-bottom: 22px;
    }
}

/* Compact menu: only when JavaScript is running, so links never get stuck hidden */
@media (max-width: 720px) {
    .js .menu-toggle {
        display: inline-flex;
    }

    .js .main-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 6px 0 4px;
    }

    .js .main-nav.is-open {
        display: flex;
    }

    .js .main-nav a {
        padding: 12px;
    }

    .js .main-nav a.btn {
        margin: 8px 0 0;
        padding: 12px 16px;
    }
}

/* Phones */
@media (max-width: 520px) {
    .audience-grid,
    .phases,
    form {
        grid-template-columns: minmax(0, 1fr);
    }

    .logo-row {
        gap: 40px;
        padding-right: 40px;
    }

    .logo-row img {
        height: 64px;
    }

    .logo-row .logo--wide {
        height: 44px;
    }

    .logo-row .logo--tall {
        height: 76px;
    }

    .tier,
    .price-panel {
        padding: 22px;
    }
}
