/* Focus Family landing page. Standalone styling on top of app-landing.css,
   which only supplies the shared top bar and footer chrome. */

/* Keep in-page anchors clear of the sticky section nav. */
html { scroll-padding-top: 72px; }
.ff [id] { scroll-margin-top: 72px; }

.ff {
    --petrol-900: #0a363a;
    --petrol-800: #0e4d52;
    --petrol-600: #0e6e77;
    --petrol-300: #4ca1a8;
    --petrol-100: #cfe6e8;
    --petrol-050: #e9f3f4;
    --sand-050: #fbf9f5;
    --sand-100: #f3efe8;
    --ink-900: #162426;
    --ink-700: #26383a;
    --ink-500: #5a6b6d;
    --line: rgba(22, 36, 38, .12);
    --line-dark: rgba(255, 255, 255, .16);
    --radius: 18px;
    --shadow: 0 10px 30px rgba(10, 54, 58, .08);

    background: var(--sand-050);
    color: var(--ink-900);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}

.ff *,
.ff *::before,
.ff *::after { box-sizing: border-box; }

.ff h1, .ff h2, .ff h3, .ff h4 { color: var(--ink-900); margin: 0; line-height: 1.2; }
.ff p { margin: 0 0 1em 0; }
.ff p:last-child { margin-bottom: 0; }
:where(.ff) a { color: var(--petrol-600); }

.ff-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ff-narrow { max-width: 840px; margin: 0 auto; padding: 0 24px; }
.ff-section { padding: 84px 0; }
.ff-section--tight { padding: 56px 0; }

.ff-eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 13px;
    font-weight: 700;
    color: var(--petrol-600);
    margin: 0 0 14px 0;
}

.ff-h2 { font-size: 36px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 16px 0; }
.ff-h3 { font-size: 21px; font-weight: 700; margin: 0 0 8px 0; }
.ff-lead { font-size: 19px; color: var(--ink-700); max-width: 70ch; }

.ff-head { max-width: 78ch; margin-bottom: 44px; }
.ff-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ff-head--center .ff-lead { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ dark blocks */

.ff-dark {
    background: var(--petrol-900);
    color: #e7eff0;
}

.ff-dark h2, .ff-dark h3, .ff-dark h4 { color: #fff; }
.ff-dark .ff-eyebrow { color: var(--petrol-300); }
.ff-dark .ff-lead { color: #b9cccd; }
:where(.ff-dark) a { color: var(--petrol-300); }

.ff-alt { background: var(--petrol-050); }

/* ------------------------------------------------------------------- nav */

.ff-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 249, 245, .93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.ff-nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ff-nav-inner::-webkit-scrollbar { display: none; }

.ff-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    color: var(--ink-900);
    text-decoration: none;
    padding: 12px 0;
    white-space: nowrap;
}

.ff-nav-brand img { width: 26px; height: 26px; border-radius: 7px; }

.ff-nav a.ff-nav-link {
    color: var(--ink-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 0;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.ff-nav a.ff-nav-link:hover { color: var(--petrol-600); border-bottom-color: var(--petrol-600); }
.ff-nav .ff-nav-spacer { flex: 1 1 auto; }

.ff-nav .ff-btn { padding: 8px 16px; font-size: 14px; white-space: nowrap; }

/* --------------------------------------------------------------- buttons */

.ff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--petrol-600);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid var(--petrol-600);
    border-radius: 12px;
    padding: 13px 24px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ff-btn:hover, .ff-btn:focus {
    background: var(--petrol-800);
    border-color: var(--petrol-800);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 54, 58, .22);
}

.ff-btn--ghost { background: transparent; color: var(--petrol-600); border-color: rgba(14, 110, 119, .4); }
.ff-btn--ghost:hover, .ff-btn--ghost:focus { background: rgba(14, 110, 119, .08); color: var(--petrol-800); border-color: var(--petrol-600); box-shadow: none; }

.ff-dark .ff-btn--ghost { color: #dff0f1; border-color: rgba(255, 255, 255, .35); }
.ff-dark .ff-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.ff-btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ hero */

.ff-hero {
    background: linear-gradient(168deg, var(--petrol-900) 0%, var(--petrol-800) 62%, #0f5a61 100%);
    color: #e7eff0;
    padding: 72px 0 64px 0;
    overflow: hidden;
}

.ff-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: center;
}

.ff-hero h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 20px 0;
}

.ff-hero h1 span { display: block; color: var(--petrol-300); }
.ff-hero .ff-eyebrow { color: var(--petrol-300); }
.ff-hero p { font-size: 19px; color: #c5d7d8; max-width: 60ch; }

.ff-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #dff0f1;
    margin-bottom: 22px;
    text-decoration: none;
}

.ff-status:hover { background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }

.ff-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7fd4a6;
    box-shadow: 0 0 0 4px rgba(127, 212, 166, .2);
}

.ff-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px 0; }
.ff-hero-actions .ff-btn { background: #fff; color: var(--petrol-900); border-color: #fff; }
.ff-hero-actions .ff-btn:hover { background: var(--petrol-100); border-color: var(--petrol-100); color: var(--petrol-900); }
.ff-hero-actions .ff-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.ff-hero-actions .ff-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }

