/* Inner Room marketing site (M9a). BRAND.md visual system v2: editorial, calm, spacious.
   Colors are the semantic tokens with a Day and a Night value; components use only the
   tokens. Day and Night follow the device with CSS alone: no script, no stored choice.
   Fonts are self-hosted Latin subsets under the SIL Open Font License 1.1. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.2ee17598.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/newsreader-latin.6e4f2958.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --ir-bg: #f7f5f0;
  --ir-surface: #ffffff;
  --ir-line: #e4e0d8;
  --ir-stone: #d9d5ce;
  --ir-text: #171821;
  --ir-text-muted: #5f5e66;
  --ir-link: #474fc4;
  --ir-accent: #949bf4;
  --ir-mist: #e8e9ff;
  --ir-clay-text: #a4502e;
  --ir-success: #2e6a4e;
  --ir-emph: #171821;
  --ir-emph-text: #f7f5f0;
  --ir-emph-muted: #b7b5be;
  --ir-primary-bg: #171821;
  --ir-primary-fg: #f7f5f0;

  --font-ui:
    "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-editorial: "Newsreader", Georgia, "Times New Roman", serif;
  --font-emoji:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

  --fs-display: clamp(2.375rem, 1.55rem + 3.4vw, 3.5rem);
  --fs-headline: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem);
  --fs-title: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --fs-lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --measure: 40rem;
  --radius-surface: 28px;
  --radius-emph: 32px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ir-bg: #131419;
    --ir-surface: #1b1c23;
    --ir-line: #292a32;
    --ir-stone: #383944;
    --ir-text: #f2efe8;
    --ir-text-muted: #aba9b2;
    --ir-link: #b3b8fa;
    --ir-accent: #a3a9f7;
    --ir-mist: #2a2c48;
    --ir-clay-text: #edb083;
    --ir-success: #86d2a9;
    --ir-emph: #23254a;
    --ir-emph-text: #f2efe8;
    --ir-emph-muted: #bdbfe8;
    --ir-primary-bg: #f2efe8;
    --ir-primary-fg: #131419;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ir-bg);
  color: var(--ir-text);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: var(--ir-link);
  text-decoration-line: underline;
  text-decoration-color: var(--ir-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: currentColor;
}

/* One two-tone focus ring in both themes: the accent outside, the text color inside,
   so it holds 3:1 against the page whatever the surface. */
:focus-visible {
  outline: 2px solid var(--ir-text);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ir-accent);
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ir-primary-bg);
  color: var(--ir-primary-fg);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  padding-block: 20px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.brand img {
  width: auto;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
}

.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ir-text);
  font-weight: 500;
  text-decoration-color: transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  text-decoration-color: var(--ir-accent);
}

@media (max-width: 560px) {
  .nav-secondary {
    display: none;
  }
  .brand img {
    height: 30px;
  }
}

/* Buttons: pills, one primary per view */

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--ir-primary-bg);
  color: var(--ir-primary-fg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.88;
}

.btn-small {
  min-height: 44px;
  padding: 0 22px;
}

.btn[aria-current="page"] {
  box-shadow: inset 0 0 0 2px var(--ir-accent);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
}

.cta-note {
  color: var(--ir-text-muted);
  font-size: 1rem;
}

/* Type */

.display {
  max-width: 17em;
  font-family: var(--font-editorial);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.headline {
  font-family: var(--font-editorial);
  font-size: var(--fs-headline);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

.title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

h3,
.heading {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
}

.lede {
  max-width: 34rem;
  margin-top: 28px;
  font-size: var(--fs-lede);
  line-height: 1.55;
}

.lede-sub {
  max-width: var(--measure);
  margin-top: 16px;
  color: var(--ir-text-muted);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose {
  max-width: var(--measure);
}

.muted {
  color: var(--ir-text-muted);
}

.small {
  font-size: 0.9375rem;
}

.promise {
  padding-left: 18px;
  border-left: 3px solid var(--ir-accent);
  font-weight: 500;
}

.emoji {
  font-family: var(--font-emoji);
}

/* Sections: whitespace and hairlines, not boxes */

.hero {
  padding-block: clamp(40px, 8vw, 96px) clamp(56px, 9vw, 112px);
}

.section {
  padding-block: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--ir-line);
}

.split {
  display: grid;
  gap: 24px 64px;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 5fr 7fr;
  }
}

/* The illustrations: a stakeholder's update, and the founder's counted view */

.layers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
}

