/*
Theme Name: Apps SWTE
Theme URI: https://apps.swte.ltd
Description: Modern cobalt-and-white theme for the SWTE apps showcase. Blue band heroes, white sections, bold sans-serif.
Version: 1.2.0
Author: SWTE
Text Domain: apps-swte
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    /* Brand */
    --brand:        #3b5bfd;
    --brand-2:      #2d49ee;
    --brand-3:      #1f3ad9;
    --brand-soft:   #eef1ff;
    --brand-band:   #3b5bfd;

    /* Surfaces */
    --bg:           #ffffff;
    --surface:      #f7f9fc;
    --surface-2:    #eef1f7;
    --canvas:       #ffffff;

    /* Ink */
    --ink:          #0b1228;
    --ink-2:        #1b2440;
    --ink-soft:     #4a5570;
    --ink-faint:    #8a93ad;

    /* Borders */
    --hair:         #e3e7f0;
    --hair-soft:    #eef0f6;
    --hair-strong:  #d2d7e4;

    /* On-brand */
    --on-brand:        #ffffff;
    --on-brand-soft:   rgba(255,255,255,0.78);
    --on-brand-faint:  rgba(255,255,255,0.55);
    --brand-overlay:   rgba(255,255,255,0.12);

    /* Type */
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    /* Space */
    --container:        1180px;
    --container-narrow: 740px;
    --gutter:           28px;
    --section-y:        108px;

    /* Radii */
    --r-xs: 8px;
    --r-sm: 12px;
    --r:    18px;
    --r-lg: 24px;
    --r-xl: 32px;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(11,18,40,0.04), 0 1px 3px rgba(11,18,40,0.05);
    --shadow:     0 4px 10px -2px rgba(11,18,40,0.06), 0 16px 38px -10px rgba(11,18,40,0.14);
    --shadow-lg:  0 8px 16px -4px rgba(11,18,40,0.08), 0 30px 60px -20px rgba(11,18,40,0.20);
    --shadow-brand: 0 14px 30px -10px rgba(59,91,253,0.45);

    /* Easing */
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }

::selection { background: var(--brand); color: var(--on-brand); }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

.container--narrow { max-width: var(--container-narrow); }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    padding: 6px 14px;
    background: var(--brand-soft);
    border-radius: 999px;
    line-height: 1.4;
}

.eyebrow--on-brand {
    color: var(--on-brand);
    background: var(--brand-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--hair-soft);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.015em;
    font-size: 17px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--brand);
    color: var(--on-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    box-shadow: 0 6px 14px -4px rgba(59,91,253,0.55);
}

.main-nav { display: flex; gap: 32px; }

.main-nav a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 6px 0;
    transition: color 0.2s ease;
}

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

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: var(--on-brand);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
    transform: translateY(-1px);
    background: var(--brand-2);
    box-shadow: var(--shadow-brand);
}

/* ============================================================
   BLUE BAND (shared by hero on home + simple-scanner + contact)
   ============================================================ */
.brand-band {
    position: relative;
    background: var(--brand);
    color: var(--on-brand);
    overflow: hidden;
    isolation: isolate;
}

/* Decorative circles in the band */
.brand-band::before,
.brand-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.brand-band::before {
    width: 480px;
    height: 480px;
    top: -180px;
    right: -180px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.18), rgba(255,255,255,0) 70%);
}

.brand-band::after {
    width: 360px;
    height: 360px;
    bottom: -200px;
    left: -140px;
    background: radial-gradient(circle at 65% 35%, rgba(255,255,255,0.12), rgba(255,255,255,0) 70%);
}

/* Small decorative outlined circles dropped into the band */
.deco-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.deco-dot--lg { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.45); }
.deco-dot--md { width: 12px; height: 12px; background: rgba(255,255,255,0.55); }
.deco-dot--sm { width: 8px;  height: 8px;  background: rgba(255,255,255,0.30); }

.brand-band > .container { position: relative; z-index: 1; }

/* ============================================================
   HOME — HERO
   ============================================================ */
.home-hero {
    padding: 96px 0 110px;
    text-align: center;
}

.home-hero .eyebrow { margin-bottom: 28px; }

.home-hero h1 {
    font-size: clamp(40px, 6.4vw, 76px);
    font-weight: 800;
    letter-spacing: -0.032em;
    line-height: 1.05;
    color: var(--on-brand);
    max-width: 900px;
    margin: 0 auto 24px;
}

.home-hero .lead {
    font-size: clamp(17px, 1.7vw, 20px);
    color: var(--on-brand-soft);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.55;
}

.home-hero-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.home-hero-tags .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--on-brand-soft);
}

.home-hero-tags .pill .tick {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--on-brand);
    color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px;
    font-weight: 800;
}

/* ============================================================
   GENERIC SECTION (white)
   ============================================================ */
