/* essentia — shared styles */

/* =========================================================
   CSS Custom Properties
   ========================================================= */

:root {
    --accent: #6B8E7A;
    --accent-hover: #587566;
    --accent-subtle: rgba(107, 142, 122, 0.12);
    --accent-glow: rgba(107, 142, 122, 0.25);
    --bg: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary: #EBEBED;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #8E8E93;
    --border: #D2D2D7;
    --border-subtle: #E8E8ED;
    --link: #6B8E7A;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --max-width-narrow: 640px;
    --max-width: 720px;
    --max-width-wide: 1080px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --section-gap: 120px;
    --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #8FB8A2;
        --accent-hover: #A5CABA;
        --accent-subtle: rgba(143, 184, 162, 0.12);
        --accent-glow: rgba(143, 184, 162, 0.20);
        --bg: #000000;
        --bg-secondary: #1C1C1E;
        --bg-tertiary: #2C2C2E;
        --text-primary: #F5F5F7;
        --text-secondary: #A1A1A6;
        --text-tertiary: #6E6E73;
        --border: #38383A;
        --border-subtle: #2C2C2E;
        --link: #8FB8A2;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
        --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
    }
}

/* =========================================================
   Reset & Base
   ========================================================= */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   Typography
   ========================================================= */

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h2 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s, color 0.15s;
}

a:hover {
    text-decoration-color: var(--link);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

ul, ol {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.375rem;
}

/* =========================================================
   Section Label
   ========================================================= */

.section-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: var(--text-primary);
    color: var(--bg);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--text-secondary);
    color: var(--bg);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--accent-subtle);
    text-decoration: none;
}

.btn-ghost:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* App Store button */
.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--text-primary);
    color: var(--bg);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.15s, transform 0.1s;
}

.btn-appstore:hover {
    background-color: var(--text-secondary);
    color: var(--bg);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-appstore:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-appstore svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, background-color 0.2s, backdrop-filter 0.2s;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom-color: var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@media (prefers-color-scheme: dark) {
    .site-header.scrolled {
        background-color: rgba(0, 0, 0, 0.85);
    }
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand:hover {
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 28px;
    height: 28px;
    color: var(--accent);
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background-color 0.15s;
}

.site-nav a:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    text-decoration: none;
}

.site-nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.lang-switcher {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: color 0.15s, border-color 0.15s;
    margin-left: 4px;
}

.lang-switcher:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--accent-subtle);
    text-decoration: none;
}

.nav-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--text-primary);
    color: var(--bg) !important;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s, transform 0.1s;
    margin-left: 4px;
}

.nav-download:hover {
    background-color: var(--text-secondary);
    color: var(--bg) !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-download:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 10%, var(--accent-subtle) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.15s;
}

.hero-scroll-hint:hover {
    color: var(--accent);
    text-decoration: none;
}

/* =========================================================
   Sections — common
   ========================================================= */

.section {
    padding: var(--section-gap) 0;
}

.section-header {
    margin-bottom: 56px;
}

.section-header.centered {
    text-align: center;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
}

.section-header.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   The Problem
   ========================================================= */

.problem {
    padding: var(--section-gap) 0;
    background-color: var(--bg-secondary);
}

.problem-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.problem-body {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0;
}

.problem-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* =========================================================
   Philosophy
   ========================================================= */

