/* =========================================
   Cairn — cairnapp.com stylesheet
   Calm, earthy, ADHD-friendly design
   ========================================= */

:root {
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-900: #1c1917;

  --accent:    #7c6f5b;   /* warm stone */
  --accent-light: #a89880;
  --highlight: #e07b39;  /* terracotta — dopamine pop */
  --highlight-soft: #fdf0e8;

  --text-primary:   var(--stone-900);
  --text-secondary: var(--stone-500);
  --bg:             var(--stone-50);
  --bg-card:        #ffffff;
  --border:         var(--stone-200);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem);  font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-secondary); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--highlight-soft);
  color: var(--highlight);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--highlight); }

.hero-sub {
  font-size: 1.2rem;
  max-width: 540px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-direction: row;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}

.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

/* ── Platform badges ── */
.platforms {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.platforms-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone-300);
  margin-bottom: 20px;
}

.platform-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .8;
}

.platform-item.coming-soon { opacity: .4; }

.platform-item span {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.platform-item .badge {
  font-size: .6rem;
  background: var(--stone-200);
  color: var(--stone-500);
  padding: 1px 6px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Features ── */
.features-header { text-align: center; margin-bottom: 60px; }
.features-header p { margin-top: 12px; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { font-size: .92rem; }

/* ── Priorities table ── */
.priorities-section { background: var(--stone-100); }

.priorities-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.priorities-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.priority-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.priority-dot {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.priority-item h4 { font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.priority-item p  { font-size: .85rem; margin: 0; }

.priorities-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.pv-card.mit { border-left: 3px solid #ef4444; }
.pv-card.high { border-left: 3px solid #f97316; }
.pv-card.normal { border-left: 3px solid #3b82f6; }
.pv-card.someday { border-left: 3px solid #9ca3af; }

/* ── Privacy section ── */
.privacy-section { background: var(--stone-900); color: #fff; }
.privacy-section h2 { color: #fff; }
.privacy-section p  { color: var(--stone-300); }

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.privacy-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 24px;
}

.privacy-card .icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.privacy-card h3 { color: #fff; margin-bottom: 6px; }
.privacy-card p { font-size: .88rem; }

/* ── Download section ── */
.download-section { text-align: center; }
.download-section h2 { margin-bottom: 12px; }
.download-section > .container > p { margin-bottom: 40px; font-size: 1.05rem; }

.download-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 260px;
}

.download-card .platform-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.download-card p {
  font-size: .875rem;
  flex: 1;
}

.download-card.coming-soon {
  opacity: .6;
}

.coming-soon-tag {
  display: inline-block;
  background: var(--stone-200);
  color: var(--stone-500);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 100px;
}

/* ── Footer ── */
footer {
  background: var(--stone-100);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

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

.footer-links a {
  font-size: .875rem;
  color: var(--text-secondary);
}

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

.footer-copy {
  font-size: .8rem;
  color: var(--stone-300);
}

/* ── Support / Privacy page ── */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; }

.prose {
  max-width: 720px;
}

.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 28px 0 10px; color: var(--text-primary); }
.prose p  { margin-bottom: 16px; }
.prose ul { margin: 12px 0 16px 20px; }
.prose ul li { margin-bottom: 6px; color: var(--text-secondary); font-size: .95rem; }
.prose a  { color: var(--highlight); }
.prose a:hover { text-decoration: underline; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 12px;
  background: var(--bg-card);
}

.faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p  { font-size: .9rem; margin: 0; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .priorities-inner { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 72px 0 60px; }
}
