/* Focufly — brand: purple #6B21A8, warm orange #EA580C, warm bg #FFF7ED */
:root {
  --purple: #6B21A8;
  --purple-deep: #581C87;
  --purple-light: #A855F7;
  --orange: #EA580C;
  --orange-light: #FB923C;
  --canvas: #FFFBF5;
  --card: #FFFFFF;
  --text: #1C1917;
  --muted: #57534E;
  --line: #E7E5E4;
  --tint: #F3E8FF;
  --tint-warm: #FFF7ED;
  --radius: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(107,33,168,.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--purple-light); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--text); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 800; }
h1 em { color: var(--purple); font-style: normal; }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); font-weight: 750; }
h2 em { color: var(--purple); font-style: italic; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--purple); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 1rem; }
.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1080px, 100% - 2.5rem); } }

/* ===== Header ===== */
.site-header {
  padding-block: .85rem; position: sticky; top: 0; z-index: 100;
  background: var(--canvas); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header:not(.nav-open) {
    background: rgba(255, 251, 245, .92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 101;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none; flex-direction: column; gap: .5rem;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--canvas); padding: 5rem 2rem 2rem; z-index: 100; overflow-y: auto;
}
.site-nav.open { display: flex; }
.site-nav a { color: var(--text); text-decoration: none; padding: .85rem 1rem; border-radius: 12px; font-weight: 600; font-size: 1.15rem; }
.site-nav a:hover { background: var(--tint); }
.site-nav .btn.btn-sm { font-size: 1.1rem; padding: .85rem 1.5rem; text-align: center; margin-top: .5rem; color: #fff; background: var(--purple); }
.site-nav .btn.btn-sm:hover { color: #000; background: var(--purple); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; flex-direction: row; align-items: center; gap: .15rem;
    position: static; background: none; padding: 0;
  }
  .site-nav a { font-size: .95rem; padding: .5rem .7rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; background: var(--purple); color: #fff;
  font-weight: 700; font-size: 1.05rem; padding: .85rem 1.5rem;
  border-radius: 999px; text-decoration: none; border: none; cursor: pointer; text-align: center;
  transition: background .15s;
}
.btn:hover { background: var(--purple-deep); color: #fff; }
.btn-sm { font-size: .9rem; padding: .55rem 1.1rem; }
.btn-lg { font-size: 1.15rem; padding: 1rem 2rem; }
.btn-ghost {
  display: inline-block; color: var(--text); font-weight: 700; font-size: 1.05rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid var(--line);
  text-decoration: none; background: var(--card);
}
.btn-ghost:hover { border-color: var(--purple-light); color: var(--purple); }

/* ===== Hero ===== */
.hero {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, var(--canvas) 0%, var(--tint) 100%);
}
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
.badge {
  display: inline-block; background: var(--tint); color: var(--purple);
  font-weight: 700; font-size: .82rem; padding: .4rem .9rem; border-radius: 999px;
  margin-bottom: 1rem; letter-spacing: .02em;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: 1.6rem; }
.centered-cta { justify-content: center; }
.cta-note { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.hero-art { display: grid; place-items: center; }
.phone {
  width: min(260px, 68vw); border-radius: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card);
}
@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .phone { width: min(300px, 78vw); border-radius: 34px; }
}

/* ===== Stats Bar ===== */
.stats-bar { background: var(--purple); color: #fff; padding: 1.5rem 0; }
.stats-bar .wrap {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; text-align: center;
}
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stat-label { display: block; font-size: .82rem; color: rgba(255,255,255,.75); font-weight: 500; margin-top: .15rem; }
@media (min-width: 640px) {
  .stats-bar .wrap { grid-template-columns: repeat(4, 1fr); }
  .stat-num { font-size: 1.9rem; }
}

/* ===== Sections ===== */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 2rem; }
.section-head.centered { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--purple); margin-bottom: .75rem;
}

/* ===== Problem Cards ===== */
.problems { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.problem-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
}
.problem-emoji { font-size: 2rem; margin-bottom: .75rem; }
.problem-card h3 { font-size: 1.1rem; }
.problem-card p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .problems { grid-template-columns: repeat(3, 1fr); } }

/* ===== Feature Showcase (alternating) ===== */
.feature-showcase {
  display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.feature-showcase:last-of-type { margin-bottom: 0; }
.color-dot {
  width: 12px; height: 12px; border-radius: 50%; margin-bottom: .75rem;
}
.feature-showcase-text h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); }
.feature-showcase-text p { color: var(--muted); font-size: 1.05rem; max-width: 32em; }
.feature-showcase-img { display: grid; place-items: center; }
.feature-showcase-img .phone { width: min(240px, 60vw); }
@media (min-width: 768px) {
  .feature-showcase { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature-showcase.reverse .feature-showcase-text { order: 2; }
  .feature-showcase.reverse .feature-showcase-img { order: 1; }
  .feature-showcase-img .phone { width: min(280px, 100%); }
}

/* ===== XP Callout ===== */
.xp-callout {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--purple) 0%, #9333EA 100%);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); color: #fff;
}
.xp-callout-inner { max-width: 36em; margin-inline: auto; text-align: center; }
.xp-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.xp-callout h3 { color: #fff; font-size: 1.3rem; }
.xp-callout p { color: rgba(255,255,255,.85); margin: 0; }

/* ===== Features Grid ===== */
.features-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.section.alt .feature { background: var(--canvas); }
.feature-icon { font-size: 1.6rem; margin-bottom: .65rem; }
.feature p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Screenshots Gallery ===== */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(220px, 60vw);
  gap: 1rem; overflow-x: auto; padding: .5rem .25rem 1.25rem;
  scroll-snap-type: x mandatory; list-style: none; margin: 0;
  -webkit-overflow-scrolling: touch;
}
.shots li { scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img { border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.shots figcaption { margin-top: .65rem; font-weight: 650; color: var(--text); font-size: .9rem; text-align: center; }
@media (min-width: 900px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: unset; overflow: visible; }
}

/* ===== Steps ===== */
.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.step {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--purple); color: #fff; font-weight: 800; font-size: 1.3rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; max-width: 28em; margin-inline: auto; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ===== Bilingual ===== */
.bilingual {
  display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr;
}
.bilingual-flags { display: flex; gap: 1rem; justify-content: center; }
.flag-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 2.5rem; font-weight: 700; font-size: .95rem;
}
.flag { font-size: 2.5rem; }
@media (min-width: 768px) { .bilingual { grid-template-columns: 1.2fr .8fr; } }

