/* Developments: the launch landing page and one page per launch.
   Same palette and type as the main site and the calculator. Sharp corners everywhere.
   Light only, like the rest of atallaproperty.com. */
:root {
  --paper: #fffdf1; --ink: #0b0b0a; --accent: #ff2244;
  --muted: #595950; --body: #2b2b27; --line: #d9d8ce; --line-dark: #2c2c29; --soft: #b8b7ae; --cream: #e9e8dc;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 0.7, 0.25, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.02em; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; }
.brand { font-size: 20px; font-weight: 650; line-height: 1.2; }
.brand span { display: block; font-size: 11px; font-weight: 400; letter-spacing: .04em; margin-top: 4px; color: var(--muted); }
.header-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size .35s var(--ease-out); }
.text-link:hover { background-size: 100% 1px; }

/* Buttons: one red primary, one outline secondary */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; padding: 14px 22px; font-size: 15px; font-weight: 600; white-space: nowrap; background: var(--accent); color: var(--ink); transition: background-color .2s, transform .14s; }
.btn:hover { background: #ff4a66; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn--line:hover { background: rgba(255, 253, 241, .08); }
.btn span[aria-hidden] { font-size: 18px; line-height: 1; transition: transform .25s var(--ease-out); }
.btn:hover span[aria-hidden] { transform: translate(2px, -2px); }

.stamp { display: inline-block; padding: 7px 11px 6px; border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.dots { color: var(--accent); font-weight: 700; }

/* ============ Launch page: hero ============ */
.hero { background: var(--ink); color: var(--paper); }
.hero .site-header { border-bottom: 1px solid var(--line-dark); }
.hero .brand span { color: var(--soft); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-block: 48px 56px; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero__kicker { font-family: var(--mono); font-size: 13px; color: var(--soft); margin-top: 26px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(60px, 8.6vw, 128px); line-height: .9; font-weight: 650; letter-spacing: -.065em; margin-top: 12px; }
.hero__lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: var(--cream); max-width: 30ch; margin-top: 24px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--line-dark); }
.facts > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line-dark); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.facts > div:nth-child(even) { padding-left: 20px; }
.facts dt { font-size: 13px; color: var(--soft); }
.facts dd { font-size: 20px; font-weight: 600; letter-spacing: -.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.status { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 15px; color: var(--cream); }
.status b { color: var(--paper); font-weight: 600; }
.pulse { position: relative; width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; }
.pulse::after { content: ''; position: absolute; inset: -5px; border: 1px solid var(--accent); opacity: 0; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.6); } }
.hero__photo { position: relative; min-height: 600px; overflow: hidden; background: #1a1a18; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* A hero picture with the pin drawn in: keep its exact shape so the label is never cropped. */
.hero__photo--pinned { min-height: 0; aspect-ratio: 1 / 1; align-self: center; }
.hero__photo--pinned img { object-position: 50% 50%; }
.hero h1.h1--long { font-size: clamp(52px, 6.6vw, 100px); line-height: .92; }

/* ============ Launch page: body with rail ============ */
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 80px; }
.rail { position: sticky; top: 0; align-self: start; padding-top: 72px; }
.rail a { display: grid; grid-template-columns: 30px 1fr; align-items: center; min-height: 40px; font-size: 14px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 14px; transition: color .2s, border-color .2s; }
.rail a span { font-family: var(--mono); font-size: 11px; }
.rail a:hover { color: var(--ink); }
.rail a[aria-current="true"] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.rail a[aria-current="true"] span { color: var(--accent); }

.step { padding-block: 72px; border-top: 1px solid var(--line); scroll-margin-top: 56px; }
.step:first-child { border-top: 0; }
.step h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.02; font-weight: 650; letter-spacing: -.055em; max-width: 17ch; text-wrap: balance; }
.flag { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--body); max-width: 46ch; margin-top: 20px; }

