/* Jadukor AI — site styles */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FBF8F3;
  --ink: #17131F;
  --ink-2: #3B3545;
  --muted: #4F4859;
  --muted-2: #5B5466;
  --velvet: #B21F5E;
  --velvet-dark: #8E174A;
  --spark: #FFB224;
  --green: #17754A;
  --glow: 1;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--velvet); }
a:hover { color: var(--velvet-dark); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -0.03em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 6px; }

/* Wand cursor */
.jk-wand, .jk-wand * { cursor: url('assets/cursor-wand.svg') 3 3, auto; }
.jk-wand a, .jk-wand a *, .jk-wand button, .jk-wand button * { cursor: url('assets/cursor-wand-pointer.svg') 3 3, pointer; }
.jk-wand input, .jk-wand textarea { cursor: text; }

/* Background orbs */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; }
.orb--velvet { background: var(--velvet); opacity: calc(0.16 * var(--glow)); }
.orb--spark { background: var(--spark); opacity: calc(0.26 * var(--glow)); }
.orb--1 { top: -200px; right: -140px; width: 620px; height: 620px; filter: blur(110px); }
.orb--2 { top: 460px; left: -220px; width: 560px; height: 560px; filter: blur(110px); }
.orb--3 { top: 1700px; right: -180px; width: 520px; height: 520px; filter: blur(120px); }

