/*
 * Tileket's public home page, in the same language as the Zapket home page: a dotted-grid
 * hero with one accent word, a problems-and-answers table, numbered steps, a feature grid,
 * questions, and a quiet footer. Tokens come from base.css.
 */
@import url("base.css");

body.site { background: var(--bg); }
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* ── Header ───────────────────────────────────────────────── */

.site-top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid color-mix(in srgb, var(--separator) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 75%, transparent); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
.site-top .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.site-top .brand { display: flex; align-items: center; gap: 10px; color: var(--label); }
.site-top .brand:hover { text-decoration: none; }
.site-top .brand .app-icon { width: 32px; height: 32px; }
.site-top .brand .wordmark { font-size: 22px; }
.site-links { display: none; gap: 24px; font-size: var(--text-footnote); font-weight: 500; }
.site-links a { color: var(--label-2); }
.site-links a:hover { color: var(--label); text-decoration: none; }
@media (min-width: 768px) { .site-links { display: flex; } }
.site-top .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-top .signin { padding: 8px 12px; border-radius: var(--r-m); font-size: var(--text-footnote); font-weight: 600; color: var(--label); white-space: nowrap; }
.site-top .signin:hover { color: var(--tint-text); text-decoration: none; }
@media (max-width: 480px) { .site-top .signin { display: none; } }

/* ── Dotted backdrop with a soft accent glow (hero, how it works) ── */

.dots { position: relative; overflow: hidden; }
.dots::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-size: 24px 24px;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 1.5px);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 90%); mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 90%); }
.dots::after { content: ""; position: absolute; top: -14rem; right: -10rem; width: 38rem; height: 38rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--tint) 16%, transparent), transparent); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-7rem, 9rem) scale(1.12); } }
.dots > * { position: relative; z-index: 1; }

/* ── Hero ─────────────────────────────────────────────────── */

.hero { display: grid; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 80px; }
@media (min-width: 640px) { .hero { padding-top: 80px; } }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; padding-bottom: 112px; } }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--separator); border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent); font-size: var(--text-caption); font-weight: 600; color: var(--label-2); }
.eyebrow-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tint-fill); }
.hero h1 { margin: 20px 0 0; font-size: 2.5rem; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
@media (min-width: 640px) { .hero h1 { font-size: 3.5rem; } }
.hero h1 em, .h2 em { font-style: normal; color: var(--tint-text); }
.hero .lede { margin: 24px 0 0; max-width: 36rem; font-size: 1.0625rem; line-height: 1.65; color: var(--label-2); }
.hero .lede strong { color: var(--label); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row .btn { --control-h: 44px; padding: 0 20px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--text-footnote); color: var(--label-2); }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks .icon { width: 16px; height: 16px; color: var(--green); }

/* Hero visual: finished renders cycling in a card, an export card over it */
.float-card { border: 1px solid var(--separator); border-radius: var(--r-xl); background: color-mix(in oklab, var(--surface-raised) 92%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 16px 40px -14px rgb(0 0 0 / 0.18); }
.hero-visual { position: relative; }
.render-card { padding: 10px; }
.render-card .frame { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--stage); }
.render-card .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease), filter 900ms var(--ease); filter: blur(8px); }
.render-card .frame img.on { opacity: 1; filter: none; }
.render-card .tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px;
  background: rgb(255 255 255 / 0.86); color: #141414; font-size: var(--text-caption); font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity 400ms; }
.render-card .caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 6px 4px; font-size: var(--text-footnote); }
.render-card .caption span { color: var(--label-2); }
.export-card { position: absolute; right: -8px; bottom: -44px; width: min(270px, 72%); padding: 14px 16px; display: grid; gap: 10px; }
.export-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--text-footnote); }
.export-card .seg { display: flex; padding: 2px; border-radius: var(--r-m); background: var(--fill-3); font-size: var(--text-caption); font-weight: 600; }
.export-card .seg span { padding: 3px 9px; border-radius: var(--r-s); color: var(--label-2); }
.export-card .seg span.on { background: var(--surface-raised); color: var(--label); box-shadow: var(--shadow-2); }
.export-card .go { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: var(--r-m); background: var(--tint-fill); color: var(--on-tint); font-size: var(--text-footnote); font-weight: 600; }
.export-card .done { display: flex; align-items: center; gap: 6px; font-size: var(--text-caption); font-weight: 600; color: var(--green); }
@media (max-width: 1023px) { .export-card { right: 12px; } }

