/* LoopReel public site. Light and quiet: near-black type, grey second lines,
   hairline borders, product screens as the imagery. The only brand colour is
   the logo tile; the only other colour is the platforms' own icons. */
:root {
  --bg: #fbfbfc;
  --panel: #f3f3f5;
  --card: #ffffff;
  --line: #e7e7ea;
  --line-strong: #d9d9de;
  --ink: #0d0d0f;
  --ink-2: #3a3a40;
  --muted: #6b6b73;
  --faint: #9a9aa2;
  --ok: #1f8a4c;
  --ok-bg: #e8f5ee;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Figtree", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
*, *::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-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-1rem); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.rise { opacity: 0; animation: rise .7s var(--ease) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .38s; } .d5 { animation-delay: .5s; }
.reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.r2 { transition-delay: .1s; } .reveal.r3 { transition-delay: .2s; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgb(251 251 252 / 0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease; animation: drop .6s var(--ease) both; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--ink-2); text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { justify-self: end; display: flex; gap: 8px; }
@media (max-width: 760px) { .nav-inner { grid-template-columns: 1fr auto; } .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262b; }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: #bdbdc4; }
.btn-lg { height: 46px; padding: 0 20px; border-radius: 13px; font-size: 15px; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(2px); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--ink); }
.h1 { font-size: clamp(38px, 6.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; }
.second { display: block; color: var(--faint); }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 52ch; margin: 18px auto 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--ink); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 0 0; }
.icons-row { display: flex; justify-content: center; gap: 14px; margin-bottom: 26px; }
.pi { width: 22px; height: 22px; background: var(--c, var(--ink)); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* the stage: a product screen floating over a soft sky */
.stage { position: relative; margin-top: 56px; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(18px, 4vw, 56px) clamp(14px, 4vw, 64px) 0; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 18% 18%, #ffffff 0%, transparent 60%),
    radial-gradient(55% 60% at 85% 10%, #dfe8f5 0%, transparent 62%),
    radial-gradient(70% 60% at 50% 110%, #e9e2d6 0%, transparent 65%),
    linear-gradient(180deg, #e8eef6 0%, #f1efe9 100%); }
.sky::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* app window mock */
.app { background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: 0 30px 80px -30px rgb(20 20 40 / 0.25), 0 1px 0 rgb(255 255 255 / 0.6) inset; display: grid; grid-template-columns: 190px 1fr; text-align: left; min-height: 380px; overflow: hidden; }
.app-side { border-right: 1px solid var(--line); padding: 16px 12px; font-size: 13px; color: var(--ink-2); }
.app-side .brand { font-size: 15px; margin: 2px 6px 16px; }
.app-side .brand-mark { width: 22px; height: 22px; }
.side-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; }
.side-item.on { background: var(--panel); color: var(--ink); font-weight: 500; }
.side-dot { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .55; }
.side-label { font-size: 11px; color: var(--faint); margin: 14px 8px 6px; text-transform: uppercase; letter-spacing: .06em; }
.app-main { padding: 16px 18px; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); background: var(--card); }
.chip-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-h { font-size: 10.5px; letter-spacing: .06em; color: var(--faint); padding: 7px 8px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.cal-d { min-height: 64px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--faint); display: flex; flex-direction: column; gap: 4px; }
.cal-d:nth-child(7n) { border-right: 0; }
.cal-d.today { background: #fafafb; }
.cal-d.today > span:first-child { color: var(--ink); font-weight: 600; }
.ev { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 500; color: var(--ink); background: var(--panel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .pi { width: 11px; height: 11px; flex: none; }
.ev.sent { background: var(--ok-bg); }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .app-side { display: none; } .cal-d { min-height: 52px; } .ev span:last-child { display: none; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); margin: 34px 0 30px; }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 60s linear infinite; }
.mchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.mchip .pi { width: 15px; height: 15px; }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.head { text-align: center; max-width: 720px; margin: 0 auto; }
.head .lead { margin-top: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--panel); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.step-visual { position: relative; height: 240px; padding: 22px; display: flex; align-items: center; justify-content: center; isolation: isolate; overflow: hidden; }
.step-body { padding: 4px 24px 26px; }
.step-n { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.step h3 { font-size: 21px; letter-spacing: -0.02em; margin-top: 6px; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.mini { width: 100%; max-width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 18px 40px -22px rgb(20 20 40 / 0.3); padding: 12px; font-size: 12.5px; animation: float 6s ease-in-out infinite; }
.mini-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.badge { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.badge.grey { background: var(--panel); color: var(--muted); }
.row { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .pi { width: 16px; height: 16px; flex: none; }
.row b { font-weight: 600; display: block; font-size: 12.5px; }
.row small { color: var(--faint); font-size: 11px; }
.row .badge { margin-left: auto; }
.field { height: 9px; border-radius: 4px; background: var(--panel); margin: 7px 0; }
.field.w70 { width: 70%; } .field.w50 { width: 50%; }

/* feature panels */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--panel); border-radius: var(--radius-lg); overflow: hidden; margin-top: 14px; }
.feature.flip { grid-template-columns: 1.1fr 1fr; }
.feature.flip .f-copy { order: 2; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .f-copy { order: 0; } }
.f-copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.f-copy h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.025em; line-height: 1.12; }
.f-copy p { color: var(--muted); margin: 12px 0 0; max-width: 44ch; }
.f-copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.f-copy li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.f-copy li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 5px; background: var(--ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.2 6.6 10.7 12 5.3' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat; }
.f-visual { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; padding: 28px; isolation: isolate; overflow: hidden; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.tile h3 { font-size: 18px; letter-spacing: -0.015em; }
.tile p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.tile-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--panel); display: grid; place-items: center; margin-bottom: 16px; color: var(--ink); }
.tile-icon svg { width: 18px; height: 18px; }

/* faq */
.faq { max-width: 760px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin: -4px 0 20px; color: var(--muted); max-width: 64ch; }
.faq a { color: var(--ink); }

/* closing */
.closing { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(56px, 8vw, 96px) 24px; text-align: center; isolation: isolate; }
.closing .lead { margin-left: auto; margin-right: auto; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot p { margin: 12px 0 0; max-width: 34ch; }
.foot h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.foot a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--ink); }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal-inner { max-width: 740px; margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; line-height: 1.04; }
.legal .updated { color: var(--faint); font-size: 14px; margin: 12px 0 30px; }
.legal h2 { font-size: 21px; letter-spacing: -0.02em; margin: 44px 0 10px; scroll-margin-top: 84px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--ink); text-underline-offset: 2px; }
.toc { background: var(--panel); border-radius: var(--radius); padding: 18px 22px; }
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; margin: 0 0 5px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; background: var(--card); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
td { vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); width: 30%; }
address { font-style: normal; line-height: 1.7; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .nav { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .mini { animation: none; }
}
@media (max-width: 760px) { .app-top .chip:not(.chip-dark) { display: none; } }
