/*
Theme Name: Hermes Translator
Theme URI: https://github.com/rchatham/hermes-wp-theme
Author: Reid Chatham
Author URI: https://reidchatham.com
Description: Landing page theme for Hermes Translator — real-time peer-to-peer translation app for iOS and Android.
Version: 1.0.27
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: hermes-translator
Tags: landing-page, one-page, custom-colors, custom-logo, mobile-friendly
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --color-primary:       #F87E17;
    --color-primary-dark:  #D96A0C;
    --color-accent:        #FFE0BF;
    --color-bg:            #F87E17;
    --color-bg-card:       #FFF9F4;
    --color-bg-section:    #FFE8D4;
    --color-text:          #452515;
    --color-text-muted:    #6E3C1E;
    --color-border:        rgba(90, 44, 16, 0.10);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   24px;
    --radius-pill: 999px;

    --shadow-card: 0 18px 50px rgba(108, 53, 18, 0.14);
    --shadow-glow: 0 0 80px rgba(255, 197, 134, 0.30);

    --max-width: 1100px;
    --section-padding: 96px 24px;
}

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

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 225, 194, 0.30), transparent 20%),
        radial-gradient(circle at 88% 22%, rgba(255, 208, 158, 0.22), transparent 18%),
        radial-gradient(circle at 80% 78%, rgba(255, 193, 128, 0.18), transparent 18%),
        linear-gradient(180deg, #fa8a22 0%, #f87e17 42%, #ef7410 100%);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--section-padding); }
.section--alt {
    background: transparent;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

.how-it-works,
.privacy {
    background: transparent;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

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

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff2e3;
    margin-bottom: 16px;
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 243, 233, 0.86);
    max-width: 640px;
    margin: 0 auto;
}

.policy-page {
    background: transparent;
    color: #2f1d13;
    overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
    position: relative;
}

.policy-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 72% 54% at 50% 0%, rgba(255, 233, 210, 0.34) 0%, transparent 72%),
        radial-gradient(circle at 18% 22%, rgba(255, 205, 155, 0.18) 0%, transparent 24%),
        radial-gradient(circle at 82% 78%, rgba(255, 192, 132, 0.18) 0%, transparent 24%),
        radial-gradient(circle at 50% 55%, rgba(255, 248, 242, 0.10) 0%, transparent 22%);
}

.policy-page .container {
    max-width: 980px;
    position: relative;
    z-index: 1;
}

.policy-card {
    background: #ffffff;
    border: 1px solid rgba(184, 91, 13, 0.14);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(92, 45, 13, 0.13);
    margin: 0 auto;
    overflow: hidden;
}
.policy-card:not(:has(.policy-card__header)) {
    padding: clamp(28px, 5vw, 56px);
}
.policy-card:not(:has(.policy-card__header)) > .eyebrow {
    color: #b24f05;
}
.policy-card:not(:has(.policy-card__header)) > h1 {
    border-bottom: 1px solid rgba(184, 91, 13, 0.12);
    margin-bottom: 18px;
    padding-bottom: 18px;
}
.policy-card:not(:has(.policy-card__header)) > h2 {
    background: linear-gradient(135deg, #fff8f1 0%, #fff0e2 100%);
    border: 1px solid rgba(184, 91, 13, 0.14);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(92, 45, 13, 0.06);
    margin-top: 30px;
    padding: 16px 18px;
}
.policy-card:not(:has(.policy-card__header)) > ul + h2,
.policy-card:not(:has(.policy-card__header)) > p + h2 {
    margin-top: 34px;
}
.policy-card:not(:has(.policy-card__header)) > ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 4px;
}
.policy-card:not(:has(.policy-card__header)) > li,
.policy-card:not(:has(.policy-card__header)) > ul > li {
    background: #fffaf6;
    border: 1px solid rgba(184, 91, 13, 0.10);
    border-radius: 14px;
    margin-bottom: 0;
    padding: 12px 16px 12px 44px;
}
.policy-card:not(:has(.policy-card__header)) > ul > li::before {
    left: 16px;
    top: 12px;
}

.policy-card__header {
    background: linear-gradient(135deg, #fff7ef 0%, #ffe6cf 100%);
    border-bottom: 1px solid rgba(184, 91, 13, 0.12);
    padding: clamp(32px, 5vw, 56px);
}
.policy-card__body {
    padding: clamp(28px, 5vw, 56px);
}
.policy-page .eyebrow,
.policy-card .eyebrow {
    color: #b24f05;
    margin-bottom: 12px;
}
.policy-page h1,
.policy-card h1 {
    color: #24160f;
    font-size: clamp(2.25rem, 5vw, 4rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin-bottom: 18px;
    max-width: 780px;
}
.policy-page h2,
.policy-card h2 {
    color: #2f1d13;
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    letter-spacing: -0.025em;
    margin: 0 0 12px;
}
.policy-page p,
.policy-card p {
    color: #523625;
    font-size: clamp(1rem, 1.4vw, 1.08rem);
    line-height: 1.75;
    margin-bottom: 16px;
}
.policy-page ul,
.policy-card ul {
    color: #523625;
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.policy-page li,
.policy-card li {
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}
.policy-page li::before,
.policy-card li::before {
    color: #c45d08;
    content: "✓";
    font-weight: 800;
    left: 0;
    position: absolute;
}
.policy-page a,
.policy-card a { color: #a94704; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.policy-card__updated {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(196, 93, 8, 0.18);
    border-radius: var(--radius-pill);
    color: #332015;
    display: inline-flex;
    gap: 4px;
    margin: 0;
    padding: 8px 14px;
}
.policy-card__intro {
    background: #fff8f1;
    border: 1px solid #ffdfc2;
    border-left: 5px solid #f87e17;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #3d281b;
    font-size: clamp(1.06rem, 1.8vw, 1.18rem);
    margin: 0 0 26px;
    padding: 18px 20px;
}
.policy-section {
    border-top: 1px solid rgba(184, 91, 13, 0.14);
    margin-top: 28px;
    padding-top: 28px;
}
.policy-section--contact {
    background: #fff7ef;
    border: 1px solid #ffd8b8;
    border-radius: 18px;
    padding: 24px;
}

/* ============================================================
   Documentation Pages
   ============================================================ */
