/* proptiOS home. One system: tokens below, one button pair, one card, one radius scale. */
:root {
  --bg: #F7F3EC;           /* warm paper */
  --alt: #EFE8DC;
  --surface: #FFFDF9;
  --ink: #1B1714;
  --muted: #625A52;
  --line: rgba(27, 23, 20, .12);
  --laterite: #C2502C;      /* Ghana's red earth, and the colour of a fired brick */
  --laterite-bg: #F6E1D6;
  --sun: #F0B23C;
  --sun-bg: #FBEFD3;
  --action: #0062D6;
  --action-ink: #FFFFFF;
  --dark: #1C1613;          /* warm near-black, like charred wood */
  --dark-surface: #271F1B;
  --dark-ink: #F7F1E8;
  --dark-muted: #B5A99D;
  --dark-line: rgba(247, 241, 232, .14);
  --ok: #157347; --ok-bg: #E3F3EA;
  --due: #8A5A00; --due-bg: #FCF0D6;
  --late: #B42318; --late-bg: #FDE7E5;
  --renew: #0B5CBF; --renew-bg: #E4EEFC;

  --nav: 72px; --padt: 88px; --padb: 88px; --gut: 80px;
  --r-lg: 20px; --r-md: 12px; --r-sm: 8px; --r-btn: 10px;
  --btn-h: 44px;

  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-h1: clamp(42px, 2.6vw + 22px, 66px);
  --t-h2: clamp(30px, 1.5vw + 20px, 46px);
  --t-lead: clamp(17px, .3vw + 15px, 19px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 639px) {
  :root { --nav: 56px; --padt: 64px; --padb: 64px; --gut: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; hyphens: manual; }
p { margin: 0; }
/* One emphasis voice: an editorial serif italic for the words that carry the feeling. */
h1 em, h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h2 em { color: var(--laterite); }
.section--dark h2 em, .closing h2 em { color: #F08A62; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; height: var(--nav); background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__row { height: 100%; display: flex; align-items: center; gap: 40px; position: relative; }
.skip-link { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); z-index: 2; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); text-decoration: none; opacity: 0; pointer-events: none; }
.skip-link:focus-visible { opacity: 1; pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/1 var(--f-display); letter-spacing: -0.02em; text-decoration: none; }
/* The wordmark is drawn as a mask filled with the text colour, so one file works on light and dark backgrounds. */
.logo__art { display: block; height: 24px; aspect-ratio: 253.54 / 45.8; background-color: currentColor; -webkit-mask: url("/brand/proptios-logo.svg") center / contain no-repeat; mask: url("/brand/proptios-logo.svg") center / contain no-repeat; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a, .nav__signin { font: 500 15px/1 var(--f-body); text-decoration: none; white-space: nowrap; position: relative; padding: 14px 0; }
.nav__links a::after, .nav__signin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:hover::after, .nav__signin:hover::after { transform: scaleX(1); }
.nav__links .nav__signin, .nav__links .nav__sheet-btn { display: none; }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-btn); cursor: pointer; padding: 0; }
.nav__toggle span { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__signin--bar { display: none; }
  .nav.is-open .nav__links { display: flex; position: fixed; inset: var(--nav) 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 24px; background: var(--bg); overflow-y: auto; }
  .nav.is-open .nav__links a { padding: 0; min-height: 56px; display: flex; align-items: center; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a::after { display: none; }
  .nav.is-open .nav__links .nav__signin { display: flex; }
  .nav.is-open .nav__links .nav__sheet-btn { display: inline-flex; justify-content: center; margin-top: 24px; border-bottom: 0; min-height: var(--btn-h); color: var(--action-ink); }
}
@media (max-width: 639px) { .nav__end .nav__btn { display: none; } }

/* Buttons: one pair, solid look */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--btn-h); padding: 0 24px; border-radius: var(--r-btn); font: 500 16px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease); }
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--primary:hover { background: #0055BA; transform: translateY(-1px); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.m-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .m-arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections: one or two screens each, h2 first at the top */
.section { padding: var(--padt) 0 var(--padb); scroll-margin-top: 0; }
.section h2 { font-size: var(--t-h2); line-height: 1.12; max-width: 22ch; }
.section--alt { background: var(--alt); }
.section--dark { background: var(--dark); color: var(--dark-ink); position: relative; overflow: hidden; }
/* A faint brick wall behind the tenant portal, fading out to the left */
.section--dark::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='56' viewBox='0 0 72 56'%3E%3Cg fill='none' stroke='%23F7F1E8' stroke-opacity='.13'%3E%3Cpath d='M0 .5h72M0 28.5h72M.5 0v28M36.5 28v28'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask: linear-gradient(90deg, transparent 30%, #000 85%); mask: linear-gradient(90deg, transparent 30%, #000 85%); pointer-events: none; }
.section--dark .wrap { position: relative; }
.section--dark .muted { color: var(--dark-muted); }
.sub { margin-top: 24px; font-size: 18px; max-width: 46ch; }

/* Hero */
.hero { padding: calc(var(--nav) + 56px) 0 var(--padb); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 64px; align-items: center; }
/* Kicker: a small label led by one brick from the logo */
.kicker { display: flex; align-items: center; gap: 10px; font: 500 14px/1.3 var(--f-body); color: var(--muted); margin-bottom: 20px; }
.kicker--dark { color: var(--dark-muted); }
.brick { flex: none; width: 18px; height: 8px; border-radius: 2.5px; background: var(--laterite); transform: rotate(-8deg); }
.hero h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; }
.hero h1 em { font-size: 1.08em; }
/* Hand-drawn underline under the hero's last words */
.scribble { position: relative; white-space: nowrap; }
.scribble::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11c38-7 92-10 194-5' fill='none' stroke='%23C2502C' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transform-origin: left; }
.is-ready .scribble::after { animation: draw .9s .5s var(--ease) both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.lead { margin-top: 24px; font-size: var(--t-lead); line-height: 1.6; max-width: 46ch; }
.hero .btn-row { margin-top: 32px; }

/* Hero entrance, once on load */
[data-enter] .hero__copy > *, [data-enter] .app-frame { opacity: 0; transform: translateY(12px); }
[data-enter] .toast { opacity: 0; transform: translateY(16px) scale(.96); }
.is-ready [data-enter] .toast { opacity: 1; transform: none; transition: opacity .6s 1.1s var(--ease), transform .6s 1.1s cubic-bezier(.3, 1.4, .5, 1); }
.no-js [data-enter] .toast { opacity: 1; transform: none; }
.is-ready [data-enter] .hero__copy > *, .is-ready [data-enter] .app-frame { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.is-ready [data-enter] .hero__copy > :nth-child(2) { transition-delay: .06s; }
.is-ready [data-enter] .hero__copy > :nth-child(3) { transition-delay: .12s; }
.is-ready [data-enter] .hero__copy > :nth-child(4) { transition-delay: .18s; }
.is-ready [data-enter] .hero__copy > :nth-child(5) { transition-delay: .22s; }
.is-ready [data-enter] .app-frame { transition-delay: .2s; transition-duration: .9s; }
.no-js [data-enter] .hero__copy > *, .no-js [data-enter] .app-frame { opacity: 1; transform: none; }

/* Hero stage: the product, with a payment arriving on top */
.hero__stage { position: relative; }
.hero__stage::before { content: ""; position: absolute; inset: 8% -6% -8% 10%; background: radial-gradient(60% 60% at 70% 40%, rgba(240, 178, 60, .28), transparent 70%), radial-gradient(50% 50% at 30% 80%, rgba(194, 80, 44, .16), transparent 70%); filter: blur(8px); z-index: -1; }
.toast { position: absolute; left: -28px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(27, 23, 20, .35); font-size: 13px; }
.toast b { display: block; font: 600 15px/1.2 var(--f-display); }
.toast small { color: var(--muted); }
.toast__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--sun); color: var(--ink); display: grid; place-items: center; font: 600 18px/1 var(--f-display); }

/* App frame: the product's own UI as live HTML */
.app-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 2px rgba(27,23,20,.04), 0 30px 60px -30px rgba(27,23,20,.30); font-size: 13px; transform: rotate(.6deg); }
.app-frame__bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--alt); }
.app-frame__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(23,25,30,.16); }
.app-frame__bar em { font-style: normal; margin-left: 12px; color: var(--muted); font-size: 13px; }
.app { display: grid; grid-template-columns: 160px 1fr; min-height: 380px; }
.app__side { border-right: 1px solid var(--line); padding: 16px 10px; }
.app__brand { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--f-display); padding: 0 8px 16px; }
.app__brand i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; background: var(--laterite); color: var(--bg); display: grid; place-items: center; font-size: 13px; padding-bottom: 2px; }
.app__side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app__side li { padding: 8px 10px; border-radius: var(--r-sm); color: var(--muted); }
.app__side li.is-on { background: var(--renew-bg); color: var(--renew); font-weight: 500; }
.app__main { padding: 18px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 6px; }
.kpi small { color: var(--muted); font-size: 13px; }
.kpi strong { font: 600 20px/1.1 var(--f-display); letter-spacing: -0.01em; white-space: nowrap; }
.kpi strong span { color: var(--muted); font-weight: 500; font-size: 14px; }
.delta { font-size: 13px; color: var(--muted); }
.meter { display: block; height: 4px; border-radius: 4px; background: var(--alt); overflow: hidden; }
.meter b { display: block; height: 100%; background: var(--action); border-radius: 4px; }
.table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.table__head, .table__row { display: grid; grid-template-columns: 52px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: center; padding: 10px 14px; }
.table__head { background: var(--alt); color: var(--muted); font-size: 13px; font-weight: 500; }
.table__row { border-top: 1px solid var(--line); }
.table__row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { justify-self: start; font-size: 13px; font-weight: 500; padding: 3px 8px; border-radius: 6px; }
.tag--ok { color: var(--ok); background: var(--ok-bg); }
.tag--due { color: var(--due); background: var(--due-bg); }
.tag--late { color: var(--late); background: var(--late-bg); }
.tag--renew { color: var(--renew); background: var(--renew-bg); }

