:root {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  /* Default company brand palette (LaakkoSET.io) */
  --accent: #0f4c81;
  --accent-hover: #0a3860;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --accent-ink: #0f4c81;
  --accent-on: #ffffff;

  --ok: #15803d;
  --ok-bg: #dcfce7;
  --ok-border: #bbf7d0;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --warn-border: #fde68a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, 0.04), 0 12px 28px -12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 4px 10px rgba(15, 23, 42, 0.05), 0 20px 40px -16px rgba(15, 23, 42, 0.14);
}

/* Product accent tokens (works on <body> and on individual homepage cards) */
[data-product="jahti-ptt"] {
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #fff7ed;
  --accent-border: #fed7aa;
  --accent-ink: #9a3412;
  --accent-on: #ffffff;
}

[data-product="riistajako"] {
  --accent: #2c3327;
  --accent-hover: #1e241b;
  --accent-soft: #f7f4ec;
  --accent-border: #ddd3b8;
  --accent-ink: #2c3327;
  --accent-on: #ffffff;
}

[data-product="ampumaseura"] {
  --accent: #059669;
  --accent-hover: #047857;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --accent-ink: #065f46;
  --accent-on: #ffffff;
}

[data-product="vastikehallinta"] {
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: #f0fdfa;
  --accent-border: #99f6e4;
  --accent-ink: #115e59;
  --accent-on: #ffffff;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 85% -60px, var(--accent-soft) 0%, transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  color: #0f4c81;
}

.brand-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 10px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--bg-subtle);
  color: var(--text);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  text-decoration: none;
}

.nav-links .nav-contact {
  border: 1px solid var(--border-strong);
  margin-left: 4px;
}

main {
  flex: 1;
  padding: 36px 0 72px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent-ink);
}

/* Hero (split layout on desktop, stacked on mobile) */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero-home {
  background:
    linear-gradient(125deg, #ffffff 0%, #ffffff 58%, #f0f6ff 100%);
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.product-icon-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--text-body);
  font-size: 1.03rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.93rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  color: var(--accent-on);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-ink);
}

/* Trust / Specs Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* Section headings */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.section-title {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-sub {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Homepage Product Showcase Cards (2x2 grid) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.product-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-cover img {
  transform: scale(1.03);
}

.product-cover-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.product-cover-badge.is-live {
  color: #166534;
}

.product-cover-icon {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  background: #ffffff;
  overflow: hidden;
}

.product-cover-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 2px 8px;
}

.product-audience {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-body h3 {
  margin: 0;
  font-size: 1.24rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.product-body p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.58;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.chip {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 9px;
}

.product-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.link-primary {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent-ink);
}

.link-demo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
}

.link-demo:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
  text-decoration: none;
}

/* Feature Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.card-accent {
  border-top: 3px solid var(--accent);
}

.card h2,
.card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.93rem;
}

.card ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-body);
  font-size: 0.91rem;
}

.card li + li {
  margin-top: 4px;
}

/* Media Gallery Cards (e.g. Jahti-PTT field gear) */
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.media-card-img {
  aspect-ratio: 16 / 10;
  background: #0f172a;
  overflow: hidden;
}

.media-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-card-body h3 {
  margin: 0;
  font-size: 1.02rem;
}

.media-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Product Diagram Frame */
.diagram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.diagram-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Notice / Callout */
.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 32px;
  color: var(--text-body);
  font-size: 0.94rem;
}

.callout strong {
  color: var(--text);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-border);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid var(--warn-border);
}

/* Prose Card (Privacy Policy / Long-form docs) */
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
}

.prose-card h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.prose-card h2 {
  margin: 26px 0 10px;
  font-size: 1.15rem;
  color: var(--accent-ink);
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p,
.prose-card li {
  color: var(--text-body);
  font-size: 0.96rem;
}

.prose-card ul {
  margin: 8px 0 14px;
  padding-left: 20px;
}

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

.meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

/* Other Products Cross-Nav Strip */
.other-products {
  margin-bottom: 32px;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.other-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.other-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text);
}

.other-card img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.other-card strong {
  display: block;
  font-size: 0.93rem;
  line-height: 1.25;
}

.other-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact CTA Box */
.contact-box {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-soft) 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.contact-box h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--text);
}

.contact-box p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.95rem;
  max-width: 58ch;
}

/* Contact Page & Form */
.hero-compact {
  padding: 28px 32px;
  margin-bottom: 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-card {
  padding: 28px 30px;
}

.form-intro {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.req {
  color: #dc2626;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.form-privacy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 44ch;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-status {
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-status.is-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-border);
}

.form-status.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.email-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: 4px;
}

.email-copy-box code {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-mini {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.btn-mini:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-ink);
}

.demo-links-list {
  margin: 4px 0 6px;
  padding-left: 18px;
}

.demo-links-list li + li {
  margin-top: 6px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-ink);
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .grid,
  .grid-3,
  .other-grid,
  .contact-layout,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .nav-row {
    gap: 10px;
    padding: 12px 0;
  }

  .wrap {
    padding: 0 16px;
  }

  main {
    padding: 22px 0 48px;
  }

  .hero,
  .prose-card,
  .contact-box {
    padding: 22px 18px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .nav-links a {
    padding: 6px 9px;
    font-size: 0.85rem;
  }
}
