/* ============================================================
   SIMPLE SUBS. — shared site-wide styles
   Drop-in replacement for main.css (pages extending base.html)
   Look: warm paper, ink-black geometric type (Futura-style),
   top navigation bar (logo prominent, left), sweep-in load animation.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --paper: #FAF4EB;          /* logo background */
    --paper-raised: #FFFDF8;   /* cards */
    --ink: #131313;            /* logo black */
    --graphite: #6F6961;       /* muted text */
    --hairline: #E6DED2;       /* borders */
    --ink-soft: #2B2B2B;
    --accent: #C8553D;         /* red accent: logo/header full-stops + graphic bars */

    --ok: #2F7D4F;
    --warn: #A8741F;
    --bad: #B3402F;
    --info: #2E6CA4;

    --shell: 1040px;           /* shared content + bar width */

    --display: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body);
    background: var(--paper);
    min-height: 100vh;
    color: var(--ink);
}

::selection { background: var(--ink); color: var(--paper); }

.container {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 40px 36px 56px;
}

/* ------------------------------------------------------------
   Top bar: .header (logo row, left-aligned) + .tabs (nav row).
   This is the layout for every page EXCEPT Home, which centres
   the logo and nav via body.home (see home.css).
   ------------------------------------------------------------ */
.header {
    display: flex;
    flex-direction: column;       /* logo on top, tagline directly beneath */
    align-items: flex-start;
    gap: 6px;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 32px 36px 0;
    text-align: left;
}

.logo {
    font-family: var(--display);
    font-size: 2.6rem;            /* large + prominent */
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
    text-decoration: none;
    display: inline-block;
}

/* the full stop motif */
.logo::after {
    content: '.';
    color: var(--accent);
}

.tagline {
    font-family: var(--display);
    color: var(--graphite);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-left: 4px;   /* nudge right ~one space to line up with the logo's first 'S' */
}

.tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    max-width: var(--shell);
    margin: 18px auto 0;
    padding: 0 36px;
    border-bottom: 1px solid var(--hairline);
}

.tab {
    font-family: var(--display);
    padding: 12px 16px;
    color: var(--graphite);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.01em;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;          /* sit the underline on the bar rule */
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
    color: var(--ink);
}

.tab.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.card {
    background: var(--paper-raised);
    border-radius: 18px;
    padding: 44px;
    backdrop-filter: none;
    border: 1px solid var(--hairline);
    box-shadow: 0 1px 2px rgba(19, 19, 19, 0.03);
}

/* Boxless wrapper for the tool/form pages — a comfortable reading column
   on the open paper, no card panel. */
