/* ============================================================
   Align — landing page
   Apple-adjacent system: white bands, near-black type,
   one semantic blue, black pill CTAs.
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-band: #f5f5f7;
  --color-text: #1d1d1f;
  --color-secondary: #6e6e73;
  --color-accent: #0071e3;
  --color-hairline: rgba(0, 0, 0, 0.12);

  --text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --text-h2: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1.5rem + 6vw, 6rem);

  --space-section: clamp(5rem, 3rem + 8vw, 10rem);
  --radius-card: 22px;
  --radius-media: 28px;

  --duration-fast: 200ms;
  --duration-normal: 500ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "New York", ui-serif, Georgia, "Times New Roman", serif;

  --color-warm: #f7f3ec;
  --color-dark: #0b0b0d;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.muted { color: var(--color-secondary); }

/* ---------- Reveal on scroll ---------- */

/* Hidden-until-scrolled applies only when JS is running (html.js). */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
}

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

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.85em 1.7em;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.btn-primary {
  background: var(--color-text);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-primary:focus-visible,
.faq-q:focus-visible,
.btn-ghost:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-lg { font-size: 1.125rem; padding: 1em 2.1em; }

.btn-ghost {
  color: var(--color-text);
  font-weight: 500;
}

.btn-ghost:hover { color: var(--color-accent); text-decoration: none; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) ease;
}

.nav.is-scrolled { border-bottom-color: var(--color-hairline); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--color-accent); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--color-accent); text-decoration: none; }

.nav-cta { font-size: 0.9rem; padding: 0.65em 1.4em; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ---------- Layout primitives ---------- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-section) 1.5rem;
}

.band { background: var(--color-band); }

.kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

h2 { font-size: var(--text-h2); line-height: 1.08; }

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

.hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: clamp(4rem, 2rem + 6vw, 7.5rem) 1.5rem 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 22% 8%, rgba(0, 113, 227, 0.07), transparent 70%),
    radial-gradient(55% 40% at 80% 18%, rgba(228, 178, 60, 0.09), transparent 70%),
    linear-gradient(#fff, #fff);
}

.hero > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: var(--color-band);
  border-radius: 999px;
  padding: 0.5em 1.2em;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #0071e3 10%, #4aa8ff 55%, #7bc4ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em; /* keep the italic terminal from clipping */
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}

.hero-sub {
  max-width: 620px;
  margin: 1.75rem auto 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: var(--color-secondary);
}

.hero-sub strong { color: var(--color-text); }

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.microcopy {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-secondary);
}

.hero-media {
  position: relative;
  margin: clamp(3rem, 2rem + 4vw, 5rem) auto 0;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-media);
  box-shadow: 0 40px 100px rgba(11, 11, 13, 0.18);
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 0.7em 1.3em;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgba(11, 11, 13, 0.14);
  white-space: nowrap;
}

.chip-left { top: 12%; left: -1.5%; }
.chip-right { bottom: 14%; right: -1.5%; }

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.dot-green { background: #30b15a; }

.dot-rec {
  background: #ff453a;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .dot-rec { animation: none; }
}

@media (max-width: 720px) {
  .hero-chip { position: static; margin: 0.75rem auto 0; width: fit-content; box-shadow: none; border-color: var(--color-hairline); }
  .hero-media { display: flex; flex-direction: column; }
  .hero-media img { order: -1; }
}

/* ---------- Warm editorial band (the catch) ---------- */

.band-warm {
  background: var(--color-warm);
}

.band-warm .section { padding-bottom: 0; }

.trade-quote {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 1.5rem var(--space-section);
  text-align: center;
  font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.trade-quote em {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-accent);
}

/* ---------- Catch grid (text + portrait photo) ---------- */

.catch-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.catch-text h2 { margin-bottom: 1.75rem; }

.col-body { color: var(--color-secondary); font-size: 1.125rem; }

.catch-photo {
  margin: 0;
}

.catch-photo img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-media);
  box-shadow: 0 30px 70px rgba(60, 45, 20, 0.18);
  transform: rotate(1.5deg);
}

@media (max-width: 820px) {
  .catch-grid { grid-template-columns: 1fr; }
  .catch-photo img { transform: none; }
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--color-band);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.band .card { background: #fff; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.card h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.card p { color: var(--color-secondary); font-size: 1rem; }

.step-num {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

/* Ghost numeral behind each step card */
.steps .card::after {
  content: attr(data-num);
  position: absolute;
  right: 0.5rem;
  bottom: -1.9rem;
  font-size: 7.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(0, 113, 227, 0.07);
  line-height: 1;
  pointer-events: none;
  transition: color var(--duration-fast) ease;
}

.steps .card:hover::after { color: rgba(0, 113, 227, 0.14); }

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

/* ---------- Services ---------- */

.service-rows {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
}

.service-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-hairline);
}

