/* Aurora: a white room, products on quiet tiles, and one thing that glows,
   the button that hands the visitor's agent the job. */
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --paper: #ffffff;
  --tile: #f3f4f7;
  --ink: #0a1020;
  --muted: #585f73;
  --line: #e6e8ee;
  --teal: #2ee6bd;
  --blue: #44a8ff;
  --violet: #8b62ff;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(14px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--serif); font-size: 23px; font-weight: 550; letter-spacing: -0.01em; text-decoration: none; }
.nav-note { margin: 0; font-size: 14px; color: var(--muted); text-align: right; }
.nav-note span { display: inline-block; }
.lockup { display: flex; align-items: center; gap: 12px; margin: 0; }
.times { font-size: 18px; color: var(--muted); }
.partner { display: inline-flex; align-items: center; min-height: 44px; }
.kifly-logo { width: auto; height: 25px; }
.partner .kifly-logo { position: relative; top: 2px; }

/* Hero */
.hero { text-align: center; padding-top: clamp(28px, 6vh, 64px); padding-bottom: clamp(36px, 6vh, 60px); }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 350; font-size: clamp(40px, 7vw, 80px); line-height: 1.04; letter-spacing: -0.028em; text-wrap: balance; }
.lede { margin: 14px auto 30px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); text-wrap: balance; }

/* The one button: a glow, a turning rim, a lit face. */
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ask { display: flex; flex-direction: column; align-items: center; }
.ask-button { position: relative; isolation: isolate; display: inline-block; max-width: 100%; padding: 2px; border: 0; border-radius: 22px; background: none; color: #fff; font: inherit; cursor: pointer; transition: transform 0.18s ease; }
.ask-button::before,
.ask-button::after { content: ""; position: absolute; border-radius: inherit; background: conic-gradient(from var(--turn), var(--teal), var(--blue), var(--violet), #ff8ad8, var(--teal)); animation: turn 5s linear infinite; }
.ask-button::before { inset: 0; z-index: -1; }
.ask-button::after { inset: 4px -2px -6px; z-index: -2; filter: blur(22px); opacity: 0.55; transition: opacity 0.25s ease, filter 0.25s ease; }
.ask-face { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 62px; padding: 0 34px; border-radius: 20px; background: linear-gradient(180deg, #1d2540, var(--ink) 62%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -10px 24px rgba(68, 168, 255, 0.14); font-size: 18px; font-weight: 600; }
.ask-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.18) 50%, transparent 62%); transform: translateX(-110%); }
.ask-button:hover { transform: translateY(-2px); }
.ask-button:hover::after { opacity: 0.85; filter: blur(28px); }
.ask-button:hover .ask-face::after { transform: translateX(110%); transition: transform 0.8s ease; }
.ask-button:active { transform: translateY(1px) scale(0.98); }
.ask-state { grid-area: 1 / 1; display: flex; align-items: center; gap: 14px; white-space: nowrap; transition: opacity 0.2s ease, transform 0.3s ease; }
.agents { display: flex; gap: 5px; }
.agent { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.agent img { width: 21px; height: 21px; }
.ic { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-done { stroke: var(--teal); stroke-width: 2.6; }
.ask-copied { opacity: 0; transform: translateY(10px); }
.ask-button.done .ask-idle { opacity: 0; transform: translateY(-10px); }
.ask-button.done .ask-copied { opacity: 1; transform: none; }
.ask-button.done { animation: pop 0.7s ease-out; border-radius: 22px; }
@keyframes turn { to { --turn: 360deg; } }
@keyframes pop { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 189, 0.65); } 100% { box-shadow: 0 0 0 22px rgba(46, 230, 189, 0); } }
.ask-hint { margin: 18px 0 0; max-width: 64ch; font-size: 15px; color: var(--muted); text-wrap: balance; }
.ask-pay { display: block; margin-top: 4px; }
.ask-hint strong { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ask-line { margin: 12px 0 0; max-width: 62ch; padding: 12px 16px; border-radius: 14px; background: var(--tile); font-size: 14px; text-align: left; overflow-wrap: anywhere; user-select: all; animation: rise 0.35s ease; }
.ask-line::before { content: "Paste this to your agent"; display: block; margin-bottom: 2px; font-weight: 600; user-select: none; }
@keyframes rise { from { opacity: 0; transform: translateY(-6px); } }

/* Products. White photo backgrounds melt into the tile. */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0 0 72px; list-style: none; }
.card { display: block; text-decoration: none; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--tile); }
.tile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card .tile { aspect-ratio: 4 / 5; padding: 14px; margin-bottom: 12px; }
.card .tile img { transition: transform 0.35s ease; }
.card:hover .tile img { transform: scale(1.05); }
.card-name { display: block; font-weight: 600; line-height: 1.3; }
.card-price { display: block; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rating { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rating strong { font-weight: 600; color: var(--ink); }
.stars { letter-spacing: 1px; line-height: 1; color: transparent; background: linear-gradient(90deg, #e8960c var(--fill), #d5d8de var(--fill)); -webkit-background-clip: text; background-clip: text; }
.info .rating { margin-top: 12px; font-size: 15px; }

/* Product page */
.back { margin: 0; }
.back a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; padding: 8px 0 72px; }
.stage { aspect-ratio: 1; padding: 28px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumb { width: 76px; height: 76px; padding: 6px; border: 2px solid transparent; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.info h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; }
.price { margin: 14px 0 0; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary { margin: 6px 0 0; font-size: 17px; }
.choices { margin: 22px 0 28px; border-top: 1px solid var(--line); }
.choices div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.choices dt { color: var(--muted); }
.choices dd { margin: 0; }
.info .ask { align-items: stretch; }
.info .ask-button { display: block; width: 100%; }
.info .ask-hint { max-width: none; text-align: center; }
.about { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.about p { margin: 0 0 14px; max-width: 62ch; font-size: 15px; }
.about .ships { margin-bottom: 0; font-size: 14px; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 56px; font-size: 13px; color: var(--muted); }
.footer p { margin: 0 auto 8px; max-width: 78ch; }
.footer { text-align: center; }
.footer .powered { margin-bottom: 18px; }
.powered a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 7px; min-height: 48px; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.powered-by { display: inline-flex; align-items: center; gap: 9px; }
.powered .kifly-logo { height: 34px; position: relative; top: -2px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid li { grid-column: span 2; }
  .grid li:nth-child(-n + 2) { grid-column: span 3; }
}
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; }
  .stage { aspect-ratio: 5 / 4; padding: 16px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid li, .grid li:nth-child(-n + 2) { grid-column: auto; }
  .grid li:first-child { grid-column: 1 / -1; }
  .grid li:first-child .tile { aspect-ratio: 4 / 3; }
  .card-name { font-size: 15px; }
  .nav-note { font-size: 13px; line-height: 1.35; }
  .nav-note span { display: block; }
  .lockup { gap: 9px; }
  .wordmark { font-size: 21px; }
  .kifly-logo { height: 22px; }
  .powered a { font-size: 16px; }
  .ask-face { padding: 0 20px; font-size: 17px; }
}
@media (max-width: 360px) {
  .ask-face { padding: 0 12px; font-size: 15px; }
  .ask-state { gap: 9px; }
  .agents { gap: 3px; }
  .agent { width: 25px; height: 25px; }
  .agent img { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.policy { max-width: 68ch; padding-block: clamp(28px, 6vh, 64px); }
.policy h1 { margin: 0 0 20px; font-family: var(--serif); font-weight: 350; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; }
.policy h2 { margin: 28px 0 6px; font-size: 17px; }
.policy p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