.section {
    padding: var(--section-y) 0;
}

.section--surface { background: var(--surface); }

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head .eyebrow { margin-bottom: 18px; }

.section-head h2 {
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 800;
    letter-spacing: -0.028em;
    line-height: 1.1;
    color: var(--ink);
    max-width: 720px;
    margin: 0 auto;
}

.section-head .sub {
    font-size: 17px;
    color: var(--ink-soft);
    margin-top: 14px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

/* ============================================================
   HOME — APPS GRID
   ============================================================ */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
    max-width: 920px;
    margin: 0 auto;
}

.app-card {
    display: flex;
    flex-direction: column;
    padding: 32px 32px 30px;
    background: var(--canvas);
    border: 1px solid var(--hair);
    border-radius: var(--r-lg);
    position: relative;
    color: inherit;
    overflow: hidden;
    min-height: 360px;
    transition:
        transform 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out),
        border-color 0.3s ease;
}

.app-card.is-live:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59,91,253,0.4);
}

.app-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.app-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px -4px rgba(11,18,40,0.20);
}

.app-card-icon img { width: 100%; height: 100%; object-fit: cover; }

.app-card-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--brand-soft);
    color: var(--brand-3);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.app-card h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 10px;
}

.app-card-tagline {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 22px;
    flex-grow: 1;
}

.app-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}

.tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--hair);
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.4;
}

.app-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    margin-top: auto;
    letter-spacing: -0.005em;
}

.app-card-cta svg {
    transition: transform 0.3s var(--ease-out);
}

.app-card.is-live:hover .app-card-cta svg { transform: translateX(4px); }

.app-card.is-soon {
    background: var(--surface);
    border-style: dashed;
    border-color: var(--hair-strong);
}

.app-card.is-soon .app-card-icon {
    background: var(--canvas);
    border: 1.5px dashed var(--hair-strong);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
}

.app-card.is-soon h3 { color: var(--ink-2); }
.app-card.is-soon .app-card-cta { color: var(--ink-faint); }
.app-card.is-soon .app-card-platform { background: var(--hair-soft); color: var(--ink-soft); }

/* ============================================================
   HOME — PRINCIPLES (3 cards)
   ============================================================ */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.principle {
    background: var(--canvas);
    border: 1px solid var(--hair);
    border-radius: var(--r-lg);
    padding: 36px 32px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.principle:hover {
    border-color: rgba(59,91,253,0.35);
    transform: translateY(-3px);
}

.principle-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand);
    color: var(--on-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 18px -6px rgba(59,91,253,0.5);
}

.principle h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 10px;
}

.principle p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   SIMPLE SCANNER — HERO (blue band, phone on platform)
   ============================================================ */
.ss-hero {
    padding: 80px 0 0;
    text-align: center;
}

.ss-hero .eyebrow { margin-bottom: 24px; }

.ss-icon-lg {
    width: 84px;
    height: 84px;
    margin: 0 auto 28px;
    border-radius: 19px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(11,18,40,0.10),
        0 18px 40px -8px rgba(0,0,0,0.35);
}

.ss-icon-lg img { width: 100%; height: 100%; object-fit: cover; }

.ss-hero h1 {
    font-size: clamp(42px, 6.6vw, 80px);
    font-weight: 800;
    letter-spacing: -0.034em;
    line-height: 1.04;
    color: var(--on-brand);
    margin: 0 auto 22px;
    max-width: 820px;
}

.ss-hero .sub {
    font-size: clamp(17px, 1.7vw, 20px);
    color: var(--on-brand-soft);
    line-height: 1.55;
    max-width: 580px;
    margin: 0 auto 36px;
}

.ss-hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 64px;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.app-store-badge img {
    height: 52px;
    width: auto;
    display: block;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

.btn-ghost-on-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--on-brand);
    border: 1.5px solid rgba(255,255,255,0.30);
    background: rgba(255,255,255,0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
    letter-spacing: -0.005em;
}

.btn-ghost-on-brand:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.55);
}

/* Phone on platform — sits inside the blue band */
.device-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 0 0;
    min-height: 340px;
}

.device-platform {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(280px, 38vw, 460px);
    height: 360px;
    background: rgba(255,255,255,0.14);
    border-radius: 28px 28px 0 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18);
    border-bottom: none;
}

.device-phone {
    position: relative;
    z-index: 1;
    width: clamp(220px, 28vw, 320px);
    height: auto;
    border-radius: 38px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35));
    transform: translateY(50px);
}

/* ============================================================
   SS FEATURES (white section)
   ============================================================ */
.ss-features {
    padding: calc(var(--section-y) + 40px) 0 var(--section-y);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 1120px;
    margin: 0 auto;
}

.feature {
    background: var(--canvas);
    border: 1px solid var(--hair);
    border-radius: var(--r-lg);
    padding: 30px 28px 28px;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    border-color: rgba(59,91,253,0.35);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-3);
    margin-bottom: 18px;
}