.rise { animation: rise 600ms var(--ease) both; }
.rise-2 { animation-delay: 120ms; } .rise-3 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ── Strip ────────────────────────────────────────────────── */

.strip { border-top: 1px solid var(--separator); border-bottom: 1px solid var(--separator); background: var(--bg); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.strip p { margin: 0; max-width: 26rem; font-size: var(--text-footnote); color: var(--label-2); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-s { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--fill-3); font-size: var(--text-caption); font-weight: 600; color: var(--label-2); }
.chip-s .icon { width: 14px; height: 14px; }
.chip-s.accent { background: var(--selection); color: var(--tint-text); }

/* ── Sections ─────────────────────────────────────────────── */

.section { padding: 96px 0; }
.eyebrow { margin: 0; font-size: var(--text-footnote); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tint-text); }
.h2 { margin: 12px 0 0; max-width: 36rem; font-size: 2rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.section-lede { margin: 16px 0 0; max-width: 42rem; color: var(--label-2); line-height: 1.6; }

/* Problems and answers */
.pain { margin-top: 48px; border: 1px solid var(--separator); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.pain-head, .pain-row { display: grid; grid-template-columns: 1fr 1fr; }
.pain-head { background: var(--bg); border-bottom: 1px solid var(--separator); }
.pain-head div { padding: 14px 24px; font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--label-2); }
.pain-head div + div, .pain-row > div + div { border-left: 1px solid var(--separator); }
.pain-row + .pain-row { border-top: 1px solid var(--separator); }
.pain-row > div { padding: 28px 24px; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-content: start; }
.pain-row .q { margin: 0; font-size: var(--text-title3); line-height: var(--lh-title3); font-weight: 600; }
.pain-row .why { margin: 8px 0 0; font-size: var(--text-footnote); line-height: 1.6; color: var(--label-2); }
.pain-row .fix { margin: 0; line-height: 1.6; }
.pain-row .chip-s { margin-top: 12px; }
.pain .icon { width: 20px; height: 20px; margin-top: 2px; }
.pain .i-warn { color: #7c3fd6; }
.pain .i-ok { color: var(--green); }
@media (max-width: 767px) {
  .pain-head { display: none; }
  .pain-row { grid-template-columns: 1fr; }
  .pain-row > div + div { border-left: 0; border-top: 1px dashed var(--separator); background: var(--bg); }
}

/* How it works: numbered steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--separator); }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 24px; padding: 18px 0; }
@media (min-width: 900px) { .step { grid-template-columns: 48px minmax(0, 18rem) minmax(0, 1fr); } }
.step .n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-raised); border: 1px solid var(--separator); font-weight: 600; font-size: var(--text-footnote); }
.step.key .n { background: var(--tint-fill); color: var(--on-tint); border-color: transparent; }
.step h3 { margin: 12px 0 0; font-family: var(--font); font-size: var(--text-title3); font-weight: 600; }
.step .chip-s { margin-top: 8px; }
.step p { margin: 12px 0 0; font-size: var(--text-footnote); line-height: 1.7; color: var(--label-2); }
@media (max-width: 899px) { .step p { grid-column: 2; margin-top: 0; } }
.shot { margin-top: 56px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--separator); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.35); background: var(--surface); }
.shot .bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--separator); background: var(--bg); }
.shot .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--fill); }
.shot img { display: block; width: 100%; height: auto; }

/* Feature grid */
.features { display: grid; gap: 16px; margin-top: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(6, 1fr); } .f-wide { grid-column: span 3; } .f-third { grid-column: span 2; } }
.feature { padding: 24px; border-radius: var(--r-xl); background: var(--surface); }
.feature h3 { margin: 0; font-family: var(--font); font-size: var(--text-body); font-weight: 600; }
.feature p { margin: 6px 0 0; font-size: var(--text-footnote); line-height: 1.55; color: var(--label-2); }
.feature .ico { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: var(--r-m); background: var(--selection); color: var(--tint-text); }
.feature .ico .icon { width: 18px; height: 18px; }
.feature .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.feature .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; }
.feature .thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.feature .mini-shot { margin-top: 18px; border-radius: 10px; overflow: hidden; border: 1px solid var(--separator); }
.feature .mini-shot img { display: block; width: 100%; }

