/* ===== ADDSWORTH ===== */
/* Style charter: system typeface, single accent, neutral backgrounds */

:root {
    /* ── Accent: Blue-Slate (single accent per Style Charter) ── */
    --color-accent: #2C5282;
    --color-accent-light: #3B6B9C;
    --color-accent-subtle: #DBEAFE;

    /* ── Neutrals ── */
    --color-bg: #FAFAFA;
    --color-bg-alt: #F4F5F7;
    --color-bg-white: #FFFFFF;
    --color-text: #1D1D1F;
    --color-text-secondary: #6E6E73;
    --color-text-tertiary: #8E8E93;
    --color-border: #D2D2D7;
    --color-border-light: #E8E8ED;
    --color-shadow: rgba(0, 0, 0, 0.04);

    /* ── Footer ── */
    --color-footer-bg: #1D1D1F;
    --color-footer-text: #F5F5F7;
    --color-footer-muted: #A1A1A6;

    /* ── Typography: System typeface only (Style Charter §3) ── */
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-light);
}

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-text);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.section-intro {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    max-width: 690px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ===== HEADER ===== */
.site-header {
    padding: 1rem 0;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
}

.site-nav a {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--color-accent);
}

/* ===== HERO ===== */
.hero {
    padding: 4.5rem 0 3rem;
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.95), transparent 34%),
        linear-gradient(180deg, var(--color-bg-white) 0%, #F6F8FB 100%);
    border-bottom: 1px solid var(--color-border-light);
    overflow: hidden;
}

.hero .container {
    max-width: 1160px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-copy {
    max-width: 34rem;
}

.hero-kicker {
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.82);
    color: var(--color-accent);
    border: 1px solid rgba(44, 82, 130, 0.14);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 3.45rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-text);
}

.hero .tagline {
    font-size: 1.08rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10.75rem;
    padding: 0.78rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 0.94rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-button:hover {
    transform: translateY(-1px);
}

.hero-button:focus-visible {
    outline: 2px solid var(--color-accent-subtle);
    outline-offset: 2px;
}

.hero-button-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-white);
    box-shadow: 0 12px 24px rgba(44, 82, 130, 0.14);
}

.hero-button-primary:hover {
    color: var(--color-bg-white);
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
}

.hero-button-secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--color-text);
}

.hero-button-secondary:hover {
    color: var(--color-accent);
    border-color: rgba(44, 82, 130, 0.22);
    background: var(--color-bg-white);
}

.hero-highlights {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.highlight-item {
    padding: 1rem 1rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(44, 82, 130, 0.09);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(29, 29, 31, 0.04);
}

.highlight-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 0.45rem;
}

.highlight-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.45;
}

.hero-visual {
    position: relative;
    min-height: 32rem;
    padding: 1rem 0 2rem;
}

.hero-shot {
    position: relative;
    z-index: 1;
    margin-left: auto;
    width: min(42rem, 100%);
    padding: 0.85rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(44, 82, 130, 0.12);
    box-shadow: 0 34px 72px rgba(44, 82, 130, 0.12);
    backdrop-filter: blur(16px);
}

.hero-shot img {
    display: block;
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(29, 29, 31, 0.08);
    box-shadow: 0 18px 34px rgba(29, 29, 31, 0.08);
}

.hero-detail {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: min(18rem, 44%);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(44, 82, 130, 0.14);
    box-shadow: 0 20px 44px rgba(29, 29, 31, 0.12);
}

.hero-detail-copy {
    padding: 1rem 1rem 0.85rem;
}

.hero-detail-label {
    color: var(--color-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.hero-detail-text {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.hero-detail img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: left top;
    border-top: 1px solid rgba(29, 29, 31, 0.08);
}

@media only screen and (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-copy {
        max-width: 40rem;
    }

    .hero-visual {
        min-height: 0;
        padding: 0.25rem 0 1.5rem;
        max-width: 42rem;
        margin: 0 auto;
    }
}

/* ===== SCREENSHOTS ===== */
.screenshots {
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    padding-top: 2.25rem;
}

.screenshots .container {
    max-width: 1144px;
}

.screenshots .section-intro {
    margin-bottom: 1.25rem;
}

.screenshot-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.2rem;
    margin-bottom: 1.25rem;
}

.mode-button {
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
}

.mode-button:hover {
    color: var(--color-text);
}

.mode-button.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-white);
}

.mode-button:focus-visible {
    outline: 2px solid var(--color-accent-subtle);
    outline-offset: 1px;
}

.screenshot-carousel {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem;
    gap: 0.75rem;
    align-items: center;
}

.screenshot-carousel:focus-visible {
    outline: 2px solid var(--color-accent-subtle);
    outline-offset: 4px;
    border-radius: 14px;
}

