/* Dot Journal - Landing Page Stylesheet */
/* Color System matching Dot Journal App */

:root {
  --bg: #f7f6f3;
  --bg-subtle: #f0eee8;
  --card: #ffffff;
  --card-subtle: #faf9f6;
  --ink: #1b1b1a;
  --ink-secondary: #4a4944;
  --mute: #706f69;
  --faint: #dcdad3;
  --line: #e6e4dc;
  --line-strong: #d0cdc3;
  --acc: #c9a35d;
  --acc-hover: #b8914b;
  --acc-active: #a6813d;
  --acc-ink: #8f6d2c;
  --soft: #f8f1e2;
  --soft-strong: #f0e4c8;
  --warn: #c4463a;
  --warn-bg: #fdf2f1;
  --ok: #2e7d32;
  --ok-bg: #edf7ed;
  --header-bg: rgba(247, 246, 243, 0.82);
  --shadow-sm: 0 2px 8px rgba(27, 27, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(27, 27, 26, 0.06);
  --shadow-lg: 0 20px 48px rgba(27, 27, 26, 0.08);
  --shadow-glow: 0 0 32px rgba(201, 163, 93, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;

  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
  }
  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --bg-subtle: #1a1a18;
    --card: #1c1c1b;
    --card-subtle: #242422;
    --ink: #f1f0ec;
    --ink-secondary: #c8c7bf;
    --mute: #999890;
    --faint: #44433e;
    --line: #2a2a28;
    --line-strong: #3a3a36;
    --acc: #d4b06a;
    --acc-hover: #e0be7d;
    --acc-active: #c49e54;
    --acc-ink: #d9b873;
    --soft: #2a2418;
    --soft-strong: #3d331f;
    --warn: #ef8a80;
    --warn-bg: #2d1816;
    --ok: #4caf7a;
    --ok-bg: #142a1b;
    --header-bg: rgba(19, 19, 18, 0.82);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 32px rgba(212, 176, 106, 0.2);
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  --bg: #131312;
  --bg-subtle: #1a1a18;
  --card: #1c1c1b;
  --card-subtle: #242422;
  --ink: #f1f0ec;
  --ink-secondary: #c8c7bf;
  --mute: #999890;
  --faint: #44433e;
  --line: #2a2a28;
  --line-strong: #3a3a36;
  --acc: #d4b06a;
  --acc-hover: #e0be7d;
  --acc-active: #c49e54;
  --acc-ink: #d9b873;
  --soft: #2a2418;
  --soft-strong: #3d331f;
  --warn: #ef8a80;
  --warn-bg: #2d1816;
  --ok: #4caf7a;
  --ok-bg: #142a1b;
  --header-bg: rgba(19, 19, 18, 0.82);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 32px rgba(212, 176, 106, 0.2);
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  --bg: #f7f6f3;
  --bg-subtle: #f0eee8;
  --card: #ffffff;
  --card-subtle: #faf9f6;
  --ink: #1b1b1a;
  --ink-secondary: #4a4944;
  --mute: #706f69;
  --faint: #dcdad3;
  --line: #e6e4dc;
  --line-strong: #d0cdc3;
  --acc: #c9a35d;
  --acc-hover: #b8914b;
  --acc-active: #a6813d;
  --acc-ink: #8f6d2c;
  --soft: #f8f1e2;
  --soft-strong: #f0e4c8;
  --warn: #c4463a;
  --warn-bg: #fdf2f1;
  --ok: #2e7d32;
  --ok-bg: #edf7ed;
  --header-bg: rgba(247, 246, 243, 0.82);
  --shadow-sm: 0 2px 8px rgba(27, 27, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(27, 27, 26, 0.06);
  --shadow-lg: 0 20px 48px rgba(27, 27, 26, 0.08);
  --shadow-glow: 0 0 32px rgba(201, 163, 93, 0.25);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle dot-matrix background accent */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  z-index: 0;
}

a {
  color: var(--acc-ink);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--acc);
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.06);
}

.brand-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
}

.brand-en {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--mute);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--ink);
  background: var(--card-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  transition: var(--transition);
  cursor: pointer;
}

.btn-icon-toggle:hover {
  border-color: var(--acc);
  color: var(--acc);
  transform: scale(1.05);
}

.lang-switch {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  transition: var(--transition);
  cursor: pointer;
}

.lang-switch:hover {
  border-color: var(--acc);
  color: var(--acc);
  transform: scale(1.03);
}

.nav-cta {
  border-radius: 20px !important;
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  background: var(--acc) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(201, 163, 93, 0.3) !important;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--acc-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201, 163, 93, 0.45) !important;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--acc);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 4px 14px rgba(201, 163, 93, 0.35);
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--acc-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 163, 93, 0.45);
}

.btn-primary:active {
  background: var(--acc-active);
  transform: translateY(0);
}

/* Hero Section */
.hero {
  padding: 64px 0 80px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--soft);
  border: 1px solid var(--soft-strong);
  color: var(--acc-ink);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
}

.hero-title {
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  color: var(--ink);
}

.hero-title .highlight {
  color: var(--acc);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--ink-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* Hero Email Capture Card */
.lead-card {
  max-width: 580px;
  margin: 0 auto 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.lead-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--acc), #e0be7d);
}

.lead-header {
  margin-bottom: 18px;
}

