/* SolaTalk website — style.css  (visual direction v4, W-D-006: soft glow, centered, rounded — Lovable-like)
   Brand swap (W-D-003): when the icon is final, put it in assets/brand/
   and change the two variables below. Nothing else needs to change. */
:root {
  --brand-icon: none;              /* e.g. url("../brand/icon.svg") */
  --brand-icon-display: none;      /* set to inline-block to show the icon */

  --bg: #fcfbf8;
  --card: #f4f3ef;
  --white: #ffffff;
  --text: #1c1c1c;
  --text-2: #5f5f5d;
  --text-3: #8f8e8a;
  --border: rgba(28, 28, 28, 0.08);
  --g1: #3d7bff;   /* glow colours */
  --g2: #8a5cff;
  --g3: #ff4fa3;
  --g4: #ff8a3d;
  --sub: #ffd84a;  /* same yellow as the app's current subtitle line */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --maxw: 1200px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background .2s; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.site-header .wrap { width: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: 20px; letter-spacing: -0.03em; }
.brand-mark { display: var(--brand-icon-display); width: 26px; height: 26px; border-radius: 7px; background: var(--brand-icon) center / contain no-repeat; }
.nav { display: flex; gap: 4px; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 10px; color: var(--text); }
.nav a:hover { background: rgba(0,0,0,0.05); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-toggle { font: inherit; font-size: 14px; font-weight: 500; background: transparent; border: 0; border-radius: 10px; padding: 7px 12px; cursor: pointer; color: var(--text); }
.lang-toggle:hover { background: rgba(0,0,0,0.05); }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; background: var(--text); color: #fff; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-light { background: var(--white); color: var(--text); box-shadow: 0 0 0 1px var(--border); }

/* ---------- hero with glow ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 96px) 0 120px; text-align: center; overflow: hidden; isolation: isolate; }
.glow { position: absolute; z-index: -1; left: 50%; top: 22%; width: 1600px; height: 1100px; transform: translateX(-50%); pointer-events: none; }
.glow::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(38% 34% at 30% 58%, var(--g1) 0%, transparent 70%),
    radial-gradient(34% 34% at 50% 50%, var(--g2) 0%, transparent 70%),
    radial-gradient(32% 32% at 66% 56%, var(--g3) 0%, transparent 70%),
    radial-gradient(34% 30% at 58% 74%, var(--g4) 0%, transparent 70%);
  filter: blur(70px); opacity: 1; animation: drift 16s ease-in-out infinite alternate; }
.glow::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(var(--bg), transparent); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
@keyframes drift { to { transform: translate(30px, -20px) rotate(6deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .glow::before { animation: none; } .caret { animation: none !important; } }

.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,0.7); box-shadow: 0 0 0 1px var(--border); backdrop-filter: blur(8px); }
.badge i { font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: var(--text); border-radius: 999px; padding: 2px 8px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 650; margin: 22px auto 0; max-width: 18ch; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 34em; margin: 18px auto 0; }

/* the "prompt box" — here it's a live interpreter box */
.live-box { position: relative; max-width: 760px; margin: 44px auto 0; text-align: left; background: var(--white); border-radius: 28px; padding: 22px 22px 16px; box-shadow: 0 0 0 1px var(--border), 0 30px 60px -20px rgba(40, 20, 80, 0.25); }
.lb-src { font-size: 15px; color: var(--text-3); min-height: 1.55em; }
.lb-out { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; min-height: 2.7em; margin-top: 4px; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--text); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lb-bar { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--text-2); box-shadow: 0 0 0 1px var(--border); background: var(--white); white-space: nowrap; }
.chip svg { width: 15px; height: 15px; }
.chip.on { color: var(--text); background: var(--card); box-shadow: none; }
.lb-go { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--text); display: grid; place-items: center; flex: none; }
.lb-go .bars { display: flex; gap: 2px; align-items: center; height: 16px; }
.lb-go .bars i { width: 2.5px; height: 40%; border-radius: 2px; background: #fff; animation: wv 1s ease-in-out infinite; }
.lb-go .bars i:nth-child(2) { animation-delay: -.3s; } .lb-go .bars i:nth-child(3) { animation-delay: -.6s; } .lb-go .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes wv { 50% { height: 100%; } }
.hero-cta { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 12px; font-size: 13px; color: var(--text-2); }
@media (max-width: 760px) {
  .hero { padding: calc(var(--header-h) + 48px) 0 72px; }
  .glow { width: 1000px; height: 1000px; top: 34%; }
  .live-box { border-radius: 22px; padding: 18px 16px 14px; margin-top: 32px; }
  .lb-bar .chip.hide-sm { display: none; }
}

/* ---------- works with ---------- */
.works { padding: 8px 0 24px; text-align: center; }
.works p { margin: 0 0 16px; font-size: 14px; color: var(--text-3); }
.works .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #9b9a96; }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-head { text-align: center; max-width: 860px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 650; margin: 0; }
.section-head p { font-size: 18px; color: var(--text-2); margin: 14px 0 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-head { margin-bottom: 32px; } }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; overflow: hidden; position: relative; min-height: 300px; }
.card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; margin: 0; }
.card p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; max-width: 34em; }
.card .vis { margin-top: auto; padding-top: 28px; }
.s3 { grid-column: span 3; } .s2 { grid-column: span 2; } .s4 { grid-column: span 4; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } .s3, .s2, .s4 { grid-column: auto; } .card { min-height: 0; padding: 24px 20px; } }