/* Gallery */
.gallery-row { display: grid; gap: 16px; margin-top: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gallery-row { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; } .gallery-row figure:first-child { grid-row: span 2; } }
.gallery-row figure { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--stage); }
.gallery-row img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery-row figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / 0.86); color: #141414; font-size: var(--text-caption); font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Questions */
/* ── Pricing ───────────────────────────────────────────── */
.price-cycle { display: inline-flex; margin-top: 32px; }
.price-cycle > button { flex: none; padding: 0 16px; white-space: nowrap; }
.prices { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); } }
.price { display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--separator); }
.price.popular { border-color: var(--tint-fill); box-shadow: 0 0 0 1px var(--tint-fill), 0 24px 48px -28px color-mix(in srgb, var(--tint-fill) 45%, transparent); }
.price h3 { margin: 0; height: 28px; display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: var(--text-body); font-weight: 600; }
.price h3 .chip-s { padding: 3px 9px; }
.price .amount { margin: 16px 0 0; display: flex; align-items: baseline; gap: 6px; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: var(--text-footnote); font-weight: 500; letter-spacing: 0; color: var(--label-2); }
.price .gst { margin: 2px 0 0; font-size: var(--text-caption); color: var(--label-3); }
.price ul { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; font-size: var(--text-footnote); flex: 1; align-content: start; }
.price li { display: flex; gap: 8px; align-items: flex-start; }
.price li .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--tint-text); }
.price li.off { color: var(--label-3); text-decoration: line-through; }
.price li.off .icon { color: var(--label-3); }
.price-note { margin: 20px 0 0; font-size: var(--text-footnote); color: var(--label-2); }
.price-note a { color: var(--tint-text); font-weight: 500; }

.faq { margin-top: 40px; border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.faq details { border-top: 1px solid var(--separator); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 1.6px solid var(--label-3); border-bottom: 1.6px solid var(--label-3); transform: rotate(45deg); transition: transform var(--base) var(--ease); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq summary:hover { background: var(--fill-4); }
.faq .a { padding: 0 24px 22px; color: var(--label-2); line-height: 1.65; max-width: 48rem; }
.faq .a p { margin: 0; }
.faq .a p + p { margin-top: 10px; }

/* Closing call to action */
.closing { margin: 0 auto; padding: 48px 32px; text-align: center; border-radius: var(--r-xl); }
.closing h2 { margin: 0; font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; }
.closing p { margin: 12px auto 0; max-width: 34rem; color: var(--label-2); }
.closing .cta-row { justify-content: center; }

/* ── Footer ───────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--separator); background: var(--bg); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; font-size: var(--text-footnote); color: var(--label-2); }
.site-foot .brand { display: flex; align-items: center; gap: 8px; color: var(--label); }
.site-foot .brand .app-icon { width: 28px; height: 28px; }
.site-foot .brand .wordmark { font-size: var(--text-title3); }
.site-foot p { margin: 8px 0 0; }
.site-foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; align-content: start; }
.site-foot nav a { color: var(--label-2); }
.site-foot nav a:hover { color: var(--label); text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .dots::after, .rise { animation: none; } }
