/* The landing's first stylesheet (ARCH_LANDING_PAGE_1885): the approved mockup's rules on the kit's dark --ar-* tokens as
   hex values, Inter and Montserrat self-hosted under /fonts/ (font-src 'self'), no other external resource. It styles
   every landing page: the tokens, the faces, the base, THE FRAME (.wrap and the legal pages' bare main), the one header
   (landing_chrome.header) and footer (legal_pages.render_footer), the hero and its chat window; the legal pages' base text
   under main:not(#main). The front page's sections and THE PLAN CARD are landing_sections.css, the widths and the
   reduced-motion block landing_widths.css, the legal pages' own block landing_legal.css. Contrast: --ar-text on --ar-bg
   14.07, --ar-text-dim on --ar-bg-raised 6.43, --ar-red-text on --ar-bg-sidebar 6.13, --ar-on-red on --ar-red 4.55 and on
   the hover fill --ar-red-text 5.75 (the kit's --ar-red-hover 3.53 stays out). */
:root {
  --ar-bg: #1f1e1d;
  --ar-bg-raised: #2a2826;
  --ar-bg-input: #2b2927;
  --ar-bg-sidebar: #191817;
  --ar-bg-user-msg: #2f2d2b;
  --ar-border: #ffffff14;
  --ar-border-strong: #ffffff26;
  --ar-text: #ececea;
  --ar-text-dim: #afaba6;
  --ar-red: #ff3131;
  --ar-red-text: #ff6464;
  --ar-on-red: #1f1e1d;
  color-scheme: dark;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin-400-normal.woff2?v=8909904ab6c8) 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: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin-500-normal.woff2?v=f3779f1efccc) 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: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin-600-normal.woff2?v=f9a06e79cd3a) 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: Montserrat;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/montserrat-latin-800-normal.woff2?v=ba826fb84c2e) 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;
}

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

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

body {
  margin: 0;
  background: var(--ar-bg);
  color: var(--ar-text);
  font-family: Inter, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--ar-text); }

a:hover { color: var(--ar-red-text); }

:focus-visible {
  outline: 2px solid var(--ar-red);
  outline-offset: 3px;
}

.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* THE BRANDMARK (landing_chrome.brandmark): the letters in the text colour, the A and the underline red */
.bm { display: block; }
.bm .letters { fill: var(--ar-text); }
.bm .accent { fill: var(--ar-red); }

h1,
h2 {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: 56px; line-height: 1.06; }

h2 { font-size: 38px; line-height: 1.12; }

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.lead {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--ar-text-dim);
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ar-red-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* THE FRAME: the header, the footer and every section's .wrap, and the legal pages' bare main */
.wrap,
main:not(#main) {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 40px;
}

/* the legal pages' reading column: the text and the headings with their own margins (the front page's are the mockup's) */
main:not(#main) p {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: var(--ar-text-dim);
}

main:not(#main) :is(h1, h2, h3) {
  margin: 0 0 1rem;
  line-height: 1.15;
}

.skip {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 2;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--ar-red);
  color: var(--ar-on-red);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus { transform: none; }

/* the pill: filled red, the ghost outlined; the hover fill --ar-red-text under the same ink */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ar-red);
  border-radius: 999px;
  background: var(--ar-red);
  color: var(--ar-on-red);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--ar-red-text);
  background: var(--ar-red-text);
  color: var(--ar-on-red);
}

.btn.ghost {
  border-color: var(--ar-border-strong);
  background: transparent;
  color: var(--ar-text);
}

.btn.ghost:hover {
  border-color: var(--ar-text);
  color: var(--ar-text);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.textlink svg {
  width: 16px;
  height: 16px;
}

.calls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

/* THE LANDING HEADER (landing_chrome.header) */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav .links {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--ar-text-dim);
  text-decoration: none;
}

.nav a:hover { color: var(--ar-text); }

.nav a.btn { color: var(--ar-on-red); }

/* THE FOOTER (legal_pages.render_footer): the brand and the links one wrapping row, the © line under it */
.foot {
  padding-block: 40px 48px;
  border-top: 1px solid var(--ar-border);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}

.foot nav a { color: var(--ar-text-dim); }

.copy {
  margin: 24px 0 0;
  color: var(--ar-text-dim);
  font-size: 13px;
}

/* the hero: the copy beside the chat window */
#main > .hero {
  padding: 72px 0 112px;
  border-top: 1px solid var(--ar-border);
  background: var(--ar-bg-sidebar);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 72px;
}

.fine {
  margin: 22px 0 0;
  color: var(--ar-text-dim);
  font-size: 14px;
}

/* the chat window: a picture of the chat, nothing in it takes input (the composer drawn, not a form) */
.win {
  overflow: hidden;
  border: 1px solid var(--ar-border-strong);
  border-radius: 14px;
  background: var(--ar-bg);
  color: var(--ar-text);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}

.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--ar-border);
  color: var(--ar-text-dim);
  font-size: 13px;
}

.win-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.msg-me {
  align-self: flex-end;
  max-width: 86%;
  margin: 0;
  padding: 12px 15px;
  border-radius: 14px 14px 4px 14px;
  background: var(--ar-bg-user-msg);
  font-size: 14.5px;
  line-height: 1.5;
}

.file {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 7px 10px;
  border: 1px solid var(--ar-border-strong);
  border-radius: 8px;
  background: var(--ar-bg-raised);
  color: var(--ar-text);
  font-size: 12.5px;
  font-weight: 500;
}

.file svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--ar-text-dim);
}

.msg-ai {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
}

.msg-ai p { margin: 0; }

.ai-mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.ai-mark svg {
  width: 22px;
  height: 24px;
  fill: var(--ar-red);
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border-radius: 10px;
}

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--ar-border);
}

.composer .field {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ar-border-strong);
  border-radius: 12px;
  background: var(--ar-bg-input);
  color: var(--ar-text-dim);
  font-size: 14px;
}

.send {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ar-red);
  color: var(--ar-on-red);
}

.send svg {
  width: 18px;
  height: 18px;
}