.carousel-control {
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    color: var(--color-text-secondary);
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.carousel-control:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.carousel-control:focus-visible {
    outline: 2px solid var(--color-accent-subtle);
    outline-offset: 2px;
}

.screenshot-frame {
    margin: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-self: center;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 24px var(--color-shadow);
    background: var(--color-bg-white);
}

.screenshot-media {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.screenshot-zoom-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.screenshot-zoom-link:focus-visible {
    outline: 2px solid var(--color-accent-subtle);
    outline-offset: -2px;
}

.screenshot-media::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.08);
    pointer-events: none;
}

.screenshot-image {
    position: absolute;
    inset: 0;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    background: var(--color-bg-alt);
}

.screenshot-footer {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.screenshot-counter {
    color: var(--color-text-secondary);
    font-size: 0.84rem;
}

.carousel-dots {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
}

.carousel-dot.is-active {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--color-accent-subtle);
    outline-offset: 1px;
}

/* ===== SECTIONS ===== */
section {
    padding: 4.5rem 0;
}

/* Neutral alternation per Style Charter: backgrounds recede */
.features {
    background: var(--color-bg-alt);
}

.platform {
    background: var(--color-bg-white);
}

.pricing {
    background: var(--color-bg-alt);
}

.why {
    background: var(--color-bg-white);
}

.faq {
    background: var(--color-bg-alt);
}

.legal-links {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.contact {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature-item {
    background: var(--color-bg-white);
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.feature-item h3 {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== PLATFORM ===== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.platform-item {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    border-left: 3px solid var(--color-accent);
    background: var(--color-bg-alt);
    border-radius: 0 8px 8px 0;
}

.platform-item h3 {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
}

.platform-item p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.pricing-header {
    margin-bottom: 1.25rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.pricing-card-featured .pricing-header h3 {
    color: var(--color-accent);
}

.pricing-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
}

/* ── Pricing price area ── */
.pricing-price {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.price-option {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
}

.price-small {
    font-size: 1rem;
    font-weight: 400;
}

.price-term {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-top: 0.1rem;
}

/* ── Pricing features ── */
.pricing-features {
    list-style: none;
    padding: 0;
    flex: 1;
}

.pricing-features li {
    color: var(--color-text-secondary);
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.5;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-features li.pricing-includes {
    padding-left: 0;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.pricing-features li.pricing-includes::before {
    content: "";
}

/* ===== WHY ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-item {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.why-item h3 {
    color: var(--color-text);
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
}

.why-item p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

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

.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item h3 {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.faq-item p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ===== LEGAL ===== */
.legal-links p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* The two legal links leave this domain. The note names the destination, so
   the change of site is not a surprise mid-click. */
.legal-note {
    margin-top: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.85rem !important;
    max-width: 42rem;
}

/* ===== CONTACT ===== */
.contact p {
    color: var(--color-text-secondary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 2.5rem 0;
    background: var(--color-footer-bg);
    text-align: center;
}

.site-footer p {
    color: var(--color-footer-text);
    font-size: 0.85rem;
}

.footer-sub {
    font-size: 0.78rem !important;
    color: var(--color-footer-muted) !important;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .site-header .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-nav {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 3.5rem 0 2rem;
    }

    .hero h1 {
        font-size: 2.45rem;
        max-width: none;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button {
        width: 100%;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        padding-bottom: 0;
    }

    .hero-detail {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        margin-top: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    h2 {
        font-size: 1.45rem;
    }

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

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

    .screenshot-frame {
        grid-column: 1 / -1;
    }

    .carousel-control {
        width: 100%;
        height: 2.2rem;
        border-radius: 8px;
    }

    .screenshot-footer {
        justify-content: center;
    }

    .screenshots {
        padding-top: 1.5rem;
    }
}

@media only screen and (min-width: 601px) {
    body {
        font-size: 16px;
    }
}

@media only screen and (min-width: 1024px) {
    body {
        font-size: 17px;
    }
}

/* ===== LEGAL DOCUMENT PAGES ===== */
.legal-document {
    padding: 4rem 0 3rem;
}

.legal-document h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-meta {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-document h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.legal-document h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-document p {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-document ul,
.legal-document ol {
    margin: 0.75rem 0 1rem 1.5rem;
    line-height: 1.75;
}

.legal-document li {
    margin-bottom: 0.4rem;
}

.legal-document a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(44, 82, 130, 0.3);
    text-underline-offset: 2px;
}

.legal-document a:hover {
    color: var(--color-accent-light);
    text-decoration-color: var(--color-accent-light);
}

.legal-document strong {
    font-weight: 600;
    color: var(--color-text);
}

.legal-document em {
    font-style: italic;
}

.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-wrapper th {
    background: var(--color-bg-alt);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

.table-wrapper td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

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

.table-footnote {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}
