/* ==========================================
   Forem Tasks Landing Page - Styles
   Design language: Forem Suite (foremsuite.com)
   ========================================== */

:root {
    /* Brand — coral from the Forem Tasks logo checkmark */
    --brand: #e8564a;
    --brand-2: #d64437;
    --brand-bright: #fe736d;
    --navy: #243e4a;
    --bg: #faf8f7;
    --surface: #ffffff;
    --text: #1c1b1f;
    --muted: #5f5b63;
    --border: #ece8e7;
    --tint: #fdeeec;

    /* Aliases used by legal.css */
    --primary: var(--brand);
    --primary-dark: var(--brand-2);
    --bg-secondary: var(--surface);
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --text-tertiary: #94a3b8;
    --gradient-primary: linear-gradient(135deg, var(--brand-bright), var(--brand-2));
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg: #121212;
    --surface: #1e1c20;
    --text: #e6e1e6;
    --muted: #a8a3ad;
    --border: #322e36;
    --tint: #2f1f1e;
    --text-tertiary: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition-normal), color var(--transition-normal);
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }

/* ---- Nav ---- */
.navbar {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; gap: 14px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.15rem; color: var(--text);
}
.logo img { width: 34px; height: 34px; border-radius: 50%; }
.logo .accent { color: var(--brand); }
.suite-tag {
    background: var(--tint); color: var(--brand);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 4px 11px; border-radius: 999px; white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.suite-tag:hover { background: var(--brand); color: #fff; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--brand); }
.btn-theme {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--muted); cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
.btn-theme:hover { color: var(--brand); border-color: var(--brand); }
.btn-theme .material-icons-round { font-size: 19px; }
@media (max-width: 720px) {
    .nav-inner { flex-direction: column; gap: 8px; padding-bottom: 10px; }
    .nav-links { gap: 14px; font-size: 0.9rem; flex-wrap: wrap; justify-content: center; }
}

/* ---- Announcement ---- */
.announce {
    position: relative; overflow: hidden;
    background: linear-gradient(100deg, var(--brand-2), var(--brand) 45%, var(--brand-bright));
    padding: 11px 0; text-align: center;
    font-size: 0.92rem; font-weight: 600;
}
.announce::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.22), transparent);
    animation: announce-sheen 4.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes announce-sheen {
    0% { left: -40%; }
    60%, 100% { left: 110%; }
}
.announce .wrap {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    flex-wrap: wrap;
}
.announce .tag {
    background: #fff; color: var(--brand-2); font-size: 0.72rem;
    font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 3px 11px; border-radius: 999px;
    animation: announce-pulse 2.4s ease-out infinite;
}
@keyframes announce-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.45); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
}
.announce .txt { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.announce .announce-link {
    color: #fff; font-weight: 800; white-space: nowrap;
    border-bottom: 1.5px solid rgba(255,255,255,0.55);
    padding-bottom: 1px; transition: border-color 0.15s;
}
.announce .announce-link:hover { border-color: #fff; }
@media (prefers-reduced-motion: reduce) {
    .announce::before, .announce .tag { animation: none; }
}
@media (max-width: 640px) {
    .announce { padding: 8px 0; font-size: 0.84rem; line-height: 1.45; }
    .announce .wrap { gap: 5px 8px; }
    .announce .tag { font-size: 0.66rem; padding: 2px 9px; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.blob {
    position: absolute; border-radius: 50%; background: var(--brand);
    opacity: 0.06; pointer-events: none;
}
.hero-grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
    align-items: center; position: relative;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.pill {
    display: inline-block; background: var(--tint); color: var(--brand);
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em;
    padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em; }
h1 .accent { color: var(--brand); }
.hero p.lead { margin: 18px 0 28px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 1rem;
    transition: transform var(--transition-fast);
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand-bright), var(--brand-2)); color: #fff;
    box-shadow: 0 8px 22px rgba(232, 86, 74, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { transform: translateY(-1px); }
.store-note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

/* Store badges */
.badges { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.badges img { display: block; }
.badge-ios { height: 54px; }
.badge-play { height: 81px; margin: -13px; } /* trims the artwork's built-in padding */
.hero-badges { justify-content: flex-start; }
@media (max-width: 820px) { .hero-badges { justify-content: center; } }

/* ---- Phone mockup ----
   Depicts the real Forem Tasks app, so it keeps the app's own
   light palette (blue #2563EB) in both site themes. */
.phone {
    --app-primary: #2563EB;
    --app-tint: #DBEAFE;
    --app-bg: #FAFAFA;
    --app-surface: #FFFFFF;
    --app-text: #1E293B;
    --app-muted: #64748B;
    --app-faint: #94A3B8;
    --app-border: #E2E8F0;
    --app-star: #F59E0B;
    width: min(300px, 72vw); margin: 0 auto;
    border-radius: 34px; padding: 10px; background: var(--navy);
    box-shadow: 0 30px 60px rgba(0,0,0,0.28);
}
.phone.tilt { transform: rotate(3deg); }
.phone-screen {
    background: var(--app-bg); border-radius: 26px; overflow: hidden;
    display: flex; flex-direction: column; min-height: 480px;
    font-size: 0.85rem;
}
.mockup-header { padding: 22px 18px 10px; display: flex; flex-direction: column; }
.mockup-date { font-size: 0.72rem; font-weight: 600; color: var(--app-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mockup-greeting { font-size: 1.25rem; font-weight: 800; color: var(--app-text); }
.mockup-list-selector {
    display: flex; align-items: center; gap: 8px;
    margin: 8px 18px; padding: 10px 14px;
    background: var(--app-tint); color: var(--app-primary);
    border-radius: 12px; font-weight: 700;
}
.mockup-list-selector .material-icons-round { font-size: 18px; }
.mockup-task {
    display: flex; align-items: center; gap: 12px;
    margin: 6px 18px; padding: 13px 14px;
    background: var(--app-surface); border: 1px solid var(--app-border);
    border-radius: 14px;
}
.mockup-checkbox {
    width: 20px; height: 20px; border: 2px solid #CBD5E1;
    border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.mockup-checkbox.checked {
    border-color: var(--app-primary); background: var(--app-primary); color: #fff;
}
.mockup-checkbox.checked .material-icons-round { font-size: 14px; }
.mockup-task-content { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mockup-task-text { font-weight: 600; color: var(--app-text); }
.mockup-task.done .mockup-task-text {
    text-decoration: line-through; color: var(--app-faint); font-weight: 500;
}
.mockup-task-due {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.72rem; color: var(--app-muted); font-weight: 600;
}
.mockup-task-due.today { color: var(--app-primary); }
.mockup-task-due .material-icons-round { font-size: 13px; }
.mockup-star { color: var(--app-star); font-size: 20px; }
.mockup-bottom { margin-top: auto; }
.mockup-add-task {
    display: flex; align-items: center; gap: 10px;
    margin: 6px 18px 10px; padding: 10px 12px;
    background: var(--app-surface); border: 1px dashed var(--app-border);
    border-radius: 14px; color: var(--app-muted);
}
.mockup-add-btn {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--app-tint); color: var(--app-primary);
    display: flex; align-items: center; justify-content: center;
}
.mockup-add-btn .material-icons-round { font-size: 17px; }
.mockup-add-placeholder { flex: 1; font-size: 0.8rem; }
.mockup-new-task-btn {
    display: flex; align-items: center; gap: 4px;
    background: var(--app-primary);
    color: #fff; font-weight: 700; font-size: 0.75rem;
    padding: 7px 12px; border-radius: 999px;
}
.mockup-new-task-btn .material-icons-round { font-size: 15px; }
.mockup-nav {
    display: flex; justify-content: space-around;
    padding: 10px 8px 14px; border-top: 1px solid var(--app-border);
    background: var(--app-surface);
}
.mockup-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 0.62rem; font-weight: 600; color: var(--app-muted);
}
.mockup-nav-item .material-icons-round { font-size: 20px; }
.mockup-nav-item.active { color: var(--app-primary); }

/* ---- Stats strip ---- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin: 48px 0 0; text-align: center;
}
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px 10px;
}
.stat .num { font-size: 1.7rem; font-weight: 800; color: var(--brand); }
.stat .lbl { font-size: 0.9rem; color: var(--muted); font-weight: 600; }

/* ---- Sections ---- */
section { padding: 72px 0; }
.kicker {
    color: var(--brand); font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; font-size: 0.85rem;
}
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 8px 0 14px; line-height: 1.2; }
.section-lead { color: var(--muted); max-width: 40em; margin-bottom: 40px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; padding: 24px;
}
.card .ico {
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    border-radius: 13px; background: var(--tint); font-size: 1.4rem; margin-bottom: 14px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.92rem;
    color: var(--text);
}
.chip.hot { background: var(--tint); border-color: transparent; color: var(--brand); }

/* Download CTA */
.cta {
    background: linear-gradient(135deg, var(--brand-bright), var(--brand-2));
    border-radius: 26px; padding: 56px 30px; text-align: center; color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); max-width: 36em; margin: 0 auto 26px; }
.cta .kicker { color: rgba(255,255,255,0.85); }
.cta-note {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 24px; padding: 10px 22px;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px; color: rgba(255,255,255,0.95);
    font-size: 0.9rem; font-weight: 600;
}
.cta-note .material-icons-round { font-size: 18px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; margin-bottom: 12px; overflow: hidden;
}
.faq summary {
    cursor: pointer; list-style: none; display: flex; align-items: center;
    justify-content: space-between; gap: 14px;
    padding: 16px 20px; font-weight: 700; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; color: var(--brand); font-size: 1.3rem; font-weight: 700;
    line-height: 1; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 16px; color: var(--muted); }

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border); padding: 34px 0 48px;
    color: var(--muted); font-size: 0.9rem;
}
.foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.foot-brand img { width: 26px; height: 26px; border-radius: 50%; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-weight: 600; }
.foot-links a:hover { color: var(--brand); }

/* ---- Small screens ---- */
@media (max-width: 820px) {
    .hero { padding: 44px 0 28px; }
    .hero-grid { text-align: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .btn-row { justify-content: center; }
    .phone.tilt { transform: none; margin-top: 10px; }
    section { padding: 52px 0; }
    .chips { justify-content: center; }
    .kicker, h2, .section-lead { text-align: center; }
    .section-lead { margin-left: auto; margin-right: auto; }
    .faq { margin: 0 auto; }
    .foot-grid { flex-direction: column; text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .stats { gap: 10px; }
    .stat { padding: 14px 8px; }
    .stat .num { font-size: 1.4rem; }
    .cta { padding: 40px 18px; border-radius: 20px; }
    .card { padding: 20px; }
}
