/*
   Sense marketing theme - shared stylesheet
   Used by every page in marketing/ except deep-link app shells (calendar.html, app.html)
   and the blog post system (blog/posts/*.html which still uses home-modern.css + blog-post.css).
*/

/* Tokens */
:root {
    --bg: #f1f3ee;
    --bg-soft: #e8ebe3;
    --ink: #16161a;
    --ink-soft: #5e5e66;
    --ink-faint: #8a8a92;
    --hair: rgba(20, 20, 26, 0.08);
    --accent: #1b4965;
    --positive: #2ec27e;
    --warn: #d97757;
    --nav-h: 72px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

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

h1, h2, h3, h4, p, ul {
    font-weight: inherit;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Page wrapper */
.page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.container--wide {
    max-width: 1280px;
}

.container--narrow {
    max-width: 760px;
}

section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

section + section {
    border-top: 1px solid var(--hair);
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav.is-scrolled {
    background: rgba(241, 243, 238, 0.78);
    border-bottom-color: var(--hair);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.nav-brand img {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.nav-links > a,
.nav-dropdown > button {
    transition: color 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.is-active,
.nav-dropdown:hover > button,
.nav-dropdown.is-open > button {
    color: var(--ink);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown > button::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.nav-dropdown:hover > button::after,
.nav-dropdown.is-open > button::after {
    transform: translateY(0) rotate(-135deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #ffffff;
    border: 1px solid var(--hair);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(20, 30, 50, 0.12), 0 4px 12px rgba(20, 30, 50, 0.06);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.92rem;
    transition: background 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-soft);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink);
    font-weight: 500;
}

.nav-cta::after {
    content: '↗';
    font-weight: 400;
    transition: transform 0.2s ease;
}

.nav-cta:hover::after {
    transform: translate(2px, -2px);
}

/* Mobile menu toggle (hamburger) */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu sheet (slide-down) */
.nav-sheet {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hair);
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    z-index: 49;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
}

.nav-sheet.is-open {
    transform: translateY(0);
}

.nav-sheet a,
.nav-sheet > button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.95rem 0;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink);
    border-bottom: 1px solid var(--hair);
}

.nav-sheet a.is-active {
    font-weight: 500;
}

.nav-sheet .nav-sheet-section {
    margin-top: 1rem;
}

.nav-sheet .nav-sheet-label {
    display: block;
    padding-top: 0.95rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    border-top: 1px solid var(--hair);
}

.nav-sheet .nav-sheet-sub a {
    padding-left: 0;
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.nav-sheet .nav-cta {
    margin-top: 1.5rem;
    padding: 0.95rem 1.25rem;
    background: var(--ink);
    color: var(--bg);
    border-radius: 999px;
    text-align: center;
    justify-content: center;
}

.nav-sheet .nav-cta::after {
    content: '';
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

/* Typography primitives */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    margin-bottom: 1.5rem;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ink-faint);
}

.section-title {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.25rem;
    max-width: 22ch;
}

.section-title em {
    font-style: normal;
    font-weight: 400;
    color: var(--ink-soft);
}

.section-lead {
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 52ch;
    margin-bottom: 2.5rem;
}

/* Hero - generic 2-col */
.hero {
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    border-top: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-title {
    font-size: clamp(2.4rem, 5.4vw, 4.25rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 1.25rem;
    max-width: 14ch;
}

.hero-title em {
    font-style: normal;
    font-weight: 400;
    color: var(--ink-soft);
}

.hero-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 40ch;
    margin-bottom: 2.25rem;
}

.hero-badges,
.hero-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.hero-badges a,
.hero-cta a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.hero-badges a:hover,
.hero-cta a:hover {
    transform: translateY(-2px);
}

.hero-badges img,
.hero-cta img {
    height: 48px;
    width: auto;
}

.hero-qr {
    display: none;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.hero-qr img {
    width: 72px;
    height: 72px;
    background: #ffffff;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(20, 30, 50, 0.06), 0 4px 12px rgba(20, 30, 50, 0.05);
}

.hero-qr-label strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.1rem;
}

.hero-qr-label span {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-faint);
    max-width: 22ch;
    line-height: 1.4;
}

@media (min-width: 861px) {
    .hero-qr {
        display: inline-flex;
    }
}

.hero-meta {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--ink-faint);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--positive);
    box-shadow: 0 0 0 4px rgba(46, 194, 126, 0.15);
}

.hero-quote {
    margin-top: 2rem;
    max-width: 42ch;
}

.hero-quote p {
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--ink-soft);
    font-style: italic;
    margin-bottom: 0.4rem;
}

.hero-quote cite {
    font-style: normal;
    font-size: 0.82rem;
    color: var(--ink-faint);
}