/* Layout family 1: wide photo, then text */
.wide-photo { aspect-ratio: 16 / 8; overflow: hidden; background: #e9e7da; margin-bottom: 36px; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
.wide-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.wide-copy .lead { margin-top: 0; }

/* Layout family 2: split, text beside a tall photo */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.split--flip > figure { order: -1; }
.split figure { aspect-ratio: 4 / 5; overflow: hidden; background: #e9e7da; }
.split figure img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: 32px; }
.stats > div { display: flex; flex-direction: column; padding: 18px 18px 4px 0; }
.stats > div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.stats dt { order: 2; font-size: 15px; color: var(--muted); margin-top: 8px; }
.stats dd { order: 1; white-space: nowrap; font-size: clamp(34px, 3.2vw, 48px); line-height: 1; font-weight: 650; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
/* Row layout: number left, label right. Used for long figures, and for every stat on a phone. */
.stats--rows { grid-template-columns: 1fr; }
.stats--rows > div, .stats--rows > div + div { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
.stats--rows dt { margin-top: 0; text-align: right; max-width: 48%; line-height: 1.35; }
.note { display: flex; gap: 12px; font-size: 16px; color: var(--body); margin-top: 22px; max-width: 46ch; }
.note::before { content: ''; width: 6px; height: 6px; background: var(--accent); margin-top: 9px; flex-shrink: 0; }
.note + .note { margin-top: 10px; }
/* Terms: label left, value right (payment plan, launch date) */
.terms { margin-top: 26px; border-top: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.terms dd { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
/* Numbered list: reasons and watchouts */
.numlist { list-style: none; counter-reset: n; margin-top: 30px; border-top: 1px solid var(--ink); max-width: 62ch; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.45; color: var(--body); }
.numlist li::before { content: counter(n); font-size: 22px; font-weight: 650; letter-spacing: -.04em; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
.verdict { margin-top: 26px; padding: 18px 20px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 550; max-width: 46ch; }

/* Layout family 3: the number, no photo */
.record__big { font-size: clamp(64px, 11vw, 168px); line-height: .9; font-weight: 700; letter-spacing: -.065em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 36px; }
.record { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; margin-top: 28px; align-items: center; }
.record__cap { font-size: 17px; color: var(--body); max-width: 36ch; }
.then-now { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; background: var(--ink); color: var(--paper); padding: 30px; }
.then-now dt { font-size: 13px; color: var(--soft); }
.then-now dd { font-size: clamp(28px, 2.8vw, 42px); font-weight: 650; letter-spacing: -.05em; line-height: 1.05; margin-top: 6px; white-space: nowrap; }
.then-now p { font-size: 13px; color: var(--soft); margin-top: 8px; }
.then-now .arrow { font-size: 30px; color: var(--accent); }
.source { font-size: 13px; color: var(--muted); margin-top: 24px; }

/* Timeline (sits under a wide photo) */
.timeline { margin-top: 44px; }
.timeline__ends { display: flex; justify-content: space-between; gap: 20px; }
.timeline__ends b { display: block; font-size: clamp(30px, 3vw, 46px); font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.timeline__ends span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.timeline__ends > div:last-child { text-align: right; }
.timeline__bar { position: relative; height: 6px; margin-top: 20px; }
.timeline__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; }
.timeline__span { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 14px; }

/* My take */
.take { background: var(--ink); color: var(--paper); }
.take__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; padding-block: 88px; align-items: center; }
.take__photo { aspect-ratio: 4 / 5; overflow: hidden; background: #1a1a18; }
.take__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.take h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--soft); }
.take blockquote { margin-top: 18px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -.045em; max-width: 21ch; text-wrap: balance; }
.take blockquote::before { content: '\201C'; color: var(--accent); }
.take blockquote::after { content: '\201D'; color: var(--accent); }
.take__body { font-size: 19px; color: var(--cream); margin-top: 22px; max-width: 40ch; }
.take__sig { font-size: 14px; color: var(--soft); margin-top: 14px; }
.cta { margin-top: 40px; border-top: 1px solid var(--line-dark); padding-top: 30px; }
.cta h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; max-width: 32ch; }
.cta h3 b { color: var(--accent); font-family: var(--mono); font-weight: 600; letter-spacing: .04em; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cta > .cta__buttons:first-child { margin-top: 0; }

/* Footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-block: 26px; font-size: 13px; color: var(--muted); }
.site-footer a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* Mobile step bar (launch page), hidden on desktop */
.stepbar { display: none; }

/* Scroll reveal: content shows without JS. JS adds .js to <html>. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .timeline__bar i { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .25s; }
.js .timeline.is-in .timeline__bar i { transform: scaleX(1); }

/* ============ Developments index ============ */
.index-header { border-bottom: 1px solid var(--line); }
.index-intro { padding-block: 72px 48px; }
.index-intro h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: .95; font-weight: 650; letter-spacing: -.065em; max-width: 14ch; }
.index-intro .lead { font-size: 20px; max-width: 52ch; margin-top: 26px; }
.launch-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); background: var(--ink); color: var(--paper); }
.launch-card__photo { position: relative; min-height: 520px; overflow: hidden; background: #1a1a18; }
.launch-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 1.4s var(--ease-out); }
.launch-card:hover .launch-card__photo img { transform: scale(1.03); }
.launch-card__body { padding: 36px; display: flex; flex-direction: column; }
.launch-card__meta { font-family: var(--mono); font-size: 12px; color: var(--soft); margin-top: 22px; }
.launch-card h2 { font-size: clamp(44px, 4.6vw, 68px); font-weight: 650; letter-spacing: -.065em; line-height: .92; margin-top: 10px; }
.launch-card__line { font-size: 17px; color: var(--cream); margin-top: 16px; max-width: 32ch; }
.launch-card .facts { margin-top: 28px; }
.launch-card .facts dd { font-size: 17px; }
.launch-card__go { margin-top: auto; padding-top: 32px; }
.launch-card__go .btn { width: 100%; }
.launch-card:hover .btn { background: #ff4a66; }
.devs { padding-block: 80px 64px; }
.devs h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; font-weight: 650; letter-spacing: -.05em; }
.devs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.dev { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1; overflow: hidden; padding: 20px; background: var(--ink); color: var(--paper); }
.dev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 1.2s var(--ease-out); }
.dev::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 10, .94) 0%, rgba(11, 11, 10, .72) 42%, rgba(11, 11, 10, .2) 72%, rgba(11, 11, 10, 0) 88%); }
.dev__text { position: relative; z-index: 1; }
.dev__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; line-height: 1.35; color: var(--cream); }
.dev h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1; font-weight: 650; letter-spacing: -.05em; margin-top: 6px; }
.dev__facts { font-size: 14px; color: var(--cream); margin-top: 8px; }
a.dev:hover img { transform: scale(1.04); }
a.dev:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dev--soon { background: transparent; color: var(--muted); border: 1px dashed #b9b8ad; }
.dev--soon::after { display: none; }
.dev--soon .dev__meta { color: var(--muted); }
.dev--soon h3 { color: #8a8a80; }
.follow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 32px; margin-block: 48px 72px; border: 1px solid var(--ink); }
.follow h2 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.follow p { font-size: 15px; color: var(--muted); margin-top: 4px; max-width: 48ch; }
.follow .btn--line:hover { background: rgba(11, 11, 10, .05); }
.follow .cta__buttons { margin-top: 0; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .rail { display: none; }
  .stepbar { display: block; position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 241, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .stepbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; font-size: 14px; font-weight: 600; }
  .stepbar__inner span { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
  .stepbar__track { height: 2px; }
  .stepbar__track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease-out); }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .header-links .text-link { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 20px 44px; }
  .hero__photo, .hero__photo--pinned { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero__kicker { margin-top: 20px; }
  .facts dd { font-size: 17px; }
  .step { padding-block: 52px; }
  .wide-photo { aspect-ratio: 4 / 3; margin-bottom: 26px; }
  .wide-copy, .split, .split--flip, .record, .take__grid { grid-template-columns: 1fr; gap: 26px; }
  .split figure, .split--flip figure { order: -1; aspect-ratio: 4 / 3; }
  .lead { font-size: 17px; }
  .then-now { padding: 22px; gap: 12px; }
  .take__grid { padding-block: 56px; }
  .take__photo { aspect-ratio: 1 / 1; }
  .cta__buttons .btn { width: 100%; }
  .index-intro { padding-block: 44px 32px; }
  .launch-card { grid-template-columns: 1fr; }
  .launch-card__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .launch-card__body { padding: 26px 22px; }
  .devs { padding-block: 56px 48px; }
  .devs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dev { padding: 14px; }
  .dev h3 { font-size: 22px; }
  .dev__facts { font-size: 13px; }
  .follow { grid-template-columns: 1fr; padding: 22px; margin-block: 32px 48px; }
}
@media (max-width: 560px) {
  /* Phone: each stat becomes a row, number left and label right, so long figures never wrap. */
  .stats { grid-template-columns: 1fr; margin-top: 24px; }
  .stats > div, .stats > div + div { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stats dd { font-size: 34px; }
  .stats dt { margin-top: 0; text-align: right; max-width: 48%; font-size: 14px; line-height: 1.35; }
  .terms > div { grid-template-columns: 1fr; gap: 4px; }
  .numlist li { grid-template-columns: 32px minmax(0, 1fr); font-size: 16px; padding: 15px 0; }
  .numlist li::before { font-size: 19px; }
  .then-now { grid-template-columns: 1fr; }
  .then-now .arrow { transform: rotate(90deg); justify-self: start; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .facts > div { padding-right: 10px; }
  .facts > div:nth-child(even) { padding-left: 14px; }
  .then-now dd { font-size: 24px; }
  .header-links .btn { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse::after { animation: none; }
  .js .reveal, .js .timeline__bar i { opacity: 1; transform: none; transition: none; }
  .launch-card__photo img, .dev img, .btn span[aria-hidden] { transition: none; }
}
