/* Apple Kost LP — design system
   Palette: maroon (brand dark), cream (paper), gold (accent), brand red (logo apple)
   Type: Fraunces (display) / Plus Jakarta Sans (body) */

:root {
  --maroon-950: #260607;
  --maroon-900: #35090b;
  --maroon-800: #4a0d10;
  --maroon-700: #6d1216;
  --red-600: #a51c22;
  --red-500: #c02329;
  --cream: #f6efe3;
  --ivory: #fbf8f1;
  --paper: #fffdf8;
  --line: #e6d9c3;
  --gold: #c2a14d;
  --gold-deep: #9f8340;
  --ink: #241418;
  --muted: #6f5d57;
  --ok: #2e7d4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 6, 7, 0.10);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
section { scroll-margin-top: 84px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.dark .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); max-width: 46rem; }
.dark .lead { color: rgba(246, 239, 227, 0.78); }

sup.fn { font-size: 0.6em; }
sup.fn a { color: inherit; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 10px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red-600); color: #fff;
  box-shadow: 0 8px 22px rgba(165, 28, 34, 0.35);
}
.btn-primary:hover { background: var(--red-500); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--gold-deep);
}
.dark .btn-ghost, .hero .btn-ghost { color: var(--cream); border-color: rgba(194, 161, 77, 0.7); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(194, 161, 77, 0.08); }
.btn-block { width: 100%; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(38, 6, 7, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(194, 161, 77, 0.22);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.topbar img.logo { height: 46px; width: auto; border-radius: 8px; }
.topbar .btn { padding: 10px 18px; font-size: 13.5px; }
.topbar .topbar-loc { display: none; color: rgba(246,239,227,.65); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 720px) { .topbar .topbar-loc { display: block; } }

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(94vh, 860px);
  padding: 130px 0 56px;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(38,6,7,0.55) 0%, rgba(38,6,7,0.15) 34%, rgba(38,6,7,0.55) 62%, rgba(38,6,7,0.93) 100%);
}
.hero .eyebrow { color: #dcb96a; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75); }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); max-width: 15em; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5); }
.hero h1 .gold { color: var(--gold); }
.hero .lead { margin-top: 18px; color: rgba(246, 239, 227, 0.9); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; }
.chip {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(194, 161, 77, 0.55);
  color: var(--cream); background: rgba(38, 6, 7, 0.35);
}

/* ---------- stat band ---------- */
.stats { background: var(--maroon-950); color: var(--cream); padding: 40px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
@media (min-width: 860px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold); }
.stat span { font-size: 13.5px; color: rgba(246, 239, 227, 0.72); }

/* ---------- sections ---------- */
.sec { padding: 84px 0; }
.sec-alt { background: var(--ivory); }
.sec-dark { background: linear-gradient(180deg, var(--maroon-950), var(--maroon-900)); color: var(--cream); }
.sec-head { max-width: 52rem; margin-bottom: 44px; }
.sec-head p { margin-top: 12px; }

/* ---------- pain / benefit cards ---------- */
.grid-3 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .k { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .pain { display: block; font-size: 13px; font-weight: 700; color: var(--red-600); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- income simulator ---------- */
.sim { border: 1px solid rgba(194, 161, 77, 0.35); border-radius: 18px; overflow: hidden; background: var(--maroon-900); }
.sim-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid rgba(194, 161, 77, 0.25); }
.sim-tab {
  flex: 1 1 auto; min-width: 110px;
  background: transparent; border: 0; color: rgba(246, 239, 227, 0.6);
  padding: 16px 10px; font-weight: 700; font-size: 14px;
  border-bottom: 3px solid transparent;
}
.sim-tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); background: rgba(194, 161, 77, 0.06); }
.sim-body { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 860px) { .sim-body { grid-template-columns: 1.2fr 1fr; } }
.sim-main { padding: 34px 30px; }
.sim-main .big {
  font-family: var(--font-display); font-weight: 600; color: var(--gold);
  font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 1.05;
}
.sim-main .big-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246,239,227,.6); margin-bottom: 8px; }
.sim-main .permo { margin-top: 6px; color: rgba(246, 239, 227, 0.8); font-size: 15px; }
.sim-facts { padding: 34px 30px; border-top: 1px solid rgba(194, 161, 77, 0.25); display: grid; gap: 14px; align-content: start; }
@media (min-width: 860px) { .sim-facts { border-top: 0; border-left: 1px solid rgba(194, 161, 77, 0.25); } }
.sim-fact { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; color: rgba(246, 239, 227, 0.75); border-bottom: 1px dashed rgba(194, 161, 77, 0.2); padding-bottom: 12px; }
.sim-fact b { color: var(--cream); font-weight: 700; text-align: right; }
.sim-cta { padding: 0 30px 34px; }
.sim-note { font-size: 12.5px; color: rgba(246, 239, 227, 0.5); margin-top: 14px; }

