/* =====================================================
   BeihilfeBuddy — Site styles
   Cream + Sage palette, matches the iOS app
   ===================================================== */

:root {
  --sage: #8FB89C;
  --sage-deep: #4F7A60;
  --sage-deeper: #36573F;
  --sage-soft: #C8DCCF;
  --sage-mist: #E4EEE7;
  --cream: #F4EFE6;
  --cream-deep: #EAE3D5;
  --ink: #1A1F1B;
  --ink-soft: #5B6560;
  --ink-mute: #8C9690;
  --white: #ffffff;
  --blush: #F5C9BC;
  --amber: #E8B86B;
  --rose: #F5A3A3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sage-deep); }

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

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }
section + section { padding-top: 0; }
#faq { padding-top: 72px; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(244, 239, 230, 0.75);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-icon {
  width: 36px; height: 36px;
  border-radius: 8.05px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 0 0 1px rgba(0,0,0,0.04), 0 6px 14px -8px rgba(20,30,25,0.25);
  overflow: hidden;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-cta {
  background: var(--sage-deep);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
}
.nav-cta:hover { color: #fff; background: var(--sage-deeper); }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--sage-deep); }
.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary:hover { color: #fff; background: #000; }
.btn-secondary {
  padding: 14px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.platform-chips {
  display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sage-mist);
  color: var(--sage-deeper);
  font-size: 12px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}
.hero-phone {
  width: 280px;
  filter: drop-shadow(0 40px 60px rgba(54, 87, 63, 0.22));
  transform: rotate(-3deg);
  border-radius: 44px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--sage-soft) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(20px);
}
.hero-floating {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 20px 40px -15px rgba(20,30,25,0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}
.hero-floating .badge {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--sage-mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep);
}
.hero-floating.f1 { top: 16%; left: 0%; }
.hero-floating.f2 { bottom: 18%; right: 0%; }

/* ---- Section heading ---- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 700;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
  text-wrap: balance;
}
.section-head p {
  font-size: 18px; color: var(--ink-soft); margin: 0; line-height: 1.55;
  text-wrap: pretty;
}

/* ---- Devices showcase ---- */
.devices-stage {
  background: #fff;
  border-radius: 40px;
  padding: 72px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 30px 80px -50px rgba(20,30,25,0.2);
}
.devices-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 100%, var(--sage-mist) 0%, transparent 70%);
  pointer-events: none;
}
.devices-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.device-mac {
  width: 620px;
  max-width: 100%;
  position: relative;
}
.device-iphone {
  width: 220px;
  position: relative;
  margin-bottom: -40px;
}
.device-ipad {
  width: 420px;
  position: relative;
  margin-bottom: 20px;
}
.device-iphone img, .device-ipad img {
  width: 100%;
  border-radius: 36px;
  filter: drop-shadow(0 30px 50px rgba(20,30,25,0.18));
}
.device-ipad img { border-radius: 24px; }

