/* Version 6: shared card geometry, image framing and interaction. */
.fv-aligned {
  --card-edge: #bcccbc;
  --card-pad: clamp(16px,2vw,28px);
  --card-radius: 14px;
  --card-gap: clamp(10px,1.55vw,20px);
  --card-surface: #fffdf6;
}
.fv-aligned :is(.workflow-grid,.detail-list,.launch-install-steps,.launch-download-grid,.new-guide-links,.features-grid,.legal-summary) {
  gap: var(--card-gap);
  min-width: 0;
  align-items: stretch;
}
.fv-aligned :is(.workflow-grid>article,.detail-list>article,.launch-install-steps>article,.launch-download,.new-guide-links>a,.features-grid>.feature,.legal-summary>.summary-card,.fv-app-row,.pricing-grid>.product-card) {
  min-width: 0;
  border: 1px solid var(--card-edge);
  border-radius: var(--card-radius);
  background: var(--card-surface);
  box-shadow: 0 2px 0 #254b3110;
  transition: border-color 230ms var(--ease),background-color 230ms var(--ease),box-shadow 230ms var(--ease);
}
.fv-aligned :is(.workflow-grid>article,.detail-list>article,.launch-install-steps>article,.launch-download,.new-guide-links>a,.features-grid>.feature,.legal-summary>.summary-card,.fv-app-row) {
  margin: 0;
  padding: var(--card-pad);
}
.fv-aligned :is(.workflow-grid>article,.detail-list>article,.launch-install-steps>article,.new-guide-links>a,.features-grid>.feature,.legal-summary>.summary-card) :is(h3,p) {
  overflow-wrap: break-word;
}
.fv-aligned :is(.workflow-grid>article,.detail-list>article,.launch-install-steps>article,.new-guide-links>a,.features-grid>.feature,.legal-summary>.summary-card) h3 {
  margin: 0 0 8px;
  font-size: clamp(19px,1.8vw,26px);
  line-height: 1.19;
}
.fv-aligned :is(.workflow-grid>article,.detail-list>article,.launch-install-steps>article,.new-guide-links>a,.features-grid>.feature,.legal-summary>.summary-card) p {
  margin: 0;
  color: #465c4e;
  font-size: clamp(14px,1.14vw,16px);
  line-height: 1.54;
}
.fv-aligned :is(.workflow-grid>article,.detail-list>article,.launch-install-steps>article,.launch-download,.new-guide-links>a,.features-grid>.feature,.fv-app-row,.pricing-grid>.product-card):is(:hover,:focus-within) {
  border-color: #70967d;
  box-shadow: 0 8px 22px #284a3318;
}
.fv-aligned :is(.fv-app-row,.pricing-grid>.product-card):is(:hover,:focus-within) { transform: none; }
.fv-aligned .workflow-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 1fr; }
.fv-aligned .workflow-grid:has(>article:nth-child(4)) { grid-template-columns: repeat(4,minmax(0,1fr)); }
.fv-aligned .workflow-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #c4d6b8;
  color: #25533d;
  background: #edf3df;
}
.fv-aligned .features-grid>.feature { display: flex; flex-direction: column; gap: 4px; }
.fv-aligned .features-grid>.feature svg { width: 26px; height: 26px; margin: 0 0 9px; }
.fv-aligned .features-grid { grid-auto-rows: 1fr; }
.fv-aligned .detail-grid { grid-template-columns: minmax(0,1fr); gap: clamp(18px,3vw,37px); }
.fv-aligned .detail-grid > div:first-child { max-width: 68ch; }
.fv-aligned .detail-grid h2 { margin-bottom: 12px; }
.fv-aligned .detail-list { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 1fr; }
.fv-aligned .launch-download-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.fv-aligned .launch-download { display: flex; flex-direction: column; align-items: flex-start; }
.fv-aligned .launch-download > .launch-next-links { margin-top: auto; padding-top: 15px; }
.fv-aligned .launch-download :is(form,textarea) { width: 100%; }
.fv-aligned .launch-download h3 { margin-bottom: 9px; }
.fv-aligned .launch-install-steps { grid-auto-rows: 1fr; }
.fv-aligned .launch-help {
  padding: clamp(12px,1.5vw,22px);
  border: 1px solid #c9d8c7;
  border-radius: var(--card-radius);
}

