/* Home page (/) for visitors and the welcome page (/welcome). Uses the tokens from style.css. */
main.home { max-width: 1120px; margin-top: 12px; }
.home h2 { font-size: 28px; letter-spacing: -.02em; margin: 6px 0 8px; }
.home h3 { font-size: 16px; margin: 10px 0 6px; }
.btn.big { min-height: 50px; padding: 12px 22px; font-size: 15px; border-radius: 14px; }
.btn .ic, .btn svg { width: 18px; height: 18px; }

/* Hero */
.h-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 36px 0 28px; }
.h-hero h1 { font-size: 48px; line-height: 1.07; letter-spacing: -.035em; margin: 10px 0 16px; }
.h-hero h1 span { white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 560px; }
.h-hero .alert { margin: 0 0 16px; max-width: 560px; }
.h-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.h-note { margin: 14px 0 0; }
.h-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.h-chips li { font-size: 13px; font-weight: 600; color: var(--accent-ink); background: rgba(255,255,255,.75); border: 1px solid #dcdaf8;
  padding: 5px 12px 5px 28px; border-radius: 999px; position: relative; }
.h-chips li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 5px; margin-top: -4px;
  border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* Hero picture: a stack of result sheets */
.h-hero-art { position: relative; height: 380px; }
.h-sheet { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px;
  box-shadow: var(--shadow-lg); width: 82%; }
