/* ReLoop pages on iyoo.ch: own look (the app's), independent of the Iyoo site styles. */
:root {
  --bg: #f2f2f7; --card: #ffffff; --ink: #1c1c1e; --muted: #6e6e73; --line: rgba(60, 60, 67, 0.14);
  --accent: #2c9a45; --accent-ink: #ffffff; --soft: rgba(44, 154, 69, 0.12); --warn: #c25b00; --warn-soft: rgba(255, 149, 0, 0.14);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --card: #1c1c1e; --ink: #f5f5f7; --muted: #98989d; --line: rgba(84, 84, 88, 0.6);
          --accent: #4cc463; --accent-ink: #00230a; --soft: rgba(76, 196, 99, 0.16); --warn: #ffb340; --warn-soft: rgba(255, 159, 10, 0.16); }
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 680px; margin: 0 auto; padding: 28px 20px 56px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.brand:hover { text-decoration: none; }
h1 { overflow-wrap: break-word; hyphens: auto; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 36px 0 10px; }
.lead { color: var(--muted); font-size: 19px; }
.card { background: var(--card); border-radius: 22px; padding: 24px; margin-top: 24px; }
.card.center { text-align: center; padding: 36px 24px; }
.icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--soft); color: var(--accent); font-size: 30px; font-weight: 700; }
.icon.warn { background: var(--warn-soft); color: var(--warn); }
.card h2 { font-size: 22px; margin-bottom: 6px; }
.card p { color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin: 18px 0 6px; }
input { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.button { display: inline-block; width: 100%; margin-top: 22px; border: 0; border-radius: 999px; padding: 16px 22px; font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-align: center; }
.button:disabled { opacity: 0.45; cursor: default; }
.note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.error { margin-top: 14px; font-size: 15px; color: var(--warn); }
.doc h2 { font-size: 21px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 20px 0 4px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin-top: 8px; }
.doc li + li { margin-top: 4px; }
.doc address { font-style: normal; margin-top: 8px; }
.meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.todo { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 0 6px; font-weight: 600; }
footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Curtain from the Iyoo products page (assets/curtain.js) ---------- */
.curtain { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Landing page ---------- */
.landing { --glass: rgba(255, 255, 255, 0.62); --glass-line: rgba(255, 255, 255, 0.85); --shadow: rgba(20, 40, 25, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --spring: cubic-bezier(0.32, 1.28, 0.44, 1);
  background: radial-gradient(60% 50% at 80% 0%, rgba(76, 196, 99, 0.14), transparent 70%), var(--bg); background-attachment: fixed; overflow-x: hidden; }
@media (prefers-color-scheme: dark) {
  .landing { --glass: rgba(38, 42, 39, 0.55); --glass-line: rgba(255, 255, 255, 0.12); --shadow: rgba(0, 0, 0, 0.45); }
}
.landing ::selection { background: var(--accent); color: var(--accent-ink); }
.landing strong { font-weight: 700; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 14px 20px; transition: background 0.3s, box-shadow 0.3s; }
.bar.is-scrolled { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 var(--line); border-radius: 0 0 22px 22px; }
.bar .brand img { width: 36px; height: 36px; }
.bar__nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.bar__nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 600; transition: background 0.2s; }
.bar__nav a:hover { background: var(--soft); color: var(--accent); text-decoration: none; }

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

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; max-width: 1120px; margin: 0 auto;
  padding: clamp(32px, 7vw, 96px) 20px clamp(48px, 8vw, 110px); }
.hero__title { margin: 16px 0 18px; font-size: clamp(44px, 6.6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 400; }
.hero__title span { display: block; color: var(--muted); }
.hero__title strong { display: block; }
.hero .lead { max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.landing .button { width: auto; margin: 0; padding: 16px 26px; transition: transform 0.4s var(--spring), box-shadow 0.3s; box-shadow: 0 10px 24px rgba(44, 154, 69, 0.28); }
.landing .button:hover { transform: translateY(-2px) scale(1.02); text-decoration: none; }
.landing .button--ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-line); box-shadow: 0 8px 22px var(--shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1200px; }
.hero__clover { position: absolute; width: 118%; max-width: 560px; opacity: 0.16; filter: blur(2px); transform: rotate(calc(var(--spin, 0) * 1deg)); }
.phone { position: relative; width: 290px; aspect-ratio: 9 / 19.3; padding: 11px; border-radius: 48px; background: #0d0e0d;
  box-shadow: 0 0 0 2px #2b2d2b inset, 0 40px 80px -20px rgba(20, 40, 25, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.4);
  transform: rotateY(calc(var(--rx, 0) * 1deg)) rotateX(calc(var(--ry, 0) * 1deg)); transition: transform 0.6s var(--ease);
  animation: float 7s ease-in-out infinite; }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 38px; padding: 46px 14px 0; background: var(--bg); color: var(--ink); font-size: 12px; line-height: 1.3; }
.phone__island { position: absolute; top: 11px; left: 50%; width: 86px; height: 25px; margin-left: -43px; border-radius: 20px; background: #0d0e0d; }
.ph-title { font-size: 25px; font-weight: 750; letter-spacing: -0.02em; }
.ph-device { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px; border-radius: 18px; background: var(--card); }
.ph-device__img { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); }
.ph-device b, .ph-tile b, .ph-push b { display: block; font-size: 13px; }
.ph-device span, .ph-tile span, .ph-push span { display: block; color: var(--muted); font-size: 11px; }
.ph-label { margin: 16px 2px 8px; font-size: 15px; font-weight: 700; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-tile { padding: 10px; border-radius: 16px; background: var(--card); }
.ph-tile svg { width: 26px; height: 26px; margin-bottom: 8px; padding: 4px; border-radius: 8px; background: var(--soft); }
.phone svg, .offer__icon svg { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-device__img svg { width: 24px; height: 24px; }
.ph-push { position: absolute; left: 10px; right: 10px; top: 46px; display: flex; gap: 9px; align-items: center; padding: 10px 12px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 12px 30px var(--shadow); animation: push 9s var(--ease) 1.6s infinite both; }
.ph-push img { width: 30px; height: 30px; border-radius: 8px; }
.ph-push b { font-size: 10px; letter-spacing: 0.04em; color: var(--muted); }
.ph-push span { color: var(--ink); font-size: 12px; }
.ph-tabs { position: absolute; left: 22px; right: 22px; bottom: 16px; display: flex; justify-content: space-around; align-items: center; height: 52px;
  border-radius: 26px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 8px 24px var(--shadow); }
.ph-tabs i { width: 18px; height: 18px; border-radius: 6px; background: var(--muted); opacity: 0.35; }
.ph-tabs i.is-on { width: 54px; height: 38px; border-radius: 19px; background: var(--soft); opacity: 1; box-shadow: inset 0 0 0 1.5px var(--accent); }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes push { 0% { opacity: 0; transform: translateY(-120%) scale(0.96); } 8%, 52% { opacity: 1; transform: none; } 60%, 100% { opacity: 0; transform: translateY(-120%) scale(0.96); } }

.section { scroll-margin-top: 64px; max-width: 1120px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) 20px 0; }
.section__title { margin-top: 10px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 400; color: var(--muted); }
.section__title strong { color: var(--ink); }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.offer, .step, .fact, .contact__item { border-radius: 26px; background: var(--card); padding: 26px; transition: transform 0.5s var(--spring), box-shadow 0.4s; }
.offer:hover, .contact__item:hover { transform: translateY(-4px); box-shadow: 0 20px 44px var(--shadow); }
.offer__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); }
.offer__icon svg { width: 28px; height: 28px; }
.offer h3, .step h3 { margin: 18px 0 6px; font-size: 21px; letter-spacing: -0.01em; }
.offer p, .step p { color: var(--muted); font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; padding: 0; list-style: none; }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.step h3 { margin-top: 16px; font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; }
.fact { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.fact b { display: block; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.contact__item { display: block; color: var(--ink); }
.contact__item:hover { text-decoration: none; }
.contact__item b { display: block; margin-top: 16px; font-size: 19px; }
.contact__item span:last-child { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.contact__address { margin-top: 22px; font-style: normal; color: var(--muted); font-size: 15px; }
.wrap--foot { max-width: 1120px; padding-top: 40px; }

/* motion */
.rise { display: block; animation: rise 0.9s var(--ease) both; animation-delay: calc(0.15s + var(--d, 0) * 0.09s); }
.hero__title .rise { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero__stage { animation: stage-in 1.2s var(--ease) 0.25s both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(40px) scale(0.94); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 0.08s); }
.js .reveal.is-in { opacity: 1; transform: none; }
html.is-entering .rise, html.is-entering .hero__stage { animation-play-state: paused; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stage { min-height: 520px; }
  .offers, .contact__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bar__nav a { padding: 7px 10px; font-size: 14px; }
  .bar .brand span, .bar .brand { font-size: 18px; }
  .steps, .facts { grid-template-columns: 1fr; }
  .phone { width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .hero__stage, .phone, .ph-push { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phone { transform: none; }
}