/* Mac window */
.mac-window {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 0 0 1px rgba(0,0,0,0.06), 0 40px 70px -30px rgba(20,30,25,0.28);
}
.mac-titlebar {
  background: linear-gradient(180deg, #f3f0e8, #ebe5d8);
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.mac-title {
  flex: 1; text-align: center; font-size: 12px; color: var(--ink-soft); font-weight: 600;
}
.mac-body { display: grid; grid-template-columns: 200px 1fr; min-height: 360px; }
.mac-sidebar {
  background: var(--cream);
  padding: 18px 12px;
  border-right: 1px solid rgba(0,0,0,0.05);
}
.mac-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
}
.mac-sidebar-item.active {
  background: var(--sage-mist);
  color: var(--sage-deeper);
  font-weight: 600;
}
.mac-sidebar-section {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-mute); padding: 14px 10px 6px; font-weight: 600;
}
.mac-content { padding: 24px; }
.mac-headline {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.mac-headline h3 { font-size: 18px; margin: 0; font-weight: 700; }
.mac-summary {
  background: var(--sage);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.mac-summary .label { font-size: 12px; opacity: 0.9; font-weight: 500; }
.mac-summary .title { font-weight: 600; }
.mac-summary .amount { font-size: 22px; font-weight: 700; }
.mac-invoice {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.mac-invoice .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--ink-soft);
}
.mac-invoice .name { font-weight: 600; font-size: 13px; }
.mac-invoice .sub { font-size: 11px; color: var(--ink-mute); }
.mac-invoice .amt { font-weight: 700; font-size: 14px; }
.mac-tags { display: flex; gap: 6px; grid-column: 2; }
.tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.tag.amber { background: rgba(232,184,107,0.2); color: #a87724; }
.tag.rose { background: rgba(245,163,163,0.18); color: #b14747; }
.tag.sage { background: var(--sage-mist); color: var(--sage-deeper); }

/* ---- Benefits ---- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.benefit {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 18px 40px -25px rgba(20,30,25,0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefit-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-mist);
  color: var(--sage-deep);
}
.benefit-icon.amber { background: rgba(232,184,107,0.18); color: #a87724; }
.benefit-icon.rose { background: rgba(245,163,163,0.18); color: #b14747; }
.benefit-icon.blue { background: #DBE7F2; color: #3e6a93; }
.benefit h3 { font-size: 20px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.benefit p { color: var(--ink-soft); margin: 0; font-size: 15px; line-height: 1.55; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}
.price-card.premium {
  background: var(--sage-deep);
  color: #fff;
  position: relative;
}
.price-card.premium .price-list svg { color: var(--sage-soft); }
.price-tier { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; opacity: 0.7; }
.price-card.premium .price-tier { color: var(--sage-soft); opacity: 1; }
.price-name { font-size: 26px; font-weight: 700; margin: 8px 0 4px; }
.price-amount {
  display: flex; align-items: baseline; gap: 6px;
  margin: 20px 0;
}
.price-amount .num { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; }
.price-amount .per { color: var(--ink-soft); font-size: 14px; }
.price-card.premium .price-amount .per { color: var(--sage-soft); }
.price-tag {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--sage);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.price-list {
  list-style: none;
  padding: 0; margin: 0 0 28px 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px;
}
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list svg { flex-shrink: 0; margin-top: 2px; color: var(--sage-deep); }
.price-cta {
  margin-top: auto;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.price-card .price-cta {
  background: var(--ink); color: #fff;
}
.price-card.premium .price-cta {
  background: #fff; color: var(--sage-deeper);
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(0,0,0,0.04);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 400;
  color: var(--ink-soft);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); margin: 12px 0 0; font-size: 15px; line-height: 1.6; }

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: #d0d5d1;
  padding: 64px 0 40px;
  margin-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h4 {
  color: #fff; font-size: 13px; margin: 0 0 14px;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 12px;
  color: #8a948c;
}

/* ---- Legal pages ---- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}
.legal h1 {
  font-size: 44px; letter-spacing: -0.02em;
  margin: 0 0 8px; font-weight: 700;
}
.legal .legal-sub { color: var(--ink-soft); margin: 0 0 48px; }
.legal h2 {
  font-size: 22px; margin: 40px 0 12px;
  font-weight: 700; letter-spacing: -0.01em;
}
.legal h3 {
  font-size: 16px; margin: 24px 0 8px; font-weight: 700;
}
.legal p, .legal li {
  color: var(--ink-soft); line-height: 1.7; font-size: 16px;
}
.legal a { color: var(--sage-deep); text-decoration: underline; }
.legal .placeholder {
  background: rgba(232, 184, 107, 0.2);
  color: #6b4d11;
  padding: 1px 8px;
  border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
}
.legal .tile {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 20px 0;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage-deep);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 420px; }
  .devices-row { flex-direction: column; align-items: center; gap: 32px; }
  .device-iphone, .device-ipad { margin: 0; }
  .device-mac { width: 100%; }
  .mac-body { grid-template-columns: 1fr; }
  .mac-sidebar { display: none; }
  .benefits { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .devices-stage { padding: 40px 16px; }
}