.container { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Glass surface */
.glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 12px 40px rgba(23,19,31,0.06);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: none; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { color: var(--bg); background: #2A2433; }
.btn--velvet { background: var(--velvet); color: #fff; }
.btn--velvet:hover { color: #fff; background: var(--velvet-dark); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; box-shadow: 0 10px 28px rgba(178,31,94,0.28); }
.btn--lg:hover { box-shadow: 0 14px 34px rgba(178,31,94,0.34); }
.btn--md { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 0 22px; }
.btn[disabled] { opacity: .6; transform: none; }

/* Header */
.nav {
  position: sticky; top: 16px; z-index: 20;
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 12px 12px 28px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 8px 32px rgba(23,19,31,0.06);
  border-radius: 999px;
}
.nav__logo img { height: 40px; width: auto; }

/* Hero */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 28px; padding: 104px 0 64px;
}
.hero__logo { position: relative; display: flex; justify-content: center; padding: 8px 0 12px; }
.hero__glow {
  position: absolute; top: 50%; left: 50%; width: 70%; height: 80%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--spark); opacity: 0.22; filter: blur(60px);
}
.hero__logo img { position: relative; width: min(640px, 82vw); height: auto; }
.hero h1 { max-width: 780px; font-weight: 700; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; }
.lead { max-width: 600px; font-size: 20px; line-height: 1.55; color: var(--muted); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.9);
  border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Week preview */
.week {
  width: 100%; max-width: 760px; margin-top: 36px; padding: 24px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 24px 64px rgba(23,19,31,0.10);
  border-radius: 28px;
  display: flex; flex-direction: column; gap: 20px; text-align: left;
}
.week__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.week__title { display: flex; flex-direction: column; }
.week__eyebrow { font-size: 13px; color: var(--muted-2); }
.week__heading { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.week__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.day {
  padding: 14px 12px; background: rgba(255,255,255,0.7);
  border: 1px solid rgba(23,19,31,0.06); border-radius: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.day__name { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.slot { height: 44px; border-radius: 10px; transition: background-color .4s ease, box-shadow .4s ease; }
.slot--v { background: rgba(178,31,94,0.16); }
.slot--s { background: rgba(255,178,36,0.35); }
.slot--n { background: rgba(23,19,31,0.07); }
.week.is-approved .slot { box-shadow: inset 0 0 0 2px rgba(23,117,74,0.35); }

/* Sections */
.section { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 64px 0 104px; }
.section + .section { padding-top: 0; }
.section--tight { gap: 16px; }
.section h2 { text-align: center; font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.section h2.narrow { max-width: 680px; }
.sub { max-width: 560px; margin-bottom: 24px; text-align: center; font-size: 18px; color: var(--muted); }

.grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { padding: 32px 28px; border-radius: 24px; display: flex; flex-direction: column; gap: 12px; }
.card--sm { padding: 28px; gap: 10px; }
.card--soft {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.9);
}
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.card h3.h3--sm { font-size: 20px; }
.card p { font-size: 16px; color: var(--muted); }
.step {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ink); color: var(--bg);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.tag { font-size: 13px; font-weight: 600; color: var(--velvet); }

/* Contact */
.contact-wrap { padding: 0 0 88px; scroll-margin-top: 100px; }
.contact {
  position: relative; overflow: hidden;
  padding: 56px 40px;
  background: rgba(23,19,31,0.9);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 32px; color: var(--bg);
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start;
}
.contact__orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.contact__orb--v { top: -180px; left: -120px; width: 460px; height: 380px; background: var(--velvet); opacity: 0.45; }
.contact__orb--s { bottom: -200px; right: -120px; width: 420px; height: 360px; background: var(--spark); opacity: 0.18; }
.contact__intro { position: relative; flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact__intro h2 { font-weight: 700; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; }
.contact__intro p { max-width: 420px; font-size: 17px; color: #D9D3DF; }
.contact__body { position: relative; flex: 1 1 400px; min-width: 0; }
.contact__thanks {
  padding: 32px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 20px;
  display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: #D9D3DF;
}
.contact__thanks[hidden] { display: none; }
.contact__thanks-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--bg); }

.form {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 20px;
}
.form[hidden] { display: none; }
.form__row { display: flex; flex-wrap: wrap; gap: 14px; }
.form__row .field { flex: 1 1 180px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: #E9E4EE; }
.field input, .field textarea {
  min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.08);
  color: var(--bg); font: inherit; font-size: 16px; width: 100%;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--spark); background: rgba(255,255,255,0.12); }
.field input[aria-invalid="true"] { border-color: #FF7A9E; }
.form__error { font-size: 14px; color: #FFB3C7; }
.form__error[hidden] { display: none; }
.form .btn { align-self: flex-start; }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px 0 44px; border-top: 1px solid rgba(23,19,31,0.08);
}
.footer img { height: 30px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer__nav a:hover { color: var(--velvet); }
.footer__copy { font-size: 13px; color: var(--muted-2); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 80px 0 104px; }
.legal h1 { font-weight: 700; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; margin-bottom: 8px; }
.legal h2 { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 17px; }
.legal p + p { margin-top: 12px; }
.legal .updated { font-size: 14px; color: var(--muted-2); margin-bottom: 24px; }

/* Magic: sparkle trail and float */
.sparks { position: absolute; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
@keyframes jkSpark {
  0% { transform: translate(-50%,-50%) scale(0) rotate(0deg); opacity: 1; }
  35% { transform: translate(-50%,-50%) scale(1) rotate(30deg); opacity: 1; }
  100% { transform: translate(-50%, calc(-50% + 22px)) scale(0.2) rotate(110deg); opacity: 0; }
}
.jk-spark { position: absolute; pointer-events: none; animation: jkSpark 720ms cubic-bezier(.2,.7,.3,1) forwards; }
.jk-spark svg { width: 100%; height: 100%; }
@keyframes jkFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.jk-float { animation: jkFloat 4s ease-in-out infinite; }

/* Small screens */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav { padding: 8px 8px 8px 20px; }
  .nav__logo img { height: 32px; }
  .nav .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .hero { padding: 64px 0 48px; gap: 22px; }
  .lead { font-size: 18px; }
  .week { padding: 18px; border-radius: 22px; }
  .week__grid { grid-template-columns: repeat(4, 1fr); }
  .day { padding: 10px 8px; }
  .slot { height: 32px; }
  .section { padding: 48px 0 72px; gap: 28px; }
  .contact-wrap { padding-bottom: 64px; }
  .contact { padding: 36px 20px; gap: 32px; border-radius: 26px; }
  .form { padding: 18px; }
  .card { padding: 26px 22px; }
  .footer { justify-content: center; text-align: center; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jk-spark, .sparks { display: none; }
  .jk-float { animation: none; }
  .btn, .slot { transition: none; }
}
