/* ==========================================================================
   TIOO marketing — shared components (v3 "wide"): product frames
   (browser / phone), who-it's-for photo cards, pricing cards, FAQ rows,
   CTA, video frames. Hairline borders, small radii; the only shadows sit
   on the product mocks.
   ========================================================================== */

/* ---- Browser frame around drawn product UI -------------------------- */
.ui-frame {
  position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); overflow: hidden; font-size: 12px; color: var(--ink-2);
}
.ui-chrome { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ui-chrome .dots { display: flex; gap: 6px; }
.ui-chrome .dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); }
.ui-chrome .url { flex: 1; max-width: 340px; margin: 0 auto; height: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono); }
.ui-chrome .url svg { width: 11px; height: 11px; color: var(--ok); }

/* ---- Phone frame (a drawn device: rounder than the cards on purpose) - */
.phone-frame {
  position: relative; width: 100%; aspect-ratio: 540 / 1169;
  border-radius: 30px; background: #0a0b0f; padding: 7px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 24px 48px -24px rgba(10,11,15,.5);
}
.phone-frame .screen { position: relative; width: 100%; height: 100%; border-radius: 23px; overflow: hidden; background: #111; }
.phone-frame .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .4s var(--ease); }
.phone-frame .screen img.is-active { opacity: 1; }

/* ---- Who it's for cards (photo, words at the bottom on a dark fade) -- */
.who-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-l); min-height: 190px; position: relative; overflow: hidden;
  transition: border-color .25s;
}
.who-card:hover { border-color: var(--ink); }
.who-card .ic { width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink-2); display: grid; place-items: center; }
.who-card .ic svg { width: 17px; height: 17px; }
.who-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.who-card p { font-size: var(--fs-s); color: var(--ink-3); line-height: 1.45; }
.who-card .more { margin-top: auto; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.who-card .more svg { width: 13px; height: 13px; transition: transform .2s; }
.who-card:hover .more svg { transform: translateX(3px); }
.who-card.has-photo { color: #fff; justify-content: flex-end; min-height: 300px; background: #1a1c22; border-color: rgba(255,255,255,.06); }
.who-card.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .7s var(--ease); }
.who-card.has-photo:hover img { transform: scale(1.04); }
/* words sit at the bottom on a strong dark fade, so any photo stays readable */
.who-card.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,12,.97) 0%, rgba(8,9,12,.9) 42%, rgba(8,9,12,.58) 70%, rgba(8,9,12,.22) 100%); z-index: 1; }
.who-card.has-photo > * { position: relative; z-index: 2; }
.who-card.has-photo .ic { border-color: rgba(255,255,255,.22); color: #fff; }
.who-card.has-photo p { color: rgba(255,255,255,.86); }
.who-card.has-photo .more { color: #fff; margin-top: 6px; }
.who-card .credit { font-size: 10.5px; color: rgba(255,255,255,.6); }

/* ---- Pricing cards -------------------------------------------------- */
.price-grid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: #fff; }
.price-grid > .price { border-bottom: 1px solid var(--line); }
.price-grid > .price:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-grid > .price:nth-child(odd) { border-right: 1px solid var(--line); }
  .price-grid > .price:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 1024px) {
  .price-grid { grid-template-columns: repeat(4, 1fr); }
  .price-grid > .price { border-bottom: 0; border-right: 1px solid var(--line); }
  .price-grid > .price:last-child { border-right: 0; }
}
.price { position: relative; padding: 30px 26px 26px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.price.hi { background: var(--bg-2); }
.price .name { font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .14em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price .amt { font-family: var(--font-display); font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; display: flex; align-items: baseline; gap: 2px; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 4px; }
.price .amt em { font-style: normal; font-size: 22px; align-self: flex-start; margin-top: 6px; font-weight: 500; }
.price .amt span { font-family: var(--font-text); font-size: 13.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.price .desc { color: var(--ink-3); font-size: var(--fs-s); min-height: 2.9em; line-height: 1.45; }
.price ul { display: grid; gap: 0; margin-top: 4px; border-top: 1px solid var(--line); }
.price li { display: flex; gap: 9px; font-size: var(--fs-s); color: var(--ink-2); padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.price li svg { width: 15px; height: 15px; flex: none; color: var(--accent); margin-top: 3px; }
.price .btn { margin-top: auto; }
.price .tagp { position: absolute; top: 24px; right: 24px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border-radius: var(--radius-s); background: var(--ink); color: #fff; }
.price-note { text-align: center; margin-top: 22px; font-size: var(--fs-s); color: var(--ink-3); }
.price-note a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-2); }
.price-note a:hover { border-color: var(--ink); }

/* ---- FAQ: hairline rows ---------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 2px; font-weight: 600; font-size: var(--fs-l); font-family: var(--font-display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--ink); }
.faq .a { padding: 0 2px 24px; color: var(--ink-3); font-size: var(--fs-m); max-width: 70ch; line-height: 1.55; }

/* FAQ as a spread: heading left, the hairline accordion right (kit/_faq.html) */
.faq-wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--col-gap) * 2); align-items: start; } }
.faq-head h2 { font-size: var(--fs-h2); text-wrap: balance; }
.faq-head .eyebrow + h2 { margin-top: 20px; }
.faq-wrap .faq { max-width: none; margin: 0; }

/* ---- CTA (light band, one idea; the home page lays it out as a spread) */
/* a spread: headline left, words + buttons right (kit/_cta_band.html) */
.cta-band { position: relative; display: grid; gap: 24px; text-align: left; padding: 0; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: calc(var(--col-gap) * 2); align-items: center; } }
.cta-band h2 { font-size: clamp(36px, 4.8vw, 76px); letter-spacing: -0.04em; line-height: 1; text-wrap: balance; margin: 0; max-width: 14ch; }
.cta-band p { max-width: 52ch; color: var(--ink-3); font-size: var(--fs-xl); }
.cta-band .cta-side p { margin: 0; max-width: 48ch; }
.cta-band .actions { margin-top: 24px; }
.cta-band .note-row { font-size: var(--fs-s); margin-top: 16px; gap: 4px 22px; overflow: clip; }
.cta-band .note-row span { position: relative; white-space: nowrap; }
.cta-band .note-row span + span::before { position: absolute; left: -12px; top: 50%; margin: -1px 0 0; }
@media (max-width: 539px) { .cta-band .note-row { flex-direction: column; gap: 4px; } .cta-band .note-row span + span::before { display: none; } }
.grid-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; }

/* ---- Video frames ---------------------------------------------------- */
.video-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.1); }
.video-frame video, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-frame .cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 11.5px; color: #fff; background: rgba(10,11,15,.7); padding: 5px 8px; border-radius: var(--radius-s); max-width: calc(100% - 24px); }
.video-frame .badge { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(10,11,15,.7); padding: 4px 8px; border-radius: var(--radius-s); }
html.reduced .video-frame video { z-index: 1; }

/* narrow screens: the address bar gives way to the "Example hotel" label */
@media (max-width: 599px) { .ui-chrome .url { display: none; } }
