/* ===== Autistem — QR landing page (matches design PDF) ===== */
:root {
  --ink: #1c1c24;
  --ink-soft: #6a6a76;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --card-bg: #f7f6f3;
  --card-line: #ececea;
  --footer: #0e1622;
  --link: #6d4bd8;
  --radius: 18px;
  --maxw: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

/* ===== Hero ===== */
.hero {
  margin: 14px;
  border-radius: 10px;
  background:
    radial-gradient(120% 120% at 12% 100%, #f6d0e2 0%, rgba(246,208,226,0) 55%),
    radial-gradient(120% 110% at 95% 95%, #e7ddf3 0%, rgba(231,221,243,0) 50%),
    linear-gradient(155deg, #fdf5ea 0%, #fbe9da 30%, #f6dbe4 70%, #ece0f2 100%);
  padding: 0 20px 70px;
  overflow: hidden;
}

.nav-wrap { padding: 8px 4px; }
.nav {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-logo { display: inline-flex; }
.brand-logo img { display: block; height: 28px; width: auto; border-radius: 7px; }
.footer-brand .brand-logo img { height: 26px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--ink); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #3a3a44; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

.hero-content { max-width: var(--maxw); margin: 0 auto; text-align: center; padding-top: 46px; }
.hero-content h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.hero-sub { color: #57535e; font-size: 1.05rem; margin-top: 12px; }

/* QR card */
.qr-card {
  position: relative;
  max-width: 620px; margin: 44px auto 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px -28px rgba(60, 40, 90, .35), 0 4px 14px -8px rgba(60,40,90,.18);
  text-align: left; overflow: hidden;
}
.qr-card-strip {
  height: 6px;
  background: linear-gradient(90deg, #7c5cff 0%, #4cb8ff 24%, #19c0a8 42%, #ff6fae 64%, #ff8a3d 84%, #ffc857 100%);
}
.qr-card-body { display: flex; align-items: center; gap: 30px; padding: 30px 34px; }
.qr-frame {
  flex: 0 0 auto; padding: 8px; border: 1px solid #ededed; border-radius: 12px; background: #fff;
}
.qr-frame img { display: block; border-radius: 8px; width: 96px; height: 96px; object-fit: cover; }
.coming-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f1edff; color: #6d4bd8;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.coming-badge i {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #19c0a8, #4cb8ff);
}
.qr-text h2 { font-size: 1.3rem; font-weight: 600; }
.qr-text p { color: var(--ink-soft); font-size: .95rem; margin-top: 8px; max-width: 280px; }
.qr-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 34px; border-top: 1px solid #f0f0ee;
}
.qr-avail { color: #9a9aa2; font-size: .85rem; }
.qr-help { font-size: .85rem; font-weight: 500; }
.qr-help:hover { text-decoration: underline; }

/* ===== Features ===== */
.features { max-width: 880px; margin: 0 auto; padding: 64px 24px 80px; }
.features-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.eyebrow { color: var(--ink-soft); font-size: .95rem; }
.features-head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 6px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature {
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: var(--radius); padding: 26px;
}
.feature h3 { font-size: 1.18rem; font-weight: 600; margin-top: 22px; }
.feature p { color: var(--ink-soft); font-size: .93rem; margin-top: 8px; }

/* shared mock frame */
.mock {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  height: 168px; padding: 16px; position: relative; overflow: hidden;
}
.line { display: block; height: 7px; border-radius: 4px; background: #e6e6ea; margin: 7px 0; }
.w90 { width: 90%; } .w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; }

/* care circle mock */
.mock-circle { display: block; }
.circle-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.circle-lines line { stroke: #dcdce2; stroke-width: 1; }
.node-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: #2b2b33;
  display: grid; place-items: center; z-index: 2;
}
.pill {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e9e9ee; border-radius: 999px;
  padding: 5px 11px; font-size: .76rem; font-weight: 500; color: #34343c;
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.18); white-space: nowrap;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pill-top   { top: 12px; left: 50%; transform: translateX(-50%); }
.pill-left  { top: 33%; left: 6px; }
.pill-right { top: 33%; right: 6px; }
.pill-bl    { bottom: 16px; left: 12px; }
.pill-br    { bottom: 16px; right: 12px; }

/* note capture mock */
.note-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #e9e9ee; border-radius: 999px; padding: 4px 10px;
  font-size: .72rem; font-weight: 500; color: #45454d;
}
.tab i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.tab-active { background: #2b2b33; color: #fff; border-color: #2b2b33; }
.note-box { border: 1px solid #eee; border-radius: 10px; padding: 12px; }
.note-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.note-time { color: #a6a6ad; font-size: .72rem; }
.btn-saved { background: #2b2b33; color: #fff; font-size: .72rem; font-weight: 600; padding: 5px 14px; border-radius: 8px; }

/* document mock */
.mock-doc { display: grid; place-items: center; }
.doc-card {
  position: relative; width: 200px; background: #fff; border: 1px solid #ececec;
  border-radius: 8px; padding: 18px 16px 30px; transform: rotate(-3deg);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.25);
}
.doc-card .line { background: #2e2e38; opacity: .85; height: 6px; }
.doc-card .line.w60, .doc-card .line.w50 { background: #d9d9df; opacity: 1; }
.doc-corner {
  position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-top: 16px solid #eee; border-left: 16px solid transparent;
  border-bottom-left-radius: 4px;
}
.doc-tag {
  display: inline-block; margin-top: 10px; background: #efe9ff; color: #6d4bd8;
  font-size: .62rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px;
}

/* calendar mock */
.cal-week { display: flex; justify-content: space-between; margin-bottom: 12px; }
.cal-week span {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: .82rem; color: #34343c; width: 30px; padding: 4px 0; border-radius: 8px;
}
.cal-week b { font-size: .6rem; font-weight: 600; color: #a6a6ad; letter-spacing: .03em; }
.cal-active { background: #2b2b33; color: #fff; }
.cal-active b { color: #c9c9d2; }
.cal-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #eee; border-radius: 10px; padding: 8px 10px; margin-top: 8px;
}
.cal-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: .85rem; }
.cal-body { display: flex; flex-direction: column; }
.cal-body b { font-size: .76rem; font-weight: 600; }
.cal-body small { font-size: .68rem; color: #a6a6ad; }

/* ===== Demo request ===== */
.contact { max-width: 880px; margin: 0 auto; padding: 8px 24px 80px; }
.contact-inner {
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: var(--radius); padding: 40px 36px;
}
.contact-head { text-align: center; max-width: 520px; margin: 0 auto 28px; }
.contact-head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 6px; }
.contact-sub { color: var(--ink-soft); font-size: .95rem; margin-top: 10px; }
.demo-form { max-width: 460px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: #45454d; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #e2e2e0; border-radius: 10px;
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(109,75,216,.14);
}
.demo-submit {
  width: 100%; font: inherit; font-weight: 600; color: #fff; cursor: pointer;
  background: var(--link); border: none; border-radius: 10px; padding: 13px 18px;
  transition: filter .15s;
}
.demo-submit:hover { filter: brightness(1.06); }
.form-note { color: var(--ink-soft); font-size: .82rem; text-align: center; margin-top: 12px; }

/* ===== Footer ===== */
.site-footer { background: var(--footer); color: #c4c8d2; padding: 52px 26px 26px; }
.footer-top {
  max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 28px; padding-bottom: 26px;
}
.footer-brand .brand-name { color: #fff; }
.footer-tag { color: #8b91a0; font-size: .9rem; margin-top: 12px; max-width: 320px; }
.footer-legal-info { font-style: normal; text-align: right; display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: #8b91a0; }
.footer-legal-info strong { color: #e4e7ee; font-weight: 600; }
.footer-legal-info a { color: #8b91a0; }
.footer-legal-info a:hover { color: #fff; }
.footer-bottom {
  max-width: 1080px; margin: 0 auto; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: #6d7283;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .qr-card-body { flex-direction: column; text-align: center; gap: 18px; }
  .qr-text p { max-width: none; }
}
@media (max-width: 460px) {
  .qr-card-body, .qr-card-foot { padding-left: 20px; padding-right: 20px; }
  .nav-links { gap: 18px; }
  .footer-top { flex-direction: column; }
  .footer-legal-info { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