.ff-hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ff-hero-points li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #b9cccd; }
.ff-hero-points svg { width: 17px; height: 17px; color: var(--petrol-300); flex: none; }

.ff-hero-shot { display: flex; justify-content: center; align-items: flex-end; }
.ff-hero-shot .ff-phone { width: 290px; }

/* --------------------------------------------------------------- devices */

.ff-phone {
    width: 270px;
    max-width: 72vw;
    border: 9px solid #10191a;
    border-radius: 38px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .38);
    background: #10191a;
    display: block;
}

.ff-phone img { display: block; width: 100%; height: auto; border-radius: 29px; }

.ff-screen {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    display: block;
}

.ff-screen img { display: block; width: 100%; height: auto; }

.ff-dark .ff-screen { border-color: var(--line-dark); box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }

.ff-figure { margin: 0; }
.ff-figure figcaption { font-size: 14px; color: var(--ink-500); margin-top: 10px; }
.ff-dark .ff-figure figcaption { color: #9db2b3; }

.ff-watch { width: 132px; border: 7px solid #10191a; border-radius: 30px; background: #10191a; display: block; }
.ff-watch img { display: block; width: 100%; height: auto; border-radius: 23px; }

/* ------------------------------------------------------------ stats strip */

.ff-stats {
    background: var(--petrol-800);
    color: #fff;
    padding: 30px 0;
}

.ff-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px 32px;
}

.ff-stat strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.ff-stat span { font-size: 14px; color: #b9cccd; }

/* ----------------------------------------------------------------- cards */

.ff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.ff-grid--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.ff-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* Six platform cards read better as 3 + 3 than as 4 + 2. */
.ff-grid--3 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.ff-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.ff-alt .ff-card { background: #fff; }

.ff-dark .ff-card {
    background: rgba(255, 255, 255, .05);
    border-color: var(--line-dark);
    box-shadow: none;
    color: #cfdcdd;
}

.ff-card p { color: var(--ink-700); margin-bottom: 0; }
.ff-dark .ff-card p { color: #b9cccd; }

.ff-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--petrol-050);
    color: var(--petrol-600);
    margin-bottom: 16px;
}

.ff-icon svg { width: 22px; height: 22px; }
.ff-dark .ff-icon { background: rgba(76, 161, 168, .16); color: var(--petrol-300); }

.ff-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--petrol-600);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 14px;
}

/* -------------------------------------------------------- feature blocks */

.ff-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 56px;
    align-items: center;
    padding: 52px 0;
    border-top: 1px solid var(--line);
}

.ff-feature:first-of-type { border-top: 0; }
.ff-dark .ff-feature { border-top-color: var(--line-dark); }

/* Admin panel rows: the screenshot column carries the detail, so it gets the wider half
   in both reading directions. */