.hero-visual {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.hero-visual--wide {
    max-width: 560px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: -8% -6%;
    background: radial-gradient(closest-side, rgba(27, 73, 101, 0.14), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.hero-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(20, 30, 50, 0.06),
        0 30px 60px rgba(20, 30, 50, 0.16),
        0 10px 20px rgba(20, 30, 50, 0.06);
}

.hero-phone {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 1206 / 2622;
}

.hero-phone::before {
    content: '';
    position: absolute;
    inset: -10% -15%;
    background: radial-gradient(closest-side, rgba(27, 73, 101, 0.18), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.hero-phone img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 44px;
    z-index: 1;
    box-shadow:
        0 1px 2px rgba(20, 30, 50, 0.06),
        0 30px 60px rgba(20, 30, 50, 0.18),
        0 10px 20px rgba(20, 30, 50, 0.08);
}

.hero-tablet {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.hero-tablet::before {
    content: '';
    position: absolute;
    inset: -10% -6%;
    background: radial-gradient(closest-side, rgba(27, 73, 101, 0.16), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.hero-tablet img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(20, 30, 50, 0.06),
        0 30px 60px rgba(20, 30, 50, 0.18),
        0 10px 20px rgba(20, 30, 50, 0.08);
}

/* Hero panel variant (used by index.html scroll choreography) */
.hero-panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    margin-bottom: 1.5rem;
}

.hero-panel-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ink-faint);
}

.hero-panel-title {
    font-size: clamp(2.1rem, 5.2vw, 4.25rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.25rem;
    max-width: 16ch;
}

.hero-panel-title em {
    font-style: normal;
    font-weight: 400;
    color: var(--ink-soft);
}

.hero-panel-sub {
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 38ch;
}

.hero-panel-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}

.hero-panel-cta-row::after {
    content: '↗';
    font-weight: 400;
    transition: transform 0.2s ease;
}

.hero-panel-cta-row:hover::after {
    transform: translate(2px, -2px);
}

/* Steps (how it works) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 1040px;
}

.step {
    position: relative;
}

.step-num {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-faint);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* Pane grid (3-col simple) */
.pane-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1040px;
}

.pane-item {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--hair);
}

.pane-item h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.4rem;
    letter-spacing: -0.005em;
}

.pane-item p {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* Feature grid (generic cards) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.feature-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

.feature-card {
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid var(--hair);
    border-radius: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(20, 20, 26, 0.18);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}

.feature-card p {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* Feature list (row-based) */
.feature-list {
    max-width: 760px;
}

.feature-list .feature-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: 1.5rem 0;
    border-top: 1px solid var(--hair);
    align-items: baseline;
}

.feature-list .feature-row:last-child {
    border-bottom: 1px solid var(--hair);
}

.feature-list h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.feature-list p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* Comparison table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
    max-width: 880px;
}

.compare-table thead th {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    padding: 0 1rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--hair);
}

.compare-table thead th:first-child {
    width: 36%;
}

.compare-table thead th.col-sense {
    color: var(--ink);
}

.compare-table tbody td {
    padding: 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--hair);
    font-size: 0.98rem;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table .row-label {
    font-weight: 500;
    color: var(--ink-soft);
}

.compare-table .col-sense-cell {
    background: rgba(27, 73, 101, 0.04);
    color: var(--ink);
    font-weight: 500;
}

.compare-table .compare-yes {
    color: var(--ink);
    font-weight: 500;
}

.compare-table .compare-no {
    color: var(--ink-faint);
}

/* Quotes */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1040px;
}

.quote p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
}

.quote cite {
    display: block;
    font-style: normal;
    font-size: 0.86rem;
    color: var(--ink-faint);
}

.quote cite strong {
    font-weight: 500;
    color: var(--ink-soft);
    margin-right: 0.4rem;
}

/* FAQ */
.faq-list {
    max-width: 760px;
}

.faq-row {
    padding: 1.5rem 0;
    border-top: 1px solid var(--hair);
}

.faq-row:last-child {
    border-bottom: 1px solid var(--hair);
}

.faq-row h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}

