/* Roommie Pro design system. ONE file for every Pro page: the home page (/pro and the 7 language copies), pricing (/pro/pricing)
 * and the Pro guides. Pages get it from ProShell (src/components/pro/pro-frame.tsx), which links it at /brand/pro.css, adds class "pro"
 * and draws the one header and the one footer. Change the look here, never in a single page, so the pages cannot drift apart.
 * Tokens, header and footer match the Invest design system (/brand/invest.css); src/lib/pro/design-system.test.ts checks both. */

@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&display=swap");

/* 1. Tokens */
.pro {
  --paper: #f7f6f1;
  --card: #efede6;
  --card2: #e7e5dc;
  --ink: #151513;
  --grey: #5f5e58;
  --soft: #8c8b84;
  --line: rgb(21 21 19 / .12);
  --lime: #c8f169;
  --night: #151513;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --page: 1320px;
  --side: 32px;
  --b-mist: var(--card);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 900px) { .pro { --side: 16px; } }

/* 2. Page width: every block sits inside the same 1320px frame with the same side margin */
.pro .bk, .pro .topbar, .pro .rm-page, .pro .v-wrap { max-width: var(--page); margin-left: auto; margin-right: auto; padding-left: var(--side); padding-right: var(--side); }

/* 3. Type: serif for titles, sans for everything else, nothing under 14px */
.pro .h2, .pro .vb-h2, .pro .t-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.pro .h2 { font-size: 44px; line-height: 1.1; }
@media (max-width: 900px) { .pro .h2 { font-size: 32px; } }
.pro .rule { border: 0; border-top: 1px solid var(--line); }

/* 4. Buttons */
.pro .go { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }
.pro .go svg { width: 14px; height: 14px; }
.pro .lnk { font-size: 16px; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 1px; text-decoration: none; }

/* 5. Header: plain links left, logo in the middle, Sign in + language + one dark button right, 24px apart */
.pro .rm-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; font-family: var(--sans); }
.pro .rm-head .rm-links { grid-column: 1; grid-row: 1; justify-self: start; position: static; transform: none; display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--grey); }
.pro .rm-head .rm-links a { padding: 0; border: 0; background: none; border-radius: 0; color: var(--grey); text-decoration: none; }
.pro .rm-head .rm-links .rm-sep { display: none; }
.pro .rm-head .rm-logo { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; font-size: 17px; letter-spacing: .06em; color: var(--ink); }
.pro .rm-head .rm-right, .pro .rm-head .s-hright { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 24px; margin: 0; }
.pro .rm-head .rm-right > div, .pro .rm-head .s-hright > div { gap: 24px !important; }
.pro .rm-head .rm-in, .pro .rm-head .rm-lang summary { font: 400 15px/1 var(--sans); color: var(--grey); letter-spacing: 0; height: 38px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; text-decoration: none; }
.pro .rm-head .rm-links a:hover, .pro .rm-head .rm-in:hover { color: var(--ink); }
.pro .rm-head .rm-cta { height: 38px; padding: 0 18px; font: 500 15px/1 var(--sans); background: var(--ink); }
@media (max-width: 900px) {
  .pro .rm-head { display: flex; height: 64px; }
  .pro .rm-head .rm-logo { margin-right: auto; }
  .pro .rm-head .rm-links, .pro .rm-head .rm-in { display: none; }
}

/* 6. Questions: plain rows that open on click */
.pro .faq > div { border-top: 1px solid var(--line); cursor: pointer; }
.pro .faq > div:last-child { border-bottom: 1px solid var(--line); }
.pro .faq h3 { font-size: 19px; font-weight: 500; padding: 17px 0; display: flex; justify-content: space-between; gap: 20px; letter-spacing: -.01em; margin: 0; }
.pro .faq h3::after { content: "+"; color: var(--soft); font-weight: 300; }
.pro .faq p { display: none; font-size: 17px; color: var(--grey); padding: 0 0 20px; margin: 0; max-width: 42em; }
.pro .faq .open p { display: block; }
.pro .faq .open h3::after { content: "\2212"; }

