/* Roommie shared page frame: page width, side margins, top bar and logo.
 * ONE file for every product page: Roommie (/), Roommie Pro (/pro) and Roommie Invest (/invest).
 * Next.js pages import it (src/app/layout.tsx); the plain HTML Invest pages link it at /brand/brand.css.
 * The numbers match "layout" in design/tokens.json (a test checks this). Design system page: /design. */

:root {
  --rm-page: 1480px;   /* widest content on any page */
  --rm-gutter: 16px;   /* left and right page margin, on every screen size */
  --rm-head: 60px;     /* top bar height */
  --rm-ink: #0e0e0e;
  --rm-grey: #6b6b6b;
  --rm-line: rgb(14 14 14 / .1);
  --rm-lime: #c8f169;
}

/* Page edges: every section, the top bar and the footer sit inside this. */
.rm-page { width: 100%; max-width: var(--rm-page); margin: 0 auto; padding-left: var(--rm-gutter); padding-right: var(--rm-gutter); box-sizing: border-box; }

/* Selectors start with .rm-head so page resets (like ".pf *") cannot undo them. */
/* Top bar: logo left, links in the middle, one ink pill right. */
.rm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--rm-head); color: var(--rm-ink); font-family: "Inter Tight", system-ui, sans-serif; }
.rm-head .rm-links { display: flex; gap: 28px; font-size: 14px; color: var(--rm-grey); }
.rm-head .rm-links a { color: inherit; text-decoration: none; }
.rm-head .rm-links a:hover { color: var(--rm-ink); }
.rm-head .rm-cta { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--rm-ink); color: #fff !important; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }

/* Logo: the room mark, ROOMMIE, then the product name in grey (PRO, INVEST). */
.rm-head .rm-logo { display: inline-flex; align-items: center; gap: .45em; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; line-height: 1; color: inherit; text-decoration: none; white-space: nowrap; }
.rm-head .rm-logo svg { height: 1.25em; width: auto; flex: none; }
.rm-head .rm-logo i { font-style: normal; font-weight: 500; color: var(--rm-grey); margin-left: .1em; }

/* Phone menu: the same links in a small drop-down. */
.rm-head .rm-menu { display: none; position: relative; margin-left: auto; }
.rm-head .rm-menu summary { position: relative; list-style: none; cursor: pointer; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--rm-line); background: #fff; color: var(--rm-ink); font-size: 14px; }
.rm-head .rm-menu summary::-webkit-details-marker { display: none; }
.rm-head .rm-menu > div { position: absolute; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; min-width: 200px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgb(0 0 0 / .16); z-index: 30; }
.rm-head .rm-menu a { padding: 11px 14px; color: var(--rm-ink); text-decoration: none; font-size: 14px; border-radius: 10px; }
.rm-head .rm-menu a:hover { background: #f3f3f1; }
@media (max-width: 860px) { .rm-head .rm-links { display: none; } .rm-head .rm-menu { display: block; } }
@media (max-width: 480px) { .rm-head { gap: 4px; } }

/* A thin line between a page's own sections and the links to the other products. */
.rm-head .rm-links { align-items: center; }
.rm-head .rm-sep { width: 1px; height: 16px; background: var(--rm-line); }

/* Phones: logo left, then language and one round menu button (three lines). "Start free" moves to the top of the menu. */
.rm-head .rm-menu-cta { display: none; }
@media (max-width: 860px) {
  .rm-head .rm-logo { margin-right: auto; }
  .rm-head .rm-menu { order: 9; margin-left: 0; }
  .rm-head .rm-cta { display: none; }
  .rm-head .rm-menu summary { width: 40px; height: 40px; padding: 0; font-size: 0; color: transparent; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 6h14M3 10h14M3 14h14' stroke='%230e0e0e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
  .rm-head .rm-menu summary::before, .rm-head .rm-menu summary::after { content: none !important; }
  .rm-head .rm-menu[open] summary { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' stroke='%230e0e0e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
  .rm-head .rm-menu > div { min-width: 240px; padding: 10px; }
  .rm-head .rm-menu a { font-size: 16px; padding: 12px 14px; }
  .rm-head .rm-menu .rm-menu-cta { display: flex; align-items: center; justify-content: center; height: 46px; margin-bottom: 6px; padding: 0 20px; border-radius: 999px; background: var(--rm-ink); color: #fff; font-size: 15px; font-weight: 500; }
  .rm-head .rm-menu .rm-menu-cta:hover { background: var(--rm-ink); }
  .rm-head .rm-lang summary { border-color: transparent; height: 40px; }
}

/* Phones: one short word in the top bar button, so long languages fit. */
.rm-head .rm-cta-short { display: none; }
@media (max-width: 480px) { .rm-head .rm-cta-long { display: none; } .rm-head .rm-cta-short { display: inline; } }