.ff-feature--wide-media { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.ff-feature--wide-media.ff-feature--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.ff-feature--flip .ff-feature-media { order: -1; }
.ff-feature-media { display: flex; justify-content: center; min-width: 0; }
.ff-feature-media .ff-screen { width: 100%; }

.ff-list { list-style: none; margin: 18px 0 0 0; padding: 0; }

.ff-list li {
    position: relative;
    padding-left: 30px;
    margin: 0 0 12px 0;
    color: var(--ink-700);
}

.ff-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--petrol-300);
}

.ff-dark .ff-list li { color: #c2d3d4; }

.ff-check { list-style: none; margin: 18px 0 0 0; padding: 0; }
.ff-check li { position: relative; padding-left: 30px; margin: 0 0 11px 0; color: var(--ink-700); }
.ff-check li svg { position: absolute; left: 0; top: .2em; width: 19px; height: 19px; color: var(--petrol-600); }
.ff-dark .ff-check li { color: #c2d3d4; }
.ff-dark .ff-check li svg { color: var(--petrol-300); }

/* ---------------------------------------------------------- architecture */

.ff-arch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-top: 8px;
}

.ff-arch-node {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}

.ff-arch-node h3 { font-size: 18px; margin-bottom: 8px; }
.ff-arch-node p { font-size: 15px; color: #b9cccd; margin: 0; }
.ff-arch-node .ff-icon { margin-bottom: 14px; }
.ff-arch-node--muted { border-style: dashed; opacity: .92; }

.ff-arch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--petrol-300);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ----------------------------------------------------------------- table */

.ff-table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.ff-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 16px; }
.ff-table th, .ff-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.ff-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--petrol-300); }
.ff-table tbody tr:last-child td { border-bottom: 0; }
.ff-table td:first-child { font-weight: 600; color: #fff; width: 38%; }
.ff-table td { color: #b9cccd; }

/* ----------------------------------------------------------------- plans */

.ff-plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.ff-plan--accent { border-color: var(--petrol-600); border-width: 2px; }
.ff-plan h3 { font-size: 24px; font-weight: 800; }
.ff-plan .ff-plan-tag { font-size: 14px; color: var(--ink-500); margin: 4px 0 20px 0; }
.ff-plan .ff-check { margin-top: 0; }
.ff-plan .ff-check li { font-size: 16px; }

.ff-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--petrol-050);
    color: var(--petrol-600);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* --------------------------------------------------------------- roadmap */

.ff-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.ff-timeline li {
    border-top: 3px solid var(--petrol-300);
    padding-top: 18px;
}

.ff-timeline .ff-when { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--petrol-300); display: block; margin-bottom: 8px; }
.ff-timeline h3 { font-size: 19px; margin-bottom: 8px; }
.ff-timeline p { font-size: 16px; color: #b9cccd; margin: 0; }

.ff-note {
    font-size: 15px;
    color: var(--ink-500);
    border-left: 3px solid var(--petrol-300);
    padding-left: 16px;
    margin-top: 52px;
    max-width: 78ch;
}

.ff-dark .ff-note { color: #9db2b3; }

/* ------------------------------------------------------------- downloads */

.ff-download {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
}

.ff-download .ff-icon { margin-bottom: 0; flex: none; }
.ff-download p { font-size: 15px; color: var(--ink-700); margin: 4px 0 12px 0; }

.ff-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-500);
    background: var(--sand-100);
    border-radius: 999px;
    padding: 5px 14px;
}

.ff-pill svg { width: 15px; height: 15px; }
.ff-pill--ready { color: var(--petrol-600); background: var(--petrol-050); }
.ff-pill-note { font-size: 13px; color: var(--ink-500); margin-left: 10px; white-space: nowrap; }
a.ff-pill--ready:hover { background: var(--petrol-100); text-decoration: none; }

.ff-callout {
    background: var(--petrol-050);
    border: 1px solid var(--petrol-100);
    border-radius: var(--radius);
    padding: 22px 26px;
    color: var(--ink-700);
    margin-bottom: 28px;
}

/* ------------------------------------------------------------------- faq */