/* ===== Pricing ===== */
.pricing-card-wrapper { max-width: 440px; margin-inline: auto; }
.pricing-card {
  background: var(--card); border: 2px solid var(--purple); border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center; position: relative;
  box-shadow: 0 4px 24px rgba(107, 33, 168, .12);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff; font-weight: 700; font-size: .78rem;
  padding: .3rem .9rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.price { font-size: 2.8rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.price-period { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.price-sub { color: var(--purple); font-weight: 600; font-size: .95rem; margin-bottom: 1.5rem; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; }
.pricing-card li {
  padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--text);
  display: flex; gap: .6rem; align-items: flex-start; font-size: .97rem;
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: ""; flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B21A8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 65% no-repeat;
}
.pricing-card .btn { width: 100%; }
.pricing-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 720px; }
.faq { display: grid; gap: .6rem; margin-block: 1rem 0; }
.faq details { background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.25rem; }
.section.alt .faq details { background: var(--canvas); }
.faq details[open] { border-color: var(--purple-light); }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--text);
  padding: 1rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--purple); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1rem; color: var(--muted); }
.faq .answer > :last-child { margin-bottom: 0; }

/* ===== Bottom CTA ===== */
.cta-bottom {
  background: linear-gradient(135deg, var(--tint) 0%, var(--tint-warm) 100%);
  border-top: 1px solid var(--line);
}
.cta-bottom h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding-block: 2.5rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.footer-brand { max-width: 28em; }
.footer-brand .brand { font-size: 1.1rem; margin-bottom: .6rem; }
.footer-brand small { color: var(--muted); display: block; line-height: 1.5; font-size: .88rem; }
.footer-col { display: flex; flex-direction: column; gap: .4rem; }
.footer-col strong { color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.footer-col a:hover { color: var(--purple); }
.footer-tagline { text-align: center; color: var(--muted); font-size: .88rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
}

/* ===== Page Hero (inner pages) ===== */
.page-hero { background: linear-gradient(180deg, var(--canvas) 0%, var(--tint) 100%); padding-bottom: 0; }

/* ===== Support Grid ===== */
.support-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.support-card {
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
}
.support-icon { font-size: 2rem; margin-bottom: .75rem; }
.support-card h3 { font-size: 1.15rem; }
.support-card p { color: var(--muted); margin-bottom: 1.25rem; }
.support-card .btn, .support-card .btn-ghost { font-size: .92rem; }
@media (min-width: 640px) { .support-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Contact Form ===== */
.form-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.form-intro p { color: var(--muted); font-size: 1.05rem; }
.response-info { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.5rem; }
.info-row {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--tint); border-radius: 14px; padding: .9rem 1rem;
}
.info-icon { font-size: 1.3rem; flex: none; margin-top: .1rem; }
.info-row strong { display: block; font-size: .92rem; color: var(--text); }
.info-row span { font-size: .88rem; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-field label {
  display: block; font-weight: 650; font-size: .92rem; color: var(--text);
  margin-bottom: .35rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem 1rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--card); transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(168, 85, 247, .15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2357534E'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1rem; padding-right: 2.5rem; }
.captcha-field { background: var(--tint); border-radius: 14px; padding: 1rem; }
.captcha-field label { font-size: .95rem; }
.captcha-field #captcha-q { color: var(--purple); }
@media (min-width: 768px) { .form-layout { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; } }

/* ===== Common Topics ===== */
.topics-grid { display: grid; gap: .6rem; max-width: 720px; margin-inline: auto; }
.topic-item {
  background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.25rem;
}
.topic-item[open] { border-color: var(--purple-light); }
.topic-item summary {
  cursor: pointer; font-weight: 700; color: var(--text);
  padding: 1rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.topic-item summary::-webkit-details-marker { display: none; }
.topic-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--purple); flex: none; }
.topic-item[open] summary::after { content: "–"; }
.topic-item .answer { padding: 0 0 1rem; color: var(--muted); }
.topic-item .answer > :last-child { margin-bottom: 0; }
.topic-item .answer ol { padding-left: 1.25rem; margin: .5rem 0; }
.topic-item .answer li { margin-bottom: .35rem; }

/* ===== Utilities ===== */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .skip, .nav-toggle { display: none; } body { background: #fff; } }