.layers figcaption,
.welcome figcaption {
  margin-top: 16px;
  color: var(--ir-text-muted);
  font-size: 0.9375rem;
}

.layer {
  padding: clamp(22px, 3.4vw, 36px);
}

.layer-paper {
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
  border: 1px solid var(--ir-line);
  border-radius: var(--radius-surface);
  background: var(--ir-surface);
}

.layer-emph {
  grid-area: 2 / 1;
  margin-top: -28px;
  margin-left: clamp(16px, 8vw, 48px);
  border-radius: var(--radius-emph);
  background: var(--ir-emph);
  color: var(--ir-emph-text);
}

@media (min-width: 880px) {
  .layers {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
  /* The dark panel overlaps the paper card's empty right side only: the card keeps
     enough padding that no text runs under it. */
  .layer-paper {
    grid-area: 1 / 1 / 2 / 10;
    width: auto;
    padding-right: calc(22% + 24px);
  }
  .layer-emph {
    grid-area: 1 / 8 / 2 / 13;
    margin: 120px 0 0;
    align-self: start;
    box-shadow: 0 24px 48px -24px rgb(0 0 0 / 35%);
  }
  .layers figcaption {
    grid-area: 2 / 1 / 3 / 13;
    margin-top: 24px;
  }
}

.layer-label {
  margin-bottom: 16px;
  color: var(--ir-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.layer-emph .layer-label {
  color: var(--ir-emph-muted);
}

.update-title {
  font-family: var(--font-editorial);
  font-size: var(--fs-headline);
  line-height: 1.2;
}

.update-body {
  max-width: 34rem;
  margin-top: 12px;
  color: var(--ir-text-muted);
}

.prompt {
  margin-top: 24px;
  font-weight: 600;
}

.chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
}

.chip {
  display: flex;
  min-height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  border: 1px solid var(--ir-stone);
  border-radius: 20px;
  font-size: 0.875rem;
  line-height: 1.2;
}

@media (max-width: 639px) {
  .layers .layer-paper {
    padding: 20px 12px 48px;
  }
}

@media (min-width: 640px) {
  .chip {
    flex-direction: row;
    gap: 6px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.875rem;
  }
}

.chip-on {
  border: 1.5px solid var(--ir-accent);
  background: var(--ir-mist);
}

.note-box {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--ir-stone);
  border-radius: 14px;
  color: var(--ir-text-muted);
}

.privacy-line {
  margin-top: 12px;
  color: var(--ir-text-muted);
  font-size: 0.9375rem;
}

.counted {
  padding: 0;
  list-style: none;
}

.counted li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 14px;
  border-top: 1px solid var(--ir-emph-muted);
  border-top-color: color-mix(in srgb, var(--ir-emph-muted) 35%, transparent);
}

.counted li:first-child {
  border-top: 0;
  padding-top: 0;
}

.counted-name {
  font-weight: 600;
}

.counted-figs {
  color: var(--ir-emph-muted);
}

.who {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ir-emph-muted);
  border-top-color: color-mix(in srgb, var(--ir-emph-muted) 35%, transparent);
  color: var(--ir-emph-text);
}

.who-action {
  margin-top: 8px;
  color: var(--ir-emph-muted);
  font-size: 0.9375rem;
}

/* The three faces: structured sections, not cards */