.docs-page {
    background: transparent;
    color: #2f1d13;
    overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
    position: relative;
}

.docs-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 72% 54% at 50% 0%, rgba(255, 233, 210, 0.34) 0%, transparent 72%),
        radial-gradient(circle at 18% 22%, rgba(255, 205, 155, 0.18) 0%, transparent 24%),
        radial-gradient(circle at 82% 78%, rgba(255, 192, 132, 0.18) 0%, transparent 24%);
}

.docs-page .container {
    max-width: 980px;
    position: relative;
    z-index: 1;
}

.docs-card {
    background: #ffffff;
    border: 1px solid rgba(184, 91, 13, 0.14);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(92, 45, 13, 0.13);
    margin: 0 auto;
    overflow: hidden;
}

.docs-card__header {
    background: linear-gradient(135deg, #fff7ef 0%, #ffe6cf 100%);
    border-bottom: 1px solid rgba(184, 91, 13, 0.12);
    padding: clamp(32px, 5vw, 56px);
}

.docs-card__body {
    padding: clamp(28px, 5vw, 56px);
}

.docs-card .eyebrow {
    color: #b24f05;
    margin-bottom: 12px;
}

.docs-card h1 {
    color: #24160f;
    font-size: clamp(2.25rem, 5vw, 4rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin-bottom: 18px;
    max-width: 780px;
}

.docs-card h2 {
    color: #2f1d13;
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}

.docs-card h3 {
    color: #2f1d13;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.docs-card p,
.docs-card li {
    color: #523625;
    font-size: clamp(1rem, 1.4vw, 1.08rem);
    line-height: 1.75;
}

.docs-card a {
    color: #a94704;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.docs-card__intro {
    color: #523625;
    font-size: clamp(1.08rem, 1.8vw, 1.2rem);
    margin-bottom: 0;
    max-width: 760px;
}

.docs-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.docs-toc a {
    background: #fff8f1;
    border: 1px solid #ffdfc2;
    border-radius: var(--radius-pill);
    color: #a94704;
    font-size: 0.92rem;
    padding: 8px 14px;
    text-decoration: none;
}

.docs-section {
    border-top: 1px solid rgba(184, 91, 13, 0.14);
    margin-top: 30px;
    padding-top: 30px;
}

.docs-section:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.docs-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.docs-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-callout,
.docs-note,
.faq-list details {
    background: #fffaf6;
    border: 1px solid rgba(184, 91, 13, 0.12);
    border-radius: 18px;
    padding: 18px;
}

.docs-callout--link {
    display: block;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.docs-callout--link:hover {
    border-color: rgba(184, 91, 13, 0.24);
    box-shadow: 0 14px 32px rgba(92, 45, 13, 0.09);
    transform: translateY(-3px);
}

.docs-note {
    border-left: 5px solid #f87e17;
    margin-top: 18px;
}

.docs-section--contact {
    background: #fff7ef;
    border: 1px solid #ffd8b8;
    border-radius: 18px;
    padding: 24px;
}

.docs-email-button {
    margin-top: 6px;
    text-decoration: none !important;
}

.docs-steps,
.docs-checklist {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding-left: 0;
}

.docs-steps li,
.docs-checklist li {
    background: #fffaf6;
    border: 1px solid rgba(184, 91, 13, 0.10);
    border-radius: 14px;
    list-style-position: inside;
    padding: 12px 16px;
}

.docs-checklist {
    list-style: none;
}

.docs-checklist li {
    padding-left: 44px;
    position: relative;
}

.docs-checklist li::before {
    color: #c45d08;
    content: "✓";
    font-weight: 800;
    left: 16px;
    position: absolute;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list summary {
    color: #2f1d13;
    cursor: pointer;
    font-weight: 800;
    list-style-position: outside;
}

.faq-list details p {
    margin: 12px 0 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: #fff7f0;
    color: var(--color-primary-dark);
    box-shadow: 0 12px 28px rgba(111, 52, 17, 0.18);
}
.btn--primary:hover {
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(111, 52, 17, 0.24);
    color: var(--color-primary-dark);
}

.btn--outline {
    background: rgba(255, 247, 240, 0.22);
    color: var(--color-text);
    border: 1.5px solid rgba(255, 247, 240, 0.35);
}
.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--light {
    background: rgba(255, 247, 240, 0.16);
    color: #fff8f2;
    border: 1.5px solid rgba(255, 247, 240, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn--light:hover {
    background: rgba(255, 247, 240, 0.24);
    border-color: rgba(255, 255, 255, 0.50);
    color: #ffffff;
}

/* ============================================================
   App Store Preview
   ============================================================ */
.app-store-preview {
    display: none;
}

.app-store-preview.is-visible {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 8px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 8px 24px rgba(69, 37, 21, 0.14);
    color: #1f1f1f;
}

.app-store-preview__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    flex: 0 0 auto;
}

.app-store-preview__copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    line-height: 1.2;
}

.app-store-preview__copy strong {
    color: #111111;
    font-size: 0.95rem;
    font-weight: 700;
}

.app-store-preview__copy span {
    color: #5f6368;
    font-size: 0.78rem;
}

.app-store-preview__button {
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: #007aff;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.app-store-preview__button:hover {
    color: #ffffff;
    background: #006ee6;
}

body.has-app-store-preview .site-header {
    top: calc(env(safe-area-inset-top, 0px) + 74px);
}

body.has-app-store-preview .hero {
    padding-top: calc(170px + env(safe-area-inset-top, 0px));
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(167, 77, 10, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 247, 240, 0.18);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff8f2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
    line-height: 1.1;
}
.site-logo:hover { color: #ffffff; }

.site-logo__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: block;
    box-shadow: 0 6px 18px rgba(248, 126, 23, 0.35);
    object-fit: cover;
}


.site-nav a[href="#download"] { display: none; }

.site-nav { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 248, 242, 0.82);
    transition: color 0.15s;
}
.site-nav a:hover { color: #ffffff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 136px 24px 56px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(6px);
}

.hero::before {
    width: 180px;
    height: 180px;
    top: 120px;
    left: max(24px, calc(50% - 620px));
    background: rgba(255, 226, 198, 0.16);
}

.hero::after {
    width: 120px;
    height: 120px;
    right: max(30px, calc(50% - 560px));
    bottom: 140px;
    background: rgba(255, 239, 224, 0.14);
}

.hero__bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 72% 54% at 50% 0%, rgba(255, 233, 210, 0.34) 0%, transparent 72%),
        radial-gradient(circle at 18% 22%, rgba(255, 205, 155, 0.18) 0%, transparent 24%),
        radial-gradient(circle at 82% 78%, rgba(255, 192, 132, 0.18) 0%, transparent 24%),
        radial-gradient(circle at 50% 55%, rgba(255, 248, 242, 0.10) 0%, transparent 22%);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 247, 240, 0.22);
    border: 1px solid rgba(255, 247, 240, 0.30);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff7f0;
    margin-bottom: 32px;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    margin-bottom: 20px;
    max-width: 920px;
    color: #fffaf6;
    -webkit-text-fill-color: initial;
    text-shadow: 0 10px 30px rgba(124, 52, 5, 0.16);
    line-height: 1.05;
}

.hero__sub {
    font-size: clamp(1.08rem, 2.4vw, 1.34rem);
    color: rgba(255, 245, 237, 0.94);
    max-width: 760px;
    margin: 0 auto 34px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.hero__actions .btn {
    min-width: 220px;
    justify-content: center;
}

.hero__visual {
    position: relative;
    width: min(100%, 500px);
    margin: 12px auto 64px;
}

.hero__mascot {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 34px 90px rgba(113, 44, 5, 0.32);
    border: 1px solid rgba(255, 244, 234, 0.34);
    transform: rotate(-3deg);
}

.hero__app-icon {
    position: absolute;
    right: -18px;
    bottom: -28px;
    width: 122px;
    border-radius: 28px;
    box-shadow: 0 28px 54px rgba(110, 42, 6, 0.32);
    border: 5px solid rgba(255, 251, 247, 0.96);
    transform: rotate(8deg);
}

.hero__platforms {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 245, 237, 0.86);
    font-size: 0.85rem;
}

.hero__platforms-badges {
    display: flex;
    gap: 8px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 247, 240, 0.84);
    border: 1px solid rgba(255, 247, 240, 0.42);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================================
   How It Works
   ============================================================ */
.how-it-works { padding: var(--section-padding); }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.how-it-works .section-header,
.privacy__text,
.cta .container {
    position: relative;
    z-index: 1;
}

.section-header h2 {
    margin-bottom: 16px;
    color: #fff8f2;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    position: relative;
}

.step {
    background: rgba(255, 247, 240, 0.12);
    border: 1px solid rgba(255, 240, 226, 0.18);
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.step:hover {
    border-color: rgba(255, 244, 234, 0.34);
    background: rgba(255, 247, 240, 0.18);
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 22px 44px rgba(139, 55, 5, 0.14);
}

.step__number {
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, #fff5eb 0%, #ffe2c6 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 20px;
}

.step h3 { margin-bottom: 10px; font-size: 1.05rem; color: #fff8f2; }
.step p { color: rgba(255, 242, 231, 0.82); font-size: 0.9rem; }

/* ============================================================
   Features
   ============================================================ */
.features { padding: var(--section-padding); background: transparent; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 247, 240, 0.12);
    border: 1px solid rgba(255, 240, 226, 0.18);
    border-radius: 30px;
    padding: 32px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
    border-color: rgba(255, 244, 234, 0.34);
    background: rgba(255, 247, 240, 0.18);
    box-shadow: 0 22px 44px rgba(139, 55, 5, 0.14);
    transform: translateY(-6px);
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff5eb 0%, #ffe2c6 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.feature-card h3 { margin-bottom: 10px; color: #fff8f2; }
.feature-card p { color: rgba(255, 242, 231, 0.82); font-size: 0.92rem; line-height: 1.7; }

.resources { padding: var(--section-padding); }
.resource-card { display: block; text-decoration: none; }
.resource-card:hover h3 { color: #ffffff; }

/* ============================================================
   Privacy Section
   ============================================================ */
.privacy { padding: var(--section-padding); }

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

.privacy__text h2 { margin-bottom: 20px; color: #fff8f2; }
.privacy__text p { color: rgba(255, 242, 231, 0.82); margin-bottom: 16px; }

.privacy__checks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.privacy__checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 242, 231, 0.84);
    font-size: 0.93rem;
}
.privacy__checks li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F87E17'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
    margin-top: 2px;
}

.privacy__visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.privacy__device-card {
    background: rgba(255, 247, 240, 0.12);
    border: 1px solid rgba(255, 240, 226, 0.18);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.privacy__device-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    background: rgba(248, 126, 23, 0.18);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.privacy__device-info h4 { font-size: 0.95rem; margin-bottom: 4px; color: #fff8f2; }
.privacy__device-info p { font-size: 0.82rem; color: rgba(255, 242, 231, 0.82); }

.privacy__connection {
    text-align: center;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.privacy__connection::before,
.privacy__connection::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
}
.privacy__connection::before { background: linear-gradient(90deg, transparent, var(--color-accent)); }
.privacy__connection::after  { background: linear-gradient(90deg, var(--color-accent), transparent); }

/* ============================================================
   CTA Section
   ============================================================ */
.cta {
    padding: var(--section-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(248, 126, 23, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 { margin-bottom: 16px; color: #fff8f2; }
.cta .lead { margin-bottom: 40px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 247, 240, 0.22);
    padding: 48px 24px;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__copy { font-size: 0.85rem; color: rgba(255, 245, 237, 0.78); }
.site-footer__policy { color: #fff8f2; font-weight: 700; margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__policy:hover { color: var(--color-accent); }

.site-footer__links {
    display: flex;
    gap: 24px;
}
.site-footer__links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color 0.15s;
}
.site-footer__links a:hover { color: var(--color-text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    :root { --section-padding: 64px 20px; }

    .site-header__inner { height: auto; min-height: 64px; padding-top: 14px; padding-bottom: 14px; }
    .site-nav { display: none; }
    .site-logo { font-size: 0.96rem; max-width: calc(100vw - 40px); }

    .privacy__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero__actions { flex-direction: column; align-items: center; }
    .hero__actions .btn { width: 100%; max-width: 320px; }
    .hero__visual { width: min(100%, 320px); margin-bottom: 40px; }
    .hero__mascot { transform: rotate(-2deg); }
    .hero__app-icon { width: 92px; right: -8px; bottom: -16px; }

    .policy-page { padding: 28px 12px 64px; }
    .policy-page .container { padding: 0; }
    .policy-card { border-radius: 24px; max-width: none; overflow-wrap: anywhere; width: calc(100vw - 24px); word-break: break-word; }
    .policy-card__header { padding: 28px 22px 24px; }
    .policy-card__body { padding: 22px; }
    .policy-page h1,
    .policy-card h1 { font-size: clamp(1.85rem, 9vw, 2.35rem); }
    .policy-page p,
    .policy-card p,
    .policy-page li,
    .policy-card li { font-size: 1rem; }
    .policy-card__intro { padding-left: 14px; }
    .policy-section { margin-top: 22px; padding-top: 22px; }
    .policy-section--contact { padding: 20px; }

    .docs-page { padding: 28px 12px 64px; }
    .docs-page .container { padding: 0; }
    .docs-card { border-radius: 24px; max-width: none; overflow-wrap: anywhere; width: calc(100vw - 24px); word-break: break-word; }
    .docs-card__header { padding: 28px 22px 24px; }
    .docs-card__body { padding: 22px; }
    .docs-card h1 { font-size: clamp(1.85rem, 9vw, 2.35rem); }
    .docs-grid,
    .docs-grid--three { grid-template-columns: 1fr; }
    .docs-toc { flex-direction: column; }
    .docs-toc a { text-align: center; }

    .site-footer__inner { flex-direction: column; text-align: center; }
}
