/* Troteo website: the app's colours (TrotteoColors) and system fonts, as in the app. */
:root {
  --bg: #f2f2f2;
  --card: #ffffff;
  --ink: #312915;
  --muted: #6f6b61;
  --line: #dfdcd4;
  --yellow: #ffc224;
  --orange: #ff6511;
  --yellow-soft: #ffedbf;
  --blue: #4285f4;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; }

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

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.top img { height: 36px; width: auto; display: block; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(36px, 5.5vw, 58px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
.hero h1 .mark { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.forward {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(49, 41, 21, 0.06);
}
.forward .label { font-size: 14px; color: var(--muted); }
.forward code { font: 600 19px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.forward button {
  margin-left: auto; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer;
  background: var(--yellow-soft); color: var(--ink); font: 600 14px/1 inherit;
}
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--yellow); color: var(--ink); font-weight: 600;
  border-radius: 8px; padding: 14px 22px;
}
.btn.dark { background: var(--ink); color: #fff; }
.soon { font-size: 14px; color: var(--muted); }

.phones { position: relative; display: flex; justify-content: center; min-height: 520px; }
.phone {
  width: 250px; border-radius: 32px; overflow: hidden; background: #fff;
  border: 8px solid var(--ink); box-shadow: 0 24px 60px rgba(49, 41, 21, 0.18);
}
.phone img { display: block; width: 100%; height: auto; }
.phones .phone:nth-child(1) { transform: rotate(-4deg) translateX(30px); z-index: 1; }
.phones .phone:nth-child(2) { transform: rotate(4deg) translate(-30px, 40px); }

/* Features */
section.features { padding: 24px 0 72px; }
.features h2, .how h2 { font-size: 32px; letter-spacing: -0.01em; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow-soft); margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* How it works */
section.how { padding: 0 0 72px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { list-style: none; background: var(--card); border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps { padding: 0; margin: 0; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Showcase */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: center; padding: 0 0 72px; }
.showcase .phone { margin: 0 auto; }
.showcase h2 { font-size: 28px; margin: 0 0 12px; }
.showcase p { color: var(--muted); margin: 0 0 12px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.doc { background: var(--card); border-radius: var(--radius); padding: 40px 48px; margin: 8px 0 56px; max-width: 760px; }
.doc h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.summary { background: var(--yellow-soft); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; }
.summary p { margin: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 40px; }
  .phones { min-height: 0; }
  .phone { width: 200px; border-width: 6px; border-radius: 26px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .showcase .text { order: -1; }
  .doc { padding: 28px 22px; }
  .top nav { gap: 14px; font-size: 14px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .top nav a[href="#how"] { display: none; }
  .top img { height: 30px; }
  .phones .phone:nth-child(1) { transform: rotate(-4deg) translateX(18px); }
  .phones .phone:nth-child(2) { transform: rotate(4deg) translate(-18px, 30px); }
  .phone { width: 160px; }
  .forward code { font-size: 17px; }
  .forward button { margin-left: 0; }
}
