/* RescApp-verkkosivut (29.11.2026). Sama värimaailma kuin sovelluksessa. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, 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: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #101722;
  --bg-alt: #141d2a;
  --card: #1d2938;
  --line: rgba(255, 255, 255, .09);
  --fg: #f5f7fa;
  --muted: #9aa6b5;
  --accent: #f07832;
  --accent-soft: #3a2316;
  --ok: #35b978;
  --bad: #ffb4a9;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: #ffc29e; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-top { position: sticky; top: 0; z-index: 10; background: rgba(16, 23, 34, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand img { border-radius: 9px; }
.top-nav { display: flex; align-items: center; gap: 20px; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top-nav a:hover { color: var(--fg); }
@media (max-width: 760px) { .top-nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--fg) !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #4a2c1b; }
.btn-small { min-height: 40px; padding: 8px 14px; }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero { padding: 64px 0 48px; background: radial-gradient(900px 480px at 20% -120px, #22314a 0%, rgba(16, 23, 34, 0) 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .phones { display: none; } }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
.lead { font-size: 1.15rem; color: #d6dde6; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 600; }
.hero-points li::before { content: '✓'; color: var(--ok); margin-right: 6px; font-weight: 800; }

.phones { position: relative; height: 520px; }
.phone { margin: 0; border-radius: 28px; overflow: hidden; border: 6px solid #0b1018; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); background: #0b1018; aspect-ratio: 9 / 17; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phones .phone { position: absolute; width: 240px; }
.phone-back { right: 10px; top: 0; transform: rotate(4deg); opacity: .85; }
.phone-front { right: 170px; top: 40px; transform: rotate(-3deg); }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 28px; max-width: 70ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: #c9d2dd; }
.screen { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }

.steps { counter-reset: s; list-style: none; margin: 20px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 56px; position: relative; color: #c9d2dd; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent); color: #ffc29e; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.steps b { color: var(--fg); }
.small { color: var(--muted); font-size: .92rem; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figcaption { text-align: center; color: var(--muted); font-weight: 600; padding: 8px 0 4px; background: #0b1018; }
.gallery .phone { aspect-ratio: auto; }
.gallery .phone img { aspect-ratio: 9 / 15; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: #c9d2dd; font-size: .95rem; }
.form input, .form textarea { font: inherit; color: var(--fg); background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font-weight: 700; margin-bottom: 6px; }
.topics label { flex-direction: row; align-items: center; gap: 8px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.topics input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.consent input { width: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: #a5e6b2; }
.form-msg.err { color: var(--bad); }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-row a { color: var(--muted); }
.foot-row b { color: var(--fg); }

/* Tietosuojasivu */
.doc { max-width: 780px; padding: 48px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.35rem; margin-top: 32px; }
.doc p, .doc li { color: #d6dde6; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { border-top: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
