/* ============================================
   Tone (職言) — Shared Styles
   Matches iOS app design language exactly
   ============================================ */

:root {
  --primary: #0A1F4E;
  --primary-light-06: rgba(10, 31, 78, 0.06);
  --primary-light-15: rgba(10, 31, 78, 0.15);
  --keyboard-blue: #004AAD;
  --background: #F0F2F7;
  --card-bg: #FFFFFF;
  --text-primary: #0D1B3E;
  --text-secondary: rgba(13, 27, 62, 0.5);
  --accent-orange: #FF9500;
  --accent-purple: #AF52DE;
  --gradient-start: #0A1628;
  --gradient-end: #0A1F4E;
  --border-color: rgba(13, 27, 62, 0.08);
  --footer-border: rgba(13, 27, 62, 0.1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Layout ---- */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 242, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ---- Hero Section ---- */

.hero {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 80px 0 60px;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero .subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 32px;
}

.hero .cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary-dark {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

/* ---- Sections ---- */

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--card-bg);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Cards ---- */

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ---- Pain Points ---- */

.pain-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.pain-point {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 48px;
}

.pain-point::before {
  content: "\201C";
  position: absolute;
  left: 20px;
  top: 14px;
  font-size: 1.8rem;
  color: var(--accent-orange);
  font-weight: 700;
}

/* ---- Before/After Demo ---- */

.demo-container {
  max-width: 640px;
  margin: 0 auto;
}

.demo-original {
  background: var(--primary-light-06);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--text-secondary);
}

.demo-original .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.demo-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.demo-result {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.demo-result .label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
}

.demo-result.concise .label {
  background: rgba(0, 74, 173, 0.1);
  color: var(--keyboard-blue);
}

.demo-result.professional .label {
  background: var(--primary-light-15);
  color: var(--primary);
}

.demo-result.formal .label {
  background: rgba(175, 82, 222, 0.1);
  color: var(--accent-purple);
}

.demo-result p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---- Modes ---- */

.mode-card {
  text-align: center;
  padding: 28px 20px;
}

.mode-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

.mode-icon.concise {
  background: rgba(0, 74, 173, 0.12);
  color: var(--keyboard-blue);
}

.mode-icon.professional {
  background: var(--primary-light-15);
  color: var(--primary);
}

.mode-icon.formal {
  background: rgba(175, 82, 222, 0.12);
  color: var(--accent-purple);
}

.mode-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.mode-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- Steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---- Pro Card ---- */

.pro-card {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 20px;
  padding: 40px 32px;
  color: #fff;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.pro-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pro-card .pro-subtitle {
  opacity: 0.8;
  margin-bottom: 24px;
  font-size: 1rem;
}

.pro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  text-align: left;
  margin-bottom: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.pro-feature .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.pro-feature .icon.orange { background: rgba(255, 149, 0, 0.2); color: #FF9500; }
.pro-feature .icon.purple { background: rgba(175, 82, 222, 0.2); color: #AF52DE; }
.pro-feature .icon.blue { background: rgba(0, 74, 173, 0.2); color: #5AC8FA; }
.pro-feature .icon.green { background: rgba(52, 199, 89, 0.2); color: #34C759; }

/* ---- Comparison Table ---- */

.comparison {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-header {
  font-weight: 600;
  opacity: 0.7;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-row span:nth-child(2),
.comparison-row span:nth-child(3) {
  text-align: center;
}

.comparison-row span.highlight {
  color: #FF9500;
  font-weight: 700;
}

/* ---- Footer ---- */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--footer-border);
}

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

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ---- Content Pages (Privacy, Support) ---- */

.content-page {
  padding: 60px 0 80px;
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.content-page .meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.content-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

.content-page p,
.content-page li {
  font-size: 1rem;
  color: #424245;
  margin-bottom: 12px;
}

.content-page ul,
.content-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-page li {
  margin-bottom: 6px;
}

.content-page a {
  color: var(--keyboard-blue);
  text-decoration: none;
}

.content-page a:hover {
  text-decoration: underline;
}

.contact-box {
  margin-top: 40px;
  padding: 24px;
  background: var(--primary-light-06);
  border-radius: 12px;
}

.contact-box h2 {
  margin-top: 0;
}

.contact-box p {
  margin-bottom: 8px;
}

/* ---- Language Switcher ---- */

.lang-switch {
  font-size: 0.85rem;
}

.lang-switch a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--primary);
  background: var(--primary-light-06);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.4rem; }
  .card-grid-3, .demo-results, .steps { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .comparison-row { grid-template-columns: 1fr 60px 60px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .container, .container-wide { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .hero .subtitle { font-size: 1rem; }
  .content-page { padding: 40px 0 60px; }
  .content-page h1 { font-size: 1.5rem; }
}
