/* =========================================================
   GetMadTools — store front (design: Claude Design canvas "GetMadTools Store")
   White + indigo #4F46E5 + coral #FF6B4A, lavender tints. Bricolage Grotesque + Inter.
   3D: CSS software boxes in the hero (store3d.js), tilting cards and screenshots.
   Only transform/opacity animate; no blur filters.
   ========================================================= */
:root {
  --bg: #FFFFFF; --soft: #F5F6FF; --lav: #EEF0FF; --peach: #FFEDE8;
  --line: #E8E9F5; --line2: #DADCF0;
  --ink: #111827; --text: #1F2937; --muted: #4B5563; --muted2: #6B7280;
  --ind: #4F46E5; --ind-d: #3730A3; --ind-dd: #312E81; --coral: #FF6B4A; --on-coral: #1F1147; --coral-t: #9A3412;
  --disp: "Bricolage Grotesque", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 72px); --max: 1280px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--ind); } a:hover { color: var(--ind-d); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--disp); color: var(--ink); margin: 0; letter-spacing: -.04em; line-height: 1.02; font-weight: 800; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ind { color: var(--ind); }
.kick { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #C2410C; }
.kick.ki { color: var(--ind); } .kick.kc { color: #C2410C; }
::selection { background: var(--ind); color: #fff; }

/* wordmark (no logo) */
.word { text-decoration: none; font-family: var(--disp); font-weight: 800; font-size: 23px; letter-spacing: -.03em; color: var(--ink); }
.word:hover { color: var(--ink); }
.word b { color: var(--ind); font-weight: 800; } .word i { color: var(--coral); font-style: normal; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 16px var(--pad); background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); }
.menu { display: flex; gap: 26px; font-size: 15px; }
.menu a { color: var(--muted); text-decoration: none; transition: color .2s; }
.menu a:hover { color: var(--ink); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid #E0E2F7; border-radius: 999px; padding: 9px 16px; color: var(--muted2); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--ind); box-shadow: 0 0 0 4px rgba(79,70,229,.14); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 160px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 14px; background: var(--ind); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(79,70,229,.8); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(79,70,229,.9); }
.btn.dark { background: var(--ink); box-shadow: 0 14px 30px -16px rgba(17,24,39,.7); }
.btn-sm { min-height: 46px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn-sm.grow { flex: 1; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .2s, color .2s; }
.btn-line:hover { border-color: var(--ind); color: var(--ind); }
.ms { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; border: 1px solid var(--line2); font-size: 15px; font-weight: 600; line-height: 1.15; transition: border-color .2s, transform .2s; }
.ms:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.ms span { display: flex; flex-direction: column; }
.ms small { font-size: 11px; font-weight: 500; color: var(--muted2); }

/* ---------- hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 64px var(--pad) 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.pill { margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ind-d); background: var(--lav); padding: 8px 14px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.hero h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: .98; letter-spacing: -.045em; }
.sticker { background: var(--coral); color: var(--on-coral); padding: 0 .14em; border-radius: .18em; display: inline-block; transform: rotate(-2deg); }
.sub { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.facts { list-style: none; margin: 0; padding: 8px 0 0; display: flex; gap: 36px; flex-wrap: wrap; }
.facts b { display: block; font-family: var(--disp); font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.facts b.ind { color: var(--ind); }
.facts span { font-size: 14px; color: var(--muted2); }

/* ---------- 3D scene: software boxes ---------- */
.scene { position: relative; height: 540px; border-radius: 32px; background-color: var(--lav); background-image: radial-gradient(#C7CBF5 1.2px, transparent 1.2px); background-size: 22px 22px; overflow: hidden; perspective: 1500px; perspective-origin: 50% 35%; }
.orbit { position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border: 2px dashed #C7CBF5; border-radius: 50%; animation: spin 18s linear infinite; }
.orbit span { position: absolute; border-radius: 50%; }
.orbit .o1 { left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; background: var(--coral); }
.orbit .o2 { left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--ind); }
@keyframes spin { to { transform: rotate(360deg); } }
.rig { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.floor { position: absolute; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(49,46,129,.34), rgba(49,46,129,0)); transform: translateZ(-60px); }
.floor.f1 { left: calc(50% - 250px); top: 452px; width: 260px; animation: shade 7s ease-in-out infinite; }
.floor.f2 { left: calc(50% - 20px); top: 472px; width: 250px; animation: shade 8s ease-in-out infinite; }
@keyframes shade { 50% { transform: translateZ(-60px) scale(.86); opacity: .6; } }

.box { --w: 230px; --h: 310px; --d: 64px; position: absolute; width: var(--w); height: var(--h); transform-style: preserve-3d; text-decoration: none; color: var(--ink); cursor: pointer; outline: none; }
.box:hover { color: var(--ink); }
.box.bx1 { left: calc(50% - 262px); top: 104px; }
.box.bx2 { left: calc(50% + 22px); top: 150px; }
.box .spin { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.box .f { position: absolute; display: block; box-sizing: border-box; backface-visibility: hidden; }
.box .front { width: var(--w); height: var(--h); transform: translateZ(calc(var(--d) / 2)); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px #E0E2F7; display: flex; flex-direction: column; }
.box .front.coral { box-shadow: inset 0 0 0 1px #FFD3C8; }
.box .front > img { width: 100%; height: 150px; object-fit: cover; object-position: top left; }
.box .fb { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.box .fn { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.box .fn img { width: 40px; height: 40px; border-radius: 10px; }
.box .fs { font-size: 13px; color: var(--muted); }
.chip { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.chip.ci { color: var(--ind-d); background: var(--lav); } .chip.cc { color: var(--coral-t); background: var(--peach); }
.box .back { width: var(--w); height: var(--h); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--side); border-radius: 16px; }
.box .right, .box .left { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); }
.box .right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: var(--side); display: flex; align-items: center; justify-content: center; }
.box .left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: var(--side2); }
.box .right b { writing-mode: vertical-rl; font-family: var(--disp); font-weight: 800; font-size: 20px; letter-spacing: .08em; color: #fff; }
.box .right b.dk { color: var(--on-coral); }
.box .topf { width: var(--w); height: var(--d); top: calc((var(--h) - var(--d)) / 2); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: var(--top); }
.box:focus-visible .front { box-shadow: inset 0 0 0 3px var(--ind); }
.tag { position: absolute; left: calc(50% - 20px); top: 84px; background: var(--coral); color: var(--on-coral); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 10px; box-shadow: 0 12px 24px -12px rgba(255,107,74,.9); transform: translateZ(90px); animation: swing 4s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes swing { 0%, 100% { transform: translateZ(90px) rotate(-8deg); } 50% { transform: translateZ(90px) rotate(4deg); } }
.hint { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- apps ---------- */
.apps { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 80px; }
.apps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.apps h2 { font-size: clamp(34px, 4vw, 54px); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: #374151; font: 500 14px var(--body); cursor: pointer; transition: all .2s; }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; perspective: 1400px; }
.app { border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; will-change: transform; }
.app:hover { box-shadow: 0 30px 60px -30px rgba(79,70,229,.45); }
.app[hidden] { display: none; }
.app-shot { display: block; padding: 22px 22px 0; height: 190px; overflow: hidden; }
.app-shot img { width: 100%; border-radius: 12px 12px 0 0; box-shadow: 0 20px 40px -20px rgba(49,46,129,.6); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.app:hover .app-shot img { transform: translateY(-8px) scale(1.02); }
.ind-bg { background: var(--lav); } .coral-bg { background: var(--peach); }
.app-shot.coral-bg img { box-shadow: 0 20px 40px -20px rgba(154,52,18,.5); }
.app-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.app-top { display: flex; align-items: center; gap: 14px; }
.app-top img { width: 56px; height: 56px; border-radius: 14px; }
.app h3 { font-size: 26px; letter-spacing: -.03em; }
.app-top p { margin: 0; font-size: 13px; color: var(--muted2); }
.app-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.app-meta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted2); border-top: 1px solid #F0F1F8; padding-top: 14px; }
.app-meta b { color: var(--ink); }
.price { margin-left: auto; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.price.pc { color: var(--coral-t); background: var(--peach); } .price.pi { color: var(--ind-d); background: var(--lav); }
.app-btns { display: flex; gap: 10px; margin-top: auto; }
.app.soon { border: 2px dashed var(--line2); padding: 32px; justify-content: center; gap: 14px; min-height: 360px; }
.app.soon:hover { box-shadow: none; }
.soon-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--lav); color: var(--ind); display: grid; place-items: center; }
.app.soon .btn-line { align-self: flex-start; }
.empty { text-align: center; color: var(--muted2); }

/* ---------- spotlights ---------- */
.spot { max-width: var(--max); margin: 0 auto; padding: 72px var(--pad); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.spot-copy { display: flex; flex-direction: column; gap: 18px; }
.spot h2 { font-size: clamp(32px, 3.6vw, 50px); }
.spot-copy > p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--text); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--ind) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks.tc li::before { background-color: var(--coral); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1147' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.spot-copy .btn { align-self: flex-start; }
.spot-pad { border-radius: 28px; padding: 40px; perspective: 1400px; }
.spot-shot { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(49,46,129,.7); transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 4deg)); transition: transform .5s cubic-bezier(.16,1,.3,1); will-change: transform; }
.coral-bg .spot-shot { box-shadow: 0 40px 70px -30px rgba(154,52,18,.55); }
.spot-r .spot-shot { --ry: 12deg; }

/* ---------- why ---------- */
.why { background: var(--soft); border-block: 1px solid var(--line); }
.why-in { max-width: var(--max); margin: 0 auto; padding: 80px var(--pad); }
.why h2 { text-align: center; margin-bottom: 36px; font-size: clamp(32px, 3.6vw, 50px); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; perspective: 1200px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.why-card:hover { transform: translateY(-6px) rotateX(6deg); box-shadow: 0 24px 40px -24px rgba(79,70,229,.4); }
.wi { width: 48px; height: 48px; border-radius: 14px; background: var(--ind); color: #fff; display: grid; place-items: center; }
.wi.wc { background: var(--coral); color: var(--on-coral); }
.why-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.why-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- about ---------- */
.about { max-width: var(--max); margin: 0 auto; padding: 80px var(--pad); }
.about-card { background: var(--ind-dd); border-radius: 32px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px; align-items: center; position: relative; overflow: hidden; }
.sun { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--coral); }
.about-l, .about-r { position: relative; }
.about .kick { color: #C7D2FE; }
.about h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; color: #fff; }
.about-r { display: flex; flex-direction: column; gap: 22px; }
.about-r p { margin: 0; font-size: 17px; line-height: 1.65; color: #E0E7FF; }
.about-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 12px; background: #fff; color: var(--ind-dd); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn-white:hover { color: var(--ind); }
.btn-ghostw { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.btn-ghostw:hover { color: #fff; border-color: #fff; }

/* ---------- faq ---------- */
.faq { max-width: 960px; margin: 0 auto; padding: 20px var(--pad) 100px; }
.faq h2 { margin-bottom: 28px; font-size: clamp(32px, 3.6vw, 50px); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--line2); box-shadow: 0 16px 30px -22px rgba(79,70,229,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 30px 20px 0; font-family: var(--disp); font-weight: 700; font-size: 19px; color: var(--ink); position: relative; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--ind); font-size: 24px; font-weight: 600; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--coral); }
.faq details p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px var(--pad); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 14px; color: var(--muted2); }
.foot .word { font-size: 19px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ind); }
.foot p { margin: 0 0 0 auto; }

/* ---------- scroll reveal (store.js adds .rv / .in) ---------- */
.rv { opacity: 0; transform: perspective(1000px) translateY(46px) rotateX(16deg); transform-origin: 50% 100%; transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .menu { display: none; }
  .spot { grid-template-columns: 1fr; gap: 36px; }
  .spot-r .spot-pad { order: 2; }
}
@media (max-width: 600px) {
  .top { gap: 12px; }
  .word { font-size: 20px; }
  .search input { width: 96px; }
  .scene { height: 470px; border-radius: 24px; }
  .box { --w: 180px; --h: 250px; --d: 52px; }
  .box .front > img { height: 112px; }
  .box .fb { padding: 12px; gap: 6px; }
  .box .fn { font-size: 18px; } .box .fn img { width: 32px; height: 32px; }
  .box .fs { font-size: 12px; }
  .box.bx1 { left: calc(50% - 175px); top: 90px; }
  .box.bx2 { left: calc(50% - 15px); top: 140px; }
  .floor.f1 { left: calc(50% - 190px); top: 372px; width: 200px; } .floor.f2 { left: calc(50% - 20px); top: 400px; width: 190px; }
  .orbit { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
  .tag { left: calc(50% - 30px); top: 70px; }
  .cta .btn, .cta .ms { width: 100%; justify-content: center; }
  .price { margin-left: 0; }
  .spot-pad { padding: 20px; }
  .foot p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit, .floor, .tag { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* app cards: direct download (app colour) + explore */
.app .btn.dl-ind { background: var(--ind); color: #fff; }
.app .btn.dl-cor { background: var(--coral); color: var(--on-coral); box-shadow: 0 14px 30px -14px rgba(255,107,74,.9); }
.app .btn.dl-cor:hover { color: var(--on-coral); }
.app-store { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-top: -6px; }
.app-store:hover { color: var(--ink); }
.app-note { font-size: 13px; color: var(--muted2); margin-top: -6px; }

