/* Sifti landing page — design tokens and layout.
   Source of truth: the Claude Design handoff (Nordic Professional brand profile). */

:root {
  --teal: #183B3B;
  --teal-hover: #12302F;
  --green: #236B56;
  --green-hover: #1C5745;
  --sage: #8CB2A5;
  --sage-ring: rgba(140, 178, 165, 0.45);
  --rust: #B64E36;
  --ink: #172925;
  --bg: #F7F6F1;
  --surface: #FFFFFF;
  --section: #F3F5F2;
  --border: #D8DDD8;
  --muted: #51615C;
  --placeholder: #8A958F;
  --icon-tile: #EAF0EC;
  --success-tile: #E6F0EB;

  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;

  --radius: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(23, 41, 37, 0.04);
  --shadow-browser: 0 12px 32px rgba(23, 41, 37, 0.08);
  --shadow-phone: 0 16px 40px rgba(23, 41, 37, 0.18);
  --shadow-form: 0 16px 44px rgba(0, 0, 0, 0.18);

  --container: 1200px;
  --gutter: 24px;
  --section-pad: clamp(56px, 7vw, 96px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--teal); }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
input::placeholder { color: var(--placeholder); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
}
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--sage); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--teal);
  border: 1px solid var(--border);
  padding: 13px 22px;
}
.btn-secondary:hover { border-color: var(--sage); background: var(--section); color: var(--teal); }
.btn-success { background: var(--green); color: #fff; font-size: 16px; padding: 15px 22px; }
.btn-success:hover { background: var(--green-hover); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 241, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--green); }
.header-cta { font-size: 14px; padding: 10px 16px; }

/* Hero */
.hero {
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.08;
  text-wrap: pretty;
}
.hero-lead { font-size: 18px; color: var(--muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-quote {
  margin: 12px 0 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--sage);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
}
.hero-quote blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.hero-quote figcaption {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-shots {
  position: relative;
  padding-bottom: 56px;
  max-width: 640px;
  width: 100%;
  justify-self: end;
}
.browser-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-browser);
  overflow: hidden;
}
.browser-bar {
  height: 36px;
  background: var(--section);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.browser-bar .url {
  margin-left: 12px;
  flex: 1;
  height: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.browser-screen { aspect-ratio: 16 / 10; background: var(--section); }
.browser-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.phone-frame {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 31%;
  min-width: 128px;
  background: var(--ink);
  border-radius: 22px;
  padding: 8px;
  box-shadow: var(--shadow-phone);
}
.phone-screen {
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Generic section */
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section-alt {
  background: var(--section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-intro { max-width: 620px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.section-intro h2, .split h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
}
.section-intro p { font-size: 17px; color: var(--muted); }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--icon-tile);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card h3 { font-size: 22px; line-height: 1.2; }
.feature-card p { font-size: 15px; color: var(--muted); }

.steps {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 8px;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.steps li { display: flex; align-items: center; gap: 10px; }
.steps .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps .num-last { background: var(--green); }
.steps .arrow { color: var(--sage); padding: 0 8px; }

/* Split layouts (Miksi, Yhteystiedot) */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.split-heading { display: flex; flex-direction: column; gap: 14px; }

.why-list { display: flex; flex-direction: column; }
.why-item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
}
.why-item:last-child { border-bottom: 1px solid var(--border); }
.why-num { font-family: var(--font-heading); font-size: 22px; color: var(--sage); }
.why-item h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.why-item p { font-size: 15px; color: var(--muted); }

/* Customers */
.customers {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 64px;
}
.customers .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.customer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 64px;
  filter: grayscale(1);
  opacity: 0.7;
}
.customer-logos img { height: 56px; width: auto; }
.customer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
}
.customer-logo:hover { color: var(--ink); }
.customer-logo img { height: 44px; }

/* Demo */
.demo { background: var(--teal); color: #fff; }
.demo .container {
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 104px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.demo-copy { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.demo-copy .kicker { color: var(--sage); }
.demo-copy h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; }
.demo-copy p { font-size: 17px; color: rgba(255, 255, 255, 0.8); }
.demo-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.demo-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.demo-benefits svg { flex: none; }

.form-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-form);
  width: 100%;
  max-width: 520px;
  justify-self: end;
}
.form-card h3 { font-size: 28px; margin-bottom: 4px; }
.demo-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.field input:focus-visible {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-ring);
}
.field input[aria-invalid="true"] { border-color: var(--rust); }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; font-weight: 400; }
.field-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--teal);
  flex: none;
}
.field-check input:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.field-error {
  font-size: 13px;
  color: var(--rust);
  display: flex;
  gap: 6px;
  align-items: center;
}
.field-error:empty { display: none; }
.field-error svg { flex: none; }
.demo-submit { margin-top: 6px; font-size: 16px; padding: 15px 20px; width: 100%; }
.demo-submit[disabled] { opacity: 0.85; cursor: default; }
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: inline-block;
  animation: sifti-spin 0.8s linear infinite;
}
@keyframes sifti-spin { to { transform: rotate(360deg); } }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-status { font-size: 14px; color: var(--rust); }
.form-status:empty { display: none; }

.demo-success { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--success-tile);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-success p { color: var(--muted); }
.demo-success b { font-weight: 600; color: var(--ink); }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

/* Pricing */
.pricing-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-card);
}
.pricing-card h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; text-wrap: pretty; }
.pricing-card p { color: var(--muted); max-width: 520px; text-wrap: pretty; }
.pricing-card .btn { margin-top: 6px; }
.pricing-contact { font-size: 14px; color: var(--muted); }

/* Contact */
.contact { background: var(--section); border-top: 1px solid var(--border); }
.contact .split-heading p { color: var(--muted); max-width: 420px; }
.contact-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(110px, 140px) 1fr;
  gap: 14px 20px;
  align-content: start;
}
.contact-list dt { color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 2px; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--teal); color: rgba(255, 255, 255, 0.8); }
.site-footer .container {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand img { height: 30px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-nav a:hover { color: var(--sage); }

/* Legal page */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; margin-bottom: 8px; }
.legal .updated { font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.legal section { margin-bottom: 32px; }
.legal h2 { font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 8px 0 0; padding-left: 20px; }

/* Responsive */
@media (max-width: 859px) {
  .site-nav { display: none; }
  .hero-shots { justify-self: stretch; }
  .form-card { justify-self: stretch; max-width: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