.lead-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--acc-ink);
  background: var(--soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.lead-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.lead-desc {
  font-size: 13.5px;
  color: var(--mute);
  line-height: 1.5;
}

/* Modern Web Guidance Form Validation Pattern */
.email-form {
  margin-top: 16px;
}

.field {
  position: relative;
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 4px;
}

.hint {
  display: block;
  color: var(--mute);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.email-input:focus {
  border-color: var(--acc);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(201, 163, 93, 0.2);
}

/* User-invalid pattern from Modern Web Guidance */
.email-input:user-invalid {
  border-color: var(--warn);
  background-color: var(--warn-bg);
}

.email-input:user-valid {
  border-color: var(--ok);
}

.error-msg {
  display: none;
  color: var(--warn);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.email-input:user-invalid + .error-msg {
  display: block;
}

.btn-submit {
  padding: 13px 26px;
  background: var(--acc);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(201, 163, 93, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--acc-hover);
  transform: translateY(-1px);
}

.lead-footer-note {
  font-size: 12px;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

/* Hero Showcase Device */
.hero-showcase {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.phone-mockup-wrap {
  position: relative;
  display: inline-block;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 46px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.phone-screen {
  width: 320px;
  height: 650px;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 2px solid var(--line);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating callout badges around device */
.float-tag {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  animation: float 4s ease-in-out infinite;
  z-index: 5;
}

.float-tag.tag-1 {
  top: 18%;
  left: -40px;
  animation-delay: 0s;
}

.float-tag.tag-2 {
  top: 48%;
  right: -50px;
  animation-delay: 1.5s;
}

.float-tag.tag-3 {
  bottom: 12%;
  left: -20px;
  animation-delay: 2.8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.float-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--acc-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
}

/* Trust Bar / Stats */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 60px 0 20px;
  padding: 24px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.trust-sub {
  font-size: 12.5px;
  color: var(--mute);
}

/* Interactive Simulator Section */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--acc-ink);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  color: var(--ink);
}

.section-desc {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Interactive Demo Box */
.demo-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--card-subtle);
  border-bottom: 1px solid var(--line);
}

.demo-traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--faint);
}

.traffic-dot.red { background: #ff5f56; }
.traffic-dot.yellow { background: #ffbd2e; }
.traffic-dot.green { background: #27c93f; }

.demo-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}

.demo-tabs {
  display: flex;
  gap: 6px;
}

.demo-tab-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--mute);
  transition: var(--transition);
}

.demo-tab-btn.active, .demo-tab-btn:hover {
  background: var(--soft);
  color: var(--acc-ink);
  border-color: var(--acc);
}

.demo-body {
  padding: 24px;
  min-height: 320px;
}

.demo-date-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.demo-date-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.demo-sub-hint {
  font-size: 12px;
  color: var(--acc-ink);
  background: var(--soft);
  padding: 2px 8px;
  border-radius: 4px;
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.demo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.demo-item:hover {
  border-color: var(--line-strong);
  background: var(--card-subtle);
}

.demo-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.bullet-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: var(--acc);
  background: var(--card);
  border: 1px solid var(--line);
  transition: var(--transition);
}

.bullet-btn:hover {
  background: var(--soft);
  border-color: var(--acc);
  transform: scale(1.08);
}

.demo-text {
  font-size: 14.5px;
  color: var(--ink);
  transition: var(--transition);
}

.demo-item.done .demo-text {
  text-decoration: line-through;
  color: var(--mute);
}

.demo-item.done .bullet-btn {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok);
}

.demo-actions {
  display: flex;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.demo-item:hover .demo-actions {
  opacity: 1;
}

.demo-action-btn {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--mute);
}

.demo-action-btn:hover {
  color: var(--acc);
  border-color: var(--acc);
}

.demo-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--card-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.demo-type-select {
  padding: 6px 8px;
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}

.demo-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.demo-add-btn {
  background: var(--acc);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--acc);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-shot-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  height: 220px;
}

.feature-shot-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-shot-wrap img {
  transform: scale(1.03);
}

/* Comparison Table */
.comparison-wrap {
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 640px;
}

.compare-table th, .compare-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.compare-table th {
  background: var(--card-subtle);
  font-weight: 700;
  color: var(--ink);
}

.compare-table th.col-highlight,
.compare-table td.col-highlight {
  background: var(--soft);
  color: var(--acc-ink);
  font-weight: 700;
}

.badge-yes {
  color: var(--ok);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-no {
  color: var(--warn);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 9 Templates Showcase */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.template-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.template-card:hover {
  border-color: var(--acc);
  transform: translateY(-2px);
}

.template-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-card-badge {
  font-size: 11px;
  background: var(--soft);
  color: var(--acc-ink);
  padding: 2px 6px;
  border-radius: 4px;
}

.template-card-desc {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  width: 22px;
  height: 22px;
  color: var(--acc);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Bottom CTA Banner */
.bottom-cta {
  background: linear-gradient(135deg, var(--card) 0%, var(--soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  margin: 60px 0 80px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.bottom-cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  color: var(--ink);
}

.bottom-cta-sub {
  font-size: 16px;
  color: var(--ink-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 60px;
  font-size: 13.5px;
  color: var(--mute);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--mute);
}

.footer-links a:hover {
  color: var(--acc);
}

/* Modals & Dialogs */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
}

.modal-text {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  color: var(--mute);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-close-modal:hover {
  background: var(--bg);
  color: var(--ink);
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--acc);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Admin Leads Drawer / Modal */
.admin-leads-list {
  max-height: 260px;
  overflow-y: auto;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 16px 0;
}

.admin-lead-row {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-showcase { margin-top: 20px; }
  .float-tag { display: none; }
  .phone-screen { width: 280px; height: 560px; }
  .features-grid { grid-template-columns: 1fr; }
  .lead-card { padding: 22px 20px; }
  .input-row { flex-direction: column; }
  .btn-submit { width: 100%; }
}

@media (max-width: 520px) {
  .brand-en { display: none; }
  .nav-cta { padding: 6px 12px !important; font-size: 12.5px !important; }
  .nav-wrap { height: 58px; }
}
