/* The products page: three plan cards with an editorial duration, a clear price block, what every plan includes,
   the promo-code callout and the access questions. Loaded after public-polish.css. */

.products-page { padding-bottom: 40px; }

/* ------------------------------------------------------------ products as tiles */

.product-tiles {
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='black' fill-opacity='.1'%3E%3Cg transform='translate%2814 14%29 scale%28.058%29 rotate%28-8 256 256%29'%3E%3Cpath d='M 65.4182 445.7256 Q 54.2876 445.7256 56.3113 434.5951 L 113.9879 124.9628 C 121.0710 87.5236 147.3796 66.2744 180.7714 66.2744 L 199.9969 66.2744 C 217.1987 66.2744 228.3292 81.4524 224.2818 99.6661 L 199.9969 228.1736 L 313.3263 136.0934 C 335.5875 117.8797 355.8249 109.7848 384.1572 109.7848 L 456.0000 109.7848 L 329.5162 217.0430 C 308.2670 235.2567 288.0296 246.3872 261.7210 250.4347 C 218.2105 261.5653 190.8901 289.8976 181.7832 334.4199 L 170.6527 394.1203 C 164.5814 426.5001 145.3559 445.7256 114.9998 445.7256 Z'/%3E%3Cpath d='M 279.9346 295.9689 L 445.8813 445.7256 L 339.6349 445.7256 C 320.4094 445.7256 306.2432 439.6544 292.0771 425.4882 L 223.2699 355.6692 C 206.0681 337.4555 207.0800 321.2656 225.2936 304.0638 C 242.4954 286.8620 263.7447 279.7789 279.9346 295.9689 Z'/%3E%3C/g%3E%3Cg transform='translate%2874 72%29 scale%28.058%29 rotate%286 256 256%29'%3E%3Cpath d='M 65.4182 445.7256 Q 54.2876 445.7256 56.3113 434.5951 L 113.9879 124.9628 C 121.0710 87.5236 147.3796 66.2744 180.7714 66.2744 L 199.9969 66.2744 C 217.1987 66.2744 228.3292 81.4524 224.2818 99.6661 L 199.9969 228.1736 L 313.3263 136.0934 C 335.5875 117.8797 355.8249 109.7848 384.1572 109.7848 L 456.0000 109.7848 L 329.5162 217.0430 C 308.2670 235.2567 288.0296 246.3872 261.7210 250.4347 C 218.2105 261.5653 190.8901 289.8976 181.7832 334.4199 L 170.6527 394.1203 C 164.5814 426.5001 145.3559 445.7256 114.9998 445.7256 Z'/%3E%3Cpath d='M 279.9346 295.9689 L 445.8813 445.7256 L 339.6349 445.7256 C 320.4094 445.7256 306.2432 439.6544 292.0771 425.4882 L 223.2699 355.6692 C 206.0681 337.4555 207.0800 321.2656 225.2936 304.0638 C 242.4954 286.8620 263.7447 279.7789 279.9346 295.9689 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(900px, 100%);
  margin: 0 auto;
  scroll-margin-top: 100px;
}
.product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(270px, 29vw, 330px);
  padding: 22px 18px 20px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .28)),
    radial-gradient(60% 55% at 50% 46%, var(--glow), transparent 72%),
    var(--pattern) center / 104px 104px,
    var(--tile);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .05);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.product-tile.is-wide { grid-column: 1 / -1; }
.product-tile:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 60px rgba(0, 0, 0, .4); }
.product-tile:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.product-tile.is-selected { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .92), 0 24px 60px rgba(0, 0, 0, .35); }

