/* tuuppi.fi front page. The app's own palette: calm greys, one blue accent,
   the logo's colours for small touches. No web fonts: the system font keeps
   the page fast and free of third-party requests. */
:root {
  color-scheme: light dark;
  --bg: #f2f4f8;
  --card: #ffffff;
  --text: #1b2430;
  --muted: #566173;
  --line: #e3e7ee;
  --accent: #2f6a9e;
  --accent-soft: #e4ecf5;
  --teal: #16807f;
  --orange: #f2a33a;
  --blue: #5b9ad8;
  --green: #7cc23d;
  --orange-ink: #b86e0e;
  --green-ink: #4a8a17;
  --phone: #1b2430;
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1217;
    --card: #1a2029;
    --text: #f1f4f8;
    --muted: #a7b2c1;
    --line: #2a323d;
    --accent: #8fbfe8;
    --accent-soft: #1f2d3d;
    --teal: #4fb8b4;
    --orange-ink: #f2b35e;
    --green-ink: #9bd45f;
    --phone: #000000;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.bar nav { display: flex; gap: 20px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 40px 72px; }
.eyebrow { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
h1 { margin: 18px 0 16px; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
h1 span { color: var(--teal); }
.lead { margin: 0; max-width: 34em; color: var(--muted); font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; text-decoration: none; }
.button.primary { background: var(--accent); color: var(--card); }
.button.quiet { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.status { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* Phone frames around the app screenshots (780 x 1560 renders) */
.phone { padding: 9px; border-radius: 40px; background: var(--phone);
  box-shadow: 0 30px 60px -30px rgba(27, 36, 48, .45); }
.phone img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 31px; }
.hero .phone { width: min(320px, 80vw); margin: 0 auto; transform: rotate(2deg); }

/* Sections */
section { padding: 56px 0; }
h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.intro { margin: 0 0 32px; max-width: 40em; color: var(--muted); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 24px; border-radius: var(--radius); background: var(--card); }
.card h3 { margin: 16px 0 6px; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; }
.dot svg { width: 26px; height: 26px; }
.dot.teal { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.dot.orange { background: color-mix(in srgb, var(--orange) 20%, transparent); color: var(--orange-ink); }
.dot.blue { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }
.dot.green { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green-ink); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none;
  counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: var(--card); font-weight: 700; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 15px; }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.trust li + li { margin-top: 6px; }
.trust .card ul + p, .trust .card p + p { margin-top: 14px; }

.note { max-width: 44em; color: var(--muted); font-size: 15px; }
footer { padding: 32px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps, .trust { grid-template-columns: 1fr; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { flex: 0 0 62%; scroll-snap-align: center; }
}
@media (max-width: 560px) {
  .bar nav { display: none; }
  .features { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
  section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .phone { transform: none; }
}