/* Cards: one recipe */
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.card:hover { transform: translateY(-2px); border-color: rgba(23,25,30,.24); }
.card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.card p { color: var(--ink); }
.card__ui { height: 168px; border-radius: var(--r-md); background: var(--alt); background-image: radial-gradient(rgba(27,23,20,.07) 1px, transparent 1px); background-size: 14px 14px; margin-bottom: 8px; display: grid; place-items: center; padding: 16px; font-size: 13px; overflow: hidden; }
.card__ui > div { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 8px; }
.card__ui b { font: 600 14px/1.2 var(--f-display); }
.card__ui span, .card__ui em { color: var(--muted); font-style: normal; }
.card--lease .card__ui { background-color: #E7EEF8; }
.card--pay .card__ui { background-color: var(--sun-bg); }
.card--repair .card__ui { background-color: var(--laterite-bg); }
.card--audit .card__ui { background-color: #E6EFE8; }
.card:hover .card__ui > div { transform: translateY(-3px) rotate(-1deg); }
.card__ui > div { transition: transform .35s var(--ease); box-shadow: 0 10px 24px -16px rgba(27,23,20,.4); }
.frag-pay b { font-size: 22px; }
.frag-pay .tag { color: var(--ok); }
.frag-lease .meter { margin: 4px 0; }
.frag-lease em { color: var(--renew); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps i { font-style: normal; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.steps i.done { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.frag-audit span { display: flex; gap: 10px; color: var(--ink); }
.frag-audit span + span { border-top: 1px solid var(--line); padding-top: 8px; }
.frag-audit i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
/* the one card loop: the next repair step fills in, then rests */
.frag-repair .steps i:last-child { animation: step 3.2s var(--ease) infinite; }
.card:hover .frag-repair .steps i:last-child { animation-duration: 2.6s; }
@keyframes step { 0%, 45% { background: transparent; color: var(--muted); border-color: var(--line); } 60%, 92% { background: var(--ok-bg); color: var(--ok); border-color: transparent; } 100% { background: transparent; color: var(--muted); border-color: var(--line); } }

/* Splits */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.split--flip { align-items: center; }
.ticks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; font-size: 18px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 8px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg) translateY(-3px); }
.section--dark .ticks li::before { border-color: #F08A62; }
.ticks--sm { font-size: 16px; gap: 10px; margin-top: 24px; }

/* Phone */
.phone { justify-self: center; width: 300px; padding: 10px; border-radius: 40px; background: #3A2E28; border: 1px solid var(--dark-line); transform: rotate(-2deg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.phone__screen { border-radius: 31px; background: var(--bg); color: var(--ink); padding: 32px 16px 20px; display: grid; gap: 12px; font-size: 14px; align-content: start; }
.phone__hi { font: 600 20px/1.2 var(--f-display); letter-spacing: -0.01em; padding: 0 4px 4px; }
.phone__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 6px; }
.phone__card small { color: var(--muted); font-size: 13px; }
.phone__card strong { font: 600 26px/1.1 var(--f-display); }
.phone__card b { font-weight: 500; }
.phone__card--row { grid-template-columns: 1fr auto; align-items: center; }
.phone__btn { margin-top: 6px; height: 44px; border-radius: var(--r-btn); background: var(--action); color: #fff; display: grid; place-items: center; font-weight: 500; }

/* Roles */
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roles li { display: grid; grid-template-columns: 40px minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.role-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 600 13px/1 var(--f-display); font-style: normal; letter-spacing: .02em; }
.role-dot--a { background: #E4EEFC; color: var(--renew); }
.role-dot--b { background: var(--laterite-bg); color: #9A3B1E; }
.role-dot--c { background: var(--sun-bg); color: var(--due); }
.role-dot--d { background: var(--ok-bg); color: var(--ok); }
.roles b { font-weight: 500; }
.roles span { color: var(--muted); }

/* Pricing */
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; position: relative; }
.plan__badge { position: absolute; top: 28px; right: 28px; font: 500 12.5px/1 var(--f-body); padding: 6px 10px; border-radius: 999px; background: var(--action); color: #fff; }
.plan__badge--quiet { background: var(--alt); color: var(--ink); }
.plan__btn { margin-top: auto; width: 100%; }
.plan .ticks { margin-bottom: 28px; }
.plan--main { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.plan h3 { font-size: 20px; }
.plan__price { margin-top: 16px; color: var(--muted); }
.plan__price strong { font: 600 44px/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); margin-right: 4px; }
.plan__for { margin-top: 12px; color: var(--muted); font-size: 15px; }
.plans__note { margin-top: 24px; color: var(--muted); font-size: 14px; }

/* Closing */
.closing { background: var(--dark); color: var(--dark-ink); }
.close { padding-top: var(--padt); padding-bottom: var(--padb); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.close__copy { display: grid; gap: 32px; justify-items: start; }
.close__title { font-size: clamp(38px, 3.6vw + 12px, 76px); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }
/* The logo's bricks, stacked in a running bond; the last one lands on top at an angle */
.stack { position: relative; width: 232px; height: 132px; }
.stack i { position: absolute; width: 68px; height: 24px; border-radius: 5px; background: var(--dark-ink); }
.stack i:nth-child(1) { left: 0; bottom: 0; } .stack i:nth-child(2) { left: 76px; bottom: 0; } .stack i:nth-child(3) { left: 152px; bottom: 0; }
.stack i:nth-child(4) { left: 38px; bottom: 32px; } .stack i:nth-child(5) { left: 114px; bottom: 32px; } .stack i:nth-child(6) { left: 190px; bottom: 32px; width: 42px; }
.stack i:nth-child(7) { left: 0; bottom: 64px; } .stack i:nth-child(8) { left: 76px; bottom: 64px; } .stack i:nth-child(9) { left: 152px; bottom: 64px; }
.stack .stack__last { left: 120px; bottom: 100px; background: #F08A62; transform: rotate(-9deg); }
.closing.in-view .stack__last { animation: land 1s .15s cubic-bezier(.3, 1.35, .5, 1) both; }
@keyframes land { from { transform: translate(60px, -90px) rotate(-45deg); opacity: 0; } to { transform: rotate(-9deg); opacity: 1; } }
.closing .btn--secondary { background: transparent; color: var(--dark-ink); border-color: var(--dark-line); }
.closing .btn--secondary:hover { border-color: var(--dark-ink); }
.directory { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--dark-line); }
.directory .logo { color: var(--dark-ink); }
.directory__brand p { margin-top: 16px; color: var(--dark-muted); max-width: 32ch; }
.directory__col { display: grid; align-content: start; gap: 4px; }
.directory__col h3 { font: 500 13px/1 var(--f-body); letter-spacing: 0; color: var(--dark-muted); margin-bottom: 12px; }
.directory__col a { text-decoration: none; padding: 10px 0; justify-self: start; position: relative; }
.directory__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.directory__col a:hover::after { transform: scaleX(1); }
.legal { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--dark-line); color: var(--dark-muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* 1024 and below */
@media (max-width: 1199px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { min-height: 0; }
}
@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero__grid, .split { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
  .phone { justify-self: start; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory__brand { grid-column: 1 / -1; }
  .close { grid-template-columns: 1fr; }
  .stack { display: none; }
  .toast { left: 12px; }
}
@media (max-width: 639px) {
  .hero { padding-top: calc(var(--nav) + 40px); padding-bottom: 48px; }
  .btn-row .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .plans { margin-top: 32px; gap: 12px; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app__side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { display: none; }
  .table__head, .table__row { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.2fr); }
  .table__head span:nth-child(3), .table__row span:nth-child(3) { display: none; }
  .roles li { grid-template-columns: 40px 1fr; gap: 4px 16px; }
  .roles li .role-dot { grid-row: span 2; }
  .toast { left: 8px; right: 8px; bottom: -28px; }
  .app-frame, .phone { transform: none; }
  .phone { justify-self: center; width: min(300px, 100%); }
  .directory { grid-template-columns: 1fr 1fr; }
  .plan { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-enter] .hero__copy > *, [data-enter] .app-frame, [data-enter] .toast { opacity: 1 !important; transform: none !important; }
}

/* Short sections size to their content instead of a full screen */
#team { min-height: 0; }
#team .split { min-height: 0; }
.section h2 { max-width: 26ch; }

/* Book a demo page */
.demo { padding: calc(var(--nav) + 56px) 0 var(--padb); }
.demo__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: 72px; align-items: start; }
.demo h1 { font-size: clamp(38px, 2.2vw + 20px, 56px); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.demo h1 em { color: var(--laterite); }
.demo__h2 { margin-top: 40px; font: 600 15px/1.3 var(--f-body); letter-spacing: 0; color: var(--muted); }
.agenda { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.agenda li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.agenda li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font: italic 400 26px/1 var(--f-serif); color: var(--laterite); padding-top: 2px; }
.agenda b { font-weight: 500; }
.agenda span { color: var(--muted); font-size: 15px; }
.demo__alt { margin-top: 28px; color: var(--muted); font-size: 15px; max-width: 48ch; }
.demo__alt a, .fineprint a, .demo-done a { color: var(--ink); text-underline-offset: 3px; }

.demo__card { position: sticky; top: calc(var(--nav) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: 0 30px 60px -36px rgba(27, 23, 20, .35); }
.demo__card::before { content: ""; position: absolute; top: -10px; right: 28px; width: 56px; height: 20px; border-radius: 4px; background: var(--laterite); transform: rotate(-9deg); }
.demo-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font: 500 14px/1.3 var(--f-body); padding: 0; margin-bottom: 6px; }
.field i { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 11px 14px; min-height: 46px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(0, 98, 214, .16); background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 15px; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--late); background: var(--late-bg); padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; }
.demo-form__submit { width: 100%; height: 50px; margin-top: 4px; }
.demo-form__submit.is-busy { opacity: .7; cursor: progress; }
.demo-done { text-align: left; padding: 8px 0; outline: none; }
.demo-done h2 { font-size: 32px; letter-spacing: -0.03em; margin-top: 20px; }
.demo-done p { margin-top: 12px; color: var(--muted); }
.demo-done__bricks { display: flex; gap: 6px; }
.demo-done__bricks i { width: 40px; height: 16px; border-radius: 4px; background: var(--alt); animation: brickIn .5s var(--ease) both; }
.demo-done__bricks i:nth-child(2) { animation-delay: .1s; }
.demo-done__bricks i:nth-child(3) { background: var(--laterite); animation-delay: .2s; transform-origin: left bottom; }
@keyframes brickIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.page-demo .closing { margin-top: 0; }

@media (max-width: 1023px) {
  .demo__grid { grid-template-columns: 1fr; gap: 40px; }
  .demo__card { position: relative; top: 0; }
}
@media (max-width: 639px) {
  .demo { padding-top: calc(var(--nav) + 32px); }
  .field-row { grid-template-columns: 1fr; }
  .demo__card { padding: 24px 20px; }
}

/* Pricing: billing and currency toggles */
.pricing__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.toggles[hidden] { display: none; }
.seg { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.seg button { font: 500 14px/1 var(--f-body); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg__save { font-size: 12px; color: var(--laterite); }
.seg button[aria-pressed="true"] .seg__save { color: #F5B79C; }
.plan__price s { display: block; width: max-content; color: var(--muted); font-size: 16px; margin-bottom: 6px; text-decoration-thickness: 1.5px; }
.plan__price s[hidden] { display: none; }
.plan__price strong { transition: opacity .15s var(--ease); }

/* Inner pages: one hero, then sections in the home page's rhythm */
.page-hero { padding: calc(var(--nav) + 64px) 0 48px; }
.page-hero h1 { font-size: clamp(40px, 2.6vw + 20px, 64px); line-height: 1.03; letter-spacing: -0.035em; max-width: 18ch; }
.page-hero h1 em { color: var(--laterite); }
.page-hero .lead { max-width: 56ch; }
.page-hero--legal { padding-bottom: 24px; }
.page-hero--legal h1 { font-size: clamp(36px, 2vw + 20px, 52px); }
.section--tight { padding-top: 72px; padding-bottom: 72px; }
.section--flush { padding-top: 16px; }
.split--top { align-items: start; }
.prose { display: grid; gap: 20px; font-size: 18px; line-height: 1.7; max-width: 62ch; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 10px; align-content: start; }
.principle__n { font: italic 400 34px/1 var(--f-serif); color: var(--laterite); }
.principle h3 { font-size: 20px; margin-top: 8px; }
.principle p { color: var(--muted); }

/* FAQ: native disclosure, grouped */
.faq { display: grid; gap: 48px; max-width: 980px; }
.faq__group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px; }
.faq .faq__name { max-width: none; font: 500 15px/1.4 var(--f-body); letter-spacing: 0; color: var(--muted); padding-top: 22px; }
.faq__items { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font: 500 18px/1.4 var(--f-body); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--laterite); }
.qa__icon { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--alt); transition: background-color .2s var(--ease), transform .25s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.qa[open] .qa__icon { background: var(--laterite-bg); }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa p { padding: 0 48px 22px 0; color: var(--muted); font-size: 16.5px; max-width: 64ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.contact__card { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.contact__card:hover { transform: translateY(-3px); border-color: rgba(27,23,20,.28); }
.contact__card h2 { font-size: 26px; }
.contact__card p { color: var(--muted); }
.contact__card--main { background: var(--dark); color: var(--dark-ink); border-color: transparent; }
.contact__card--main p { color: var(--dark-muted); }
.contact__card--main .contact__tag { background: rgba(240, 138, 98, .18); color: #F5B79C; }
.contact__tag { justify-self: start; font: 500 12.5px/1 var(--f-body); padding: 6px 10px; border-radius: 999px; background: var(--alt); }
.contact__go { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.contact__card:hover .m-arrow { transform: translateX(3px); }
.contact__more { margin-top: 28px; color: var(--muted); }
.contact__more a { color: var(--ink); }

/* Legal documents: readable column with an index */
.legal-doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-doc__toc { position: sticky; top: calc(var(--nav) + 24px); font-size: 14px; }
.legal-doc__toc > p { color: var(--muted); margin-bottom: 8px; }
.legal-doc__toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-doc__toc ul ul { padding-left: 0; }
.legal-doc__toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); }
.legal-doc__toc a:hover { color: var(--laterite); }
.prose--legal { font-size: 17px; gap: 0; }
.prose--legal h3 { font-size: 21px; margin: 36px 0 10px; scroll-margin-top: calc(var(--nav) + 16px); }
.prose--legal h3:first-of-type { margin-top: 0; }
.prose--legal p { margin: 0 0 12px; color: #3E3731; }
.prose--legal a { color: var(--ink); text-underline-offset: 3px; }

/* 404 */
.lost { padding: calc(var(--nav) + 96px) 0 96px; }
.lost__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.lost h1 { font-size: clamp(42px, 3vw + 20px, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.lost h1 em { color: var(--laterite); }
.lost .btn-row { margin-top: 32px; }
.stack--light i { background: var(--ink); }
.stack--light .stack__last { background: var(--laterite); }

@media (max-width: 1023px) {
  .principles, .contact { grid-template-columns: 1fr; }
  .faq__group { grid-template-columns: 1fr; gap: 0; }
  .faq__name { padding-top: 0; margin-bottom: 8px; }
  .legal-doc { grid-template-columns: 1fr; gap: 24px; }
  .legal-doc__toc { position: static; display: none; }
  .lost__grid { grid-template-columns: 1fr; }
  .lost .stack { display: none; }
}
@media (max-width: 639px) {
  .page-hero { padding-top: calc(var(--nav) + 40px); }
  .section--tight { padding-top: 48px; padding-bottom: 48px; }
  .qa summary { font-size: 17px; }
  .qa p { padding-right: 0; }
}