.service-rows li:last-child { border-bottom: 1px solid var(--color-hairline); }

.service-rows h3 { font-size: 1.375rem; }
.service-rows p { color: var(--color-secondary); font-size: 1rem; text-align: right; }

@media (max-width: 560px) {
  .service-rows li { flex-direction: column; gap: 0.25rem; }
  .service-rows p { text-align: left; }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 0 0 clamp(3rem, 2rem + 3vw, 5rem);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* ---------- Homes strip ---------- */

.homes-strip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem var(--space-section);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.homes-strip figure {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(11, 11, 13, 0.1);
}

.homes-strip img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--duration-normal) var(--ease-out);
}

.homes-strip figure:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .homes-strip figure:hover img { transform: none; }
}

@media (max-width: 720px) {
  .homes-strip { grid-template-columns: 1fr; }
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  flex: none;
  background: #fff;
  border: 1px solid var(--color-hairline);
  border-radius: 999px;
  padding: 0.55em 1.2em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.marquee-track span:nth-child(3n) {
  background: #eef5fd;
  border-color: rgba(0, 113, 227, 0.18);
}

.marquee-track span:nth-child(3n + 2) {
  background: var(--color-warm);
  border-color: rgba(228, 178, 60, 0.3);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Trust grid ---------- */

.trust-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trust-icon {
  width: 30px;
  height: 30px;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

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

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

.faq-list { margin-top: 3rem; }

.faq-item { border-top: 1px solid var(--color-hairline); }
.faq-item:last-child { border-bottom: 1px solid var(--color-hairline); }

.faq-item h3 { font-size: inherit; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-align: left;
  padding: 1.4rem 0;
  cursor: pointer;
}

.faq-icon {
  flex: none;
  position: relative;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.faq-icon::after { transform: translateY(-50%) rotate(90deg); }

.faq-q[aria-expanded="true"] .faq-icon::after { transform: translateY(-50%) rotate(0deg); }

.faq-a { padding: 0 2.5rem 1.5rem 0; color: var(--color-secondary); }

/* ---------- Join (dark climax card) ---------- */

.join { text-align: center; }

.join-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 15% 0%, rgba(0, 113, 227, 0.28), transparent 60%),
    radial-gradient(60% 80% at 90% 100%, rgba(228, 178, 60, 0.14), transparent 60%),
    var(--color-dark);
  color: #fff;
  border-radius: 40px;
  padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) clamp(1.5rem, 1rem + 3vw, 5rem);
}

.join-card .kicker { color: rgba(255, 255, 255, 0.55); }

.join-card h2 .serif-accent { color: #7bc4ff; }

.join-sub {
  margin: 1.5rem auto 0;
  color: rgba(255, 255, 255, 0.65);
  max-width: 460px;
}

.join-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.btn-light {
  background: #fff;
  color: var(--color-dark);
}

.btn-light:hover {
  background: #f0f0f2;
  color: var(--color-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.join-call {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.join-call:hover { color: #fff; text-decoration: none; }

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

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 1.5rem var(--space-section);
  counter-reset: legal-section;
}

.legal h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  letter-spacing: -0.03em;
}

.legal-updated {
  color: var(--color-secondary);
  font-size: 0.95rem;
  margin: 0.75rem 0 2.5rem;
}

.legal-intro {
  background: var(--color-band);
  border-radius: var(--radius-card);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.legal-intro p {
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* Numbered, divided sections */
.legal h2 {
  counter-increment: legal-section;
  font-size: 1.5rem;
  margin: 3.5rem 0 1rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--color-hairline);
}

.legal h2::before {
  content: counter(legal-section, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.legal h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--color-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.legal li strong,
.legal p strong { color: var(--color-text); }

.legal ul {
  list-style: none;
  margin: 0 0 1.25em;
  padding: 0;
}

.legal li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.75em;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.55;
}

.legal-contact {
  background: var(--color-band);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  margin-top: 1.25rem;
}

.legal-contact p { margin: 0; line-height: 1.8; }

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

.footer {
  border-top: 1px solid var(--color-hairline);
  padding: 3rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.footer-inner p { margin: 0; color: var(--color-secondary); font-size: 0.95rem; }
.footer-inner p a { color: var(--color-text); }

.footer-inner nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}

.footer-inner nav a { color: var(--color-secondary); font-size: 0.95rem; }

.fine {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-inner nav { margin-left: 0; }
}
