/* =========================================================
   SCANLY — Styles
   File: apps/scanly/css/style.css
   ========================================================= */

:root {
  --cream: #f9fbff;
  --cream-2: #eef4fd;
  --green: #0b2a7a;
  --green-2: #1a5fe0;
  --pistachio: #1a73ff;
  --pistachio-dark: #0b5bd3;
  --soft: #e8f1ff;
  --ink: #0f1d45;
  --muted: #4d5f86;
  --line: rgba(11, 42, 122, .12);
  --card: #ffffff;
  --shadow: 0 18px 50px -22px rgba(11, 42, 122, .28);
  --shadow-sm: 0 8px 24px -14px rgba(11, 42, 122, .25);
  --radius: 28px;
  --shell: 1160px;
  --ease: .5s cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
  position: relative;
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 480px at 8% 4%, rgba(26, 115, 255, .16), transparent 70%),
    radial-gradient(620px 440px at 94% 6%, rgba(90, 200, 255, .20), transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; color: var(--green); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--pistachio); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 12px;
}
.skip-link:focus { top: 12px; }

/* HEADER */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0; transition: background var(--ease), box-shadow var(--ease), padding var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 9px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-cluster { display: flex; align-items: center; gap: 14px; min-width: 0; }

.lume-brand, .brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.lume-brand { font-size: .82rem; color: var(--muted); font-weight: 700; }
.lume-brand:hover { color: var(--green); }
.lume-mark { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.brand { font-size: 1.28rem; color: var(--green); letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.brand-divider { width: 1px; height: 22px; background: var(--line); }

nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: .96rem; }
nav a:not(.nav-cta) { color: var(--muted); transition: color .25s; }
nav a:not(.nav-cta):hover, nav a[aria-current="page"] { color: var(--green); }

.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: #fff; font-weight: 800; font-family: inherit; font-size: .96rem;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
  box-shadow: 0 10px 24px -12px rgba(11, 42, 122, .6);
}
.nav-cta:hover, .btn:hover { transform: translateY(-2px); background: var(--green-2); }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; }
.btn-ghost { background: #fff; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn[aria-disabled="true"] { cursor: default; }
.btn .play-icon { width: 20px; height: 20px; flex: none; }

.nav-toggle {
  display: none; background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  width: 44px; height: 44px; cursor: pointer; padding: 0; color: var(--green);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  margin: auto; position: relative; transition: transform .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* HERO */

.hero { padding: 150px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--soft); color: var(--green);
  padding: 7px 16px 7px 8px; border-radius: 999px; font-weight: 800; font-size: .88rem; margin-bottom: 22px;
}
.badge img { width: 26px; height: 26px; border-radius: 8px; }

h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); font-weight: 900; }
h1 span { color: var(--pistachio); }
.hero-text { font-size: 1.22rem; color: var(--muted); max-width: 520px; margin: 24px 0 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .shot { width: min(100%, 500px); border-radius: 36px; box-shadow: var(--shadow); }

/* IMAGES */

.shot { background: var(--soft); }

/* SECTIONS */

section { position: relative; }
.eyebrow {
  color: var(--pistachio-dark); font-weight: 900; font-size: .84rem; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 14px;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 900; }
.section-intro { max-width: 640px; margin-bottom: 56px; }
.section-intro p:last-child { color: var(--muted); font-size: 1.12rem; margin: 18px 0 0; }
.section-intro.center { margin-inline: auto; text-align: center; }

.features { padding: 70px 0 30px; }

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 56px 0;
}
.feature-row.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .shot { width: min(100%, 460px); border-radius: 34px; box-shadow: var(--shadow); }
.feature-copy h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; margin-bottom: 16px; }
.feature-copy p { color: var(--muted); font-size: 1.12rem; margin: 0 0 22px; max-width: 480px; }