/* card visuals */
.glow-card { background: radial-gradient(80% 90% at 85% 100%, rgba(255,79,163,.28), transparent 60%), radial-gradient(70% 80% at 10% 100%, rgba(61,123,255,.28), transparent 60%), var(--card); }
.flow { display: grid; gap: 10px; }
.flow-row { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--border); font-size: 15px; }
.flow-row .lang { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--card); border-radius: 6px; padding: 2px 7px; flex: none; }
.flow-row .to { color: var(--text-3); }
.voices { display: flex; flex-wrap: wrap; gap: 8px; }
.voice { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--border); font-size: 14px; }
.voice b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; }
.voice:nth-child(1) b { background: var(--g1); } .voice:nth-child(2) b { background: var(--g3); } .voice:nth-child(3) b { background: var(--g2); } .voice:nth-child(4) b { background: var(--g4); }
.voice.more { padding: 0 14px; color: var(--text-2); }
.slider { margin-top: 14px; display: grid; grid-template-columns: 48px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); }
.slider .t { height: 6px; border-radius: 999px; background: rgba(0,0,0,0.08); position: relative; }
.slider .t i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--text); }
.slider .t i::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transform: translateY(-50%); }
.keys { display: flex; gap: 8px; }
.kbd { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 3px 0 rgba(0,0,0,0.08); font-size: 22px; }
.toggle { display: inline-flex; margin-top: 14px; background: var(--white); border-radius: 12px; padding: 4px; box-shadow: 0 0 0 1px var(--border); font-size: 13px; }
.toggle span { padding: 6px 12px; border-radius: 9px; color: var(--text-2); }
.toggle span.on { background: var(--text); color: #fff; }
.sub-win { background: rgba(20,20,22,0.92); border-radius: 16px; padding: 16px 20px; color: #fff; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.sub-win .prev { color: rgba(255,255,255,0.6); font-size: 15px; }
.sub-win .cur { color: var(--sub); font-size: 20px; font-weight: 600; text-shadow: 0 1px 2px #000; margin-top: 2px; }
.sub-win .src { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 4px; }
.memo { background: var(--white); border-radius: 16px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--border); font-size: 14px; }
.memo h4 { font-size: 15px; font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.memo h4 .spark { font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--g1), var(--g3)); border-radius: 999px; padding: 2px 8px; }
.memo ul { margin: 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 4px; }

/* ---------- closing glow CTA ---------- */
.cta-band { position: relative; margin: 0 auto 96px; max-width: calc(var(--maxw) - 48px); border-radius: 32px; overflow: hidden; text-align: center; padding: 96px 24px; isolation: isolate; background: #111; color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: radial-gradient(30% 40% at 35% 70%, var(--g1), transparent 70%), radial-gradient(30% 40% at 55% 75%, var(--g3), transparent 70%), radial-gradient(25% 35% at 70% 65%, var(--g4), transparent 70%); filter: blur(50px); opacity: .85; }
.cta-band h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.04em; font-weight: 650; line-height: 1.06; margin: 0; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 14px 0 28px; font-size: 18px; }
.cta-band .btn { background: #fff; color: var(--text); }
@media (max-width: 760px) { .cta-band { margin: 0 16px 64px; padding: 64px 20px; border-radius: 24px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 14px; color: var(--text-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.site-footer .brand { font-size: 17px; color: var(--text); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; color: var(--text-2); }
.site-footer .legal { width: 100%; margin: 0; font-size: 13px; }
@media (max-width: 560px) {
  .flow-row { flex-wrap: wrap; gap: 4px 8px; }
  .flow-row { line-height: 1.4; }
}

/* ---------- how it works ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--card); border-radius: 24px; padding: 26px 24px 28px; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; font-weight: 600; font-size: 15px; }
.step h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin: 18px 0 8px; }
.step p { margin: 0; font-size: 15px; color: var(--text-2); }
.step b { color: var(--text); font-weight: 600; }
.how-tip { text-align: center; color: var(--text-3); font-size: 14px; margin: 24px 0 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.price-card { position: relative; max-width: 560px; margin: 0 auto; text-align: center; background: var(--white); border-radius: 28px; padding: 40px 32px; box-shadow: 0 0 0 1px var(--border), 0 30px 60px -30px rgba(40,20,80,.25); overflow: hidden; isolation: isolate; }
.price-card::before { content: ""; position: absolute; z-index: -1; left: -20%; right: -20%; top: -60%; height: 90%; background: radial-gradient(40% 50% at 35% 60%, rgba(61,123,255,.22), transparent 70%), radial-gradient(40% 50% at 65% 60%, rgba(255,79,163,.2), transparent 70%); filter: blur(30px); }
.price-card h3 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; font-weight: 650; line-height: 1.2; margin: 18px 0 8px; }
.price-card > p { color: var(--text-2); margin: 0 auto; max-width: 28em; }
.price-list { list-style: none; padding: 0; margin: 26px auto 28px; display: grid; gap: 10px; text-align: left; max-width: 360px; font-size: 15px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 600px) { .price-card { padding: 32px 20px; border-radius: 22px; } }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.section-head.left { text-align: left; margin: 0; }
.section-head.left p a { color: var(--text); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--card); border-radius: 18px; padding: 0 22px; }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; font-size: 16px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--text-2); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 0 20px; color: var(--text-2); font-size: 15px; }
.faq-list a { color: var(--text); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- notify form ---------- */
.notify { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; background: rgba(255,255,255,0.12); padding: 6px; border-radius: 16px; backdrop-filter: blur(10px); }
.notify input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 11px; padding: 0 14px; font: inherit; font-size: 15px; background: #fff; color: var(--text); }
.notify input:focus { outline: 2px solid var(--g1); outline-offset: 1px; }
.notify .btn { background: #fff; color: var(--text); height: 44px; }
.notify-msg { font-size: 14px; color: rgba(255,255,255,0.8); margin: 14px 0 0 !important; }
@media (max-width: 480px) { .notify { flex-direction: column; } }

/* ---------- legal page ---------- */
.legal-page { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; font-weight: 650; line-height: 1.08; margin: 0; }
.legal-page .meta { color: var(--text-3); font-size: 14px; margin: 12px 0 0; }
.legal-page .summary { background: var(--card); border-radius: 20px; padding: 22px 24px; margin: 36px 0 8px; }
.legal-page .summary ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-page h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin: 40px 0 10px; }
.legal-page p, .legal-page li { color: var(--text-2); }
.legal-page strong, .legal-page .summary b { color: var(--text); }
.legal-page a { color: var(--text); }
.lang-zh-only { display: none; }
html[lang^="zh"] .lang-zh-only { display: block; }
html[lang^="zh"] .lang-en-only { display: none; }
@media (max-width: 480px) { .notify input { flex: none; } }
