/* Flow X landing page — follows the "studio" template: grey header and footer
   bands, a white hero, heavy uppercase display type and black / outline
   buttons. Accents come from the hero illustration (purple, pink, gold). */

:root {
  --ink: #0b0b0f;
  --ink-2: #2a2a33;
  --muted: #6b6b78;
  --line: #e4e4ea;
  --line-strong: #cfcfd8;
  --band: #f4f4f6;
  --white: #ffffff;
  --purple: #8b5cf6;
  --pink: #f0507a;
  --gold: #f6c443;
  --wrap: 1180px;
  --cols: 8;
  --font: 'Raleway', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}
html:lang(zh-Hans) { --font: 'Noto Sans SC', 'Raleway', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bands --------------------------------------------------------- */
.band { position: relative; }
.band-grey { background: var(--band); }
.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; position: relative; }


/* ---------- Header ----------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); background: rgba(244, 244, 246, 0.92); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; padding-left: 4px; }
.logo-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: inset -5px -5px 0 0 var(--purple); }
.nav { flex: 1; display: flex; justify-content: center; gap: clamp(12px, 2.6vw, 40px); }
.nav a { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-login { display: none; }
.header-actions { flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* Header controls share one look: 40px outline buttons, like the hero's. */
.lang { position: relative; display: inline-flex; }
.lang select { appearance: none; height: 40px; border: 1.5px solid var(--ink); background: var(--white); border-radius: 6px; font: 700 13px var(--font); padding: 0 30px 0 14px; color: var(--ink); cursor: pointer; }
.lang::after { content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.lang select:hover { background: var(--band); }
.btn.btn-header { min-height: 40px; height: 40px; padding: 0 18px; font-size: 13px; white-space: nowrap; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--white); flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); display: block; }

/* ---------- Buttons ---------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 26px; border-radius: 6px; font: 700 14px var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); transition: transform 0.08s, background 0.15s, color 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { background: var(--white); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; white-space: nowrap; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- Type ------------------------------------------------------- */
.kicker { font-weight: 700; font-size: 14px; margin: 0 0 12px; letter-spacing: 0.01em; }
.display { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.98; margin: 0; font-size: clamp(44px, 6.4vw, 86px); }
.display span { display: block; }
.display-md { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 36px; }
html:lang(zh-Hans) .display { letter-spacing: 0.02em; line-height: 1.15; }
.lead { color: var(--ink-2); font-size: 16px; max-width: 46ch; margin: 22px 0 0; }

/* ---------- Hero ------------------------------------------------------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-art img { width: 100%; height: auto; }

/* ---------- Strip ------------------------------------------------------ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-list li { padding: 26px 14px; font-weight: 700; font-size: 14px; text-align: center; }

/* ---------- Sections --------------------------------------------------- */
.section { padding: 96px 0; }
.band-grey.section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 28px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: background 0.15s; }
.feature:hover { background: #faf9ff; }
.feature h3 { font-size: 17px; font-weight: 800; margin: 18px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feature-icon { display: block; width: 46px; height: 46px; border-radius: 12px; background-color: #f1eefd; background-repeat: no-repeat; background-position: center; background-size: 24px; }
/* Stroke icons (Lucide shapes), drawn in the page's ink colour. */
.i-cart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E"); }
.i-till { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0507a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E"); }
.i-box { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E"); }
.i-truck { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0a020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); }
.i-receipt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0507a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z'/%3E%3Cpath d='M8 7h8M8 11h8M8 15h5'/%3E%3C/svg%3E"); }
.i-users { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.i-chart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0a020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 17V9M13 17V5M18 17v-3'/%3E%3C/svg%3E"); }
.i-shield { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0507a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }

/* ---------- Steps ------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.steps li { padding: 26px 24px 8px 0; }
.step-no { display: block; font-weight: 900; font-size: 52px; line-height: 1; background: linear-gradient(135deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 19px; font-weight: 800; margin: 16px 0 6px; }
.steps p { margin: 0; color: var(--muted); max-width: 32ch; }

/* ---------- Pricing ---------------------------------------------------- */
/* Free · Starter · Growth · Business · Custom — five across on wide screens,
   wrapping to fewer columns as the screen narrows. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 28px 20px 22px; display: flex; flex-direction: column; background: var(--white); }
.plan-free { background: #f6f3ff; border-color: #ddd4fb; }
.plan-custom { background: var(--band); }
.price.price-text { white-space: normal; font-size: 26px; line-height: 1.2; min-height: 40px; align-items: center; overflow-wrap: anywhere; }
.plan-featured { border-color: var(--ink); box-shadow: 0 18px 40px rgba(11, 11, 15, 0.1); }
.plan-badge { position: absolute; top: -13px; left: 26px; background: linear-gradient(135deg, var(--purple), var(--pink)); color: var(--white); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.plan h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; margin: 0; }
.plan-desc { color: var(--muted); margin: 6px 0 18px; font-size: 14.5px; }
.price { font-weight: 900; font-size: 40px; line-height: 1; margin: 0 0 22px; display: flex; align-items: baseline; gap: 4px; }
.price .cur { font-size: 18px; font-weight: 800; }
.price .per { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.plan li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line); font-size: 14.5px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(-45deg); }
.fineprint { color: var(--muted); font-size: 13px; margin: 18px 0 0; }

/* ---------- FAQ -------------------------------------------------------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-strong); background: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 800; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 26px; font-weight: 500; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Contact ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.contact-form { border: 1.5px solid var(--ink); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--white); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { font: 500 15px var(--font); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; background: var(--white); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.field.invalid input, .field.invalid select { border-color: var(--pink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; }
.form-status { font-size: 14px; font-weight: 600; }
.form-status.ok { color: #1e8a5a; }
.form-status.err { color: #d64532; }
.contact-form .btn { align-self: flex-start; }

/* ---------- Footer ----------------------------------------------------- */
.footer { border-top: 1px solid var(--line); }
.footer-row { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-items: center; min-height: 86px; font-size: 13.5px; color: var(--ink-2); }
.footer-row p { margin: 0; grid-column: span 4; padding: 0 12px; }
.footer-row .footer-right { grid-column: span 2; text-align: right; padding-right: 4px; }

/* ---------- Tablet ----------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --cols: 4; }
  .header-row { flex-wrap: wrap; gap: 12px; }
  .header-actions { margin-left: auto; }
  .nav { display: none; order: 3; flex: 1 1 100%; flex-direction: column; gap: 0; padding: 0 0 14px; }
  .nav.open { display: flex; }
  .nav a { text-align: left; padding: 12px 6px; border-top: 1px solid var(--line); font-size: 15px; }
  .menu-btn { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 640px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-custom { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .footer-row p, .footer-row .footer-right { grid-column: auto; text-align: left; padding: 0 4px; }
}

/* ---------- Phone ------------------------------------------------------ */
@media (max-width: 640px) {
  :root { --cols: 2; }
  .hero { padding: 36px 0 24px; }
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 20px; }
  .contact-form .btn { align-self: stretch; }
  .btn-sm { padding: 0 12px; }
  /* Phones: Log in moves into the menu so the header stays on one line */
  .header-login { display: none; }
  .nav .nav-login { display: block; font-weight: 700; color: var(--ink); }
  .strip-list li { padding: 18px 8px; font-size: 13px; }
}
