/* ========================================
   OneHP Lab — Shared Styles
   ======================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #666666;
  --color-accent: #2a9d8f;
  --color-accent-hover: #21867a;
  --color-border: #e5e5e5;
  --color-surface: #f8f8f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-text: #e8e8e8;
    --color-text-secondary: #999999;
    --color-accent: #3dbfad;
    --color-accent-hover: #5cd4c4;
    --color-border: #2a2a2a;
    --color-surface: #1a1a1a;
  }
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header */
.site-header {
  padding: 2rem 0 1rem;
}

.site-header a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-header a:hover {
  color: var(--color-accent);
}

/* Main Content */
main {
  flex: 1;
  padding: 2rem 0 4rem;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Hero Section (Landing) */
.hero {
  text-align: center;
  padding: 8rem 0 4rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

/* App Card (Landing) */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(42, 157, 143, 0.1);
  text-decoration: none;
}

.app-card-icon-img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.app-card-info {
  text-align: left;
}

.app-card-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.app-card-info p {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* App Header (App Pages) */
.app-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.app-icon-img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.app-header-text {
  text-align: left;
}

.app-title {
  margin-bottom: 0;
}

.app-tagline {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Features List */
.features {
  list-style: none;
  padding: 0;
}

.features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-secondary);
}

.features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* App Store Badge */
.app-store-link {
  display: inline-block;
  margin-top: 1rem;
}

.app-store-badge {
  height: 44px;
  border-radius: 8px;
}

/* Sections */
.section {
  margin-top: 3rem;
}

.section p {
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

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

/* Privacy Policy Specific */
.policy-content h2 {
  margin-top: 2.5rem;
}

.policy-content p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.policy-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.policy-content ul li {
  padding: 0.25rem 0;
}

.effective-date {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
  .hero {
    padding: 5rem 0 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .app-header {
    gap: 1rem;
  }

  .app-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }
}