.tool-page {
    max-width: 640px;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Upload area
   ------------------------------------------------------------ */
.upload-area {
    border: 1.5px dashed #CFC6B8;
    border-radius: 14px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 30px;
    background: var(--paper);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.upload-area:hover .upload-subtext,
.upload-area.dragover .upload-subtext { color: var(--paper); }

.upload-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
    filter: grayscale(1);
    opacity: 0.85;
}

.upload-text {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.upload-subtext {
    color: var(--graphite);
    font-size: 0.9rem;
}

.file-hidden { display: none; }

/* ------------------------------------------------------------
   File info
   ------------------------------------------------------------ */
.file-info {
    display: none;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--ink);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.file-info.show { display: block; }

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    filter: grayscale(1);   /* grey the JS-inserted file emoji (📄/🎬/📝) */
}

.file-duration { color: var(--graphite); }

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-group { margin-bottom: 25px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #D8CFC0;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ink);
    font-size: 1rem;
    font-family: var(--body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-input::placeholder { color: #A89F92; }

/* ------------------------------------------------------------
   Radio option cards
   ------------------------------------------------------------ */
.options-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.option-card {
    flex: 1;
    min-width: 200px;
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.option-card:hover { background: var(--paper-raised); }

.option-card.selected {
    background: var(--ink);
    color: var(--paper);
}

.option-card.selected .option-desc { color: #CFC8BC; }

.option-card input { display: none; }

.option-title {
    font-family: var(--display);
    font-weight: 600;
    margin-bottom: 5px;
}

.option-desc {
    font-size: 0.85rem;
    color: var(--graphite);
}

/* ------------------------------------------------------------
   Price display
   ------------------------------------------------------------ */
.price-display {
    text-align: center;
    margin: 30px 0;
}

.price-amount {
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.price-amount::after { content: '.'; color: var(--accent); }

.price-note {
    color: var(--graphite);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ------------------------------------------------------------
   Stripe card element
   ------------------------------------------------------------ */
#card-element {
    padding: 15px;
    border: 1px solid #D8CFC0;
    border-radius: 10px;
    background: #FFFFFF;
}

#card-errors {
    color: var(--bad);
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    width: 100%;
    padding: 17px;
    border: none;
    border-radius: 12px;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

.btn-primary:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(19, 19, 19, 0.18);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ------------------------------------------------------------
   Steps / progress
   ------------------------------------------------------------ */
.steps { display: none; }
.steps.active { display: block; }

.progress-bar {
    height: 3px;
    background: var(--hairline);
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--ink);
    transition: width 0.3s ease;
}

/* ------------------------------------------------------------
   Features
   ------------------------------------------------------------ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.feature {
    text-align: left;
    padding: 22px;
    border-top: 1px solid var(--hairline);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    filter: grayscale(1);
}

.feature-title {
    font-family: var(--display);
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--graphite);
    line-height: 1.5;
}

/* ------------------------------------------------------------
   Success message
   ------------------------------------------------------------ */
.success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-message.show { display: block; }

.success-icon {
    font-size: 3.4rem;
    margin-bottom: 20px;
    filter: grayscale(1);
}

.success-title {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-title::after { content: '.'; color: var(--accent); }

.success-text { color: var(--graphite); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
    text-align: left;
    margin-top: 50px;
    padding-top: 26px;
    border-top: 1px solid var(--hairline);
    color: #A89F92;
    font-size: 0.85rem;
}

.footer a {
    color: var(--graphite);
    text-decoration: none;
    margin: 0 10px 0 0;
}

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

/* ------------------------------------------------------------
   Spinner
   ------------------------------------------------------------ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(250, 244, 235, 0.35);
    border-radius: 50%;
    border-top-color: var(--paper);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* ------------------------------------------------------------
   Prose (info & legal content)
   ------------------------------------------------------------ */
.prose p {
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 15px;
}

.prose a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: #B9AE9C;
    text-underline-offset: 3px;
}

.prose h2 {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 28px 0 14px;
    color: var(--ink);
}

.prose ul {
    color: var(--ink-soft);
    margin-left: 20px;
    margin-bottom: 15px;
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.6;
}

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

.section-title {
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.section-title::after { content: '.'; color: var(--accent); }

/* ------------------------------------------------------------
   Load animation: sweep in from the left
   Applied automatically to the top bar and main content;
   .sweep can also be added to any element by hand.
   ------------------------------------------------------------ */
@keyframes sweepIn {
    from {
        opacity: 0;
        transform: translateX(-44px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo,
.tagline,
.tab,
.container > *,
.sweep {
    animation: sweepIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.logo            { animation-delay: 0.05s; }
.tagline         { animation-delay: 0.15s; }
.tab:nth-child(1) { animation-delay: 0.22s; }
.tab:nth-child(2) { animation-delay: 0.28s; }
.tab:nth-child(3) { animation-delay: 0.34s; }
.tab:nth-child(4) { animation-delay: 0.40s; }
.tab:nth-child(5) { animation-delay: 0.46s; }
.tab:nth-child(6) { animation-delay: 0.52s; }
.tab:nth-child(7) { animation-delay: 0.58s; }
.container > *:nth-child(1) { animation-delay: 0.30s; }
.container > *:nth-child(2) { animation-delay: 0.40s; }
.container > *:nth-child(3) { animation-delay: 0.50s; }
.container > *:nth-child(4) { animation-delay: 0.60s; }

@media (prefers-reduced-motion: reduce) {
    .logo, .tagline, .tab, .container > *, .sweep {
        animation: none;
    }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 720px) {
    .header {
        padding: 24px 20px 0;
        gap: 10px;
    }
    .logo { font-size: 2.1rem; }
    .tagline { font-size: 0.82rem; }

    .tabs {
        margin-top: 14px;
        padding: 0 20px;
        gap: 2px;
    }
    .tab {
        padding: 10px 12px;
        font-size: 0.92rem;
    }

    .container { padding: 28px 20px 40px; }

    .card { padding: 26px; }

    .upload-area { padding: 40px 20px; }

    .options-group { flex-direction: column; }

    .option-card { min-width: auto; }
}

/* ------------------------------------------------------------
   Editorial story blocks — shared by About, Contact and Pricing.
   Boxless alternating left/right content columns.
   ------------------------------------------------------------ */
.story-block {
    max-width: 640px;
    margin-bottom: 64px;
}
.story-block.align-right {
    margin-left: auto;
    text-align: left;
}
.story-block.align-left {
    margin-right: auto;
    text-align: left;
}
.story-title {
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.12;
    margin-bottom: 18px;
}
.story-title::after { content: '.'; color: var(--accent); }
.story-block p {
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 16px;
}
.story-block p:last-child { margin-bottom: 0; }
.story-block strong { color: var(--ink); }
.story-block a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: #B9AE9C;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .story-block,
    .story-block.align-right,
    .story-block.align-left {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 48px;
    }
}

/* ------------------------------------------------------------
   Bar glyphs — the black/red bar marks shared by the home
   buttons and the matching upload (submission) zones. Bars use
   currentColor so they invert with their button/zone on hover;
   the .accent bar stays red.
   ------------------------------------------------------------ */
.glyph { display: flex; width: fit-content; }
.glyph-rows {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    width: 50px;
}
.glyph-rows .bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: currentColor;
}
.glyph-cols {
    gap: 7px;
    height: 26px;
}
.glyph-cols .bar {
    width: 8px;
    border-radius: 4px;
    background: currentColor;
}
.glyph .bar.accent { background: var(--accent); }

/* glyph centred in the upload (submission) zones */
.upload-area .glyph,
.sub-upload .glyph { margin: 0 auto 18px; }
