/* ============================================================
   Pillizer — Global Stylesheet (Launch UI · Light Theme)
   ============================================================ */

:root {
  --primary:        #0EA5E9;
  --primary-dark:   #0284C7;
  --primary-light:  #38BDF8;
  --primary-dim:    rgba(14, 165, 233, 0.1);
  --primary-dim2:   rgba(14, 165, 233, 0.18);
  --accent:         #06B6D4;
  --bg:             #ffffff;
  --bg-soft:        #f8fafc;
  --bg-alt:         #f1f5f9;
  --bg-card:        #ffffff;
  --border:         #e2e8f0;
  --border-hover:   #cbd5e1;
  --text:           #334155;
  --text-muted:     #64748b;
  --text-heading:   #0f172a;
  --link:           #0EA5E9;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-card:    0 4px 24px rgba(0,0,0,.08);
  --shadow-phone:   0 24px 64px rgba(14,165,233,.2), 0 8px 24px rgba(0,0,0,.12);
  --transition:     0.2s ease;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }
p  { color: var(--text); }

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: underline; }
ul { list-style: none; }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-soft); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-heading);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text-heading); text-decoration: none; }
.logo__pill { font-size: 1.25rem; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--text-heading); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   Eyebrow
   ============================================================ */
.eyebrow {
  display: inline-block;
  background: var(--primary-dim);
  color: var(--primary-dark);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.eyebrow--light {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(160deg, #f0f9ff 0%, #ffffff 55%, #f0fdf4 100%);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__web {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero__web a { color: var(--link); font-weight: 500; }

/* ---- Phone mockup ---- */
.hero__visual {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  background: #1e293b;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-phone);
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: #0f172a;
  border-radius: 4px;
  z-index: 2;
}

.phone-screen {
  background: #f8fafc;
  border-radius: 26px;
  padding: 20px 16px 16px;
  overflow: hidden;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 8px;
}
.mock-time { font-size: 0.75rem; color: #64748b; font-weight: 600; }
.mock-title { font-size: 0.9375rem; font-weight: 700; color: #0f172a; }

.mock-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
}
.mock-pill--done { opacity: 0.6; }
.mock-pill--now { border-color: #0EA5E9; background: #f0f9ff; }

.mock-pill-icon { font-size: 1.125rem; }
.mock-pill-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mock-pill-name { font-size: 0.75rem; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pill-time { font-size: 0.6875rem; color: #64748b; }

.mock-pill-status {
  font-size: 0.875rem;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}
.mock-status--done { color: #22c55e; }
.mock-status--now {
  color: #fff;
  background: #0EA5E9;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.mock-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
  padding: 12px 0 4px;
  border-top: 1px solid #e2e8f0;
}
.mock-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mock-stat-val { font-size: 1rem; font-weight: 700; color: #0f172a; }
.mock-stat-label { font-size: 0.6rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }

/* ============================================================
   Stats Strip
   ============================================================ */
.stats-strip {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.stats-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  text-align: center;
}
.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}
.stat-desc { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ============================================================
   Section Header
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 12px auto 0;
  font-size: 1rem;
}

/* ============================================================
   For Whom
   ============================================================ */
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fw-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.fw-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.fw-card--accent {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}

.fw-card__icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  display: block;
}

.fw-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin-bottom: 22px;
  border-radius: 20px;
  background: #f0f9ff;
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.14);
}

.fw-card h3 {
  margin-bottom: 10px;
  color: var(--text-heading);
}

.fw-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.fw-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fw-list li {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fw-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   Features Grid
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feat-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px var(--primary-dim), var(--shadow-card);
  transform: translateY(-2px);
}

.feat-card__icon {
  font-size: 1.875rem;
  margin-bottom: 14px;
  display: block;
}

.feat-card__image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
  border-radius: 22px;
  background: #f0f9ff;
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.14);
}

.feat-card h3 {
  margin-bottom: 8px;
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 700;
}

.feat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   Steps
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; font-size: 1rem; }
.step p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

.step__arrow {
  font-size: 1.5rem;
  color: var(--border-hover);
  padding-top: 14px;
  flex-shrink: 0;
}

/* ============================================================
   Privacy Section
   ============================================================ */
.privacy-section {
  background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 100%);
}

.privacy-block {
  display: flex;
  align-items: center;
  gap: 64px;
}

.privacy-block__content { flex: 1; }

.privacy-block__content h2 {
  color: #fff;
  margin-bottom: 16px;
}
.privacy-block__content p {
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.privacy-list li {
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
}

.privacy-block__icon {
  font-size: 6rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.privacy-block__image {
  width: min(380px, 36vw);
  aspect-ratio: 1;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 32px;
  box-shadow: 0 28px 72px rgba(6, 182, 212, 0.2);
}

/* ============================================================
   Download Section
   ============================================================ */
.download-section {
  background: var(--bg-soft);
}

.download-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.download-block h2 { margin-bottom: 12px; }
.download-block p  { color: var(--text-muted); margin-bottom: 36px; }

.download-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--text-heading);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 160px;
}
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn div { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.store-btn div span { font-size: 0.75rem; opacity: 0.7; }
.store-btn div strong { font-size: 0.9375rem; font-weight: 700; }
.store-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  text-decoration: none;
  color: #fff;
}

.store-btn--ghost {
  background: transparent;
  color: var(--text-heading);
  border: 1.5px solid var(--border-hover);
  box-shadow: none;
}
.store-btn--ghost:hover {
  background: var(--bg-alt);
  color: var(--text-heading);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.45);
  text-decoration: none;
  color: #ffffff;
}
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-hover);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-dim);
  color: var(--primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  text-decoration: none;
  color: #fff;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__links a { color: var(--text-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--text-heading); text-decoration: none; }
.footer__copy { color: var(--text-muted); font-size: 0.875rem; }

/* ============================================================
   Page Content (privacy / terms / support / delete-account)
   ============================================================ */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page-content h1 { margin-bottom: 8px; }
.page-content .page-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 48px; }

