/* =========================================================
   Home page — "link in, short link out"
   Palette: ink #1f2937 · lime #4285f4 (brand) · violet #1a56c4 · coral #3367d6 · mint wash
   ========================================================= */
:root {
  --il-wash: #dbe7fd; --il-ink: #1f2937; --il-ink-text: #ffffff;
  --il-skel: #E7E8EC; --il-bar-soft: #f0e4da; --il-violet: #1a56c4; --il-coral: #3367d6; --il-good: #3d7a00;
  --tint-violet: #e8f0fe; --tint-mint: #dbe7fd; --tint-coral: #FFF0E9;
}
[data-theme="dark"] {
  --il-wash: #2a1c10; --il-ink: #eef2fb; --il-ink-text: #0f1420;
  --il-skel: #2a3347; --il-bar-soft: #343a55; --il-good: #a8c7fa;
  --tint-violet: #16243d; --tint-mint: #2a1c10; --tint-coral: #3a2118;
}

.il { width: 100%; height: auto; display: block; overflow: visible; }
.il-card { fill: var(--card); }
.il-wash { fill: var(--il-wash); }
.il-bar  { fill: var(--bg); }
.il-skel { fill: var(--il-skel); }
.il-dots { fill: var(--il-skel); }
.il-url   { font: 600 12px 'Montserrat', sans-serif; fill: var(--muted); }
.il-short { font: 700 17px 'Montserrat', sans-serif; fill: var(--il-ink-text); }
.il-cap   { font: 500 11.5px 'Montserrat', sans-serif; fill: var(--muted); }
.il-num   { font: 800 26px 'Montserrat', sans-serif; fill: var(--text); }
.il-chip  { font: 600 12.5px 'Montserrat', sans-serif; fill: var(--text); }

/* The one orchestrated moment: the thread draws itself and the ring pulses once. */
.il-thread { stroke-dasharray: 64; stroke-dashoffset: 64; animation: ilDraw .8s .35s cubic-bezier(.3,.7,.2,1) forwards; }
.il-ring   { transform-box: fill-box; transform-origin: center; animation: ilPulse .6s .2s ease-out; }
@keyframes ilDraw  { to { stroke-dashoffset: 0; } }
@keyframes ilPulse { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .il-thread, .il-ring { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

.hm a:focus-visible, .hm button:focus-visible, .hm input:focus-visible, .hm summary:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px;
}

/* ---------- Hero ---------- */
.hm-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 48px; align-items: center; padding: 56px 0 28px;
}
.hm-hero::before {
  content: ""; position: absolute; z-index: -1; inset: -120px -200px auto -200px; height: 560px;
  background:
    radial-gradient(520px 300px at 18% 30%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%),
    radial-gradient(460px 300px at 85% 20%, color-mix(in srgb, #1a56c4 14%, transparent), transparent 70%);
  pointer-events: none;
}
.hm-title { font-size: clamp(2.35rem, 5.2vw, 3.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 16px; }
.hm-lead  { font-size: 1.1rem; color: var(--muted); max-width: 33em; margin: 0 0 26px; }

.hm-form {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 10px; box-shadow: var(--shadow-hover); max-width: 560px;
}
.hm-inputrow { display: flex; gap: 8px; align-items: stretch; }
.hm-inputwrap { position: relative; flex: 1; min-width: 0; }
.hm-inputwrap .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hm-inputwrap input[type="url"] {
  border: 0; background: transparent; padding: 16px 14px 16px 46px; font-size: 1rem; height: 100%;
}
.hm-inputwrap input[type="url"]:focus { outline: none; box-shadow: none; }
.hm-inputrow:focus-within .hm-inputwrap { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 14px; }
.btn-lime {
  background: var(--brand); color: var(--brand-ink); font-weight: 800; border-radius: 14px;
  padding: 0 26px; min-height: 52px; white-space: nowrap; font-size: 1rem;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 40%, transparent);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
[data-theme="dark"] .btn-lime { color: var(--brand-ink); }
.btn-lime:hover { background: var(--brand); filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 45%, transparent); }
.btn-lime:active { transform: translateY(0); }
.hm-extra { padding: 6px 8px 8px; }
.hm-extra .field { margin: 10px 0 4px; }
.hm-extra label { font-size: .84rem; font-weight: 600; }
.hm-extra input { padding: 10px 12px; }
.hm-note { color: var(--muted); font-size: .84rem; padding: 8px 10px 4px; }
.hm-note a { font-weight: 600; }
.hm-form .alert { margin: 6px; }

.hm-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: .9rem; font-weight: 500; }
.hm-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hm-trust .ico { color: var(--il-good); }

.hm-art { position: relative; }
.hm-art .il-hero { filter: drop-shadow(0 30px 40px rgba(15,17,21,.06)); }

/* ---------- Result ---------- */
.hm .result-card { max-width: 760px; margin: 12px auto 8px; border-radius: 20px; border-left: 0; border: 1px solid var(--border); position: relative; overflow: hidden; }
.hm .result-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--brand); }
.hm .result-link { font-size: 1.25rem; }

