/* Relationship Tracker — warm paper, soft amber */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&display=swap");

:root {
  --bg: #f9f4ee;
  --bg-soft: #f3ebe1;
  --surface: #fffdf9;
  --card: #fffaf4;
  --text: #2d2a26;
  --text-secondary: #6a6258;
  --text-tertiary: #8a8176;
  --accent: #c4894a;
  --accent-hover: #a8733c;
  --accent-soft: rgba(196, 137, 74, 0.14);
  --border: rgba(45, 42, 38, 0.08);
  --shadow: 0 4px 28px rgba(45, 42, 38, 0.06);
  --shadow-soft: 0 16px 48px rgba(45, 42, 38, 0.08);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 980px;
  --max: 1040px;
  --content: 680px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", "New York", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(196, 137, 74, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(243, 235, 225, 0.9), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

a:hover { text-decoration: underline; }

h1, h2, h3, .heading-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 244, 238, 0.86);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { color: var(--accent); text-decoration: none; }

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text { line-height: 1.2; }

@media (max-width: 480px) {
  .logo-text { display: none; }
  .logo-icon { width: 36px; height: 36px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

.nav-cta {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-pill);
}

.nav-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.menu-btn {
  display: none;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .menu-btn { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; }
}

main { flex: 1; }

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

/* Hero */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.hero-copy { position: relative; z-index: 1; }

.kicker {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.08;
}

.hero-lead {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.35;
  color: var(--text);
}

.hero-body {
  margin: 0 0 28px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(196, 137, 74, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(196, 137, 74, 0.35);
  text-decoration: none;
}

.btn-store {
  background: var(--text);
  color: #fffdf9;
  cursor: default;
}

.btn-store:hover { transform: none; text-decoration: none; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(196, 137, 74, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-app-icon {
  position: relative;
  width: min(280px, 70vw);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(45, 42, 38, 0.12));
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-muted {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-title {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 48px;
}

.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(1.625rem, 4vw, 2.125rem);
}

.section-title p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.pillars {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.pillar-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.pillar h3 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
}

.pillar p {
  margin: 0;
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.trust-panel {
  max-width: 700px;
  margin: 0 auto;
  padding: 44px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.trust-panel blockquote {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.4;
}

.trust-panel > p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.cta {
  text-align: center;
  padding: 88px 24px;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.cta p {
  margin: 0 auto 28px;
  color: var(--text-secondary);
  max-width: 440px;
}

/* Legal / support pages */
.page-top {
  padding: 64px 24px 36px;
  text-align: center;
}

.page-top h1 {
  margin: 0 0 10px;
  font-size: clamp(1.875rem, 5vw, 2.5rem);
}

.page-top .lead {
  margin: 0 auto 8px;
  max-width: 480px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-top .sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.page-content {
  padding: 0 24px 88px;
}

.prose {
  max-width: var(--content);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow);
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 600;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

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

.prose p { margin: 0 0 14px; }

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 1.35rem;
}

.prose li { margin-bottom: 8px; }

.prose strong { color: var(--text); }

.prose .note {
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.support-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.support-card .app-meta {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.support-card .app-meta a {
  color: var(--text-secondary);
  font-weight: 500;
}

.support-card .app-meta a:hover { color: var(--accent); }

.contact-box {
  margin-top: 32px;
  padding: 32px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-box p { margin: 0 0 8px; color: var(--text-secondary); }

.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 48px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
}

.footer-tagline {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: left;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

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

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

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