/* ---------- market proof ---------- */
.proof { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .proof { grid-template-columns: 1.1fr 1fr; gap: 44px; } }
.proof-figure { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.proof-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.proof-row:last-child { border-bottom: 0; }
.proof-row .occ { font-weight: 800; color: var(--ok); }
.proof-row .rate { color: var(--muted); }
.proof-us { margin-top: 14px; background: var(--maroon-950); color: var(--cream); border-radius: 10px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.proof-us b { color: var(--gold); }

/* ---------- gallery ---------- */
.gal { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .gal { grid-template-columns: repeat(3, 1fr); } }
.gal figure { position: relative; border-radius: 12px; overflow: hidden; background: var(--maroon-950); aspect-ratio: 4 / 3; }
.gal figure.wide { grid-column: span 2; aspect-ratio: 8 / 2.7; }
.gal figure.tall { grid-row: span 2; aspect-ratio: auto; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 14px 10px;
  background: linear-gradient(transparent, rgba(38, 6, 7, 0.85));
  color: var(--cream); font-size: 12.5px; font-weight: 600;
}
.real-tag {
  display: inline-block; margin-bottom: 16px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ok);
}

/* ---------- facilities ---------- */
.fac { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .fac { grid-template-columns: repeat(3, 1fr); } }
.fac-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.fac-item b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.fac-item span { font-size: 13px; color: var(--muted); }
.fac-item .ico { width: 34px; height: 34px; margin-bottom: 12px; color: var(--gold-deep); }
.fac-item .ico svg { width: 100%; height: 100%; }

/* ---------- trust / legal ---------- */
.trust { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .trust { grid-template-columns: 1fr 1.2fr; gap: 48px; } }
.trust-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dev-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.dev-stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.dev-stats span { font-size: 13px; color: rgba(246, 239, 227, 0.7); }
.dev-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.dev-gal figure { border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.dev-gal img { width: 100%; height: 100%; object-fit: cover; }
.dev-gal figcaption { font-size: 11px; margin-top: 6px; color: rgba(246, 239, 227, 0.6); }

/* ---------- payment ---------- */
.pay { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .pay { grid-template-columns: repeat(3, 1fr); } }
.pay .card b.title { font-family: var(--font-display); font-size: 1.1rem; display: block; margin-bottom: 6px; }
.pay-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- location ---------- */
.loc { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .loc { grid-template-columns: 1.2fr 1fr; gap: 44px; } }
.loc-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.loc-list { display: grid; gap: 10px; }
.loc-item { display: flex; gap: 12px; align-items: baseline; font-size: 15px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.loc-item .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--gold); flex: none; transform: translateY(-2px); }

/* ---------- faq ---------- */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 34px 20px 0;
  font-weight: 700; font-size: 15.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 22px; color: var(--gold-deep);
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; font-size: 14.5px; color: var(--muted); max-width: 42rem; }

/* ---------- final cta ---------- */
.final { text-align: center; padding: 96px 0; }
.final h2 { font-size: clamp(2rem, 5vw, 3rem); max-width: 21em; margin: 0 auto; }
.final .lead { margin: 16px auto 30px; }
.final .btn { min-width: 260px; }
.final .sub { margin-top: 14px; font-size: 13px; color: rgba(246, 239, 227, 0.55); }

/* ---------- footer ---------- */
footer { background: var(--maroon-950); color: rgba(246, 239, 227, 0.65); padding: 44px 0 120px; font-size: 13px; }
footer .frow { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
footer img.logo { height: 54px; border-radius: 8px; }
footer .disc { font-size: 11.5px; line-height: 1.7; color: rgba(246, 239, 227, 0.4); border-top: 1px solid rgba(194, 161, 77, 0.15); padding-top: 20px; }
footer a { color: rgba(246, 239, 227, 0.8); text-decoration: none; }

/* ---------- sticky bottom bar ---------- */
.stickybar {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(38, 6, 7, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(194, 161, 77, 0.3);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.stickybar.show { transform: translateY(0); }
.stickybar .btn { flex: 1; padding: 13px 10px; font-size: 14px; }
.stickybar .btn-ghost { color: var(--cream); border-color: rgba(194, 161, 77, 0.7); }
@media (min-width: 900px) {
  .stickybar { left: auto; right: 28px; bottom: 24px; border: 1px solid rgba(194,161,77,.35); border-radius: 14px; padding: 12px; width: 400px; }
}

/* ---------- modal form ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(20, 4, 5, 0.66);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 0;
}
.modal.open { display: flex; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal-card {
  background: var(--ivory); color: var(--ink);
  width: 100%; max-width: 460px; max-height: 92vh; overflow: auto;
  border-radius: 18px 18px 0 0; padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  animation: rise 0.28s ease;
}
@media (min-width: 640px) { .modal-card { border-radius: 18px; padding: 32px; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.modal-head h3 { font-size: 1.35rem; }
.modal-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); padding: 4px; }
.modal sub-copy { font-size: 14px; }
.modal .msub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.form-err { display: none; background: rgba(165, 28, 34, 0.08); border: 1px solid rgba(165, 28, 34, 0.35); color: var(--red-600); font-size: 13.5px; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.form-err.show { display: block; }
.form-fine { font-size: 11.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.hp { position: absolute; left: -5000px; opacity: 0; }
.modal-success { text-align: center; padding: 22px 0 8px; display: none; }
.modal-success.show { display: block; }
.modal-success .ok-ic { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--ok); }
.modal-success h3 { margin-bottom: 8px; }
.modal-success p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