.ff-faq { border-top: 1px solid var(--line); }

.ff-faq details {
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
}

.ff-faq summary {
    cursor: pointer;
    list-style: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-900);
    padding: 20px 44px 20px 0;
    position: relative;
}

.ff-faq summary::-webkit-details-marker { display: none; }

.ff-faq summary::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--petrol-600);
    border-bottom: 2px solid var(--petrol-600);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
}

.ff-faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.ff-faq details p { color: var(--ink-700); padding: 0 44px 20px 0; margin: 0; }

/* --------------------------------------------------------------- contact */

.ff-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: start;
}

.ff-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.ff-field { margin-bottom: 18px; }
.ff-field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-700); margin-bottom: 7px; }

.ff-field input[type="text"],
.ff-field input[type="email"],
.ff-field input[type="tel"],
.ff-field select,
.ff-field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--ink-900);
    background: var(--sand-050);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
}

.ff-field textarea { min-height: 150px; resize: vertical; }

.ff-field input:focus,
.ff-field select:focus,
.ff-field textarea:focus {
    outline: none;
    border-color: var(--petrol-600);
    box-shadow: 0 0 0 3px rgba(14, 110, 119, .15);
    background: #fff;
}

.ff-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.ff-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-700); margin-bottom: 20px; }
.ff-consent input { margin-top: 4px; flex: none; }

.ff-alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-size: 15px; }
.ff-alert--ok { background: #e6f4ec; border: 1px solid #a9d6bd; color: #205c40; }
.ff-alert--err { background: #fbecea; border: 1px solid #e3b5ad; color: #8a3326; }
.ff-alert ul { margin: 6px 0 0 0; padding-left: 20px; }

.ff-form-note { font-size: 14px; color: var(--ink-500); margin-top: 24px; }

/* ------------------------------------------------------------ final cta */

.ff-cta {
    background: linear-gradient(120deg, var(--petrol-600), var(--petrol-900));
    color: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
}

.ff-cta h2 { color: #fff; font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.ff-cta p { color: #cfe3e4; max-width: 62ch; margin: 0 auto 26px auto; }
.ff-cta .ff-btn { background: #fff; color: var(--petrol-900); border-color: #fff; }
.ff-cta .ff-btn:hover { background: var(--petrol-100); border-color: var(--petrol-100); color: var(--petrol-900); }

.ff-legal {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-500);
    text-align: center;
    margin: 56px 0 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------- screen strip */

.ff-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 24px 26px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.ff-strip > * { scroll-snap-align: center; flex: none; }

.ff-platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-end;
    justify-content: center;
    margin-top: 44px;
}

.ff-platform-row .ff-figure { max-width: 100%; }
.ff-platform-row .ff-screen { width: 620px; max-width: 100%; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 980px) {
    .ff-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .ff-hero-shot { justify-content: flex-start; }
    .ff-hero-shot .ff-phone { width: 260px; }
    .ff-hero h1 { font-size: 40px; }
    .ff-feature { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
    .ff-feature--flip .ff-feature-media { order: 0; }
    .ff-contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    .ff { font-size: 16px; }
    .ff-section { padding: 56px 0; }
    .ff-wrap, .ff-narrow, .ff-nav-inner { padding: 0 16px; }
    .ff-hero h1 { font-size: 32px; }
    .ff-hero p { font-size: 17px; }
    .ff-h2 { font-size: 28px; }
    .ff-lead { font-size: 17px; }
    .ff-card, .ff-plan, .ff-form { padding: 22px; }
    .ff-field-row { grid-template-columns: 1fr; gap: 0; }
    .ff-cta { padding: 34px 22px; }
    .ff-cta h2 { font-size: 25px; }
    .ff-download { flex-direction: column; gap: 12px; }
    .ff-strip { padding-left: 16px; padding-right: 16px; }
}

[dir="rtl"] .ff-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .ff-list li::before { left: auto; right: 4px; }
[dir="rtl"] .ff-check li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .ff-check li svg { left: auto; right: 0; }
