/* Ubicato website — shared styles. Colours match the app (public/css/app.css). */
:root {
  --bg: #12161d;
  --bg-2: #0e1217;
  --panel: #1a2029;
  --panel-2: #222a35;
  --line: #2e3845;
  --text: #e8ecf1;
  --muted: #8d99a8;
  --accent: #ff9a1f;
  --accent-2: #ffb455;
  --accent-ink: #1b1307;
  --todo-bg: rgba(240, 180, 41, .14);
  --todo-line: #f0b429;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f4ef;
    --bg-2: #ece8df;
    --panel: #ffffff;
    --panel-2: #f1eee7;
    --line: #ddd7cb;
    --text: #1a1f27;
    --muted: #5d6876;
    --accent: #d97706;
    --accent-2: #f59e0b;
    --accent-ink: #ffffff;
    --todo-bg: rgba(240, 180, 41, .22);
    --todo-line: #b7791f;
    --shadow: 0 24px 60px rgba(30, 25, 15, .16);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Bracketed decisions for the owner — remove every one before publishing */
.todo { background: var(--todo-bg); outline: 1px dashed var(--todo-line); border-radius: 4px; padding: 0 4px; color: inherit; font-style: normal; }
.draft-banner { background: var(--todo-bg); border-bottom: 1px dashed var(--todo-line); font-size: 14px; padding: 10px 0; }
.draft-banner .wrap, .draft-banner .narrow { display: flex; gap: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 620px; background: radial-gradient(closest-side at 50% 30%, rgba(255, 154, 31, .20), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; text-align: center; }
.hero-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 26px; box-shadow: 0 18px 50px rgba(255, 154, 31, .25), var(--shadow); }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 46ch; margin: 0 auto 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-bottom: 22px; }
.badge-slot { display: inline-grid; place-items: center; height: 54px; min-width: 180px; padding: 0 18px; border-radius: 12px; border: 1.5px dashed var(--todo-line); background: var(--todo-bg); font-size: 13px; color: var(--text); text-align: center; line-height: 1.3; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 650; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0 0 48px; font-size: 14px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.chips li strong { color: var(--text); font-weight: 650; }

/* screenshot slots — drop a file at the path shown and it replaces the placeholder */
.shot { margin: 0; }
.shot-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; border: 12px solid #0a0d12; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.shot-frame.has-img { aspect-ratio: auto; }
.shot-frame img { display: none; width: 100%; height: auto; }
.shot-frame.has-img img { display: block; }
.shot-frame.has-img .shot-placeholder { display: none; }
.shot-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 20px; text-align: center; font-size: 14px; color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 35%, transparent) 14px 15px), var(--panel); }
.shot-placeholder strong { color: var(--text); font-size: 17px; }
.shot-placeholder code { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); word-break: break-all; }
.shot-tag { justify-self: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px dashed var(--todo-line); background: var(--todo-bg); color: var(--text); }
.shot figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.shot figcaption strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.hero-shot { max-width: 980px; margin: 0 auto; }

/* sections */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 18px; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 32px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

.privacy-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.privacy-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy-band li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 16px; }
.privacy-band li svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.label-card { padding: 28px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.label-card .label-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.label-card .label-big { display: flex; gap: 14px; align-items: center; font-size: 24px; font-weight: 750; }
.label-card .label-big svg { width: 40px; height: 40px; color: var(--accent); }
.label-card p { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

.final-cta { text-align: center; }
.final-cta img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 22px; box-shadow: var(--shadow); }

/* long-form pages (privacy, support) */
.page-head { padding: 64px 0 24px; }
.page-head p { color: var(--muted); font-size: 18px; }
.doc { padding: 8px 0 80px; }
.doc h2 { font-size: 26px; margin-top: 48px; padding-top: 8px; scroll-margin-top: 80px; }
.doc h3 { font-size: 19px; margin-top: 28px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 650; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.summary { padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin: 8px 0 24px; }
.summary ul { margin: 0; }
.toc { padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 8px; font-size: 15px; }
.toc ol { margin: 6px 0 0; columns: 2; column-gap: 28px; }
.doc details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; }
.doc summary { cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.doc details[open] summary::after { content: "–"; }
.doc details > div { padding: 0 18px 8px; color: var(--muted); }
.doc details > div strong { color: var(--text); }
.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin: 8px 0 12px; }
.contact-card svg { width: 40px; height: 40px; color: var(--accent); }
.contact-card p { margin: 0; }
kbd { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel-2); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footer-row nav { display: flex; gap: 20px; margin-left: auto; }
.footer-row nav a { color: var(--muted); }
.legal { font-size: 12.5px; opacity: .85; }

/* responsive */
@media (max-width: 900px) {
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .privacy-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .steps, .features, .gallery { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: 14px; }
  .shot-frame { border-width: 7px; border-radius: 16px; }
  .toc ol { columns: 1; }
  .footer-row nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
