/* kofte.app
 *
 * Warm dark palette, flat treatment. The page carries its hierarchy in type
 * size, weight and whitespace rather than in cards, gradients and shadows.
 * There are no gradients, no box-shadows and no glows anywhere in this file,
 * and that is deliberate rather than incidental. Corner radius is 0 on
 * everything the site owns. The only rounded things are the phone mockup and
 * its contents, which are drawing an Android device and the app's own shapes.
 *
 * Typography is the app's, from ui/theme/Type.kt:
 *   Playfair Display   display, headline and title styles
 *   DM Sans            body and label styles
 *   JetBrains Mono     numerals, eyebrows, small caps labels
 * Self-hosted, see fonts.css.
 */

:root {
    --bg-deep: #1C150F;
    --accent: #C67B3C;
    --cream: #E8DDD0;
    --cream-muted: #B5A898;
    /* Raised from #7A6E62 on 2026-08-16. That value sat at 3.64:1 against
       --bg-deep, and every rule using it is small text (.eyebrow 0.7rem,
       .privacy .updated 0.72rem, .pro-price 0.975rem), which needs 4.5:1 under
       WCAG AA. The large-text exemption starts at 24px, so none of them
       qualified. Same hue and saturation, lighter: 5.09:1 on --bg-deep and
       4.51:1 on --app-bg.

       Note this is a SITE colour, not one of the --app-* values below. Those
       are the app's own palette and every one of them already passes. */
    --cream-faint: #938679;

    --rule: rgba(232, 221, 208, 0.12);

    /* The mockup is a picture of the app, so its colours are the app's, not
       the site's. Lifted from ui/theme/Color.kt and DarkColorScheme in
       ui/theme/Theme.kt. Keep these in sync if the app's dark theme moves. */
    --app-bg: #2C1F14;         /* WarmBlack */
    --app-surface: #3E2F23;    /* DarkColorScheme.surface */
    --app-primary: #C47840;    /* TerracottaDark */
    --app-cream: #F5EFE6;      /* WarmCream */
    --app-sage: #A5C29E;       /* SageLight */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background-color: var(--bg-deep);
    color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Mono eyebrow label. This is what carries section hierarchy
   now that nothing is in a box. */
.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream-faint);
    display: block;
    margin-bottom: 28px;
}

/* ---- Navigation ---- */
nav {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--rule);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    color: var(--cream-muted);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

/* ---- Hero ---- */
.hero {
    padding: 96px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.hero-content {
    flex: 1;
    max-width: 460px;
}

.hero-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}

.hero-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--bg-deep);
}

/* displayLarge: Playfair Display, letter-spacing -0.25sp */
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 24px;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

/* bodyLarge: DM Sans 16sp, letter-spacing 0.5sp */
.hero p {
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--cream-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--accent);
    color: var(--bg-deep);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-cta:hover {
    background: var(--cream);
}

.hero-cta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ---- Phone mockup ----
   Uses the app's own dark scheme and corner radii
   (KofteShapes.Button = 16dp). The type needs no special
   casing here: the page is already on the app's families, so
   the mockup inherits the right faces automatically. */
.hero-phone {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.phone-frame {
    width: 288px;
    height: 576px;
    background: var(--app-bg);
    border: 1px solid var(--rule);
    border-radius: 32px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.phone-app {
    flex: 1;
    background: var(--app-surface);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: var(--app-bg);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* titleLarge: Playfair Display 22sp */
.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 36px;
    padding: 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--app-cream);
}

.phone-close {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--app-cream);
}

.phone-counter {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter-circle {
    width: 208px;
    height: 208px;
    border-radius: 50%;
    background: var(--app-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--app-cream);
}

/* bodyMedium: DM Sans 14sp */
.counter-label {
    /* Dark on the orange disc, not cream. --app-cream on --app-primary is
       3.01:1, and at 0.875rem this is small text needing 4.50 under WCAG AA.
       --app-bg gives 4.65:1.

       Only the label changed. .counter-value is 5rem, which counts as large
       text and needs only 3.00, so it passes on 3.01 and keeps the app's cream.
       That is a margin of 0.01, so if the disc colour is ever adjusted, recheck
       the big number too. */
    color: var(--app-bg);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.25px;
    margin-bottom: 2px;
}

/* CounterDisplayLarge: JetBrains Mono, letter-spacing 0 */
.counter-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.phone-footer {
    display: flex;
    justify-content: center;
    padding-bottom: 14px;
}

/* labelLarge: DM Sans Medium 14sp, on KofteShapes.Button 16dp */
.phone-undo {
    background: var(--app-sage);
    color: var(--app-bg);
    border: none;
    padding: 12px 22px;
    border-radius: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* No cursor: pointer. This is a picture of the app's Undo button, not a
       button, and the hand cursor was promising an interaction that does not
       exist. It is a <div> in the markup for the same reason: as a <button> it
       took a tab stop and took focus. */
}

/* ---- Feature list. No cards, no boxes. ---- */
.feature-cards {
    padding: 0 0 96px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 64px;
    row-gap: 48px;
}

.fc-card {
    border-top: 1px solid var(--rule);
    padding-top: 20px;
}

/* headlineSmall / titleLarge: Playfair Display */
/* h2, not h3. These are the top-level sections under the page's h1, and the
   document previously jumped h1 -> h3 with no h2 between, which fails the
   heading-order accessibility audit. Purely a semantic change: this selector
   is scoped by class, so the rendering is identical. */
.fc-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 8px;
}