.faq-row p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
    max-width: 880px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--hair);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.pricing-card--featured {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.pricing-card--featured .pricing-name,
.pricing-card--featured .pricing-amount,
.pricing-card--featured .pricing-feature {
    color: var(--bg);
}

.pricing-card--featured .pricing-sub,
.pricing-card--featured .pricing-period {
    color: rgba(241, 243, 238, 0.7);
}

.pricing-name {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-period {
    font-size: 0.92rem;
    color: var(--ink-faint);
    margin-bottom: 1.25rem;
}

.pricing-sub {
    font-size: 0.96rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.pricing-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    flex: 1;
}

.pricing-feature {
    padding: 0.55rem 0;
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.4;
    border-top: 1px solid var(--hair);
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.pricing-feature:first-child {
    border-top: none;
}

.pricing-card--featured .pricing-feature {
    border-color: rgba(241, 243, 238, 0.15);
}

.pricing-feature::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ink-faint);
    transform: translateY(-2px);
    flex-shrink: 0;
}

.pricing-card--featured .pricing-feature::before {
    background: rgba(241, 243, 238, 0.5);
}

.pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 500;
    font-size: 0.98rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pricing-card--featured .pricing-cta {
    background: var(--bg);
    color: var(--ink);
}

.pricing-cta:hover {
    transform: translateY(-2px);
}

/* Forms */
.form-stack {
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink);
}

.form-field {
    font: inherit;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--hair);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(20, 20, 26, 0.08);
}

textarea.form-field {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-help {
    font-size: 0.86rem;
    color: var(--ink-faint);
    line-height: 1.5;
}

.form-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 500;
    font-size: 0.98rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
}

.form-submit::after {
    content: '↗';
    font-weight: 400;
}

/* Auth card (verify-email, reset-password, invite) */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid var(--hair);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow:
        0 1px 2px rgba(20, 30, 50, 0.04),
        0 12px 30px rgba(20, 30, 50, 0.06);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--ink);
}

.auth-brand img {
    width: 28px;
    height: 28px;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.auth-card p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.auth-card .form-stack {
    text-align: left;
    margin: 0 0 1.5rem;
}

.auth-card .form-submit {
    width: 100%;
    align-self: stretch;
    justify-content: center;
}

.auth-status {
    margin-top: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-status.is-success {
    color: var(--positive);
}

.auth-status.is-error {
    color: var(--warn);
}

.auth-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--hair);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: auth-spin 0.9s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* Final CTA */
.final-cta {
    text-align: center;
}

.final-cta .container {
    max-width: 700px;
}

.final-cta .section-title {
    margin: 0 auto 1rem;
    max-width: none;
}

.final-cta .section-lead {
    margin: 0 auto 2.25rem;
    max-width: 48ch;
}

.final-cta .hero-badges,
.final-cta .hero-cta {
    justify-content: center;
}

/* Footer */
.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--hair);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.site-footer .footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.site-footer .footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.site-footer .footer-description {
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    max-width: 36ch;
}

.site-footer .community-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer .community-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--hair);
    font-size: 0.82rem;
    color: var(--ink-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.site-footer .community-links a:hover {
    background: var(--ink);
    color: var(--bg);
}

.site-footer .community-links .community-name {
    color: var(--ink-faint);
}

.site-footer .community-links a:hover .community-name {
    color: var(--bg-soft);
}

.site-footer .community-links img,
.site-footer .community-links svg {
    width: 14px;
    height: 14px;
}

.site-footer .footer-links-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    margin-bottom: 0.9rem;
    font-weight: 500;
}

.site-footer .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.site-footer .footer-links a {
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

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

.site-footer .footer-bottom {
    border-top: 1px solid var(--hair);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--ink-faint);
}

.site-footer .footer-love {
    font-style: italic;
}

/* Reveal animation (paired with shared-header.js IntersectionObserver) */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.js-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Long-form / legal pages */
.longform {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.65;
}

.longform h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.longform .longform-meta {
    color: var(--ink-faint);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.longform h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 2.5rem 0 0.75rem;
}

.longform h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    margin: 1.75rem 0 0.5rem;
}

.longform p,
.longform li {
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

.longform ul,
.longform ol {
    margin: 0 0 1rem 1.5rem;
    padding-left: 0;
    list-style: disc;
    color: var(--ink-soft);
}

.longform ol {
    list-style: decimal;
}

.longform a {
    color: var(--ink);
    border-bottom: 1px solid var(--hair);
    transition: border-color 0.2s ease;
}

.longform a:hover {
    border-bottom-color: var(--ink);
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .pane-grid,
    .quotes-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero-title,
    .hero-panel-title,
    .section-title {
        max-width: none;
    }

    .pane-grid,
    .quotes-grid,
    .feature-grid,
    .feature-grid--two {
        grid-template-columns: 1fr;
    }

    .feature-list .feature-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .compare-table {
        font-size: 0.86rem;
    }

    .compare-table thead th,
    .compare-table tbody td {
        padding: 0.7rem 0.6rem;
    }

    .eyebrow::before,
    .hero-panel-tag::before {
        display: none;
    }
}

@media (max-width: 860px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 540px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-brand {
        grid-column: span 1;
    }

    .hero-cta img,
    .hero-badges img {
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .nav,
    .site-footer {
        display: none;
    }
}