.tile-graphite { --tile: #3a3f48; --glow: rgba(120, 128, 142, .45); --side: #1c1f25; --face-a: #a7adb8; --face-b: #5c626d; }
.tile-orange { --tile: #d65000; --glow: rgba(255, 140, 60, .55); --side: #5a2100; --face-a: #ff9a4d; --face-b: #b84500; }
.tile-red { --tile: #a7323f; --glow: rgba(240, 110, 125, .5); --side: #4c121a; --face-a: #ec8590; --face-b: #8e2633; }
.tile-violet { --tile: #6a39c4; --glow: rgba(178, 130, 255, .55); --side: #2a1356; --face-a: #c7a9ff; --face-b: #6c41c4; }

.tile-brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; opacity: .95; }
.tile-brand img { width: 16px; height: 16px; }

/* The 3D K (an SVG built in public-view.js) sits in the middle, under the label. */
.tile-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tile-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(74%, 250px);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -52%);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.product-tile.is-wide .tile-mark { width: min(34%, 270px); }
.product-tile:hover .tile-mark { transform: translate(-50%, -55%) rotate(3deg) scale(1.04); }

.tile-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.05em;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .12), 0 8px 30px rgba(0, 0, 0, .3);
}
.tile-foot {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
/* A small wave rises inside the price pill; its label and caret stay still. */
.tile-foot::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -10px 0 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='10' viewBox='0 0 80 10'%3E%3Cpath d='M0 5Q10 1 20 5T40 5T60 5T80 5V10H0Z' fill='white' fill-opacity='.15'/%3E%3C/svg%3E"),
    linear-gradient(rgba(255, 255, 255, .15), rgba(255, 255, 255, .15));
  background-size: 80px 10px, 100% calc(100% - 10px);
  background-position: 0 0, 0 10px;
  background-repeat: repeat-x, no-repeat;
  transform: translateY(calc(100% + 1px));
  transition: transform .7s cubic-bezier(.22, .65, .3, 1);
  animation: tile-price-wave 1.2s linear infinite paused;
}
.tile-foot > span {
  display: inline-block;
  min-width: 7px;
  font-size: 18px;
  line-height: .8;
  text-align: center;
}
.product-tile:focus-visible .tile-foot::before {
  transform: translateY(0);
  animation-play-state: running;
}
@media (hover: hover) and (pointer: fine) {
  .product-tile:hover .tile-foot::before {
    transform: translateY(0);
    animation-play-state: running;
  }
}
@keyframes tile-price-wave {
  to { background-position: 80px 0, 0 10px; }
}
.tile-foot .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* ------------------------------------------------------------ checkout, right under the plans */