.h-sheet-back { top: 0; right: 0; transform: rotate(5deg); height: 230px; background: linear-gradient(160deg, #fff 60%, var(--pink-soft)); }
.h-sheet-mid { top: 34px; right: 6%; transform: rotate(-3deg); height: 240px; background: linear-gradient(160deg, #fff 60%, var(--teal-soft)); }
.h-sheet-front { top: 74px; left: 0; z-index: 2; }
.h-sheet-front h3 { font-size: 19px; margin: 12px 0 6px; }
.h-sheet-front p { margin: 0 0 12px; font-size: 14px; color: #374151; }
.h-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.h-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.h-tag.pink { background: var(--pink-soft); color: var(--accent-3); }
.h-tag.teal { background: var(--teal-soft); color: var(--teal); }
.h-lines { display: grid; gap: 8px; margin-top: 14px; }
.h-lines i { display: block; height: 8px; border-radius: 99px; background: #eceef7; }
.h-lines i:nth-child(2n) { width: 78%; } .h-lines i:nth-child(3n) { width: 60%; }
.h-hy { font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); border-left: 4px solid #f59e0b; color: #5c3b00; }
.h-hy b { display: inline-block; margin-right: 6px; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.h-hy.teal { background: var(--teal-soft); border-left-color: var(--teal); color: #0b4f49; }

/* Sections */
.h-section { padding: 36px 0 12px; }
.h-head { max-width: 680px; margin-bottom: 22px; }
.h-head p { margin: 0; font-size: 16px; }

/* What you can make */
.h-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.h-feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.h-feat svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: #fff; background: var(--accent); }
.h-feat.c2 svg { background: var(--accent-3); } .h-feat.c3 svg { background: var(--teal); } .h-feat.c4 svg { background: #d97706; }
.h-feat.c5 svg { background: var(--sky); } .h-feat.c6 svg { background: var(--accent-2); }
.h-feat h3 { margin: 14px 0 4px; }
.h-feat p { margin: 0; color: var(--muted); font-size: 14px; }

/* Steps */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.h-steps li { position: relative; background: var(--grad-soft); border: 1px solid #ddd8fb; border-radius: var(--radius); padding: 22px 20px 20px; }
.h-num { position: absolute; top: -14px; left: 20px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 6px 14px rgba(124, 58, 237, .3); }
.h-steps svg { width: 26px; height: 26px; color: var(--accent-2); margin-top: 8px; }
.h-steps h3 { margin: 8px 0 6px; }
.h-steps p { margin: 0; font-size: 14px; color: #3f4759; }

/* Examples */
.h-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 0 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; width: max-content; max-width: 100%; scrollbar-width: none; }
.h-tabs::-webkit-scrollbar { display: none; }
.h-tabs button { border: 0; min-height: 40px; padding: 8px 16px; border-radius: 10px; color: var(--muted); background: transparent; flex: none; }
.h-tabs button:hover { color: var(--accent); background: var(--accent-soft); }
.h-tabs button[aria-selected=true] { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .25); }
.h-examples:not(.tabbed) { display: grid; gap: 16px; }
.h-ex { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); min-height: 320px; }
.h-ex-label { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.h-ex h3 { font-size: 19px; margin: 4px 0 10px; }
.h-ex ul, .h-ex ol { padding-left: 20px; margin: 10px 0 14px; } .h-ex li { margin: 6px 0; }
.h-mark { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 6px; font-size: 12px; font-weight: 700;
  text-align: center; background: var(--accent-soft); color: var(--accent); }
.h-qa dt { font-weight: 650; margin-top: 12px; }
.h-qa dd { margin: 4px 0 0; padding: 8px 12px; background: #f7f8fc; border-radius: 10px; }

.h-map { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "b1 b2" "core core" "b3 b4"; gap: 14px; margin-top: 10px; }
.h-map-core { grid-area: core; justify-self: center; text-align: center; font-weight: 750; color: #fff; background: var(--grad);
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); }
.h-map-b { border-radius: 14px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.h-map-b b { width: 100%; font-size: 13px; }
.h-map-b span { font-size: 13px; background: rgba(255,255,255,.8); padding: 3px 9px; border-radius: 999px; }
.h-map-b.b1 { grid-area: b1; background: var(--accent-soft); } .h-map-b.b2 { grid-area: b2; background: var(--pink-soft); }
.h-map-b.b3 { grid-area: b3; background: var(--teal-soft); } .h-map-b.b4 { grid-area: b4; background: var(--amber-soft); }

.h-chat { display: grid; gap: 12px; }
.h-q { justify-self: end; max-width: 80%; margin: 0; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--grad); color: #fff; }
.h-a { max-width: 92%; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: #f7f8fc; border: 1px solid var(--line); }
.h-a p { margin: 0 0 10px; }
.h-a sup { font-weight: 700; color: var(--accent); }
.h-refs { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 6px; font-size: 13px; }
.h-refs li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 !important; padding: 6px 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; }
.h-refs li > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; font-size: 12px; }
.h-refs a { margin-left: auto; font-weight: 600; text-decoration: none; }

/* Why */
.h-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-why li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.h-why svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.h-why b { display: block; } .h-why span { color: var(--muted); font-size: 14px; }

/* Call to action band */
.h-band { margin: 40px 0 8px; padding: 30px 34px; border-radius: 22px; background: var(--grad); color: #fff; display: flex;
  justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.h-band h2 { color: #fff; margin: 0 0 6px; }
.h-band p { margin: 0; opacity: .92; max-width: 520px; }
.h-band-big { display: block; font-size: 56px; font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.h-band-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.light { background: #fff; color: var(--accent-ink); border-color: #fff; }
.btn.light:hover { color: var(--accent-2); border-color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn.ghostlight { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghostlight:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); }

/* FAQ and footer */
.h-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin: 10px 0; max-width: 760px; }
.h-faq summary { font-size: 15px; }
.h-faq details p { margin: 8px 0 2px; color: var(--muted); }
.h-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; }
.h-foot b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 900px) {
  .h-hero { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .h-hero-art { height: 300px; max-width: 460px; width: 100%; margin: 0 auto; }
  .h-grid, .h-why { grid-template-columns: 1fr 1fr; }
  .h-steps { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  main.home { padding: 0 16px; margin-top: 4px; }
  .h-hero h1 { font-size: 34px; }
  .h-lead { font-size: 16px; }
  .h-cta .btn { flex: 1 1 100%; }
  .home h2 { font-size: 23px; }
  .h-section { padding: 28px 0 4px; }
  .h-grid, .h-why { grid-template-columns: 1fr; gap: 12px; }
  .h-feat { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 16px; }
  .h-feat svg { grid-row: span 2; }
  .h-feat h3 { margin: 2px 0; }
  .h-hero-art { height: auto; padding: 50px 0 16px; }
  .h-tabs button { padding: 8px 12px; }
  .h-sheet { width: 88%; padding: 14px 16px; }
  .h-sheet-front { position: relative; top: 0; }
  .h-sheet-front h3 { font-size: 17px; }
  .h-ex { padding: 18px 16px; min-height: 0; }
  .h-map { grid-template-columns: 1fr; grid-template-areas: "core" "b1" "b2" "b3" "b4"; }
  .h-band { padding: 24px 20px; margin-top: 28px; }
  .h-band-cta, .h-band-cta .btn { width: 100%; }
  .h-band-big { font-size: 46px; }
}
@media (max-width: 380px) {
  .h-hero h1 { font-size: 30px; }
}
