/* ReLaunch Sites base components v1.0. Needs tokens.css first. Class prefix: rl- */
.rl-body { margin: 0; background: var(--rl-bg); color: var(--rl-text); font: 400 var(--rl-text-body)/var(--rl-leading-body) var(--rl-font-body); -webkit-font-smoothing: antialiased; }
.rl-display, .rl-h1, .rl-h2, .rl-h3, .rl-h4 { font-family: var(--rl-font-display); margin: 0; text-wrap: balance; }
.rl-display { font-size: var(--rl-text-display); font-weight: 700; line-height: var(--rl-leading-tight); letter-spacing: var(--rl-tracking-display); }
.rl-h1 { font-size: var(--rl-text-h1); font-weight: 700; line-height: var(--rl-leading-tight); letter-spacing: var(--rl-tracking-heading); }
.rl-h2 { font-size: var(--rl-text-h2); font-weight: 700; line-height: var(--rl-leading-heading); letter-spacing: var(--rl-tracking-heading); }
.rl-h3 { font-size: var(--rl-text-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.rl-h4 { font-size: var(--rl-text-h4); font-weight: 600; line-height: 1.25; }
.rl-lead { font-size: var(--rl-text-lead); line-height: 1.5; color: var(--rl-text-muted); max-width: 52ch; }
.rl-prose { max-width: var(--rl-measure); }
.rl-label { font-size: var(--rl-text-label); font-weight: 600; color: var(--rl-text-muted); }
.rl-light { font-weight: 300; }

/* Surfaces */
.rl-section { padding: clamp(56px, 8vw, 112px) var(--rl-gutter); }
.rl-container { max-width: var(--rl-container); margin: 0 auto; }
.rl-inverse { background: var(--rl-bg-inverse); color: var(--rl-text-inverse); }
.rl-inverse .rl-lead, .rl-inverse .rl-label { color: var(--rl-text-inverse-muted); }
.rl-alt { background: var(--rl-bg-alt); }
.rl-patterned { background-color: var(--rl-navy); background-image: var(--rl-pattern-navy); background-size: var(--rl-pattern-size); }
.rl-patterned-paper { background-color: var(--rl-paper); background-image: var(--rl-pattern-paper); background-size: var(--rl-pattern-size); }
/* Text never sits on the pattern. Put it on a solid plate: */
.rl-plate { background: var(--rl-navy); border-radius: var(--rl-radius-window); padding: var(--rl-space-6); }

/* Buttons: one primary per screen */
.rl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--rl-radius); border: 2px solid transparent; font: 600 1rem/1.2 var(--rl-font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.rl-btn:focus-visible { outline: 3px solid var(--rl-focus); outline-offset: 2px; }
.rl-btn--primary { background: var(--rl-brass); color: var(--rl-navy); }
.rl-btn--primary:hover { background: var(--rl-brass-400); }
.rl-btn--secondary { background: transparent; color: var(--rl-navy); border-color: var(--rl-navy); }
.rl-btn--secondary:hover { background: var(--rl-navy); color: var(--rl-white); }
.rl-inverse .rl-btn--secondary, .rl-patterned .rl-btn--secondary { color: var(--rl-white); border-color: var(--rl-white); }
.rl-inverse .rl-btn--secondary:hover { background: var(--rl-white); color: var(--rl-navy); }

/* Links */
.rl-link { color: inherit; text-decoration: underline; text-decoration-color: var(--rl-brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rl-link:hover { text-decoration-color: currentColor; }
.rl-link:focus-visible { outline: 3px solid var(--rl-focus); outline-offset: 2px; border-radius: 2px; }

/* The window: the brand's signature frame. Use for previews, before/after and examples */
.rl-window { position: relative; background: var(--rl-white); color: var(--rl-navy); border-radius: var(--rl-radius-window); box-shadow: 0 0 0 1px var(--rl-border), var(--rl-shadow-window); overflow: hidden; }
.rl-window__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; background: var(--rl-navy); }
.rl-window__bar i { width: var(--rl-dot); height: var(--rl-dot); border-radius: 50%; background: var(--rl-white); opacity: .9; }
.rl-window__bar span { margin-left: 10px; font-size: 12px; color: var(--rl-navy-200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-window__body { padding: var(--rl-space-5); }
.rl-window--light .rl-window__bar { background: var(--rl-paper-200); }
.rl-window--light .rl-window__bar i { background: var(--rl-navy); opacity: .5; }
.rl-window--light .rl-window__bar span { color: var(--rl-text-muted); }
/* Breakout: one element per page rises out of the top edge of a window. Use once. */
.rl-breakout { position: relative; overflow: visible; }
.rl-breakout__item { position: relative; margin-top: -56px; z-index: 1; }

/* Forms: 16px+ so iPhone does not zoom */
.rl-field { display: grid; gap: 6px; }
.rl-field label { font-weight: 600; font-size: var(--rl-text-small); }
.rl-input { font: 400 1rem/1.4 var(--rl-font-body); color: var(--rl-navy); background: var(--rl-white); min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--rl-border-strong); border-radius: var(--rl-radius); }
.rl-input:focus { outline: 3px solid var(--rl-focus); outline-offset: 1px; border-color: var(--rl-navy); }
.rl-input[aria-invalid="true"] { border-color: var(--rl-error); }
.rl-error-text { color: var(--rl-error); font-size: var(--rl-text-small); }

/* Icons from icons/sprite.svg: <svg class="rl-icon"><use href="#rl-preview"/></svg> */
.rl-icon { width: 48px; height: 48px; color: var(--rl-navy); --rl-icon-accent: var(--rl-brass); flex: none; }
.rl-inverse .rl-icon { color: var(--rl-white); }

/* One launch moment */
@keyframes rl-launch { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rl-launch { animation: rl-launch var(--rl-duration) var(--rl-ease-launch) both; }
@media (prefers-reduced-motion: reduce) { .rl-launch { animation: none; } .rl-btn { transition: none; } }
