/* HomeBell marketing site — warm, paper-like tokens matching App/Support/Theme.swift */

:root {
  --paper: #FBF6EC;
  --paper-raised: #FFFDF7;
  --ink: #2E2A24;
  --ink-soft: #6B6154;
  --hairline: #E7DFCF;
  --walnut: #8B5E3C;
  --walnut-deep: #6F4A2E;
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

a { color: var(--walnut); }

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand svg { display: block; }

.nav a.link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}

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

@media (max-width: 640px) {
  .nav a.link { display: none; }
  .nav a.link.keep { display: inline; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero .device { margin: 0 auto; }
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 18px;
}

.hero p.sub {
  font-size: 20px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 34em;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 14px;
}

/* App Store badge (placeholder — swap for Apple's official badge asset before launch) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #FBF6EC;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 20px 10px 16px;
  line-height: 1.2;
}

.appstore-badge:hover { background: #1f1c17; }

.appstore-badge .small { display: block; font-size: 11px; opacity: 0.85; }
.appstore-badge .big { display: block; font-size: 18px; font-weight: 600; }

.hero .note {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Device frames & screenshot slots ---------- */

.device {
  background: var(--ink);
  border-radius: 44px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(46, 42, 36, 0.22);
}

.device.iphone { width: min(300px, 80vw); }

.device.ipad {
  width: min(560px, 92vw);
  border-radius: 32px;
  padding: 16px;
}

.device .screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(160deg, #FFFDF7 0%, #F3EBDB 100%);
}

.device.ipad .screen { border-radius: 18px; }

/* Portrait iPhone ≈ 1320×2868; portrait iPad 13" ≈ 2064×2752 */
.device.iphone .screen { aspect-ratio: 1320 / 2868; }
.device.ipad .screen { aspect-ratio: 2064 / 2752; }

.device .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Placeholder label shows through whenever the screenshot is missing */
.device .screen .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
  border: 2px dashed var(--hairline);
  border-radius: inherit;
  margin: 10px;
}

.device .screen .placeholder strong {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}

.device .screen .placeholder span { font-size: 12px; }

figure.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }

figure.shot figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

section.alt {
  background: var(--paper-raised);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

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

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
}

section.alt .feature { background: var(--paper); }

.feature .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(139, 94, 60, 0.12);
  color: var(--walnut);
  margin-bottom: 14px;
}

.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--ink-soft); }

/* Screenshot galleries */
.shots-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}

.ipad-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 72px;
}

.ipad-block .copy { max-width: 340px; }
.ipad-block .copy h3 { font-size: 24px; margin-bottom: 10px; }
.ipad-block .copy p { color: var(--ink-soft); font-size: 16px; }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }

.plan {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 32px 28px;
}

.plan.highlight { border-color: var(--walnut); box-shadow: 0 12px 32px rgba(139, 94, 60, 0.12); }

.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .price { font-family: var(--serif); font-size: 38px; margin: 10px 0 2px; }
.plan .cadence { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }

.plan ul { list-style: none; }
.plan li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 15px;
  color: var(--ink);
  border-top: 1px solid var(--hairline);
}
.plan li:first-child { border-top: none; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--walnut);
  border-bottom: 2px solid var(--walnut);
  transform: rotate(-45deg);
}

/* Privacy strip */
.privacy-strip { text-align: center; max-width: 640px; margin: 0 auto; }
.privacy-strip h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.privacy-strip p { color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 48px;
  color: var(--ink-soft);
  font-size: 14px;
}

footer.site .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}

footer.site a { color: var(--ink-soft); }
footer.site a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
