/* točen.si landing — the app's design language: Rethink Sans, the app's
   greys, plain white cards (radius 16, no border, no shadow) on the drawer
   grey, the brand green for marks and accents. Tokens mirror
   app/lib/theme/tokens.dart. */

@font-face { font-family: "Rethink Sans"; font-weight: 400; font-display: swap; src: url(/assets/fonts/rethink-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Rethink Sans"; font-weight: 500; font-display: swap; src: url(/assets/fonts/rethink-sans-500.woff2) format("woff2"); }
@font-face { font-family: "Rethink Sans"; font-weight: 600; font-display: swap; src: url(/assets/fonts/rethink-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Rethink Sans"; font-weight: 700; font-display: swap; src: url(/assets/fonts/rethink-sans-700.woff2) format("woff2"); }

:root {
  --green: #69d19d;
  --green-soft: #e2f8e7;
  --green-ink: #2f8f60;
  --ink: #3a383c;
  --ink-2: #58556a;
  --muted: #81888d;
  --faint: #b3b8c4;
  --bg: #fafafa;
  --card: #ffffff;
  --line: #e9e9eb;
  --chip: #f2f4f7;
  --radius: 16px;
  --gutter: 20px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250, 250, 250, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; color: var(--green); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.pill:hover { background: #5cc690; }
.pill:active { transform: scale(.97); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; }
.eyebrow .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--green); }
.lede { margin-top: 20px; max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.motto { margin-top: 14px; font-weight: 600; color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 18px;
  border-radius: 14px; background: #111; color: #fff; text-decoration: none; min-width: 190px;
  transition: transform .15s ease, background .15s ease;
}
.store:hover { background: #000; transform: translateY(-1px); }
.store svg { flex: none; }
.store .t { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11.5px; font-weight: 500; opacity: .85; letter-spacing: .01em; }
.store b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

.stage { position: relative; display: flex; justify-content: center; padding: 8px 0 24px; }
.stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(560px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, #c9f0db 0%, rgba(226, 248, 231, .7) 55%, rgba(250, 250, 250, 0) 100%);
}
.phone {
  position: relative; width: min(320px, 74vw); padding: 10px; border-radius: 48px; background: #1d1d21;
  box-shadow: 0 30px 60px -24px rgba(32, 60, 45, .35);
}
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; background: #fff; }
.tile {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-width: 196px;
  background: var(--card); border-radius: 14px; box-shadow: 0 14px 34px -14px rgba(58, 56, 60, .28);
}
.tile svg { width: 24px; height: 24px; color: var(--green); flex: none; }
.tile .l { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.tile .l span { font-size: 14px; color: var(--ink-2); }
.tile .l small { font-size: 11px; color: var(--faint); }
.tile .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.tile .v small { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.tile.a { left: 0; top: 36%; animation: float 6s ease-in-out infinite; }
.tile.b { right: 0; top: 66%; animation: float 6s ease-in-out -3s infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- modes strip ---------- */
.modes { padding: 24px 0 8px; }
.modes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.modes li {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px;
  background: var(--card); border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2);
}
.modes li svg { width: 20px; height: 20px; color: var(--green); }

/* ---------- sections ---------- */
section.block { padding: 72px 0 0; }
.head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.head p { margin-top: 12px; font-size: 17px; color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.feature .art { background: #f4f4f5; aspect-ratio: 824 / 700; overflow: hidden; }
.feature .art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.feature .txt { padding: 22px 22px 26px; }
.feature h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot { padding: 18px 18px 20px; }
.shot .frame { border-radius: 22px; overflow: hidden; background: var(--bg); aspect-ratio: 1320 / 2200; }
.shot .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot h3 { margin-top: 16px; font-size: 17px; font-weight: 700; }
.shot p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }

.providers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.providers li { padding: 10px 18px; border-radius: 12px; background: var(--card); font-weight: 600; font-size: 15px; color: var(--ink-2); }

/* ---------- download ---------- */
.get { margin-top: 72px; }
.get .card {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 48px; background: var(--green); color: #fff; border-radius: 28px;
}
.get .card > svg.big { position: absolute; right: -40px; bottom: -60px; width: 300px; height: 300px; color: rgba(255, 255, 255, .16); pointer-events: none; }
.get h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.get p { margin-top: 10px; font-size: 17px; opacity: .92; max-width: 520px; }
.get .stores { margin-top: 26px; }
.qr { position: relative; background: #fff; border-radius: 18px; padding: 16px 16px 12px; text-align: center; color: var(--ink-2); }
.qr img { width: 148px; height: 148px; }
.qr small { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 500; }

/* ---------- footer ---------- */
footer { padding: 56px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .brand { font-size: 17px; color: var(--ink); }
footer .brand svg { width: 26px; height: 26px; }

/* ---------- download page ---------- */
.solo { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px var(--gutter); text-align: center; }
.solo .card { max-width: 460px; width: 100%; padding: 40px 28px 32px; }
.solo .mark { width: 76px; height: 76px; border-radius: 20px; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto; }
.solo .mark svg { width: 54px; height: 54px; }
.solo h1 { margin-top: 20px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.solo p { margin-top: 8px; color: var(--ink-2); }
.solo .stores { justify-content: center; margin-top: 26px; }
.solo .qr { display: inline-block; margin-top: 26px; background: var(--bg); }
.solo .back { display: inline-block; margin-top: 22px; color: var(--muted); font-size: 14.5px; text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .features .feature:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .features .feature:last-child .art { aspect-ratio: auto; height: 100%; }
}
@media (max-width: 820px) {
  .hero { padding-top: 20px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .get .card { grid-template-columns: 1fr; padding: 36px 24px; text-align: center; }
  .get p { margin-left: auto; margin-right: auto; }
  .qr { display: none; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .top .pill { height: 40px; padding: 0 16px; }
  .features { grid-template-columns: 1fr; }
  /* the four screens become a swipeable row instead of four screen-heights of scrolling */
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; }
  .features .feature:last-child { display: block; }
  .features .feature:last-child .art { aspect-ratio: 824 / 700; height: auto; }
  .tile { min-width: 0; padding: 8px 12px; }
  .tile.a { left: -4px; }
  .tile.b { right: -4px; }
  .store { flex: none; width: 100%; max-width: 300px; justify-content: center; }
  .stores { flex-direction: column; align-items: center; }
  section.block { padding-top: 56px; }
  footer .wrap { flex-direction: column; text-align: center; }
  footer nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