.feature h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 8px;
}

.feature p {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   SS GALLERY
   ============================================================ */
.shots {
    background: var(--surface);
    padding: var(--section-y) 0;
}

.shots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
}

.shot {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1284 / 2778;
    background: var(--canvas);
    box-shadow:
        0 4px 8px -2px rgba(11,18,40,0.06),
        0 24px 48px -16px rgba(11,18,40,0.18);
    transition: transform 0.4s var(--ease-out);
}

.shot:hover { transform: translateY(-6px); }

.shot img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   SS DETAILS
   ============================================================ */
.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
}

.detail {
    background: var(--canvas);
    border: 1px solid var(--hair);
    border-radius: var(--r);
    padding: 26px 26px 28px;
    transition: border-color 0.3s ease;
}

.detail:hover { border-color: var(--hair-strong); }

.detail h4 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.012em;
    margin: 0 0 8px;
    color: var(--ink);
}

.detail p {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   CONTACT — slim hero + form card
   ============================================================ */
.contact-hero {
    padding: 80px 0 80px;
    text-align: center;
}

.contact-hero .eyebrow { margin-bottom: 22px; }

.contact-hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -0.030em;
    line-height: 1.06;
    color: var(--on-brand);
    margin: 0 0 18px;
}

.contact-hero .lead {
    font-size: clamp(16.5px, 1.5vw, 18px);
    color: var(--on-brand-soft);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.55;
}

.contact-wrap {
    padding: 0 0 var(--section-y);
    position: relative;
    margin-top: -56px;
    z-index: 2;
}

.contact-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--canvas);
    border: 1px solid var(--hair);
    border-radius: var(--r-xl);
    padding: 44px 44px 40px;
    box-shadow: var(--shadow-lg);
}

.contact-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--hair-soft);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-card-head h2 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.contact-card-head .reply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}

.contact-card-head .reply .pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ---- CF7 form (autop disabled — labels are direct children) ---- */
.wpcf7 { color: var(--ink); }
.wpcf7 form { margin: 0; }

.wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "name email"
        "subject subject"
        "message message"
        "submit submit";
    gap: 22px 20px;
}

.wpcf7-form > .hidden-fields-container,
.wpcf7-form > fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: contents;
}

/* autop-off: labels as direct children */
.wpcf7-form > label:nth-of-type(1) { grid-area: name; }
.wpcf7-form > label:nth-of-type(2) { grid-area: email; }
.wpcf7-form > label:nth-of-type(3) { grid-area: subject; }
.wpcf7-form > label:nth-of-type(4) { grid-area: message; }

/* autop-on fallback: paragraphs as direct children */
.wpcf7-form > p { margin: 0; padding: 0; }
.wpcf7-form > p:nth-of-type(1) { grid-area: name; }
.wpcf7-form > p:nth-of-type(2) { grid-area: email; }
.wpcf7-form > p:nth-of-type(3) { grid-area: subject; }
.wpcf7-form > p:nth-of-type(4) { grid-area: message; }
.wpcf7-form > p:nth-of-type(5) { grid-area: submit; justify-self: start; }

.wpcf7-form > input[type="submit"] { grid-area: submit; justify-self: start; }

.wpcf7-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: -0.005em;
}

.wpcf7-form label br { display: none; }

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.wpcf7-form input.wpcf7-text,
.wpcf7-form input.wpcf7-email {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid transparent;
    border-radius: var(--r-sm);
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15.5px;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.wpcf7-form input.wpcf7-text:hover,
.wpcf7-form input.wpcf7-email:hover {
    background: var(--surface-2);
}

.wpcf7-form input.wpcf7-text:focus,
.wpcf7-form input.wpcf7-email:focus {
    outline: none;
    background: var(--canvas);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(59,91,253,0.12);
}

.wpcf7-form textarea.wpcf7-textarea {
    width: 100%;
    min-height: 160px;
    background: var(--surface);
    border: 1.5px solid transparent;
    border-radius: var(--r-sm);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15.5px;
    color: var(--ink);
    line-height: 1.55;
    font-weight: 500;
    resize: vertical;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.wpcf7-form textarea.wpcf7-textarea:hover { background: var(--surface-2); }

.wpcf7-form textarea.wpcf7-textarea:focus {
    outline: none;
    background: var(--canvas);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(59,91,253,0.12);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: var(--ink-faint);
    opacity: 1;
}

/* Submit */
.wpcf7-form input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    background: var(--brand);
    color: var(--on-brand);
    border: 0;
    border-radius: var(--r-sm);
    padding: 15px 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), background 0.2s ease, box-shadow 0.2s ease;
    margin-top: 6px;
    box-shadow: 0 6px 16px -4px rgba(59,91,253,0.45);
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-1px);
    background: var(--brand-2);
    box-shadow: 0 14px 28px -8px rgba(59,91,253,0.55);
}