.checkout-panel.public-checkout.refined-checkout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(900px, 100%);
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  scroll-margin-top: 88px;
}
.refined-checkout .checkout-product {
  min-width: 0;
  padding: 27px 25px;
  border-right: 1px solid var(--border);
  background: radial-gradient(ellipse at 0 100%, #d6500010, transparent 75%), var(--bg);
}
.checkout-product-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.checkout-product-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-family: var(--font-display); font-size: 14px; letter-spacing: -.02em; white-space: nowrap; }
.checkout-product-brand img { width: 17px; height: 17px; }
[data-theme=light] .checkout-product-brand img { filter: brightness(0); }
.checkout-change { display: inline-flex; align-items: center; gap: 5px; padding-block: 9px; color: var(--muted); font-size: 12px; }
.checkout-change .icon { width: 13px; height: 13px; }
.checkout-change:hover { color: var(--text); }
.checkout-product-title { display: flex; align-items: center; gap: 13px; margin-top: 25px; }
.checkout-product-mark { display: grid; place-items: center; width: 58px; height: 62px; flex: 0 0 58px; border-radius: 13px; border: 1px solid #d650002c; background: linear-gradient(140deg, #d650001c, #d6500005); }
.checkout-product-mark img { width: 46px; height: 46px; object-fit: contain; }
[data-theme=light] .checkout-product-mark img { filter: brightness(.48) sepia(.5) saturate(2); }
.checkout-product-label { color: var(--muted); font-size: 12px; line-height: 1.4; }
.checkout-product-title h3 { margin-top: 4px; font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1.13; letter-spacing: -.035em; }
.checkout-product-term { display: flex; align-items: flex-start; gap: 8px; margin-top: 23px; color: var(--text); font-size: 12px; line-height: 1.6; }
.checkout-product-term .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--accent); }
.checkout-product-note { margin-top: 11px; padding-left: 23px; font-size: 12px; line-height: 1.65; }
.refined-checkout .checkout-flow { min-width: 0; padding: 28px 32px 30px; }
.checkout-steps { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checkout-steps li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.checkout-step-number { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.checkout-step-number .icon { width: 13px; height: 13px; }
.checkout-steps li[aria-current=step] { color: var(--text); }
.checkout-steps li[aria-current=step] .checkout-step-number { color: #e78950; background: #d6500017; border-color: #d6500050; }
.checkout-steps li.is-complete .checkout-step-number { color: var(--accent); border-color: #d6500040; background: #d6500009; }
[data-theme=light] .checkout-steps li[aria-current=step] .checkout-step-number { color: #aa4303; }
.checkout-flow-heading { margin-top: 25px; }
.checkout-flow-heading h2 { font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.checkout-flow-heading > p { max-width: 470px; margin-top: 12px; font-size: 14px; line-height: 1.65; }
.refined-checkout .public-checkout-signin { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 24px; }
.refined-checkout .public-checkout-signin > .btn { justify-content: space-between; gap: 30px; min-height: 47px; padding: 12px 17px; border-radius: 9px; font-size: 13px; }
.checkout-signin-note { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.checkout-signin-note .icon { width: 14px; height: 14px; }
.checkout-signin-note:hover { color: var(--text); }
.refined-checkout .public-checkout-body { display: block; margin-top: 24px; }
.refined-checkout #checkout-form { padding: 0; }
.refined-checkout .field { margin-bottom: 0; }
.refined-checkout .field label { margin-bottom: 9px; color: var(--text); font-size: 13px; line-height: 1.4; }
.refined-checkout .input-with-button { display: flex; gap: 8px; }
.refined-checkout .input { flex: 1 1 0; min-width: 0; min-height: 48px; height: 48px; padding: 12px 14px; border-radius: 8px; font-size: 15px; }
.refined-checkout .input-with-button .btn { min-height: 48px; padding: 12px 17px; border-radius: 8px; font-size: 13px; }
.refined-checkout .public-checkout-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.refined-checkout .form-error:empty, .refined-checkout #quote-result:empty { display: none; }
.refined-checkout .form-error:not(:empty), .refined-checkout #quote-result:not(:empty) { margin-top: 12px; }
.refined-checkout #quote-result p { margin: 0; font-size: 13px; }
.refined-checkout .checkout-summary { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; margin: 21px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--border); }
.refined-checkout .checkout-total-line { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.refined-checkout .checkout-total-line > p { font-size: 12px; }
.refined-checkout .checkout-summary strong { margin: 0; font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.refined-checkout #checkout-total:empty::before { max-width: 155px; font-family: var(--font-body); font-size: 12px; font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--muted); text-align: left; }
.refined-checkout .checkout-summary .btn { width: auto; min-height: 47px; flex: 0 0 auto; gap: 24px; padding: 12px 16px; border-radius: 9px; font-size: 13px; }
.refined-checkout .order-success { grid-column: 1 / -1; padding: 36px 24px; }

@media (max-width: 980px) and (min-width: 701px) {
  .checkout-panel.public-checkout.refined-checkout { grid-template-columns: 220px minmax(0, 1fr); }
  .refined-checkout .checkout-product { padding-inline: 20px; }
  .refined-checkout .checkout-flow { padding-inline: 24px; }
  .checkout-steps { gap: 9px; }
  .checkout-steps li { gap: 5px; font-size: 11px; }
  .refined-checkout .checkout-summary { gap: 14px; }
  .refined-checkout .checkout-summary .btn { gap: 12px; padding-inline: 12px; }
}
@media (max-width: 700px) {
  .checkout-panel.public-checkout.refined-checkout { grid-template-columns: minmax(0, 1fr); margin-top: 14px; border-radius: 13px; }
  .refined-checkout .checkout-product { padding: 17px 21px 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .checkout-product-title { margin-top: 14px; gap: 13px; }
  .checkout-change { min-height: 44px; margin-block: -5px; }
  .checkout-product-title h3 { font-size: 29px; }
  .checkout-product-mark { width: 54px; height: 58px; flex-basis: 54px; }
  .checkout-product-mark img { width: 43px; height: 43px; }
  .checkout-product-term { margin-top: 13px; font-size: 12px; }
  .checkout-product-note { display: none; }
  .refined-checkout .checkout-flow { padding: 24px 21px 25px; }
  .checkout-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .checkout-steps li { position: relative; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-size: 12px; }
  .checkout-steps li:not(:last-child)::after { content: ''; position: absolute; top: 11px; left: calc(50% + 19px); width: calc(100% - 28px); height: 1px; background: var(--border); }
  .checkout-flow-heading { margin-top: 24px; }
  .checkout-flow-heading h2 { max-width: 300px; font-size: clamp(26px, 6.8vw, 31px); line-height: 1.12; text-wrap: balance; }
  .checkout-flow-heading > p { margin-top: 12px; font-size: 14px; }
  .refined-checkout .public-checkout-signin { margin-top: 22px; gap: 12px; }
  .refined-checkout .public-checkout-signin > .btn { width: 100%; min-height: 49px; font-size: 14px; }
  .checkout-signin-note { min-height: 44px; align-self: flex-start; font-size: 13px; }
  .refined-checkout .public-checkout-body { margin-top: 23px; }
  .refined-checkout .input { min-height: 50px; height: 50px; font-size: 16px; padding-inline: 12px; }
  .refined-checkout .input-with-button .btn { min-height: 50px; padding-inline: 13px; font-size: 13px; }
  .refined-checkout .checkout-summary { flex-direction: column; align-items: stretch; gap: 18px; padding-top: 20px; margin-top: 20px; }
  .refined-checkout .checkout-total-line { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 15px; }
  .refined-checkout .checkout-summary strong { font-size: 27px; text-align: right; }
  .refined-checkout #checkout-total:empty::before { max-width: 155px; text-align: right; }
  .refined-checkout .checkout-summary .btn { width: 100%; min-height: 49px; font-size: 14px; }
}
@media (max-width: 360px) {
  .refined-checkout .checkout-product { padding-inline: 18px; }
  .refined-checkout .checkout-flow { padding-inline: 18px; }
  .refined-checkout .input-with-button { flex-direction: column; }
  .refined-checkout .input-with-button .btn { width: 100%; }
  .refined-checkout .input-with-button .input { flex: auto; }
}

/* ------------------------------------------------------------ questions */

.public-product-faq {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  width: min(1120px, 100%);
  margin: 88px auto 40px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.public-product-faq-head h2 { margin-top: 0; font-family: var(--font-display); font-size: 32px; line-height: 1.08; font-weight: 500; letter-spacing: -.04em; }
.public-product-faq-head .text-link { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 13.5px; }
.public-product-faq .faq-list { border-top: 1px solid var(--border); }

/* ------------------------------------------------------------ narrow screens */

@media (max-width: 1000px) {
  .public-product-faq { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  .product-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-tile { min-height: 210px; padding: 16px 12px 14px; border-radius: 12px; }
  .product-tile.tile-red, .product-tile.is-wide { grid-column: 1 / -1; min-height: 190px; }
  .product-tile.is-wide { min-height: 220px; }
  .tile-mark { width: min(80%, 180px); }
  .product-tile.tile-red .tile-mark, .product-tile.is-wide .tile-mark { width: min(46%, 190px); }
  .tile-label { font-size: clamp(34px, 10vw, 44px); }
  .tile-brand { font-size: 13px; }
  .tile-foot { font-size: 13px; }
  .public-product-faq { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-tile, .tile-mark, .tile-foot, .tile-foot span { transition: none; }
  .tile-foot::before { transition: none; animation: none; }
  .product-tile:hover, .product-tile:hover .tile-mark { transform: none; }
}