.faces {
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.face {
  display: grid;
  gap: 12px 64px;
  padding-block: 36px;
  border-top: 1px solid var(--ir-line);
}

@media (min-width: 880px) {
  .face {
    grid-template-columns: 5fr 7fr;
  }
}

.face h3 {
  font-size: var(--fs-title);
  line-height: 1.25;
}

.face-line {
  margin-top: 6px;
  color: var(--ir-text-muted);
}

.face ul {
  margin-top: 12px;
  padding-left: 1.2em;
  color: var(--ir-text-muted);
}

.face li + li {
  margin-top: 6px;
}

/* How it works */

.steps {
  display: grid;
  gap: 32px 48px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

@media (min-width: 880px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--ir-line);
}

.num {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.step h3 {
  margin-top: 16px;
}

.step p {
  margin-top: 8px;
  color: var(--ir-text-muted);
}

/* The stakeholder's home, illustrated */

.welcome {
  margin-top: 8px;
}

.welcome .layer-paper {
  width: 100%;
  max-width: 34rem;
}

.welcome-greeting {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.welcome-sub {
  margin-top: 4px;
  color: var(--ir-text-muted);
}

.whatsnew {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.whatsnew li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--ir-line);
}

.new {
  padding: 1px 10px;
  border: 1.5px solid var(--ir-accent);
  border-radius: 999px;
  background: var(--ir-mist);
  font-size: 0.875rem;
  font-weight: 600;
}

.pill-demo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 20px;
  padding: 0 24px;
  border: 1.5px solid var(--ir-stone);
  border-radius: 999px;
  font-weight: 600;
}

/* The domain line of the Custom brand section */

.address {
  display: inline-block;
  justify-self: start;
  align-self: start;
  max-width: 100%;
  margin-top: 8px;
  padding: 12px 22px;
  border: 1.5px solid var(--ir-stone);
  border-radius: 999px;
  background: var(--ir-surface);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* The "Coming" label after an item that is not available yet. A small outlined pill, the
   same on every page; the screen reader says "Coming soon". */

.pill-coming {
  display: inline-block;
  margin-left: 4px;
  padding: 0 10px;
  border: 1px solid var(--ir-stone);
  border-radius: 999px;
  color: var(--ir-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

/* Pricing */

.plans {
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.plan {
  display: grid;
  gap: 16px 64px;
  padding-block: 36px;
  border-top: 1px solid var(--ir-line);
}

@media (min-width: 880px) {
  .plan {
    grid-template-columns: 5fr 7fr;
  }
}

.plan h2,
.plan h3 {
  font-size: var(--fs-title);
  line-height: 1.25;
}

.price {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

.figure {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
}

.price-note {
  color: var(--ir-text-muted);
}

.plan ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ir-text-muted);
}

.plan li + li {
  margin-top: 6px;
}

.extras {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.extras > div {
  display: grid;
  gap: 4px 32px;
  padding-block: 16px;
  border-top: 1px solid var(--ir-line);
}

@media (min-width: 720px) {
  .extras > div {
    grid-template-columns: 1fr 1fr;
  }
}

.extras dt {
  font-weight: 600;
}

.extras dd {
  color: var(--ir-text-muted);
}

.faq details {
  border-top: 1px solid var(--ir-line);
}

.faq summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > p {
  max-width: var(--measure);
  padding-bottom: 20px;
  color: var(--ir-text-muted);
}

/* The early access form */

.form-layout {
  display: grid;
  gap: 48px 80px;
  margin-top: 40px;
}

@media (min-width: 880px) {
  .form-layout {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}

.form {
  display: grid;
  gap: 28px;
  max-width: 34rem;
}

.field > label:not(.choice),
.field > legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.field legend {
  padding: 0;
}

fieldset.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hint {
  color: var(--ir-text-muted);
  font-size: 0.9375rem;
  font-weight: 400;
}

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--ir-stone);
  border-radius: 14px;
  background: var(--ir-surface);
  color: var(--ir-text);
  font: inherit;
}

.input[aria-invalid="true"] {
  border-color: var(--ir-clay-text);
  border-width: 2px;
}

.choice {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.choice input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--ir-text);
}

.consent .choice {
  align-items: flex-start;
  padding-block: 6px;
  font-weight: 400;
}

.error {
  margin-top: 8px;
  color: var(--ir-clay-text);
  font-weight: 500;
}

.error-summary {
  padding: 18px 22px;
  border: 2px solid var(--ir-clay-text);
  border-radius: 18px;
}

.error-summary h2 {
  font-size: 1.1875rem;
}

.error-summary ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.thanks {
  max-width: 34rem;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--ir-line);
  border-radius: var(--radius-surface);
  background: var(--ir-surface);
}

.thanks:focus {
  outline: none;
}

.next {
  padding: 0;
  list-style: none;
}

.next li {
  padding-block: 14px;
  border-top: 1px solid var(--ir-line);
}

.noscript {
  max-width: 34rem;
  margin-top: 32px;
  padding: 18px 22px;
  border: 1.5px solid var(--ir-stone);
  border-radius: 18px;
}

/* Final statement */

.closing {
  padding-block: clamp(64px, 10vw, 128px);
  border-top: 1px solid var(--ir-line);
}

.closing .headline {
  max-width: 14em;
}

/* Footer */

.site-footer {
  padding-block: 48px 64px;
  border-top: 1px solid var(--ir-line);
  color: var(--ir-text-muted);
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-line {
  max-width: 28rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-fine {
  font-size: 0.9375rem;
}

/* Privacy notice */

.notice h2 {
  margin-top: 40px;
  font-size: 1.375rem;
}

.notice ul {
  padding-left: 1.2em;
}

.notice li + li {
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