/* 7. Footer: dark, logo left, folding link groups right, one copyright line */
.pro footer { background: var(--night); color: #e9e8e2; padding: 72px 0 48px; }
.pro footer .in { max-width: var(--page); margin: 0 auto; padding: 0 var(--side); display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.pro footer .brand2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pro footer .brand2 svg { width: 20px; height: 20px; }
.pro footer .brand2 i { font-style: normal; font-weight: 500; color: #9a998f; }
.pro footer details { border-top: 1px solid rgb(255 255 255 / .14); }
.pro footer details:last-of-type { border-bottom: 1px solid rgb(255 255 255 / .14); }
.pro footer summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 14px 0; font-size: 16px; color: #b9b8b0; }
.pro footer summary::-webkit-details-marker { display: none; }
.pro footer summary::after { content: ""; width: 8px; height: 8px; border-right: 1.4px solid #8c8b84; border-bottom: 1.4px solid #8c8b84; transform: rotate(45deg); margin: 4px 4px 0 0; }
.pro footer details[open] summary::after { transform: rotate(-135deg); margin-top: 8px; }
.pro footer details h2, .pro footer details h4 { font-size: inherit; font-weight: inherit; margin: 0; }
.pro footer ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; padding: 4px 0 20px; margin: 0; }
.pro footer ul a { font-size: 16px; color: #e9e8e2; text-decoration: none; }
.pro footer ul a:hover { color: var(--lime); }
.pro .fbot { max-width: var(--page); margin: 72px auto 0; padding: 0 var(--side); font-size: 14px; color: #9a998f; }
.pro .fbot p { margin: 0; }
@media (max-width: 900px) { .pro footer { padding-top: 48px; } .pro footer .in { grid-template-columns: 1fr; gap: 40px; } .pro .fbot { margin-top: 48px; } }

/* 8. Long pages (Pro guides): same frame, serif title, readable column */
.pro .pro-art { padding-top: 56px; padding-bottom: 96px; }
.pro .pro-art article { max-width: 720px; }
.pro .pro-art h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.pro .pro-art .intro { font-size: 20px; line-height: 1.5; color: var(--grey); margin: 20px 0 0; }
.pro .pro-art .go { margin-top: 32px; }
.pro .pro-art figure { margin: 48px 0 0; border-radius: 14px; overflow: hidden; background: var(--card); }
.pro .pro-art figure img { display: block; width: 100%; height: auto; }
.pro .pro-art section { margin-top: 48px; }
.pro .pro-art h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.015em; margin: 0 0 14px; }
.pro .pro-art section p, .pro .pro-art section li { font-size: 17px; line-height: 1.65; color: #34332f; }
.pro .pro-art section p + p { margin-top: 14px; }
.pro .pro-art section ul { padding-left: 20px; margin: 14px 0 0; }
.pro .pro-art .faq { margin-top: 8px; }
.pro .pro-art .note { margin-top: 48px; font-size: 14px; color: var(--grey); }
.pro .pro-art .next { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.pro .pro-art .next h2 { font-size: 24px; }
.pro .pro-art .next ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.pro .pro-art .next a { font-size: 17px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .pro .pro-art { padding-top: 32px; } .pro .pro-art h1 { font-size: 36px; } .pro .pro-art .intro { font-size: 18px; } }
/* questions as native open/close rows (guides) */
.pro details.faq-row, .pro .faq > details { border-top: 1px solid var(--line); }
.pro .faq > details:last-child { border-bottom: 1px solid var(--line); }
.pro .faq > details summary { list-style: none; cursor: pointer; }
.pro .faq > details summary::-webkit-details-marker { display: none; }
.pro .faq > details[open] p { display: block; }
.pro .faq > details[open] h3::after { content: "\2212"; }

/* Footer, 2026-11-19: the copyright sits under the logo and lines up with the bottom of the Legal row, so the footer ends there */
.pro footer { padding-bottom: 72px; }
.pro footer .in > div:first-child { display: flex; flex-direction: column; justify-content: space-between; }
.pro footer .fcopy { margin: 0; font-size: 14px; color: #9a998f; }
.pro footer .fnote { margin: 0 0 20px; font-size: 14px; color: #9a998f; }
@media (max-width: 900px) { .pro footer .in > div:first-child { gap: 16px; } }
/* copyright: its own line under the footer, a little below the Legal row */
.pro footer .fcopy { max-width: var(--page); margin: 40px auto 0; padding: 0 var(--side); }

/* 9. Page parts every Pro page may use: hero line, section title */
.pro .hero h1 { font-size: 60px; line-height: 1.12; letter-spacing: -.025em; max-width: 1180px; font-weight: 400; margin: 0; }
.pro .hero h1 b { font-family: var(--sans); font-weight: 600; letter-spacing: -.035em; }
.pro .hero h1 b::after { content: "."; }
.pro .hero h1 span { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.pro .acts { display: flex; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
@media (max-width: 1100px) { .pro .hero h1 { font-size: 50px; } }
@media (max-width: 900px) { .pro .hero h1 { font-size: 34px; line-height: 1.15; } .pro .acts { margin-top: 28px; } }

/* 10. Short single-message pages (a plan sent by a client) */
.pro .pro-open { padding-top: 96px; padding-bottom: 140px; }
.pro .pro-open h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.08; letter-spacing: -.02em; margin: 0; max-width: 14em; text-wrap: balance; }
.pro .pro-open .intro { font-size: 20px; line-height: 1.5; color: var(--grey); margin: 20px 0 0; max-width: 34em; }
@media (max-width: 900px) { .pro .pro-open { padding-top: 48px; padding-bottom: 96px; } .pro .pro-open h1 { font-size: 36px; } .pro .pro-open .intro { font-size: 18px; } }
