/* Rinsora site — shared styles. Light by default, dark when the device prefers it. */
:root {
  --blue: #0ea5e9; --blue-deep: #0284c7; --blue-soft: #e0f2fe; --ink: #0f172a; --muted: #475569; --faint: #94a3b8;
  --bg: #f8fafc; --card: #ffffff; --line: #e2e8f0; --ok: #16a34a; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7;
  --shadow: 0 20px 50px -20px rgba(2, 132, 199, .35);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e2e8f0; --muted: #94a3b8; --faint: #64748b; --bg: #0b1220; --card: #111a2c; --line: #1e293b; --blue-soft: #0c2a40; --ok-soft: #0f2e1d; --warn-soft: #33270f; --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-deep); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .cta { color: #fff; background: var(--blue-deep); padding: 8px 14px; border-radius: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-deep); color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--blue-deep); }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(14,165,233,.22), transparent 60%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(36px, 5.5vw, 58px); line-height: 1.08; letter-spacing: -.025em; margin: 18px 0 18px; }
h1 span { background: linear-gradient(90deg, var(--blue), var(--blue-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trust b { color: var(--ink); }

/* Phone mockups */
.phone { width: 280px; aspect-ratio: 9 / 19; background: #0f172a; border-radius: 40px; padding: 12px; box-shadow: var(--shadow); position: relative; margin: 0 auto; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; background: #0f172a; border-radius: 12px; z-index: 2; }
.screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #f4f6fa; color: #111827; font-size: 11px; display: flex; flex-direction: column; }
.screen .bar { height: 34px; }
.scr-pad { padding: 0 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.scr-title { font-weight: 800; font-size: 15px; }
.scr-sub { color: #6b7280; font-size: 10px; margin-top: -6px; }
.scr-btn { background: #1e5ee8; color: #fff; border-radius: 10px; text-align: center; padding: 9px; font-weight: 700; font-size: 11px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile { background: #fff; border-radius: 10px; padding: 8px; border: 1px solid #e3e7ee; }
.tile small { color: #6b7280; display: block; font-size: 9px; }
.tile b { font-size: 15px; }
.tile .up { color: #15803d; font-size: 9px; font-weight: 700; }
.list { background: #fff; border: 1px solid #e3e7ee; border-radius: 10px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 7px 9px; border-bottom: 1px solid #eef1f5; }
.row:last-child { border-bottom: 0; }
.row .n { font-weight: 700; }
.pill { font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.pill.ok { background: #dcfce7; color: #15803d; } .pill.due { background: #fee2e2; color: #b91c1c; } .pill.wip { background: #fef3c7; color: #b45309; } .pill.ready { background: #e8effd; color: #1e5ee8; }
.tabbar { display: flex; justify-content: space-around; padding: 8px 0 12px; background: #fff; border-top: 1px solid #e3e7ee; color: #6b7280; font-size: 8px; }
.tabbar span:first-child { color: #1e5ee8; font-weight: 700; }
.qr { width: 92px; height: 92px; margin: 4px auto; background:
  conic-gradient(from 90deg at 30% 30%, #111 25%, transparent 0) 0 0/ 18px 18px,
  repeating-linear-gradient(45deg, #111 0 3px, #fff 3px 7px); border: 6px solid #fff; outline: 1px solid #e3e7ee; border-radius: 6px; }
.receipt { background: #fff; border-radius: 6px; padding: 10px; font-family: ui-monospace, Menlo, monospace; font-size: 9px; border: 1px dashed #cbd5e1; }
.receipt hr { border: 0; border-top: 1px dashed #94a3b8; margin: 6px 0; }
.receipt .t { display: flex; justify-content: space-between; }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 6px 4px 0; }
.chart i { flex: 1; background: linear-gradient(#38bdf8, #0284c7); border-radius: 4px 4px 0 0; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 12px 0; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .copy { order: 2; }
.feature h3 { font-size: 28px; line-height: 1.2; margin: 10px 0 12px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 30px; position: relative; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.alt .card { background: var(--bg); }
.card h4 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; stroke: var(--blue-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: s; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-deep); color: #fff; font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats b { display: block; font-size: 40px; letter-spacing: -.02em; color: var(--blue-deep); }
.stats span { color: var(--muted); }

.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.langs span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
summary::after { content: "+"; float: right; color: var(--blue-deep); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

.cta-band { background: linear-gradient(135deg, #0284c7, #0ea5e9); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e0f2fe; font-size: 18px; margin: 0 0 26px; }
.cta-band .btn { background: #fff; color: #0369a1; border-color: #fff; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h5 { color: var(--ink); font-size: 14px; margin: 0 0 12px; }
.foot a { color: var(--muted); text-decoration: none; display: block; margin: 6px 0; }
.foot a:hover { color: var(--ink); }
.foot .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Legal pages */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 44px); margin: 8px 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; scroll-margin-top: 80px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc li { margin: 6px 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 26px; columns: 2; column-gap: 32px; }
.toc a { display: block; margin: 4px 0; text-decoration: none; }
.note { background: var(--blue-soft); border-radius: 12px; padding: 14px 18px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
th { background: var(--card); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .copy { order: 0; }
  .grid3, .grid4, .stats { grid-template-columns: 1fr 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .nav a:not(.cta) { display: none; }
  .toc { columns: 1; }
}
@media (max-width: 560px) {
  .grid3, .grid4, .stats { grid-template-columns: 1fr; }
  .phone { width: 240px; }
  section { padding: 56px 0; }
}

/* ---------- Animations ---------- */
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@keyframes shimmer { from { background-position: -200% 0 } to { background-position: 200% 0 } }
@keyframes grow { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(30,94,232,.45) } 70% { box-shadow: 0 0 0 12px rgba(30,94,232,0) } }
.hero .phone { animation: float 6s ease-in-out infinite; }
.hero h1, .hero .lead, .hero .actions, .hero .trust { animation: fadeUp .8s ease both; }
.hero .lead { animation-delay: .12s } .hero .actions { animation-delay: .24s } .hero .trust { animation-delay: .36s }
.hero h1 span { background-size: 200% 100%; animation: shimmer 6s linear infinite; }
.nav .cta, .cta-band .btn { animation: pulse 2.4s infinite; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.in .chart i { transform-origin: bottom; animation: grow .9s ease both; }
.reveal.in .chart i:nth-child(2) { animation-delay: .1s } .reveal.in .chart i:nth-child(3) { animation-delay: .2s }
.reveal.in .chart i:nth-child(4) { animation-delay: .3s } .reveal.in .chart i:nth-child(5) { animation-delay: .4s }
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .phone { transition: transform .4s ease; }
.feature .phone:hover { transform: rotate(-2deg) scale(1.02); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
