/* RideMesh 홍보 사이트 — 앱 테마(app/src/theme.ts)와 같은 색: 밝은 배경, 파랑→청록 */
:root {
  --bg: #F7F8FB;
  --surface: #FFFFFF;
  --border: #E4E7EE;
  --border-strong: #D7DBE4;
  --primary: #2F6FED;
  --primary-soft: #EAF1FF;
  --accent: #14B8A6;
  --accent-soft: #E6F7F4;
  --mate: #0F8A7C;
  --text: #14171F;
  --text-muted: #5B6270;
  --text-faint: #8A91A0;
  --danger: #C0392B;
  --night: #0A1120;
  --night-2: #101A2E;
  --night-text: #E8EEF8;
  --night-muted: #A3B0C6;
  --grad: linear-gradient(100deg, #2F6FED 0%, #14B8A6 100%);
  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px -12px rgba(11, 18, 32, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
ul, ol { list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* ── Wordmark ── */
.wordmark { font-weight: 800; font-style: italic; letter-spacing: -0.02em; font-size: 21px; line-height: 1; }
.wm-ride { color: var(--text); }
.wm-mesh { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.wordmark-sm { font-size: 19px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--border); }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--text-muted); font-size: 14.5px; font-weight: 600; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.lang-switch { display: flex; gap: 2px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.lang-link { font-size: 12px; font-weight: 700; color: var(--text-faint); padding: 4px 8px; border-radius: 7px; letter-spacing: 0.02em; }
.lang-link:hover { color: var(--text); text-decoration: none; }
.lang-link.active { color: #fff; background: var(--primary); }

/* ── Common section bits ── */
.section { padding: 96px 0; }
.section-intro { max-width: 680px; margin-bottom: 48px; }
.section-intro h2 { font-size: clamp(28px, 4vw, 40px); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.kicker-icon { width: 18px; height: 18px; }
.kicker-light { color: #7FD8CC; }
.lead { font-size: 18px; color: var(--text-muted); margin-top: 16px; }
.fine { font-size: 13px; color: var(--text-faint); margin-top: 20px; }
.link-arrow { display: inline-block; font-weight: 700; font-size: 15px; margin-top: 8px; }
.link-light { color: #9CC2FF; }

/* ── Phone frame ── */
.phone {
  margin: 0; background: #0D1117; border-radius: 34px; padding: 7px;
  box-shadow: 0 30px 60px -24px rgba(11, 18, 32, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img { border-radius: 27px; width: 100%; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-text); }
.hero-bg {
  position: absolute; inset: 0 0 0 auto; width: min(78%, 1180px);
  background: url('/assets/hero.jpg') center / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(10, 17, 32, 0.82) 22%, rgba(10, 17, 32, 0.25) 55%, rgba(10, 17, 32, 0) 75%),
    linear-gradient(0deg, var(--night) 0%, rgba(10, 17, 32, 0) 28%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
  align-items: center; padding-top: 88px; padding-bottom: 96px; min-height: 640px;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.035em; color: #fff; }
.hero-sub { font-size: 18.5px; color: var(--night-muted); margin: 24px 0 32px; max-width: 32em; }
.hero-voice { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; align-self: end; }
.hero-bubbles { display: grid; gap: 12px; width: min(100%, 400px); }
.hero-bubble {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(10, 17, 32, 0.66); border: 1px solid rgba(95, 217, 201, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 18px 18px 18px 6px; padding: 14px 18px 14px 14px;
  animation: bubble-in 0.6s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i) * 0.9s + 0.3s);
}
.hero-bubble:nth-child(2) { margin-left: 40px; margin-right: -12px; }
/* 제목의 메이트: 로고 Mesh와 같은 그라데이션 */
.hero-mate { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-bubble.is-local { border-color: rgba(246, 190, 98, 0.5); }
.hb-icon {
  position: relative; flex-shrink: 0; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(20, 184, 166, 0.2); color: #5FD9C9;
}
.hb-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
  animation: speak 1.4s ease-out 2 both; animation-delay: calc(var(--i) * 0.9s + 0.6s);
}
.is-local .hb-icon { background: rgba(246, 190, 98, 0.18); color: #F6BE62; }
.hb-icon .icon { width: 18px; height: 18px; }
.hb-copy { display: flex; flex-direction: column; gap: 3px; }
.hb-who { font-size: 12px; font-weight: 700; color: #7FD8CC; letter-spacing: 0.02em; }
.is-local .hb-who { color: #F6BE62; }
.hb-text { font-size: 16px; font-weight: 600; color: #fff; line-height: 1.45; }
.hero-cues { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hero-cues li {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--night-text);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); padding: 7px 12px; border-radius: 999px;
}
.hero-cues .icon { width: 17px; height: 17px; color: #9CC2FF; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes speak { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@media (prefers-reduced-motion: reduce) { .hero-bubble, .hb-icon::after { animation: none; } }

/* ── CTA ── */
.cta-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; color: #fff;
  background: rgba(47, 111, 237, 0.18); border: 1px solid rgba(127, 170, 255, 0.4);
  padding: 10px 18px; border-radius: 999px;
}
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.25); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(20, 184, 166, 0.05); } }
@media (prefers-reduced-motion: reduce) { .soon-dot { animation: none; } html { scroll-behavior: auto; } }
.soon-platforms { font-size: 14px; color: var(--night-muted); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
  border-radius: 12px; padding: 12px 22px; border: 1px solid transparent;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-store { background: var(--primary); color: #fff; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
.btn-store:hover { background: #2560D6; }
.btn-store-alt { background: transparent; color: inherit; border-color: currentColor; }
.btn-sub { font-size: 11px; font-weight: 600; opacity: 0.75; }
.btn-main { font-size: 16px; }
.btn-mail { background: var(--text); color: #fff; }
.btn-mail:hover { background: #2A2F3A; }
.btn-mail .icon { width: 18px; height: 18px; }

/* ── Voice samples ── */
.voice { background: var(--surface); border-bottom: 1px solid var(--border); }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.voice-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--accent-soft); border: 1px solid #C9EDE6; border-radius: 20px 20px 20px 6px;
  padding: 22px 22px 18px;
}
.voice-card.is-local { background: #FFF6E8; border-color: #F3DDB6; }
.voice-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.voice-when { font-size: 13px; font-weight: 700; color: var(--mate); }
.is-local .voice-when { color: #A35F00; }
.voice-tag { font-size: 11px; font-weight: 700; color: #A35F00; background: #FBE7C4; padding: 2px 8px; border-radius: 999px; }
.voice-text { font-size: 16.5px; font-weight: 600; color: var(--text); line-height: 1.55; flex: 1; }
.say-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--mate); background: #fff;
  border: 1px solid #BFE6DF; border-radius: 999px; padding: 6px 14px 6px 10px; cursor: pointer;
}
.is-local .say-btn { color: #A35F00; border-color: #F0D6A8; }
.say-btn:hover { background: #F2FBF9; }
.say-btn.is-playing { background: var(--mate); color: #fff; border-color: var(--mate); }
.is-local .say-btn.is-playing { background: #A35F00; border-color: #A35F00; }
.say-icon { width: 14px; height: 14px; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 28px; }
.step .phone { width: min(100%, 260px); margin: 0 auto; }
.step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--text-muted); }

/* ── Alerts list ── */
.alerts { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.alert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 28px; }
.alert-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.alert-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--primary-soft); color: var(--primary);
}
.alert-icon .icon { width: 21px; height: 21px; }
.alert-copy { display: flex; flex-direction: column; line-height: 1.4; }
.alert-copy strong { font-size: 15.5px; }
.alert-copy span { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }

/* ── Split feature rows ── */
.features { padding-top: 40px; padding-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.split + .split { border-top: 1px solid var(--border); }
.split-reverse .split-copy { order: 2; }
.split h2 { font-size: clamp(26px, 3.4vw, 36px); }
.split-media { display: flex; justify-content: center; }
.split-media .phone { width: 270px; }
.checks { margin-top: 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }

.events-card {
  width: 100%; max-width: 380px; display: grid; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px;
  box-shadow: var(--shadow);
}
.team { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 14px; background: var(--primary-soft); }
.team-1 { background: var(--accent-soft); }
.team-2 { background: #F1EEFF; }
.team-name { font-weight: 800; }
.team-dots { display: flex; }
.team-dots i { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; margin-left: -8px; opacity: 0.85; }
.team-1 .team-dots i { background: var(--accent); }
.team-2 .team-dots i { background: #7C6CF0; }

/* ── Intercom (dark) ── */
.intercom { background: var(--night); color: var(--night-text); }
.intercom h2 { color: #fff; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { background: var(--night-2); border: 1px solid #1E2A42; border-radius: var(--radius); padding: 24px; }
.tile-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(20, 184, 166, 0.14); color: #5FD9C9;
}
.tile-icon .icon { width: 22px; height: 22px; }
.tile h3 { font-size: 17px; margin-bottom: 8px; color: #fff; }
.tile p { font-size: 14.5px; color: var(--night-muted); }

.tile-plain { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.tile-plain h3 { color: var(--text); }
.tile-plain p { color: var(--text-muted); }
.tile-plain .tile-icon { background: var(--primary-soft); color: var(--primary); }
.privacy .tile-grid { margin-bottom: 28px; }

/* ── FAQ ── */
.faq { background: var(--surface); border-top: 1px solid var(--border); }
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-size: 17px; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { color: var(--text-muted); padding: 0 40px 22px 0; }

/* ── Bottom CTA ── */
.bottom-cta { text-align: center; background: radial-gradient(ellipse at 50% 0%, #E3ECFF 0%, var(--bg) 70%); }
.bottom-cta-inner { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta-icon { border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 24px; }
.bottom-cta h2 { font-size: clamp(28px, 4vw, 40px); }
.bottom-cta p { color: var(--text-muted); margin: 12px 0 28px; font-size: 17px; }
.bottom-cta .cta-group { justify-content: center; }
.bottom-cta .btn-store-alt { color: var(--text); border-color: var(--border-strong); }
.bottom-cta .soon-platforms { color: var(--text-muted); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; }
.footer-brand p + p { margin-top: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-muted); }
.footer-social a:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: start; }
.footer-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.footer-legal {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-faint);
}
.footer-legal a { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .site-nav a:not(:last-child) { display: none; }
  .voice-grid { grid-template-columns: 1fr 1fr; }
  .alert-grid { grid-template-columns: 1fr 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; min-height: 0; gap: 48px; }
  .hero-bg { width: 100%; opacity: 0.55; }
  .hero-bg::after { background: linear-gradient(0deg, var(--night) 0%, rgba(10, 17, 32, 0.55) 100%); }
  .hero-voice { align-items: stretch; }
  .hero-bubbles { width: 100%; }
  .hero-bubble:nth-child(2) { margin-left: 24px; margin-right: 0; }
  .hero-cues { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step { flex-direction: row; align-items: center; gap: 24px; }
  .step .phone { width: 150px; flex-shrink: 0; margin: 0; border-radius: 24px; padding: 5px; }
  .step .phone img { border-radius: 20px; }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .split-reverse .split-copy { order: 0; }
  .split-media .phone { width: 230px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 12px; height: 58px; }
  .site-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .voice-grid, .alert-grid, .tile-grid { grid-template-columns: 1fr; }
  .alert-grid { gap: 0; }
  .lead, .hero-sub { font-size: 16.5px; }
  .step { flex-direction: column; align-items: flex-start; }
  .step .phone { width: 200px; margin: 0 auto; }
  .footer-inner { flex-direction: column; }
}