.fc-card p {
    font-size: 0.875rem;
    color: var(--cream-muted);
    line-height: 1.75;
}

/* ---- Tagline ---- */
.tagline {
    padding: 0 0 96px;
}

.tagline blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--cream-muted);
    line-height: 1.4;
    max-width: 20ch;
}

.tagline blockquote span {
    color: var(--cream);
    font-style: normal;
}

/* ---- Feature strip. Mono, rules instead of pills. ---- */
.features {
    padding: 0 0 96px;
}

.feature-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--cream-muted);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 18px 0;
}

.feature-tag {
    position: relative;
    padding-right: 20px;
}

.feature-tag::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 0.8em;
    background: var(--rule);
}

.feature-tag:last-child {
    padding-right: 0;
}

.feature-tag:last-child::after {
    display: none;
}

/* ---- Pro. No card. ---- */
.pro {
    padding: 0 0 96px;
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 12px;
}

.pro-badge svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

.pro>p {
    color: var(--cream-muted);
    font-size: 0.925rem;
    max-width: 50ch;
    margin-bottom: 24px;
}

.pro-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--cream);
}

.pro-feat::before {
    content: '+ ';
    color: var(--accent);
}

.pro-price {
    font-size: 0.975rem;
    color: var(--cream-faint);
    border-top: 1px solid var(--rule);
    padding-top: 20px;
}

.pro-price strong {
    color: var(--cream);
    font-weight: 600;
}

/* ---- Privacy ---- */
.privacy {
    padding: 0 0 96px;
}

/* headlineLarge: Playfair Display */
.privacy h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 8px;
}

.privacy .updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--cream-faint);
    margin-bottom: 56px;
}

.privacy-section {
    margin-bottom: 36px;
    max-width: 66ch;
}

.privacy-section h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.privacy-section p {
    color: var(--cream-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.privacy-section p+p {
    margin-top: 14px;
}

.privacy-section a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.privacy-highlight {
    margin-top: 48px;
    padding-left: 24px;
    border-left: 2px solid var(--accent);
    max-width: 66ch;
}

.privacy-highlight p {
    font-family: 'Playfair Display', serif;
    color: var(--cream);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
}

/* ---- Error page ----
   Used by 404.html, which nginx also serves for denied paths: the vhost maps
   403 to 404 so a blocked path looks identical to one that never existed. A
   visitor who mistyped and a scanner probing /.git/ therefore see the same
   page, which is the point. The copy is written for the visitor. */
.notfound {
    padding: 96px 0 120px;
    max-width: 60ch;
}

.notfound h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 20px;
}

.notfound p {
    color: var(--cream-muted);
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.notfound a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.notfound ul {
    list-style: none;
    margin-top: 32px;
    border-top: 1px solid var(--rule);
    padding-top: 20px;
}

.notfound li {
    padding: 6px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.notfound li a {
    text-decoration: none;
}

.notfound li a:hover {
    text-decoration: underline;
}

/* ---- Footer ---- */
footer {
    padding: 36px 0;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--cream-faint);
}

footer a {
    color: var(--cream-muted);
    /* Underlined, because colour alone does not separate these from the text
       around them: --cream-muted against the footer's --cream-faint is 1.52:1,
       where 3.00 is the minimum for telling links apart without an underline.
       Underlining sidesteps the ratio entirely and helps everyone, not only
       people who cannot distinguish the two browns. */
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 56px 0 48px;
        gap: 48px;
    }

    .hero-content {
        max-width: none;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Scroll reveal ----
   Gated behind (scripting: enabled) on purpose. kofte.js is what adds
   .visible, so if the script is blocked, fails to load, or the visitor
   browses with JS off, an ungated .reveal { opacity: 0 } would leave
   everything below the hero permanently invisible. Inside this query the
   hidden state only exists when something is around to undo it. */
@media (scripting: enabled) {
    .reveal {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}