.ticks li {
  position: relative; padding-left: 34px; margin-bottom: 11px; font-weight: 700;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--pistachio) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* secondary feature tiles (no mockup available) */

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 30px 0 70px; }
.tile {
  background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.tile.tint { background: var(--soft); border-color: transparent; }
.tile-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--soft); color: var(--green);
  display: grid; place-items: center; margin-bottom: 20px;
}
.tile.tint .tile-icon { background: #fff; }
.tile-icon svg { width: 26px; height: 26px; }
.tile h3 { font-size: 1.4rem; margin-bottom: 10px; }
.tile p { margin: 0; color: var(--muted); }

/* HOW IT WORKS */

.how { padding: 90px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 36px 30px 34px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.step-index {
  width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; margin-bottom: 22px;
}
.step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

/* DOWNLOAD */

.download-section { padding: 40px 0 100px; }
.download-card {
  background: var(--green); color: #fff; border-radius: 44px; padding: 70px 40px; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.download-card::before, .download-card::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(26, 115, 255, .22); z-index: 0;
}
.download-card::before { width: 380px; height: 380px; left: -120px; top: -150px; }
.download-card::after { width: 300px; height: 300px; right: -90px; bottom: -130px; }
.download-card > * { position: relative; z-index: 1; }
.download-mark { width: 92px; height: 92px; border-radius: 26px; margin: 0 auto 26px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }
.download-card h2 { color: #fff; margin-bottom: 14px; }
.download-card p { color: rgba(255, 255, 255, .82); font-size: 1.15rem; max-width: 460px; margin: 0 auto 32px; }
.download-card .btn { background: var(--pistachio); color: #ffffff; box-shadow: none; }
.download-card .btn:hover { background: #8cc653; }
.download-card .hero-note { color: rgba(255, 255, 255, .7); }

/* FOOTER */

footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: 54px 0 34px; }
.footer-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { width: 46px; height: 46px; border-radius: 13px; }
.footer-name { display: block; font-weight: 900; font-size: 1.2rem; color: var(--green); line-height: 1.2; }
.footer-tag { display: block; color: var(--muted); font-size: .9rem; }
.footer-studio {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--muted);
  font-weight: 700; font-size: .92rem;
}
.footer-studio:hover { color: var(--green); }
.footer-studio-mark { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: flex-end; font-weight: 700; color: var(--muted); }
.footer-links a:hover { color: var(--green); }
.copyright { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* SUPPORTING PAGES */

.page-header { padding: 140px 0 30px; }
.page-header h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-header p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 16px 0 0; }

.back-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green);
  background: #fff; border: 1.5px solid var(--line); padding: 10px 20px 10px 14px; border-radius: 999px;
  margin-bottom: 26px; transition: background .25s, transform .25s;
}
.back-btn:hover { background: var(--soft); transform: translateX(-3px); }
.back-btn svg { width: 18px; height: 18px; }

.content-page { padding: 20px 0 100px; }
.content-card {
  background: var(--card); border-radius: 34px; padding: 52px 56px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); max-width: 860px;
}
.content-card--center { margin-inline: auto; text-align: center; }
.content-card { overflow-wrap: anywhere; }
.content-card h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { font-size: 1.15rem; margin: 26px 0 8px; color: var(--ink); }
.content-card p, .content-card li { color: #34446b; }
.content-card ul { list-style: disc; padding-left: 22px; margin: 10px 0 18px; }
.content-card li { margin-bottom: 6px; }
.content-card a:not(.btn):not(.back-btn) { color: var(--green-2); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.lead { font-size: 1.18rem; color: var(--ink) !important; }

.review {
  background: #fff7dd; border: 1.5px dashed #d9a400; border-radius: 12px; padding: 2px 8px;
  color: #6b4e00 !important; font-weight: 700; font-size: .92em;
}
.review-banner {
  background: #fff7dd; border: 1.5px dashed #d9a400; border-radius: 18px; padding: 18px 22px; margin-bottom: 32px;
  color: #6b4e00; font-size: .95rem;
}
.review-banner strong { display: block; margin-bottom: 4px; }

.info-box { background: var(--soft); border-radius: 22px; padding: 26px 28px; margin: 0 0 22px; }
.info-box h2 { margin: 0 0 10px !important; font-size: 1.25rem !important; }
.info-box ul { margin-bottom: 0; }

form .field { margin-bottom: 16px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 15px 18px; transition: border-color .25s, box-shadow .25s;
}
input::placeholder, textarea::placeholder { color: #7d8cab; }
input:focus, textarea:focus { outline: none; border-color: var(--pistachio); box-shadow: 0 0 0 4px rgba(26, 115, 255, .2); }
textarea { min-height: 150px; resize: vertical; }
.contact-direct { background: var(--soft); border-radius: 20px; padding: 20px 24px; margin: 8px 0 24px; }
.contact-label { margin: 0 0 4px; font-size: .88rem; font-weight: 800; color: var(--muted) !important; text-transform: uppercase; letter-spacing: .06em; }
.contact-email { font-size: 1.2rem; font-weight: 900; color: var(--green) !important; text-decoration: none !important; }

.success-mark {
  width: 76px; height: 76px; border-radius: 50%; background: var(--pistachio); color: #fff; font-size: 2.2rem;
  display: grid; place-items: center; margin: 0 auto 22px; font-weight: 900;
}

/* REVEAL */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-grid, .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.flip .feature-media { order: 0; }
  .feature-row { padding: 34px 0; }
  .feature-copy p { max-width: none; }
  .tile-grid, .steps { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }

  .nav-toggle { display: block; }
  nav {
    position: absolute; top: 100%; left: 20px; right: 20px; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--shadow);
    border: 1px solid var(--line); display: none; margin-top: 8px;
  }
  nav.open { display: flex; }
  nav a { padding: 14px 16px; border-radius: 14px; }
  nav a:not(.nav-cta):hover { background: var(--soft); }
  .nav-cta { margin-top: 6px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .lume-brand span, .brand-divider { display: none; }
  .content-card { padding: 32px 22px; border-radius: 26px; }
  .download-card { padding: 54px 22px; border-radius: 32px; }
  .hero-actions .btn { width: 100%; }
}

/* STORE BADGES */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-link { display: inline-block; transition: transform .25s; }
.store-link:hover { transform: translateY(-3px); }
.store-badge { height: 52px; width: auto; }
.download-card .store-buttons { justify-content: center; }
@media (max-width: 620px) { .store-badge { height: 46px; } }


/* Scanly: phone screenshots */
.shot { background: #dcebff; }
.hero-visual { gap: 18px; align-items: center; }
.hero-visual .shot { width: min(46%, 250px); border-radius: 28px; }
.hero-visual .shot:first-child { transform: translateY(26px) rotate(-2deg); }
.hero-visual .shot:last-child { transform: translateY(-14px) rotate(2deg); }
.feature-media .shot { width: min(100%, 300px); border-radius: 32px; }
@media (max-width: 620px) { .hero-visual .shot { width: 46%; } }
.download-card .btn { color: #fff; }