.wpcf7-form input[type="submit"]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* Validation tips */
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 8px;
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 500;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* Response output */
.wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 22px 0 0 !important;
    padding: 14px 18px !important;
    border: 1px solid var(--hair) !important;
    border-radius: var(--r-sm) !important;
    font-size: 14.5px !important;
    line-height: 1.5;
    color: var(--ink) !important;
    background: var(--surface);
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #10b981 !important;
    background: #ecfdf5;
    color: #047857 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #dc2626 !important;
    background: #fef2f2;
    color: #b91c1c !important;
}

.wpcf7-spinner { display: none !important; }

/* ============================================================
   GENERIC PAGE (prose)
   ============================================================ */
.prose {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-2);
}

.prose p { margin: 0 0 1.2em; color: var(--ink-soft); }
.prose h2, .prose h3 {
    font-weight: 700;
    color: var(--ink);
    margin: 1.6em 0 0.6em;
    letter-spacing: -0.018em;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(59,91,253,0.4); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.4em; color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--hair);
    padding: 56px 0 56px;
    color: var(--ink-soft);
    font-size: 14px;
    background: var(--bg);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.footer-brand-text strong {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.012em;
    font-size: 15px;
}

.footer-brand-text small {
    color: var(--ink-faint);
    font-size: 13px;
}

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

.footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

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

/* ============================================================
   PAGE LOAD ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    @keyframes rise {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes rise-device {
        from { opacity: 0; transform: translateY(120px); }
        to   { opacity: 1; transform: translateY(50px); }
    }

    .home-hero > .container > * { animation: rise 0.85s var(--ease-out) both; }
    .home-hero .eyebrow      { animation-delay: 0.05s; }
    .home-hero h1            { animation-delay: 0.15s; }
    .home-hero .lead         { animation-delay: 0.28s; }
    .home-hero-tags          { animation-delay: 0.40s; }

    .ss-hero > .container > * { animation: rise 0.85s var(--ease-out) both; }
    .ss-hero .eyebrow     { animation-delay: 0.05s; }
    .ss-icon-lg           { animation-delay: 0.12s; }
    .ss-hero h1           { animation-delay: 0.22s; }
    .ss-hero .sub         { animation-delay: 0.34s; }
    .ss-hero-cta          { animation-delay: 0.44s; }
    .device-stage         { animation: rise 1s var(--ease-out) 0.5s both; }
    .device-phone         { animation: rise-device 1.2s var(--ease-out) 0.6s both; }

    .contact-hero .eyebrow { animation: rise 0.85s var(--ease-out) 0.05s both; }
    .contact-hero h1       { animation: rise 0.85s var(--ease-out) 0.15s both; }
    .contact-hero .lead    { animation: rise 0.85s var(--ease-out) 0.28s both; }
    .contact-card          { animation: rise 0.9s var(--ease-out) 0.38s both; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    :root {
        --section-y: 72px;
        --gutter: 22px;
    }

    .main-nav { gap: 20px; }
    .main-nav a { font-size: 14px; }

    .home-hero { padding: 64px 0 80px; }
    .ss-hero { padding: 56px 0 0; }
    .contact-hero { padding: 56px 0 56px; }

    .device-stage { min-height: 300px; }
    .device-platform { height: 300px; }
    .device-phone { width: clamp(200px, 50vw, 260px); transform: translateY(40px); }

    .section-head { margin-bottom: 40px; }

    .ss-features { padding: calc(var(--section-y) + 24px) 0 var(--section-y); }

    .contact-card { padding: 32px 28px 30px; }
    .contact-card-head { margin-bottom: 24px; padding-bottom: 16px; }

    .wpcf7-form {
        grid-template-columns: 1fr;
        grid-template-areas:
            "name"
            "email"
            "subject"
            "message"
            "submit";
        gap: 18px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .footer-brand { justify-content: center; }
    .footer-brand-text { align-items: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 18px; }
}

@media (max-width: 520px) {
    :root { --gutter: 18px; }

    .header-cta { display: none; }

    .home-hero { padding: 48px 0 64px; }
    .home-hero h1 { font-size: clamp(34px, 9vw, 48px); }

    .ss-icon-lg { width: 72px; height: 72px; margin-bottom: 22px; }
    .ss-hero h1 { font-size: clamp(34px, 9vw, 52px); }

    .contact-hero h1 { font-size: clamp(34px, 9vw, 48px); }

    .app-card { padding: 28px 26px; min-height: auto; }
    .principle { padding: 30px 26px 28px; }

    .contact-card { padding: 28px 22px 26px; border-radius: 22px; }

    .app-store-badge img { height: 48px; }
}

/* ============================================================
   ADMIN BAR ACCOMMODATION
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