.page-content h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; }
.page-content ul li { list-style: disc; }
.page-content ol li { list-style: decimal; }
.page-content strong { color: var(--text); }
.page-content a { color: var(--link); }

/* ---- Support / FAQ ---- */
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-bottom: 56px;
}
.contact-card .contact-email {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  margin-top: 12px;
}

/* FAQ accordion */
.faq { margin-bottom: 40px; }
.faq h2 { text-align: center; margin-bottom: 32px; border: none; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item input[type="checkbox"] { display: none; }
.faq-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  transition: color var(--transition);
  user-select: none;
}
.faq-item label:hover { color: var(--text-heading); }
.faq-item label::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}
.faq-item input:checked + label::after { transform: rotate(45deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item input:checked ~ .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: 20px; color: var(--text-muted); }

/* ---- Delete account ---- */
.delete-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 24px;
}
.delete-notice p { color: #dc2626; font-size: 0.9375rem; margin: 0; }

.method-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.method-block h3 { margin-bottom: 16px; }
.method-block ol { padding-left: 20px; margin: 0; }
.method-block ol li { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 8px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .for-whom-grid  { grid-template-columns: 1fr; gap: 16px; }
  .features-grid  { grid-template-columns: repeat(2, 1fr); }

  .steps {
    flex-wrap: wrap;
    justify-content: center;
  }
  .step { min-width: 180px; }
  .step__arrow { display: none; }

  .privacy-block { flex-direction: column; gap: 32px; text-align: center; }
  .privacy-block__content p { margin-left: auto; margin-right: auto; }
  .privacy-block__icon { font-size: 4rem; }
  .privacy-block__image { width: min(320px, 100%); }

  .hero__inner { flex-direction: column; gap: 48px; text-align: center; }
  .hero h1    { -webkit-text-fill-color: unset; background: none; color: var(--text-heading); }
  .hero__subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__actions  { justify-content: center; }
}

@media (max-width: 768px) {
  .nav { gap: 0; }
  .nav a:not(.btn-primary) { display: none; }
  .nav-toggle { display: flex; }

  .header.nav-open .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 0;
  }
  .header.nav-open .nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .header.nav-open .nav a:last-child { border-bottom: none; }

  .features-grid { grid-template-columns: 1fr; }

  .stats-strip__inner { justify-content: center; gap: 8px; }
  .stat-divider { display: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact-card { padding: 28px 20px; }
  .store-btn { width: 100%; max-width: 280px; }
  .download-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .hero { padding: 100px 0 60px; }
  .page-content { padding: 100px 16px 60px; }
  .phone-mockup { width: 220px; }
}