/* ---------- Sections ---------- */
.hm-section { margin: 88px 0 0; }
.hm-h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 10px; }
.hm-sub { color: var(--muted); max-width: 38em; margin: 0 0 34px; font-size: 1.04rem; }

.hm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.hm-step { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; position: relative; }
.hm-step-badge {
  position: absolute; top: -14px; left: 24px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--il-ink); color: var(--il-ink-text); font-weight: 800; font-size: .85rem;
  display: grid; place-items: center;
}
.hm-iconbox { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.hm-iconbox.violet { background: var(--tint-violet); color: #1a56c4; }
.hm-iconbox.mint   { background: var(--tint-mint);   color: #1a56c4; }
.hm-iconbox.coral  { background: var(--tint-coral);  color: #3367d6; }
[data-theme="dark"] .hm-iconbox.mint { color: #a8c7fa; }
[data-theme="dark"] .hm-iconbox.violet { color: #8ab4f8; }
[data-theme="dark"] .hm-iconbox.coral { color: #ffa07d; }
.hm-step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hm-step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Feature bento: cards deliberately differ in size and tint */
.hm-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hm-tile {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; padding: 26px; color: var(--text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
a.hm-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }
.hm-tile h3 { margin: 0 0 8px; font-size: 1.14rem; letter-spacing: -0.01em; }
.hm-tile p { margin: 0; color: var(--muted); font-size: .94rem; }
.hm-tile.violet { background: var(--tint-violet); border-color: transparent; }
.hm-tile.mint   { background: var(--tint-mint);   border-color: transparent; }
.hm-tile.coral  { background: var(--tint-coral);  border-color: transparent; }
.hm-tile.span-4 { grid-column: span 4; } .hm-tile.span-3 { grid-column: span 3; }
.hm-tile.span-2 { grid-column: span 2; } .hm-tile.span-6 { grid-column: span 6; }
.hm-sample { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; align-self: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .92rem; color: var(--text); }
.hm-sample i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); display: inline-block; }
.hm-tile .hm-qrmini { position: absolute; right: 18px; bottom: 14px; width: 78px; color: var(--il-ink); opacity: .9; transform: rotate(6deg); }
.hm-tile.dark { background: #1f2937; color: #fff; border-color: #1f2937; flex-direction: row; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.hm-tile.dark h3 { color: #fff; } .hm-tile.dark p { color: #aeb3bf; max-width: 30em; }
[data-theme="dark"] .hm-tile.dark { background: #171d2b; border-color: #2a3347; }
.hm-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-tools a {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .9rem;
}
.hm-tools a:hover { background: var(--brand); color: var(--brand-ink); text-decoration: none; border-color: var(--brand); }

/* Analytics split */
.hm-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hm-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.hm-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.hm-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tint-mint); color: #1a56c4; display: grid; place-items: center; margin-top: 1px; }
[data-theme="dark"] .hm-list .tick { color: #a8c7fa; }
.hm-list small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }
.btn-ink { background: var(--il-ink); color: var(--il-ink-text); border-radius: 14px; padding: 0 24px; min-height: 50px; font-weight: 700; }
.btn-ink:hover { background: var(--il-ink); filter: brightness(1.2); text-decoration: none; }

/* Made-for chips */
.hm-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px 10px 12px; font-weight: 600; font-size: .94rem; }
.hm-chip .ico { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--tint-violet); color: #1a56c4; }
.hm-chip:nth-child(3n+2) .ico { background: var(--tint-mint); color: #1a56c4; }
.hm-chip:nth-child(3n) .ico { background: var(--tint-coral); color: #3367d6; }

/* FAQ */
.hm-faq { max-width: 780px; display: grid; gap: 10px; }
.hm-faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; }
.hm-faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 0; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.hm-faq details[open] summary::after { transform: rotate(45deg); }
.hm-faq p { margin: 0 0 18px; color: var(--muted); }

/* Final call to action */
.hm-cta {
  position: relative; overflow: hidden; background: #1f2937; color: #fff; border-radius: 30px;
  padding: 52px 48px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px; align-items: center;
}
[data-theme="dark"] .hm-cta { background: #171d2b; border: 1px solid #2a3347; }
.hm-cta::before { content: ""; position: absolute; width: 380px; height: 380px; right: -90px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(66,133,244,.35), transparent 65%); }
.hm-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.1; }
.hm-cta p { color: #9aa6bd; margin: 0 0 24px; max-width: 30em; }
.hm-cta .btn-lime { display: inline-flex; align-items: center; }
.hm-cta svg { position: relative; width: 100%; max-width: 260px; justify-self: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hm-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; }
  .hm-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .hm-split { grid-template-columns: 1fr; gap: 30px; }
  .hm-split .hm-art-an { order: -1; }
  .hm-bento { grid-template-columns: repeat(2, 1fr); }
  .hm-tile.span-4, .hm-tile.span-6 { grid-column: span 2; }
  .hm-tile.span-2, .hm-tile.span-3 { grid-column: span 1; }
}
@media (max-width: 680px) {
  .hm-steps { grid-template-columns: 1fr; gap: 28px; }
  .hm-inputrow { flex-direction: column; }
  .btn-lime { min-height: 52px; width: 100%; }
  .hm-bento { grid-template-columns: 1fr; }
  .hm-tile.span-2, .hm-tile.span-3, .hm-tile.span-4, .hm-tile.span-6 { grid-column: span 1; }
  .hm-cta { grid-template-columns: 1fr; padding: 36px 26px; }
  .hm-cta svg { max-width: 180px; justify-self: start; }
  .hm-section { margin-top: 64px; }
}

/* Overflow guard: decorative glows and illustrations must never widen the page */
.hm { overflow-x: clip; }
.hm-hero > *, .hm-split > *, .hm-cta > * { min-width: 0; }
.hm-art svg, .hm-split svg { max-width: 100%; height: auto; }
.hm-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }

/* ---------- v2 refinements (Aurora) ---------- */
.hm-hero::before { display: none; }              /* page-wide mesh now lives in ui.css */
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; margin-bottom: 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--text);
  box-shadow: var(--shadow);
}
.hm-eyebrow b { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 2px 10px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.hm-title .grad { background: linear-gradient(95deg, #4285f4, #34a853); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-title .accent-dot { color: var(--brand); }
.hm-form { border-radius: 26px; padding: 12px; border: 1px solid var(--border); box-shadow: 0 30px 60px -28px rgba(60,50,50,.35); position: relative; }
.hm-form::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 80%, transparent), color-mix(in srgb, var(--violet) 70%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hm-inputwrap { background: var(--field); border-radius: 16px; }
.btn-lime { border-radius: 16px; }
.hm-art { filter: none; }
.hm-art::before { content: ""; position: absolute; inset: 4% 2% 0; border-radius: 40px; z-index: -1;
  background: linear-gradient(145deg, color-mix(in srgb, var(--violet) 22%, transparent), color-mix(in srgb, var(--brand) 22%, transparent)); filter: blur(36px); }

.hm-kicker { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
[data-theme="dark"] .hm-kicker { color: #a8c7fa; }
.hm-section { margin-top: 104px; }
.hm-h2 { font-weight: 800; letter-spacing: -0.04em; }
.hm-step, .hm-tile, .hm-faq details, .hm-chip { box-shadow: var(--shadow); }
.hm-step { border-radius: 24px; padding: 30px 26px 26px; }
.hm-tile { border-radius: 26px; }
.hm-tile.violet { background: linear-gradient(150deg, var(--violet-soft), color-mix(in srgb, var(--violet-soft) 40%, var(--card))); }
.hm-tile.coral  { background: linear-gradient(150deg, var(--coral-soft), color-mix(in srgb, var(--coral-soft) 40%, var(--card))); }
.hm-tile.mint   { background: linear-gradient(150deg, var(--mint-soft), color-mix(in srgb, var(--mint-soft) 40%, var(--card))); }
.hm-tile.dark   { background: linear-gradient(135deg, #1e2536, #16243d); }
.hm-cta { border-radius: 36px; background: linear-gradient(135deg, #1e2536, #16243d 60%, #1e3a8a); padding: 64px 56px; }
.hm-cta::after { content: ""; position: absolute; width: 320px; height: 320px; left: -80px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 55%, transparent), transparent 65%); }
.hm-split > div:last-child { position: relative; }
.hm-split > div:last-child::before { content: ""; position: absolute; inset: 8% 0 0; z-index: -1; border-radius: 40px; filter: blur(40px);
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 25%, transparent), color-mix(in srgb, var(--violet) 22%, transparent)); }
