/* Tomotick — App Store marketing site (matches iOS app theme) */

:root {
  --tomato: #ff6b5b;
  --tomato-dark: #e85a4a;
  --pale-tomato: #ffebe8;
  --break-blue: #64b5f6;
  --success-green: #4caf50;
  --text-primary: #1c1c1e;
  --text-secondary: #636366;
  --page-bg: #f2f2f7;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.06);
  --subtle-fill: rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 24px rgba(255, 107, 91, 0.08);
  --radius: 16px;
  --radius-lg: 20px;
  --max-width: 960px;
  --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f5f5f7;
    --text-secondary: #aeaeb2;
    --page-bg: #000000;
    --card-bg: #1c1c1e;
    --card-border: rgba(255, 255, 255, 0.08);
    --subtle-fill: rgba(255, 255, 255, 0.06);
    --shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
    --pale-tomato: rgba(255, 107, 91, 0.15);
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Nav ── */

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

@media (prefers-color-scheme: dark) {
  .nav {
    background: rgba(0, 0, 0, 0.75);
  }
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(255, 107, 91, 0.35);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--tomato);
  background: var(--pale-tomato);
}

/* ── Hero ── */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 48px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pale-tomato);
  color: var(--tomato);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--tomato);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-tomato {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  background: linear-gradient(145deg, var(--tomato) 0%, #ff8a7a 50%, var(--tomato-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  box-shadow: 0 12px 40px rgba(255, 107, 91, 0.35);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: var(--page-bg);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-store-badge svg {
  width: 22px;
  height: 22px;
}

/* ── Sections ── */

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

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

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ── Feature grid ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.feature-icon.tomato { background: var(--pale-tomato); }
.feature-icon.blue { background: rgba(100, 181, 246, 0.15); }
.feature-icon.green { background: rgba(76, 175, 80, 0.15); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Phase pills ── */

.phase-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

.phase-pill.focus { background: var(--pale-tomato); color: var(--tomato); }
.phase-pill.short { background: rgba(100, 181, 246, 0.15); color: var(--break-blue); }
.phase-pill.long { background: rgba(76, 175, 80, 0.15); color: var(--success-green); }

/* ── Content page (support / privacy) ── */

.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-header .meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 10px;
}

.card p,
.card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card ul,
.card ol {
  padding-left: 1.4rem;
  margin: 10px 0;
}

.card li {
  margin-bottom: 6px;
}

.card a {
  color: var(--tomato);
  text-decoration: none;
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
}

/* ── FAQ ── */

.faq-item {
  border-bottom: 1px solid var(--card-border);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-q {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Contact box ── */

.contact-box {
  background: linear-gradient(135deg, var(--pale-tomato), transparent);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-top: 24px;
}

.contact-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-box a.email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: var(--tomato);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.contact-box a.email:hover {
  background: var(--tomato-dark);
  transform: translateY(-1px);
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

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

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

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

/* ── Responsive ── */

@media (max-width: 600px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