.philosophy-intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 560px;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.philosophy-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.philosophy-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.philosophy-step {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.philosophy-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.philosophy-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.philosophy-tagline {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* =========================================================
   Philosophy Detail Sections
   ========================================================= */

.philosophy-detail {
    padding: var(--section-gap) 0;
    background-color: var(--bg);
}

.philosophy-detail--alt {
    background-color: var(--bg-secondary);
}

.philosophy-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.philosophy-detail-inner--reversed {
    direction: rtl;
}

.philosophy-detail-inner--reversed > * {
    direction: ltr;
}

.philosophy-detail-text .section-title {
    margin-bottom: 20px;
}

.philosophy-detail-text p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.philosophy-visual {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

/* =========================================================
   Phone Mockup (dark mode fijo, simula la app)
   ========================================================= */

.phone-mockup {
    width: 220px;
    height: 400px;
    background-color: #1C1C1E;
    border-radius: 24px;
    border: 2px solid #38383A;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* --- Mockup 1: Captura --- */
.mockup-inbox-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 20px 12px;
}

.mockup-inbox-line {
    height: 14px;
    background-color: #38383A;
    border-radius: 4px;
    opacity: 0.8;
}

.mockup-inbox-line--short {
    width: 60%;
}

.mockup-sheet {
    background-color: #2C2C2E;
    border-top: 1px solid #38383A;
    border-radius: 16px 16px 0 0;
    padding: 12px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-sheet-handle {
    width: 36px;
    height: 4px;
    background-color: #48484A;
    border-radius: 2px;
    margin: 0 auto 4px;
}

.mockup-sheet-toggle {
    display: flex;
    background-color: #3A3A3C;
    border-radius: 8px;
    padding: 2px;
}

.mockup-toggle-active {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #1C1C1E;
    background-color: #8FB8A2;
    border-radius: 6px;
    padding: 4px 0;
}

.mockup-toggle-inactive {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #6E6E73;
    padding: 4px 0;
}

.mockup-sheet-placeholder {
    font-size: 12px;
    color: #6E6E73;
    margin-bottom: 0;
    padding: 0 2px;
}

.mockup-sheet-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mockup-icon-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #3A3A3C;
    flex-shrink: 0;
}

/* --- Mockup 2: Triaje --- */
.mockup-triage {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 16px 16px;
    gap: 10px;
}

.mockup-triage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mockup-close {
    font-size: 14px;
    color: #6E6E73;
}

.mockup-counter {
    font-size: 12px;
    color: #6E6E73;
}

.mockup-badge-neutral {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #A1A1A6;
    background-color: #2C2C2E;
    border-radius: 6px;
    padding: 3px 8px;
    border: 1px solid #38383A;
    align-self: flex-start;
}

.mockup-badge-overdue {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #E85050;
    background-color: rgba(200,60,60,0.2);
    border-radius: 6px;
    padding: 3px 8px;
    border: 1px solid rgba(200,60,60,0.3);
    align-self: flex-start;
}

.mockup-task-title {
    font-size: 14px;
    font-weight: 600;
    color: #F5F5F7;
    line-height: 1.35;
    margin-bottom: 0;
}

.mockup-separator {
    height: 1px;
    background-color: #38383A;
    margin: 2px 0;
}

.mockup-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #2C2C2E;
}

.mockup-meta-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.mockup-meta-label {
    flex: 1;
    font-size: 12px;
    color: #A1A1A6;
}

.mockup-meta-chevron {
    font-size: 14px;
    color: #6E6E73;
}

.mockup-triage-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
}

/* --- Mockup 3: Revisión --- */
.mockup-review {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 16px 16px;
    gap: 10px;
}

.mockup-review-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.mockup-review-row {
    display: flex;
    gap: 6px;
}

/* --- Botones de mockup --- */
.mockup-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: default;
    text-align: center;
    font-family: inherit;
}

.mockup-btn--skip {
    background-color: rgba(100,100,100,0.25);
    color: #A1A1A6;
}

.mockup-btn--complete {
    background-color: rgba(60,120,80,0.3);
    color: #6BBF7A;
}

.mockup-btn--delete {
    background-color: rgba(160,60,60,0.3);
    color: #D46B6B;
}

.mockup-btn--today {
    background-color: rgba(180,130,50,0.25);
    color: #D4A647;
}

.mockup-btn--tomorrow {
    background-color: rgba(60,110,170,0.25);
    color: #5B9BD5;
}

.mockup-btn--pick-date {
    background-color: rgba(150,80,170,0.25);
    color: #B07CC6;
}

.mockup-btn--done {
    background-color: rgba(60,120,80,0.3);
    color: #6BBF7A;
}

/* =========================================================
   Features Grid
   ========================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* =========================================================
   Platform Showcase
   ========================================================= */

.platform-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.platform-card {
    text-align: center;
}

.device-area {
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 24px;
}

