/* Property Agenda — marketing site
   Brand tokens mirror the app's design system (DesignSystem/Foundations/NidoColor.swift):
   dark "Lujo moderno" surfaces + champagne gold, Instrument Serif display type. */

:root {
  --bg-top: #17140f;
  --bg-bottom: #100e0a;
  --bg-alt-top: #1c1810;
  --bg-alt-bottom: #0d0b07;
  --card: #211d16;
  --card-deep: #181510;
  --ink: #f2ede3;
  --ink-secondary: #c8c1b2;
  --ink-muted: #9b9484;
  --gold: #c9a96a;
  --gold-soft: rgba(201, 169, 106, 0.14);
  --gold-border: rgba(201, 169, 106, 0.35);
  --on-gold: #14120e;
  --copper: #d98c5f;
  --border: rgba(242, 237, 227, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--ink-secondary); max-width: 640px; }

.gold-italic { font-style: italic; color: var(--gold); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(16, 14, 10, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
  font-size: 0.92rem;
  font-family: var(--sans);
  font-weight: 600;
}
.nav-links a { color: var(--ink-secondary); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--ink-secondary) !important;
}
.lang-switch:hover { border-color: var(--gold-border); color: var(--gold) !important; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 14px 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 8px 30px rgba(201, 169, 106, 0.25);
}
.btn-gold:hover { box-shadow: 0 10px 36px rgba(201, 169, 106, 0.35); }

.btn-ghost {
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

.store-badge { display: inline-block; }
.store-badge img, .store-badge svg { height: 54px; width: auto; }

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

.hero {
  padding: 84px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(201, 169, 106, 0.13), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .lead { margin: 22px 0 30px; }

.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-note { margin-top: 16px; font-size: 0.88rem; color: var(--ink-muted); }

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  font-size: 0.88rem;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink-secondary);
}
.trust span::before { content: "✦"; color: var(--gold); margin-right: 8px; font-size: 0.75rem; }

/* ---------- Phone frame ---------- */

.phone {
  width: min(310px, 78vw);
  margin: 0 auto;
  border-radius: 46px;
  border: 1px solid rgba(242, 237, 227, 0.16);
  background: #000;
  padding: 10px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(16, 14, 10, 0.9),
    0 0 90px rgba(201, 169, 106, 0.12);
}
.phone img { border-radius: 36px; }

.phone-sm { width: min(250px, 70vw); border-radius: 38px; padding: 8px; }
.phone-sm img { border-radius: 30px; }

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

section { padding: 88px 0; }
section.alt { background: linear-gradient(180deg, var(--bg-alt-top), var(--bg-alt-bottom)); }

.section-head { max-width: 680px; margin-bottom: 48px; }

/* ---------- Screenshots rail ---------- */

.shots {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 18px 6px 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--card); border-radius: 4px; }

.shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}
.shot figcaption {
  margin-top: 18px;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}
.shot figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.shot figcaption span { font-size: 0.88rem; color: var(--ink-muted); }

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: linear-gradient(160deg, var(--card), var(--card-deep));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-secondary); font-size: 0.97rem; }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* Steps (how it works) */
.step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}

/* Guide cards */
.guide-card { display: block; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
.guide-card:hover { text-decoration: none; border-color: var(--gold-border); transform: translateY(-2px); }
.guide-card h3 { font-size: 1.18rem; color: var(--ink); }
.guide-card .more { display: inline-block; margin-top: 14px; font-family: var(--sans); font-weight: 700; font-size: 0.88rem; color: var(--gold); }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }

.plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  margin-bottom: 16px;
}

.plan ul { list-style: none; margin: 18px 0 6px; }
.plan li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-secondary); font-size: 0.97rem; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.plan .fine { font-size: 0.84rem; color: var(--ink-muted); margin-top: 14px; }

.plan-pro { border-color: var(--gold-border); box-shadow: 0 18px 60px rgba(201, 169, 106, 0.1); }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--card), var(--card-deep));
  margin-bottom: 14px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; color: var(--gold); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-secondary); font-size: 0.97rem; }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 169, 106, 0.12), transparent 65%);
  pointer-events: none;
}
.cta-band .lead { margin: 16px auto 34px; }

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

footer {
  border-top: 1px solid var(--border);
  padding: 54px 0 40px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; margin-bottom: 34px; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--ink-muted); padding: 4px 0; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Article / guide / legal pages ---------- */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}
.article header { margin-bottom: 38px; }
.article h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
.article h2 { font-size: 1.7rem; margin: 44px 0 14px; }
.article h3 { margin: 30px 0 10px; }
.article p, .article li { color: var(--ink-secondary); font-size: 1.03rem; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }
.article .meta { font-size: 0.88rem; color: var(--ink-muted); }
.article figure { margin: 34px auto; }
.article figcaption { text-align: center; font-size: 0.85rem; color: var(--ink-muted); margin-top: 14px; }
.article .breadcrumbs { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 22px; }
.article .breadcrumbs a { color: var(--ink-muted); }
.article .breadcrumbs a:hover { color: var(--gold); }

.article-cta {
  margin: 44px 0 8px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  background: linear-gradient(160deg, var(--card), var(--card-deep));
  text-align: center;
}
.article-cta h2 { margin: 0 0 8px; }
.article-cta p { margin-bottom: 20px; }

.related { margin-top: 48px; }
.related h2 { font-size: 1.4rem; }
.related a { display: block; padding: 6px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .trust { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .plans { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links .nav-anchor { display: none; }
  section { padding: 64px 0; }
}