/* The catalogue keeps the same card dimensions and aligned purchase actions. */
.fv-aligned .fv-app-list { grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-rows: 1fr; gap: var(--card-gap); }
.fv-aligned .fv-app-list > .fv-app-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
}
.fv-aligned .fv-app-list > .fv-app-row:nth-child(4) { grid-column: 2 / span 2; }
.fv-aligned .fv-app-list > .fv-app-row:nth-child(5) { grid-column: 4 / span 2; }
.fv-aligned .fv-app-list:has(>[hidden]) { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 940px; margin-inline: auto; }
.fv-aligned .fv-app-list:has(>[hidden]) > .fv-app-row { grid-column: auto; }
.fv-aligned .fv-app-list:has(>[hidden]):not(:has(>.fv-app-row:not([hidden]) ~ .fv-app-row:not([hidden]))) {
  grid-template-columns: minmax(0,460px);
  justify-content: center;
}
.fv-aligned .fv-app-row[hidden] { display: none; }
.fv-aligned .fv-app-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  height: clamp(112px,14vw,185px);
  max-height: none;
  padding: 8px;
  border: 1px solid #c6d7c6;
  border-radius: 8px;
  overflow: clip;
}
.fv-aligned .fv-app-visual img { width: auto; max-width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.fv-aligned .fv-app-details h3 { font-size: clamp(22px,2vw,30px); letter-spacing: -.035em; }
.fv-aligned .fv-app-details p { margin: 5px 0 8px; }
.fv-aligned .fv-app-price { margin-top: auto; }
.fv-aligned .fv-app-price .button { font-size: 13px; white-space: normal; justify-self: end; }
.fv-aligned .pricing-grid .product-body { padding: var(--card-pad); }

/* Framed media, support panels and guides share the edge and spacing system. */
.fv-aligned :is(.candidate-guide figure,.menu-photo-story figure,.download-box,.portal-box,.guide-controls,.guide-section,.demo-shell,.tour-view,.tour-menu,.feature-guide .card,.cta-band) {
  border-color: var(--card-edge);
  border-radius: var(--card-radius);
}
.fv-aligned .candidate-guide-grid {
  grid-template-columns: minmax(0,1fr) minmax(255px,350px);
  gap: clamp(22px,5vw,82px);
  align-items: center;
}
.fv-aligned .candidate-guide figure {
  margin: 0;
  width: 100%;
  padding: clamp(9px,1.2vw,15px);
  border: 1px solid var(--card-edge);
  background: var(--card-surface);
}
.fv-aligned .candidate-guide video {
  display: block;
  width: 100%;
  max-height: min(67svh,540px);
  aspect-ratio: 9/16;
  object-fit: contain;
  border-radius: 8px;
  background: #12372b;
}
.fv-aligned .candidate-guide figcaption {
  padding: 5px 4px 0;
  text-align: center;
}
.fv-aligned .candidate-guide figcaption a { display: inline-flex; min-height: 44px; align-items: center; }
.fv-aligned .menu-photo-story figure { padding: var(--card-pad); background: #edf1e6; }
.fv-aligned .menu-photo-story figure img { border-radius: 8px; }
.fv-aligned .product-hero .phone-showcase {
  width: min(100%,340px);
  max-height: none;
  padding: clamp(11px,1.35vw,20px);
  border-radius: var(--card-radius);
}
.fv-aligned .product-hero .phone-showcase > img { width: auto; max-height: clamp(355px,39vw,525px); max-width: 100%; margin-inline: auto; object-fit: contain; border: 0; border-radius: 8px; }
.fv-aligned .product-hero .phone-showcase .image-caption { position: static; background: transparent; margin: 9px 0 0!important; padding: 0; }
.fv-aligned .guide-list { display: grid; gap: 10px; }
.fv-aligned .guide-item, .fv-aligned .guide-item:last-child {
  margin: 0;
  padding: clamp(13px,1.35vw,20px) clamp(14px,1.6vw,24px) clamp(13px,1.35vw,20px) clamp(52px,4.4vw,67px);
  border: 1px solid var(--card-edge);
  border-radius: var(--card-radius);
  background: var(--card-surface);
}
.fv-aligned .guide-item::before { left: 12px; top: 13px; width: 30px; height: 30px; background: #e7efdc; border-color: #bdceb6; font-weight: 700; }
.fv-aligned .guide-item p { margin-top: 6px; }
.fv-aligned .faq-list details { padding-inline: clamp(9px,1.25vw,17px); border-color: #b8cbbc; }
.fv-aligned .faq-list details[open] { background: #f8faf2; }

/* A photographic introduction leads into the light, interactive product gallery. */
.fv-aligned .fv-hero { background: radial-gradient(ellipse at 91% 58%,#dbe9db,transparent 58%),#f5efe3; }
.fv-aligned .fv-cinema {
  display: block;
  inset: 0 42% 0 0;
  border: 0;
  border-radius: 0 21px 21px 0;
  background-image: linear-gradient(100deg,#09271aee,#112f20b5 66%,#142e1c74),url("/assets/edition-four/counter.webp");
  background-position: center 60%;
}
.fv-aligned .fv-intro-label { color: #e8d8b1; }
.fv-aligned .fv-intro-label .fv-seed { background: #e5d6a0; }
.fv-aligned .fv-hero h1 { color: #fff9e9; }
.fv-aligned .fv-hero h1 em { color: #e9dfaa; }
.fv-aligned .fv-intro-copy,.fv-aligned .fv-intro-terms { color: #e5eee1; }
.fv-aligned .fv-intro-terms { border-block-color: #dfecd593; }
.fv-aligned .fv-hero .actions .button.primary { background: #e2e9b0; color: #183427; border-color: #e2e9b0; }
.fv-aligned .fv-hero .actions .button.primary:hover { background: #f0efc2; border-color: #f0efc2; }
.fv-aligned .fv-hero .actions .button:not(.primary) { color: #f6f7e8; border-color: #c4d5c4; }
.fv-aligned .fv-hero .actions .button:not(.primary):hover { background: #f1f9e923; }
.fv-aligned .fv-intro :focus-visible { outline-color: #e5e5a9; }
.fv-aligned .fv-stage {
  --fv-glow: color-mix(in srgb,var(--fv-stage-accent) 36%,transparent);
  border-color: #a6bcaa;
  border-radius: 16px;
  color: #193c2c;
  background: linear-gradient(157deg,#fffdf4 0%,#e9efe3 100%);
  box-shadow: inset 0 1px #ffffff,0 21px 43px #17352639;
}
.fv-aligned .fv-stage-header > span { color: #4c6859; }
.fv-aligned .fv-stage-header .fv-seed { background: #5b8b68; }
.fv-aligned .fv-stage :focus-visible { outline-color: #35684d; }
.fv-aligned .fv-studio-pager button { color: #214532; border-color: #adbfab; background: #f1f6e9; }
.fv-aligned .fv-studio-pager button:hover { color: #f5f8e9; background: #26563e; }
.fv-aligned .fv-tabs { border-color: #adbfad; background: #e6eee0; }
.fv-aligned .fv-tabs button { color: #2d5040; }
.fv-aligned .fv-tabs button[aria-selected=true], .fv-aligned .fv-tabs button:not([aria-selected=true]):hover {
  color: #183a2b;
  background: color-mix(in srgb,var(--fv-stage-accent) 52%,#e8f0df);
}
.fv-aligned .fv-tab-thumb { display: none; }
.fv-aligned .fv-frame { border-color: #93ab9a; border-radius: 9px; }
.fv-aligned .fv-preview-info {
  border-color: #b9ccbb;
  color: #284738;
  background: #fbf9ee;
}
.fv-aligned .fv-preview-info h2 { color: #183a2b; }
.fv-aligned .fv-preview-info p,.fv-aligned .fv-studio-price { color: #405e4e; }
.fv-aligned .fv-preview-info .fv-platform,.fv-aligned .fv-studio-price strong { color: #356248; }
.fv-aligned .fv-preview-actions .fv-arrow-link { color: #f6f8e8; background: #24533c; }
.fv-aligned .fv-preview-actions .fv-arrow-link:hover { background: #346b4e; }
.fv-aligned .fv-preview-actions .fv-zoom { color: #244d39; border-color: #aabfaa; }
.fv-aligned .fv-preview-actions .fv-zoom:hover { background: #e7f0e1; }

@media (min-width: 1350px) {
  .fv-aligned .fv-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; padding-inline: 3px; }
  .fv-aligned .fv-tab-thumb {
    display: block;
    width: 37px;
    height: 24px;
    flex: none;
    background: #315847 var(--fv-thumb) center / cover no-repeat;
    border: 1px solid #829e8b;
    border-radius: 4px;
    transition: transform 225ms var(--ease);
  }
  .fv-aligned .fv-tabs button:hover .fv-tab-thumb { transform: translateY(-2px); }
  .fv-aligned #tab-hardware { --fv-thumb: url("/assets/experience/hardware.webp"); }
  .fv-aligned #tab-grocery { --fv-thumb: url("/assets/experience/grocery.webp"); }
  .fv-aligned #tab-workforce { --fv-thumb: url("/assets/experience/workforce.webp"); }
  .fv-aligned #tab-cafe { --fv-thumb: url("/assets/experience/cafe.webp"); }
  .fv-aligned #tab-barber { --fv-thumb: url("/assets/experience/barber.webp"); }
  .fv-aligned #tab-barber .fv-tab-thumb { background-size: auto 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .fv-aligned .fv-stage { animation: fv-six-gallery-arrive 750ms 120ms var(--ease) backwards; }
  .fv-aligned .workflow-icon, .fv-aligned .feature svg { transition: color 200ms var(--ease), transform 230ms var(--ease); }
  .fv-aligned :is(.workflow-grid>article,.features-grid>.feature):hover :is(.workflow-icon,svg) { color: #123f2c; transform: translateY(-3px); }
}
@keyframes fv-six-gallery-arrive { from { opacity: .48; translate: 12px 12px; scale: .984; clip-path: inset(2% 10% 2% 3% round 16px); } }

@media (max-width: 1100px) {
  .fv-aligned .workflow-grid:has(>article:nth-child(4)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fv-aligned .fv-app-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .fv-aligned .fv-app-list:not(:has(>[hidden])) > .fv-app-row:nth-child(4) { grid-column: span 2; }
  .fv-aligned .fv-app-list:not(:has(>[hidden])) > .fv-app-row:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 960px) {
  .fv-aligned .fv-cinema { inset: 0; border-radius: 0; background-image: linear-gradient(90deg,#102e20e8,#123326ac),url("/assets/edition-four/counter.webp"); }
}
@media (max-width: 700px) {
  .fv-aligned :is(.workflow-grid,.workflow-grid:has(>article:nth-child(4)),.detail-list,.launch-download-grid,.launch-install-steps,.candidate-guide-grid) {
    grid-template-columns: minmax(0,1fr);
    grid-auto-rows: auto;
  }
  .fv-aligned .features-grid { grid-auto-rows: auto; }
  .fv-aligned .candidate-guide figure { width: min(100%,355px); justify-self: center; }
  .fv-aligned .fv-app-list,.fv-aligned .fv-app-list:has(>[hidden]) { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; }
  .fv-aligned .fv-app-list:not(:has(>[hidden])) > .fv-app-row:nth-child(n) { grid-column: auto; }
  .fv-aligned .fv-app-price .button { font-size: 12px; text-align: center; }
}
