/*
 * apartame.app holding page and legal pages, drawn in Private Concierge.
 *
 * Every value below comes from the product's design language
 * (xyntara/apartame: guidelines/ and apps/web/src/app/tokens.css). Nothing is
 * invented here; if the product system changes, this file follows it.
 *
 * No external request of any kind: the two faces are the product's vendored
 * woff2 files, served from this origin under /fonts/ beside their SIL OFL 1.1
 * licence texts. No script anywhere, so the CSP can be default-src 'none'.
 */

@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/SourceSerif4-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/SourceSerif4-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/SourceSerif4-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/Figtree-latin.4ba7d3d0.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Arial scaled to each face's metrics (the values next/font generates in the
   app), so the text keeps its box when the real face swaps in. */
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial');
  ascent-override: 95.06%;
  descent-override: 25.02%;
  line-gap-override: 0%;
  size-adjust: 99.94%;
}

:root {
  color-scheme: light dark;

  --paper: #f2eee5;
  --surface: #faf8f3;
  --ink: #151918;
  --ink-2: #545f5b;
  --border: #d4d2c8;
  --border-strong: #78827c;
  --accent: #476c65;
  --accent-hover: #3c5f58;
  --accent-pressed: #31514b;
  --accent-tint: #e1eae5;
  --brand-gold: #bfa578;
  --plane-1: #476c65;
  --plane-2: #151918;
  --plane-3: #9bb7ac;
  --overlay: 0 10px 28px rgb(21 25 24 / 18%);

  --font-display: 'Source Serif 4', Georgia, ui-serif, serif;
  --font-body: 'Figtree', 'Figtree Fallback', ui-sans-serif, system-ui, sans-serif;

  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s6: 24px;
  --s8: 32px;
  --margin: var(--s4);
  --radius-card: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151918;
    --surface: #1f2623;
    --ink: #f2eee5;
    --ink-2: #bbc6bf;
    --border: #3d4a42;
    --border-strong: #7e9387;
    --accent: #9bb7ac;
    --accent-hover: #b0c8bd;
    --accent-pressed: #8ba79c;
    --accent-tint: #243d36;
    --brand-gold: #bfa578;
    --plane-1: #476c65;
    --plane-2: #151918;
    --plane-3: #6c887e;
    --overlay: 0 12px 32px rgb(0 0 0 / 45%);
  }
}

@media (min-width: 768px) {
  :root {
    --margin: var(--s6);
  }
}
@media (min-width: 1024px) {
  :root {
    --margin: var(--s8);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px / 24px var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
p {
  margin: 0;
}

/* --- the name ------------------------------------------------------------
   The wordmark is undecided (decision #7 left it open), so the name stands in,
   set in the display face exactly as the app's header sets it. */
.top {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--s4) var(--margin) 0;
}
/* The logo (2026-10-02): Alfredo's outlined lockup (logos/horizon-*-curves.svg), inline, as the app's
   header draws it (apps/web marketplace.css, .logo). Inline SVG, so the CSP is unchanged. */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  margin: 0;
}
.brand .logo {
  display: block;
  height: 30px;
  width: auto;
  aspect-ratio: 711 / 158;
}
.logo-lockup-mark {
  fill: var(--brand-gold, #bfa578);
}
.logo-lockup-word {
  fill: currentColor;
}
@media (min-width: 480px) {
  .brand .logo {
    height: 36px;
  }
}

/* --- the hero: Sol's three planes behind an opaque card --------------------
   Decoration only, and never under text a person has to read: the copy sits on
   paper and the card is opaque surface. On a phone the planes are the lower
   part of the hero, behind the card. */
.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .hero {
    align-items: center;
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--s8) var(--margin) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (min-width: 720px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--s8);
    padding-block: 64px 80px;
  }
}

