/* Steps at Home website: the same look as the app (apps/mobile/src/lib/theme.ts).
   The font is served from this site, so no visitor is sent to a third party. */
@font-face { font-family: 'Rubik'; font-weight: 400; font-display: swap; src: url('/fonts/Rubik-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Rubik'; font-weight: 600; font-display: swap; src: url('/fonts/Rubik-SemiBold.ttf') format('truetype'); }

:root {
  color-scheme: dark;
  --bg: #0A0A0F;
  --surface: #15151D;
  --surface-2: #1E1E29;
  --line: rgba(255, 255, 255, 0.08);
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.48);
  --pink: #FF3D7F;
  --pink-soft: rgba(255, 61, 127, 0.12);
  --violet: #7C5CFF;
  --green: #3DDC97;
  --red: #FF5A5F;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
a { color: var(--pink); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 1.8em; line-height: 1.2; margin: 0.4em 0 0.1em; }
h2 { font-size: 1.2em; margin: 1.6em 0 0.3em; }
p, li { color: var(--text-2); }
ul { padding-inline-start: 1.3em; }
.updated { color: var(--text-3); margin: 0 0 1.2em; }
section + section { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.tile { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
nav { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; }
nav a { color: var(--text-2); text-decoration: none; }
nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; padding: 48px 0 32px; }
.glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; top: -40px; inset-inline-start: -80px; z-index: -1;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), rgba(255, 61, 127, 0.18) 45%, transparent 70%); filter: blur(24px); }
.wordmark { font-size: 48px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; margin: 24px 0 0; direction: ltr; unicode-bidi: isolate; }
[dir=rtl] .wordmark { text-align: right; }
.wordmark em { font-style: normal; color: var(--pink); }
.lead { font-size: 19px; margin-top: 16px; }

/* cards */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.card p { margin: 0; font-size: 15px; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: var(--pink); background: var(--pink-soft); border-radius: 999px; padding: 4px 12px; }

/* forms */
label { display: block; font-size: 14px; color: var(--text-3); margin: 16px 0 8px; }
input {
  width: 100%; height: 56px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  padding: 0 16px; color: var(--text); font: inherit; direction: ltr;
}
input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
button {
  width: 100%; height: 56px; margin-top: 24px; border: 0; border-radius: 999px; background: var(--pink); color: #fff;
  font: 600 17px 'Rubik', system-ui, sans-serif; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 32px rgba(255, 61, 127, 0.35);
}
button:disabled { opacity: 0.5; cursor: default; }
.msg { margin-top: 16px; padding: 12px 16px; border-radius: 16px; font-size: 15px; }
.msg.err { background: rgba(255, 90, 95, 0.12); color: #FFB3B5; }
.msg.ok { background: rgba(61, 220, 151, 0.12); color: var(--green); }
.hidden { display: none; }
.lang { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; font-size: 13px; font-weight: 600; }
.lang button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; color: var(--text-3); }
.lang button[aria-pressed=true] { background: var(--text); color: var(--bg); }

footer { color: var(--text-3); font-size: 14px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; }
footer a { color: var(--text-2); }
