/* Copyright (c) 2026 VoxVain. All rights reserved. Proprietary and confidential. */
/* Homepage r5d 13 Nov 2026: lighter site-violet free card (white copy still >= 6.4:1), bigger Try now for free lettering, smaller Design a voice for free box under it, 390px code-sample overflow fixed. Based on r5c: */ r5b sheen clip and reduced-motion hide kept. Free card uses a muted site-violet accent (softer fill and glow, smaller $0 in deep violet on white). Product cards are slightly tighter. AI Live Agent “with your own number” sits at the top by the title. White body copy on the free card. Preview only. */

/* ----- Shared Try now for free + catalog primitives (v3f content; desktop/mobile skins below) ----- */
@keyframes hp-start-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes hp-start-sheen {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}
@keyframes hp-start-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(109, 74, 255, .22), 0 10px 26px -12px rgba(61, 43, 143, .42), 0 0 16px rgba(109, 74, 255, .16); }
  50% { box-shadow: 0 0 0 1px rgba(109, 74, 255, .30), 0 12px 30px -12px rgba(61, 43, 143, .50), 0 0 22px rgba(109, 74, 255, .24); }
}
.hero-copy { min-width: 0; }
.hp-start { min-width: 0; }
.hp-btn.hp-btn-start {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  flex: 0 0 auto;
  min-height: auto;
  height: auto;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(125deg, #5a48c8 0%, #4c3d9e 44%, #3c5aa8 80%, #5a48c8 100%);
  background-size: 200% 200%;
  animation: hp-start-shift 7s ease-in-out infinite, hp-start-glow 3.6s ease-in-out infinite;
  border: 1px solid rgba(199, 184, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(109, 74, 255, .22), 0 10px 26px -12px rgba(61, 43, 143, .42), 0 0 16px rgba(109, 74, 255, .16);
}
.hp-btn.hp-btn-start::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
  /* 6px rim (r5c): tighter than r5b's 4px so the last desktop list line and the mobile tagline stay off the highlight, including rounded-corner fringe. */
  padding: 6px;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: hp-start-sheen 2.8s ease-in-out infinite;
  /* Clip the sheen to the padding/edge ring so it never sits under title, description, or list copy. */
  -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  -webkit-mask-origin: content-box, border-box;
  -webkit-mask-clip: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  mask-origin: content-box, border-box;
  mask-clip: content-box, border-box;
  mask-composite: exclude;
}
.hp-btn.hp-btn-start > * { position: relative; z-index: 1; }
.hp-btn-start .hp-btn-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; }
.hp-btn.hp-btn-start strong { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: #fff; }
.hp-btn-start .hp-btn-price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  color: #4c1d95;
  white-space: nowrap;
  background: #fff;
  border-radius: 8px;
  padding: 2px 7px 3px;
  box-shadow: 0 1px 4px rgba(76, 29, 149, 0.16);
}
.hp-btn-start .hp-btn-desc { margin: 0; font-size: 12px; line-height: 1.3; color: #fff; font-weight: 400; }
.hp-btn-start .hp-start-tagline { display: none; margin: 0; font-size: 12px; line-height: 1.35; color: #fff; }
.hp-btn-start .hp-btn-list { margin: 2px 0 0; gap: 2px; }
.hp-btn-start .hp-btn-list li { font-size: 11.5px; line-height: 1.35; color: #fff; }
.hp-btn.hp-btn-start:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(199, 184, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(109, 74, 255, .32), 0 14px 32px -12px rgba(61, 43, 143, .55), 0 0 24px rgba(109, 74, 255, .28);
}
.hp-btn.hp-btn-start:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(109, 74, 255, .40), 0 10px 26px -12px rgba(61, 43, 143, .42); }

/* Nav + hero signup CTA: same colorful treatment, no black text. */
.pill.pill-start {
  position: relative;
  isolation: isolate;
  gap: 8px;
  color: #fff;
  background: linear-gradient(125deg, #5a48c8 0%, #4c3d9e 45%, #3c5aa8 100%);
  background-size: 180% 180%;
  animation: hp-start-shift 7s ease-in-out infinite, hp-start-glow 3.6s ease-in-out infinite;
  border-color: rgba(199, 184, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(109, 74, 255, .22), 0 8px 20px -10px rgba(61, 43, 143, .42), 0 0 14px rgba(109, 74, 255, .16);
}
.pill.pill-start:hover,
.pill.pill-start:focus-visible {
  color: #fff;
  background: linear-gradient(125deg, #5a48c8 0%, #4c3d9e 40%, #3c5aa8 100%);
  box-shadow: 0 0 0 1px rgba(109, 74, 255, .30), 0 10px 24px -10px rgba(61, 43, 143, .50), 0 0 18px rgba(109, 74, 255, .24);
}
.pill-start-label { color: #fff; font-weight: 650; }
.pill-start-price {
  color: #4c1d95;
  background: #fff;
  border-radius: 999px;
  padding: 2px 7px 3px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.03em;
  line-height: 1;
}
.pill.pill-sm .pill-start-price { font-size: 13px; padding: 1px 6px 2px; }

.home-sell-label { margin: 0 0 10px; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hp-pills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0 0 8px; }
.hp-buttons { display: flex; flex-wrap: nowrap; gap: 7px; align-items: stretch; }
.hp-btn { appearance: none; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 5px; min-height: 0; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; text-decoration: none; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s, background .25s; flex: 1 1 0; min-width: 0; box-sizing: border-box; overflow: hidden; }
.hp-btn:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 24px 60px -34px rgba(109, 74, 255, .45); }
.hp-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.hp-btn[aria-pressed="true"], .hp-btn.is-open { border-color: var(--violet); background: var(--white); box-shadow: 0 0 0 3px rgba(109,74,255,.12); }
.hp-btn strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
.hp-btn small { font-size: 12px; color: var(--muted); font-weight: 500; }
.hp-btn.is-soon small { color: #9d174d; }
.hp-btn-subtitle { margin: 0; font-size: 12px; line-height: 1.25; font-weight: 500; color: #9d174d; white-space: nowrap; }
.hp-btn-desc { margin: 0; font-size: 13px; line-height: 1.35; color: var(--ink-2); font-weight: 400; }
.hp-btn-small { flex: none; width: 100%; justify-content: flex-start; gap: 3px; min-height: 0; padding: 6px 8px; }
.hp-btn-small .hp-btn-top { display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 2px 8px; width: 100%; min-width: 0; }
.hp-btn-small .hp-btn-nameprice { display: inline-flex; align-items: baseline; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.hp-btn-small strong { font-size: 13px; letter-spacing: -.01em; line-height: 1.2; }
.hp-btn-small .hp-btn-price { font-size: 12px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.hp-btn-small.is-soon .hp-btn-price { color: #9d174d; }
.hp-btn-small .hp-btn-desc { font-size: 12px; line-height: 1.3; color: var(--muted); }
.hp-btn-small .hp-btn-tags { margin: 0 0 0 auto; flex-shrink: 0; }
.hp-btn-small .hp-tag { padding: 1px 6px; font-size: 8px; }
.hp-btn-list { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; }
.hp-btn-list li { position: relative; margin: 0; padding: 0 0 0 0.9em; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); font-weight: 400; overflow-wrap: anywhere; }
.hp-btn-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 3.5px; height: 3.5px; border-radius: 50%; background: currentColor; opacity: .42; }
.hp-btn-small .hp-btn-list { margin-top: 1px; gap: 1px; }
.hp-btn-small .hp-btn-list li { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.hp-buttons .hp-btn { gap: 4px; padding: 7px 10px; }
.hp-buttons .hp-btn .hp-btn-top { display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 4px 8px; width: 100%; min-width: 0; }
.hp-buttons .hp-btn .hp-btn-nameprice { display: inline-flex; align-items: baseline; flex-wrap: nowrap; gap: 8px; min-width: 0; }
.hp-buttons .hp-btn strong { font-size: 16px; }
.hp-buttons .hp-btn .hp-btn-price { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.hp-buttons .hp-btn.is-soon .hp-btn-price { color: #9d174d; }
.hp-buttons .hp-btn .hp-btn-list { margin-top: 0; }
.hp-buttons .hp-btn .hp-btn-list li { font-size: 12.5px; }
.hp-buttons .hp-btn-tags { margin: 0; }
.hp-screen .hp-btn-list { margin: 0 0 14px; gap: 5px; max-width: 60ch; }
.hp-screen .hp-btn-list li { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.hp-btn-popular { border-color: rgba(109, 74, 255, .55); background: var(--white); box-shadow: 0 0 0 1px rgba(109, 74, 255, .10), 0 10px 22px -16px rgba(109, 74, 255, .30); }
.hp-btn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 2px; }
.hp-tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font: 600 10px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.hp-tag-popular { background: var(--violet); color: #fff; }
.hp-tag-soon { background: #fce7f3; color: #9d174d; }
.hp-flags { margin: 10px 0 0; }
.hp-flags .lang-flags { width: auto; margin: 0; padding: 0; }
.hp-flags .lang-flags-title { margin: 0 0 8px; }
.hp-flags .lang-flags-row { gap: 8px; min-height: 0; }
.hp-flag { appearance: none; background: #fff; padding: 0; cursor: pointer; }
.hp-flag[aria-pressed="true"] { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109,74,255,.18); }
.hp-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
.hp-main.is-split { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
.hp-screen { position: relative; min-height: 0; border-radius: 24px; border: 1px solid var(--line); background: #fff; padding: clamp(16px, 2vw, 26px); overflow: auto; }
.hp-screen[hidden] { display: none; }
.hp-screen-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hp-screen-close { appearance: none; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px; height: 36px; padding: 0 14px; font: 600 13px/1 var(--font); cursor: pointer; }
.hp-screen-close:hover { border-color: var(--ink); }
.hp-screen-eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hp-screen-title { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; font-weight: 600; }
.hp-screen-price { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.hp-screen-price small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.hp-screen-blurb { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.hp-screen-detail { margin: 0 0 16px; color: var(--muted); font-size: 15px; max-width: 60ch; }
.hp-screen-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* r5d: Design a voice for free, a smaller companion box directly under Try now for free (same palette, quieter). */
.hp-start { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
/* r5d: .hp-btn uses flex:1 1 0, min-height:0, overflow:hidden for the catalog row.
   Inside this column those rules collapse the Try-free and Design boxes so they overlap. */
.hp-start > .hp-btn {
  flex: 0 0 auto;
  min-height: auto;
  height: auto;
  overflow: visible;
  width: 100%;
}
.hp-btn.hp-btn-design {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%;
  padding: 8px 12px 9px; border-radius: 16px; text-decoration: none; box-sizing: border-box;
  color: #fff; background: linear-gradient(125deg, #4c3d9e 0%, #3c5aa8 100%);
  border: 1px solid rgba(199, 184, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(109, 74, 255, .14), 0 8px 18px -12px rgba(61, 43, 143, .40);
}
.hp-btn.hp-btn-design:hover { color: #fff; transform: translateY(-2px); border-color: rgba(199, 184, 255, 0.55); }
.hp-btn.hp-btn-design:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(109, 74, 255, .40); }
.hp-btn-design .hp-btn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; flex-wrap: wrap; }
.hp-btn.hp-btn-design strong { font-size: 14px; font-weight: 650; line-height: 1.2; color: #fff; }
.hp-btn-design .hp-tag { padding: 1px 6px; font-size: 8.5px; background: #fff; color: #4c1d95; }
.hp-btn-design .hp-design-desc { margin: 0; font-size: 11.5px; line-height: 1.3; color: #fff; }
/* r5d NIT: below-the-fold code samples no longer overflow at 390px. */
.code-body, .code-block { max-width: 100%; }
.code-block { overflow-x: auto; }
@media (max-width: 720px) {
  .hero-home .code-block, .code-block { white-space: pre; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ----- Desktop (≥721px): v3e page order and typography, with the three requested tweaks ----- */
@media (min-width: 721px) {
  .hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 12px 20px; align-items: start; }
  .hero-home .hero-row { margin-bottom: 0; }
  .hp-stack { display: flex; flex-direction: column; }
  .hp-catalog { order: 1; margin: 28px 0 8px; }
  .hp-aria { order: 2; margin-top: 16px; display: flex; flex-direction: column; }
  .hp-aria .hp-flags { order: -1; margin: 0 0 16px; }
  .hero-home .studio-fine { margin-top: 14px; }

  /* (1) Try now for free stays in the v3f top-right slot; muted site-violet accent, smaller $0 */
  .hp-btn.hp-btn-start { padding: 10px 14px 12px; }
  .hp-btn-start .hp-btn-price { font-size: 24px; }
  .hp-btn.hp-btn-start strong { font-size: 20px; }

  /* (2) Five small product cards: a little tighter, still readable, price on the same line as the name */
  .hp-pills { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 7px; }
  .hp-btn-small { padding: 5px 8px; gap: 2px; }
  .hp-btn-small strong { font-size: 12.5px; }
  .hp-btn-small .hp-btn-price { font-size: 11.5px; }
  .hp-btn-small .hp-btn-nameprice { gap: 5px; }
  .hp-btn-small .hp-btn-list { margin-top: 0; gap: 0; }
  .hp-btn-small .hp-btn-list li { font-size: 10.5px; line-height: 1.25; }

  /* (3) Three plan cards: a little tighter; subtitle sits in the top cluster by the title */
  .hp-buttons { gap: 6px; }
  .hp-buttons .hp-btn { padding: 5px 9px 6px; gap: 2px; }
  .hp-buttons .hp-btn strong { font-size: 14.5px; }
  .hp-buttons .hp-btn .hp-btn-price { font-size: 14px; }
  .hp-buttons .hp-btn .hp-btn-top { align-items: baseline; gap: 2px 8px; }
  .hp-buttons .hp-btn .hp-btn-subtitle { font-size: 11.5px; }
  .hp-buttons .hp-btn .hp-btn-list li { font-size: 11.5px; line-height: 1.3; }
  .hp-buttons .hp-btn-tags { gap: 4px; }
  .hp-buttons .hp-tag { padding: 1px 6px; font-size: 8.5px; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .hp-pills { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .hp-buttons { flex-wrap: nowrap; }
  .hp-buttons .hp-btn { flex: 1 1 0; }
  .hp-main.is-split { grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .hp-main, .hp-main.is-split { grid-template-columns: 1fr; }
  .hp-screen { order: -1; }
}

/* ----- Mobile (≤720px): exact v3f layout. Two NITs only: Receptionist tab; Ask Aria vs flags. ----- */
@media (max-width: 720px) {
  .hero-home { padding: 6px 0 8px; }
  .hero-home .chip { display: none; }
  .hero-home .display-hero { font-size: clamp(22px, 6.4vw, 28px); margin: 2px 0 4px; }
  .hero-home .lede { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .hero-home .actions { gap: 8px; }
  .hero-home .actions .pill { padding: 0 12px; height: 34px; font-size: 13px; }
  .hero-top { display: flex; flex-direction: column; gap: 6px; }
  .hp-start { order: -1; }
  .hp-btn.hp-btn-start { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 6px 16px 28px; }
  .hp-btn-start .hp-start-tagline { font-size: 11.5px; line-height: 1.25; }
  .hp-btn-start .hp-btn-top { width: auto; flex: 1 1 auto; align-items: center; gap: 10px; }
  .hp-btn.hp-btn-start strong { font-size: 17px; }
  .hp-btn.hp-btn-design { padding: 6px 14px 8px; }
  .hp-btn.hp-btn-design strong { font-size: 13.5px; }
  .hp-start { gap: 6px; }
  .hp-btn-start .hp-btn-price { font-size: 20px; line-height: .95; }
  .hp-btn-start .hp-btn-desc,
  .hp-btn-start .hp-btn-list { display: none; }
  .hp-btn-start .hp-start-tagline { display: block; flex: 1 1 100%; }
  .hp-aria { margin-top: 6px; }
  .hero-home .studio { grid-template-columns: 1fr; padding: 6px; border-radius: 28px; }
  .hero-home .studio .orb-stage { aspect-ratio: 16 / 10; width: min(100%, 240px); max-height: 150px; margin: 0 auto; border-radius: 22px; }
  .hero-home .studio-panel { padding: 10px 12px 8px; border-radius: 22px; }
  .hero-home .studio-head { margin-bottom: 4px; gap: 6px; }
  .hero-home .studio-title { font-size: 16px; }
  .hero-home .studio textarea { min-height: 40px; max-height: 56px; overflow: auto; font-size: 15px; }
  .hero-home .wave { display: none; }
  .hero-home .studio-bar { gap: 8px; padding-top: 6px; }
  .hero-home .studio-status { display: none; }
  .hp-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hp-buttons { flex-wrap: wrap; }
  .hp-buttons .hp-btn { flex: 1 1 100%; padding: 8px 10px; }
  .hp-buttons .hp-btn .hp-btn-subtitle { font-size: 12px; }
  .hp-btn-small { padding: 7px 9px; }
  .hp-catalog { margin-top: 16px; }
  .hp-stack { display: flex; flex-direction: column; }
  .hp-catalog { order: 2; }
  .hp-aria { order: 1; }
  .hero-home .studio-fine { margin-top: 14px; }

  /* NIT: Receptionist tab was clipped beside the title. Put the tablist on its own full-width row so all four presets stay readable. */
  .hero-home .studio-head { flex-direction: column; align-items: stretch; }
  .hero-home .segmented { width: 100%; max-width: 100%; box-sizing: border-box; justify-content: space-between; }
  .hero-home .segmented button { padding: 0 8px; font-size: 12.5px; flex: 1 1 auto; }

  /* NIT: Ask Aria's 52px chip covered the last language flags at 390px. Reserve the corner; do not move the rest of the fold. */
  .hero-home .hp-flags { padding-right: 68px; box-sizing: border-box; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-btn { transition: none; }
  .hp-btn.hp-btn-start:hover, .hp-btn:hover { transform: none; }
  .hp-btn.hp-btn-design:hover { transform: none; }
  .hp-btn.hp-btn-start,
  .pill.pill-start {
    animation: none;
    background-position: 0% 50%;
    box-shadow: 0 0 0 1px rgba(109, 74, 255, .22), 0 10px 26px -12px rgba(61, 43, 143, .42), 0 0 16px rgba(109, 74, 255, .16);
  }
  /* NIT1: hide the sheen layer entirely; do not leave a residual band. */
  .hp-btn.hp-btn-start::before {
    content: none;
    display: none;
    animation: none;
    background: none;
  }
}
