/* QrTapz public homepage. Self-contained: no build step needed. */
:root {
    --blue: #2B3FF2;
    --blue-deep: #1B2AC4;
    --yellow: #FFD23F;
    --ink: #14142B;
    --body: #4A4A68;
    --line: #E3E5F2;
    --mist: #F3F4FB;
    --white: #FFFFFF;
    --green: #128A5E;
    --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--white);
    color: var(--body);
    font-family: var(--text);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lede { margin-top: 14px; max-width: 34em; font-size: 1.125rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 56px; padding: 0 28px;
    border-radius: 999px; border: 2px solid transparent;
    font-family: var(--display); font-size: 1.0625rem; font-weight: 700;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #FFDD66; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header + hero share the blue ground */
.top { background: var(--blue); color: var(--white); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: inherit; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.28); }
.bar nav { display: flex; align-items: center; gap: 8px; }
.bar nav a.plain { padding: 10px 14px; font-weight: 600; text-decoration: none; border-radius: 999px; }
.bar nav a.plain:hover { background: rgba(255,255,255,.12); }

.hero { display: grid; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 88px; }
.hero h1 { color: var(--white); font-size: clamp(2.75rem, 6.4vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: .98; }
.hero p { margin-top: 22px; max-width: 27em; font-size: 1.25rem; color: #DCE0FF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 1rem; color: #C3C9FF; }

/* The tap: a printed card meets a phone */
.tap { position: relative; width: 100%; max-width: 460px; height: 440px; margin: 0 auto; }
.phone {
    position: absolute; right: 0; top: 0; width: 232px; height: 440px;
    padding: 12px; border-radius: 40px; background: var(--ink);
    box-shadow: 0 30px 60px -20px rgba(8,10,60,.55);
}
.screen { height: 100%; padding: 22px 14px 14px; border-radius: 30px; background: var(--white); color: var(--ink); text-align: center; overflow: hidden; }
.avatar { width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-size: 1.75rem; font-weight: 800; }
.screen .name { margin-top: 12px; font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.screen .role { margin-top: 2px; font-size: .875rem; color: var(--body); }
.row { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px 12px; border-radius: 14px; background: var(--mist); font-size: .9375rem; font-weight: 600; text-align: left; }
.row svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.row.save { justify-content: center; margin-top: 16px; background: var(--blue); color: var(--white); }
.row.save svg { color: var(--yellow); }

.card {
    position: absolute; left: 0; bottom: 34px; width: 250px; padding: 18px;
    border-radius: 22px; background: var(--yellow); color: var(--ink);
    transform: rotate(-9deg); transform-origin: 80% 60%;
    box-shadow: 0 24px 40px -18px rgba(8,10,60,.6);
}
.card img { width: 132px; height: 132px; border-radius: 12px; }
.card .who { margin-top: 12px; font-family: var(--display); font-size: 1.125rem; font-weight: 800; line-height: 1.15; }
.card .hint { font-size: .875rem; font-weight: 600; }
.rings { position: absolute; left: 204px; top: 206px; width: 0; height: 0; }
.rings i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 3px solid var(--white); border-radius: 50%; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
    .card { animation: card-in 1.1s cubic-bezier(.2,.9,.25,1.15) .25s both; }
    .rings i { animation: ring 1.5s ease-out 1.25s 2 both; }
    .rings i + i { animation-delay: 1.6s; }
    .screen > * { animation: rise .5s ease-out both; }
    .screen > :nth-child(1) { animation-delay: 1.45s; }
    .screen > :nth-child(2) { animation-delay: 1.55s; }
    .screen > :nth-child(3) { animation-delay: 1.65s; }
    .screen > :nth-child(4) { animation-delay: 1.8s; }
    .screen > :nth-child(5) { animation-delay: 1.9s; }
    .screen > :nth-child(6) { animation-delay: 2s; }
    .screen > :nth-child(7) { animation-delay: 2.15s; }
}
@keyframes card-in { from { opacity: 0; transform: translate(-70px, 50px) rotate(-22deg); } to { opacity: 1; transform: rotate(-9deg); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(5); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 88px 0; }
.section.mist { background: var(--mist); }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
    border-radius: 50%; background: var(--yellow); color: var(--ink);
    font-family: var(--display); font-size: 1.625rem; font-weight: 800;
}
.steps p { margin-top: 8px; }

.gets { display: grid; gap: 28px 48px; margin-top: 48px; }
.get { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.get svg { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--white); color: var(--blue); border: 1px solid var(--line); }
.get h3 { font-size: 1.1875rem; }
.get p { margin-top: 4px; font-size: 1.0625rem; }

/* Pricing */
.switch { display: inline-flex; margin-top: 28px; padding: 5px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.switch button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--body); font: 700 1rem var(--display); cursor: pointer; }
.switch button.is-on { background: var(--ink); color: var(--white); }
.plans { display: grid; gap: 24px; margin-top: 40px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 28px; background: var(--white); border: 2px solid var(--line); }
.plan.is-featured { border-color: var(--blue); }
.plan .tag { position: absolute; top: -14px; left: 28px; padding: 3px 14px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: .875rem; font-weight: 700; }
.plan .about { margin-top: 8px; font-size: 1.0625rem; }
.price { margin-top: 22px; }
.price .amount { font-family: var(--display); font-size: 2.75rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.price .per { margin-left: 6px; }
.price .was { margin-left: 10px; text-decoration: line-through; }
.price .good { margin-top: 8px; font-size: 1rem; font-weight: 700; color: var(--green); }
.price .trial { margin-top: 4px; font-size: 1rem; font-weight: 600; color: var(--blue); }
.ticks { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; font-size: 1.0625rem; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.ticks svg { width: 24px; height: 24px; color: var(--blue); }
.plan .btn { margin-top: auto; }

/* Reviews */
.quotes { display: grid; gap: 24px; margin-top: 40px; }
.quote { margin: 0; padding: 28px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.quote blockquote { margin: 0; color: var(--ink); font-size: 1.125rem; }
.quote figcaption { margin-top: 16px; font-weight: 700; color: var(--ink); }
.quote figcaption span { display: block; font-weight: 400; color: var(--body); font-size: 1rem; }

/* Questions */
.faq { max-width: 760px; margin-top: 36px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mist); font-size: 1.5rem; font-weight: 500; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 52px 24px 0; }

/* Contact */
.reach { display: grid; gap: 24px; margin-top: 36px; }
.reach dt { font-size: 1rem; }
.reach dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.reach a { text-decoration-color: var(--blue); text-underline-offset: 4px; }

/* Closing band + footer */
.close { background: var(--yellow); padding: 72px 0; }
.close .wrap { display: grid; gap: 28px; align-items: center; }
.close h2 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
.foot { background: var(--ink); color: #B9BBD6; padding: 28px 0; font-size: 1rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot .brand { font-size: 1.25rem; color: var(--white); }
.foot .brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }

@media (min-width: 720px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
    .gets { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .reach { grid-template-columns: repeat(3, 1fr); }
    .close .wrap { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
    .hero { grid-template-columns: 1.1fr .9fr; padding-top: 56px; padding-bottom: 112px; }
    .tap { margin-right: 0; }
}
@media (max-width: 480px) {
    body { font-size: 17px; }
    .section { padding: 64px 0; }
    .bar nav a.plain { display: none; }
    .hero-actions .btn { width: 100%; }
    .tap { height: 400px; max-width: 340px; }
    .phone { width: 210px; height: 400px; }
    .card { width: 190px; padding: 14px; bottom: 20px; }
    .card img { width: 96px; height: 96px; }
    .rings { left: 150px; top: 200px; }
    .screen > :nth-child(6) { display: none; }
}