.device-silhouette {
    margin: 0;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-phone {
    width: 80px;
    height: 156px;
    border-radius: 18px;
}

.device-phone::before {
    display: none;
}

.device-tablet {
    width: 120px;
    height: 160px;
    border-radius: 14px;
}

.device-tablet::before {
    display: none;
}

.device-mac {
    width: 160px;
    height: 104px;
    border-radius: 8px;
}

.device-mac::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 8px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 0 0 4px 4px;
}

.device-screen {
    width: 88%;
    height: 85%;
    background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 100%);
    border-radius: calc(var(--radius-sm) / 2);
    position: relative;
    z-index: 1;
}

.device-phone .device-screen {
    margin-top: 0;
    height: 85%;
}

.platform-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.platform-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.55;
}

/* =========================================================
   Pricing
   ========================================================= */

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 680px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border-subtle);
    position: relative;
}

.pricing-card.pro {
    border-color: var(--accent);
    background-color: var(--accent-subtle);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}

/* =========================================================
   Built For
   ========================================================= */

.audience-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.audience-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border-subtle);
}

.audience-type {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.audience-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.audience-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* =========================================================
   CTA Final
   ========================================================= */

.cta-final {
    padding: var(--section-gap) 0;
    background-color: var(--bg-secondary);
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.site-footer .container-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-brand:hover {
    text-decoration: none;
    color: var(--text-primary);
}

.footer-brand .brand-logo {
    width: 22px;
    height: 22px;
}

.footer-brand .brand-name {
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background-color 0.15s;
}

.footer-links a:hover {
    color: var(--accent);
    background-color: var(--accent-subtle);
    text-decoration: none;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 0;
}

/* =========================================================
   Reveal Animations
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 560ms; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entry animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    animation: fadeUp 0.7s ease both;
}

.hero-animate:nth-child(1) { animation-delay: 0ms; }
.hero-animate:nth-child(2) { animation-delay: 100ms; }
.hero-animate:nth-child(3) { animation-delay: 200ms; }
.hero-animate:nth-child(4) { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-stagger > *,
    .hero-animate {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   Tables (legal pages)
   ========================================================= */

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead {
    background-color: var(--bg-secondary);
}

th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 10px 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

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

/* =========================================================
   Legal pages
   ========================================================= */

.legal-header {
    padding: 48px 0 32px;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 8px;
    margin-bottom: 0;
}

.legal-content {
    padding-bottom: 24px;
}

.legal-content > section {
    margin-bottom: 2rem;
}

/* Legal header nav adjustments */
.legal-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legal-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* =========================================================
   Dividers
   ========================================================= */

.section-divider {
    height: 1px;
    background-color: var(--border-subtle);
    border: none;
    margin: 0;
}

/* =========================================================
   Trial badge en pricing
   ========================================================= */

.pricing-trial-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* =========================================================
   Lista de extras en audience cards
   ========================================================= */

.audience-extras {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.audience-extras li {
    font-size: 0.8375rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.audience-extras li::before {
    content: '+';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* =========================================================
   Responsive — Tablet (768px)
   ========================================================= */

@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

    .philosophy-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .philosophy-detail-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .philosophy-detail-inner--reversed {
        direction: ltr;
    }

    .phone-mockup {
        width: 200px;
        height: 360px;
    }

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

    .platform-cards {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }

    .device-area {
        height: auto;
        margin-bottom: 16px;
    }

    .device-phone { width: 80px; height: 156px; }
    .device-tablet { width: 120px; height: 160px; }
    .device-mac { width: 160px; height: 104px; }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .audience-cards {
        grid-template-columns: 1fr;
    }

    .site-footer .container-wide {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        align-items: flex-start;
    }
}

/* =========================================================
   Responsive — Mobile (480px)
   ========================================================= */

@media (max-width: 480px) {
    :root {
        --section-gap: 64px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .phone-mockup {
        width: 180px;
        height: 330px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .btn-primary, .btn-ghost, .btn-appstore {
        justify-content: center;
        width: 100%;
    }

    .site-nav a:not(.nav-download) {
        display: none;
    }

    .nav-download-text {
        display: none;
    }

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

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
}

/* =========================================================
   Responsive — Small (320px)
   ========================================================= */

@media (max-width: 360px) {
    .container,
    .container-wide,
    .container-narrow {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.875rem;
    }
}