.hero-art {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 720px) {
  .hero-art {
    inset: 0;
    height: auto;
  }
}
.plane {
  position: absolute;
  transform: skewX(-8deg);
}
.plane-a {
  right: -18%;
  top: 0;
  width: 72%;
  height: 130%;
  background: var(--plane-1);
}
.plane-b {
  left: -10%;
  bottom: -24%;
  width: 40%;
  height: 64%;
  background: var(--plane-2);
}
.plane-c {
  right: 7%;
  top: 6%;
  width: 26%;
  height: 16%;
  background: var(--plane-3);
}
@media (min-width: 720px) {
  .plane-a {
    right: -6%;
    top: -30%;
    width: 44%;
    height: 160%;
  }
  .plane-b {
    left: auto;
    right: 30%;
    bottom: -40%;
    width: 22%;
    height: 78%;
  }
  .plane-c {
    right: 5%;
    top: 14%;
    width: 16%;
    height: 20%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .plane {
    animation: plane-in 180ms ease-out both;
  }
  .plane-b {
    animation-delay: 40ms;
  }
  .plane-c {
    animation-delay: 80ms;
  }
}
@keyframes plane-in {
  from {
    transform: translateX(8px) skewX(-8deg);
  }
  to {
    transform: skewX(-8deg);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  max-width: 34rem;
}
.hero-heading {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  font-weight: 400;
}
.hero-title {
  font: 600 38px / 42px var(--font-display);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 56px;
    line-height: 60px;
  }
}
.hero-sub {
  font: 400 18px / 26px var(--font-body);
  color: var(--ink-2);
  max-width: 30ch;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .hero-sub {
    font-size: 20px;
    line-height: 28px;
  }
}

/* The ring is the one mark that says Apártame, and it is never decorative: a
   ring on screen means something is held or waiting. Here it is the page
   itself, waiting to open. A static three-quarter arc; nothing spins. */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  align-self: flex-start;
  min-height: 36px;
  padding: 6px var(--s3) 6px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font: 500 14px / 20px var(--font-body);
}
.ring {
  flex: none;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 2;
}
.ring-track {
  stroke: var(--accent);
  opacity: 0.25;
}
.ring-arc {
  stroke: var(--accent);
  stroke-dasharray: 75 100;
  stroke-linecap: round;
}

/* --- the card for salons: opaque surface over the planes ------------------ */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--overlay);
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-width: 30rem;
}
@media (min-width: 720px) {
  .card {
    padding: var(--s8);
    justify-self: end;
  }
}
.card-title {
  font: 600 22px / 28px var(--font-display);
  font-variation-settings: 'opsz' 32;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s2);
}
.card-body {
  color: var(--ink);
}
.card-note {
  margin-top: var(--s2);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  font: 500 14px / 20px var(--font-body);
  color: var(--ink-2);
}

/* --- who is behind it ----------------------------------------------------- */
.foot {
  background: var(--paper);
}
.foot-inner {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--s6) var(--margin) var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font: 400 14px / 20px var(--font-body);
  color: var(--ink-2);
}
.foot-inner p {
  max-width: 68ch;
}
.operator {
  color: var(--ink);
  font-weight: 500;
}
.foot a {
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 3px;
}

/* --- not found ------------------------------------------------------------ */
.lost {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 64px var(--margin);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s4);
}
.lost h1 {
  font: 600 28px / 34px var(--font-display);
  font-variation-settings: 'opsz' 60;
  letter-spacing: -0.025em;
}
.lost p {
  color: var(--ink-2);
  max-width: 40ch;
}
.lost a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 3px;
}
/* --- legal pages (tools/legal-pages.py) -----------------------------------
   Private Concierge legal reading: quiet parchment, mineral teal navigation,
   editorial serif headings, and champagne used only as a review signal. Long
   tables scroll inside themselves instead of widening the page. */
a.brand {
  text-decoration: none;
}
.legal {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--s6) var(--margin) 64px;
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  overflow-wrap: anywhere;
}
.legal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s3);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink);
  font: 500 14px / 20px var(--font-body);
  text-decoration: none;
}
.legal-nav a[aria-current='page'] {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
}
.legal-nav a:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.legal-doc {
  max-width: 70ch;
  min-width: 0;
}
.legal-doc h1 {
  font: 600 clamp(32px, 6vw, 48px) / 1.08 var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.legal-doc h2 {
  margin-top: var(--s8);
  font: 600 26px / 32px var(--font-display);
  letter-spacing: -0.01em;
}
.legal-doc h3 {
  margin: var(--s6) 0 0;
  font: 600 17px / 24px var(--font-body);
}
.legal-doc p,
.legal-doc ul,
.legal-doc ol,
.legal-doc dl {
  margin: var(--s3) 0 0;
}
.legal-doc ul,
.legal-doc ol {
  padding-left: 1.4em;
}
.legal-doc li + li {
  margin-top: var(--s2);
}
.legal-doc a {
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 3px;
}
.legal-doc code {
  font: 500 14px / 20px ui-monospace, 'SFMono-Regular', Menlo, monospace;
  overflow-wrap: anywhere;
}
.legal-meta {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 20px;
}
.legal-review {
  padding: var(--s3) var(--s4);
  border-left: 3px solid var(--brand-gold);
  background: var(--surface);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 20px;
}
.legal-doc .summary {
  margin-top: var(--s6);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.legal-doc .summary h2 {
  margin-top: 0;
  font-size: 18px;
  line-height: 24px;
}
.legal-doc table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin-top: var(--s3);
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
  overscroll-behavior-inline: contain;
}
.legal-doc th,
.legal-doc td {
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.legal-doc th {
  font-weight: 600;
}
.legal-doc .facts {
  display: grid;
  grid-template-columns: minmax(8em, max-content) 1fr;
  gap: var(--s2) var(--s4);
}
.legal-doc .facts dt {
  font-weight: 600;
}
.legal-doc .facts dd {
  margin: 0;
  min-width: 0;
}
@media (max-width: 480px) {
  .legal-doc .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-doc .facts dd + dt {
    margin-top: var(--s3);
  }
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- the page for businesses (/para-negocios, 2026-10-02) -----------------
   A reading page, not a hero: one column of plain sentences a person and an
   answer engine can both quote. Nothing on it toggles, so nothing can move. */
.b2b {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--s6) var(--margin) 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  overflow-wrap: anywhere;
}
.b2b h2 {
  font: 600 26px / 32px var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.b2b h3 {
  margin: 0;
  font: 600 17px / 24px var(--font-body);
}
.b2b p {
  max-width: 70ch;
}
.b2b-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.b2b-lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font: 500 14px / 20px var(--font-body);
  text-underline-offset: 3px;
}
/* The hero: the copy on paper, Sol's three planes in their own box beside it
   (below it on a phone). Decoration only and never under text: a marketing
   surface, the one kind of page planes are allowed on. */
.b2b-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}
.b2b-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  min-width: 0;
}
.hero-art.b2b-art {
  position: relative;
  inset: auto;
  order: 2;
  height: 120px;
  overflow: hidden;
  /* Paint containment: the skewed planes reach past the box, and nothing of
     them may sit, even as far as a hit test is concerned, under the header. */
  contain: paint;
  isolation: isolate;
  border-radius: var(--radius-card);
}
@media (min-width: 720px) {
  .b2b-hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--s8);
  }
  .hero-art.b2b-art {
    inset: auto;
    height: 100%;
    min-height: 360px;
  }
}
/* Inside its own box the planes stay inside its rectangle: the home page's
   reach past the edge, and axe reads an element's box, not its clip, so a
   plane reaching up under the header reads as the link's background. */
.b2b-art .plane-a {
  top: 0;
  right: -12%;
  width: 70%;
  height: 100%;
}
.b2b-art .plane-b {
  bottom: 0;
  height: 45%;
}
.b2b-art .plane-c {
  top: 12%;
}
.b2b-hero h1 {
  margin: 0;
  font: 600 clamp(34px, 7vw, 56px) / 1.07 var(--font-display);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.b2b-lead {
  font: 400 18px / 28px var(--font-body);
  text-wrap: pretty;
}
.b2b-for {
  color: var(--ink-2);
}
.b2b-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s6);
  margin-top: var(--s2);
}
.b2b-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s6);
  border-radius: 8px;
  background: var(--accent);
  color: var(--paper);
  font: 600 16px / 20px var(--font-body);
  text-decoration: none;
  text-align: center;
}
.b2b-button:hover {
  background: var(--accent-hover);
}
.b2b-button.b2b-button-quiet {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.b2b-button.b2b-button-quiet:hover {
  background: var(--accent-tint);
}
.b2b-help {
  color: var(--ink-2);
  font: 400 14px / 20px var(--font-body);
}
.b2b-steps {
  margin: 0;
  padding-left: 1.4em;
  max-width: 70ch;
  font: 500 17px / 26px var(--font-body);
}
.b2b-steps li + li {
  margin-top: var(--s2);
}
.b2b-start .b2b-actions {
  margin-top: 0;
}
.b2b a:not(.b2b-button) {
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 3px;
}
.b2b-section {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.b2b-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
@media (min-width: 720px) {
  .b2b-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .b2b-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.b2b-feature {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.b2b-promise {
  padding: var(--s3) var(--s4);
  border-left: 3px solid var(--brand-gold);
  background: var(--surface);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-weight: 600;
}
.b2b-list {
  margin: 0;
  padding-left: 1.4em;
  max-width: 70ch;
}
.b2b-list li + li {
  margin-top: var(--s2);
}
.b2b-faq {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  max-width: 70ch;
}
.b2b-qa {
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
}
.b2b-qa dt {
  font: 600 17px / 24px var(--font-body);
}
.b2b-qa dd {
  margin: var(--s2) 0 0;
}
.card-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font: 600 16px / 20px var(--font-body);
  text-underline-offset: 3px;
}
