
:root {

  --accent: #1f6bff;
  --accent-hover: #1a5fe0;
  --accent-dark: #1a5fe0;
  --accent-deep: #0f47b8;
  --accent-light: #eaf1ff;
  --accent-border: #c9daff;

  --home-bg: #fbfcff;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --grey: #737373;
  --grey-light: #a3a3a3;
  --amber: #b45309;
  --border: rgba(0, 0, 0, 0.08);

  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.2, 0.8, 0.3, 1);
  --fast: 150ms;
  --medium: 220ms;
  --slow: 320ms;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent-deep); }

.brand {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  font-weight: 700; color: var(--ink); font-size: 15px; letter-spacing: -0.01em;
  padding: 4px 2px;
}

.brand-logo {
  width: 26px; height: 26px; flex: 0 0 26px; display: block;
}

.navbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 24px; background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);

  -webkit-user-select: none;
  user-select: none;
}

.pill, .navbar summary {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 7px 13px; border-radius: 10px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--grey);
  transition: background var(--fast), color var(--fast),
              transform var(--medium) var(--bounce);
}
.pill:hover, .navbar summary:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }

.pill:active, .navbar summary:active { transform: scale(0.95); transition-duration: 60ms; }
.pill.soon:active { transform: none; }

.pill.active, .dropdown.active > summary {
  background: var(--accent-light); color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.pill.active:hover, .dropdown.active > summary:hover { background: #dde8ff; color: var(--accent-deep); }
.pill.active .icon, .dropdown.active > summary .icon { color: var(--accent-dark); }

.icon { display: inline-flex; width: 15px; height: 15px; color: var(--accent-dark); }
.icon svg { width: 100%; height: 100%; }
.pill:not(.active):hover .icon { color: var(--accent-dark); }

.badge {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: var(--accent-light); color: var(--accent-dark);
}
.pill.active .badge { background: #fff; color: var(--accent-dark); }
.badge.grey { background: #f0f0f0; color: var(--grey-light); }

.pill.soon { color: var(--grey-light); opacity: 0.55; cursor: not-allowed; }
.pill.soon:hover { background: none; color: var(--grey-light); }
.pill.soon .icon { color: var(--grey-light); }

.divider { width: 1px; height: 20px; background: var(--border); margin: 0 6px; flex-shrink: 0; }

.dropdown { position: relative; flex-shrink: 0; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary::marker { content: ""; }
.chevron {
  display: inline-flex; width: 14px; height: 14px; color: var(--grey-light);
  transition: transform var(--medium) var(--bounce);
}
.chevron svg { width: 100%; height: 100%; }
.dropdown[open] .chevron { transform: rotate(180deg); }
.dropdown.active .chevron { color: var(--accent-dark); opacity: 0.7; }

.menu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 70; min-width: 190px;
  padding: 6px; border-radius: 13px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 18px 38px -16px rgba(0, 0, 0, 0.28);

  transform-origin: top left;
}
.dropdown[open] > .menu { animation: panel-in var(--medium) var(--bounce) both; }

.dropdown[open] > .menu > * { animation: row-in var(--fast) var(--smooth) both; }
.dropdown[open] > .menu > :nth-child(2) { animation-delay: 35ms; }
.dropdown[open] > .menu > :nth-child(3) { animation-delay: 70ms; }
.dropdown[open] > .menu > :nth-child(4) { animation-delay: 105ms; }

.dropdown.closing > .menu { animation: panel-out var(--fast) var(--smooth) both; }

.sub {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px;
  font-size: 12.5px; font-weight: 500; color: var(--grey);
  transition: background var(--fast), color var(--fast),
              transform var(--medium) var(--bounce);
}
.sub:not(.soon):active { transform: scale(0.97); transition-duration: 60ms; }
.sub:hover { background: rgba(0, 0, 0, 0.04); color: var(--ink); }
.sub.active { background: var(--accent); color: #fff; font-weight: 600; }
.sub.active:hover { background: var(--accent-hover); color: #fff; }

.sub.soon { color: var(--grey-light); opacity: 0.6; cursor: default; }
.sub.soon:hover { background: none; color: var(--grey-light); }
.sub .badge.grey { margin-left: auto; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-light); flex-shrink: 0; }
.sub.active .dot { background: #fff; }

main { max-width: 1040px; margin: 0 auto; padding: 0 24px 64px; }

.hero { text-align: center; padding: 56px 0 32px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 5px 14px; border-radius: 999px;
  background: var(--accent-light); border: 1px solid var(--accent-border);
  color: var(--accent-dark); font-size: 12px; font-weight: 600;
}
.hero h1 {
  margin: 0 auto 16px; max-width: 760px; font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
}

.hero h1 span {
  color: var(--accent-dark);
  background-image: linear-gradient(100deg, var(--accent-dark) 0%, #1a6dff 45%, #5aa2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  padding-bottom: 0.08em;
}
.lead { max-width: 620px; margin: 0 auto; color: #525252; font-size: 17px; }

.search { max-width: 720px; margin: 28px auto 0; position: relative; }

.search-box {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px;
  background: #fff; border: 2px solid var(--accent); border-radius: 18px;
  box-shadow: 0 0 0 6px rgba(31, 107, 255, 0.1), 0 18px 40px -24px rgba(31, 107, 255, 0.6);
  transition: border-color var(--fast), box-shadow var(--fast),
              transform var(--medium) var(--bounce);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 7px rgba(31, 107, 255, 0.18), 0 18px 40px -24px rgba(31, 107, 255, 0.6);
  transform: scale(1.01);
}
.search-icon {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px;
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.search-icon svg { width: 16px; height: 16px; }

.search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 16px; font-family: inherit; color: var(--ink); padding: 6px 0;
}
.search input::placeholder { color: var(--grey-light); }

.search input::-webkit-search-cancel-button { display: none; }

.search-clear {
  flex: 0 0 auto; border: 0; background: transparent; cursor: pointer;
  color: var(--grey-light); font-size: 20px; line-height: 1;
  padding: 4px 8px; border-radius: 8px;
  transition: background var(--fast), color var(--fast),
              transform var(--medium) var(--bounce);

  animation: pop-in var(--medium) var(--bounce) both;
}
.search-clear:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
.search-clear:active { transform: scale(0.85); transition-duration: 60ms; }

.search-go {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer; padding: 9px 16px; border-radius: 12px;
  background: var(--accent); color: #fff; font: 600 14px inherit; font-family: inherit;
  transition: background var(--fast), transform var(--medium) var(--bounce);
}
.search-go:hover { background: var(--accent-hover); }
.search-go:active { transform: scale(0.94); transition-duration: 60ms; }
.search-go svg {
  width: 15px; height: 15px;
  transition: transform var(--medium) var(--bounce);
}

.search-go:hover svg { transform: translateX(3px); }

.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50;
  background: #fff; border-radius: 17px; border: 1px solid var(--border);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.28); overflow: hidden; text-align: left;
  transform-origin: top center;

  transition: height var(--medium) var(--smooth);
}

.results.entering { animation: panel-in var(--medium) var(--bounce) both; }
.results.entering .results-list > a {
  animation: row-in var(--fast) var(--smooth) both;

  animation-delay: calc(var(--i, 0) * 22ms);
}
.results-head {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px;
  background: #fafafa; border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--grey);
}
.results-head span:last-child {
  font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--grey-light);
}
.results-list { padding: 6px; max-height: 380px; overflow-y: auto; }

.results a {
  display: flex; align-items: center; gap: 13px; padding: 9px 10px;
  border-radius: 12px; color: var(--ink);
  transition: background-color var(--fast);
}
.results a.selected, .results a:hover {
  background: var(--accent-light); color: var(--ink);
}
.results .empty { padding: 26px 16px; color: var(--grey); font-size: 13px; text-align: center; }
.results .empty strong { color: var(--ink); }

.sug-photo {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center;
}
.sug-photo img { object-fit: contain; }
.sug-photo img { max-width: 100%; max-height: 100%; }

.sug-text { flex: 1; min-width: 0; }
.sug-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sug-line strong { font-size: 13px; }

.sug-category {
  display: inline-block; margin-top: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #f0f0f0; color: var(--grey);
}

.sug-price { font-size: 14px; font-weight: 700; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.sug-arrow {
  width: 16px; height: 16px; color: #d4d4d4; flex: 0 0 16px;
  transition: color var(--fast), transform var(--medium) var(--bounce);
}

.results a.selected .sug-arrow,
.results a:hover .sug-arrow { color: var(--accent-dark); transform: translateX(3px); }

section h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 16px; }

body:has(.hero-cloud) { background: var(--home-bg); overflow-x: clip; }

html:has(.hero-cloud) { background: var(--accent-light); }
.hero-cloud { position: relative; padding-top: 72px; }
.hero-cloud > :not(.cloud) { position: relative; }
.cloud {
  position: absolute; left: 50%; top: 0; width: 100vw; height: 420px;
  transform: translateX(-50%); pointer-events: none;

  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
}

.hero-cloud .search { z-index: 5; }

main:has(.top-models) { padding-bottom: 0; }
.top-models {
  margin: 56px calc(50% - 50vw) 0; padding: 32px max(24px, calc(50vw - 520px)) 12px;
  background: linear-gradient(180deg, rgba(234, 241, 255, 0) 0%, var(--accent-light) 40%);
}
.top-models h2 { font-size: 20px; margin: 0 0 16px; }
main:has(.top-models) + .footer {
  max-width: none; background: var(--accent-light); border-top: 0; justify-content: center;
}
.top-models-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.top-model {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px;
  color: var(--ink); background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(31, 107, 255, 0.14);
  box-shadow: 0 20px 40px -30px rgba(15, 40, 100, 0.5);
  transition: border-color var(--fast), transform var(--medium) var(--bounce),
              box-shadow var(--medium) var(--smooth);
}
.top-model:hover {
  color: var(--ink); border-color: var(--accent-border); transform: translateY(-3px);
  box-shadow: 0 24px 44px -26px rgba(15, 40, 100, 0.55);
}
.top-model:active { transform: translateY(-1px); transition-duration: 60ms; }
.top-model-photo {
  display: block; width: 100%; height: 120px; object-fit: contain;
}
.top-model-text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.top-model-text strong { font-size: 15px; }
.top-model-category {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-light); color: var(--accent-dark);
}
.top-model-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid #edf1f8;
}
.top-model-price span {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--grey);
}
.top-model-price strong {
  font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  color: var(--accent-dark);
}
@media (max-width: 860px) {
  .top-models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hero-cloud { padding-top: 40px; }
  .top-models { margin-top: 36px; padding-top: 24px; }
  .top-models-grid { gap: 10px; }
  .top-model { padding: 12px; gap: 10px; border-radius: 16px; }
  .top-model-photo { height: 84px; }

  .top-model-price { flex-direction: column; align-items: flex-start; gap: 2px; }
  .top-model-price strong { font-size: 18px; }
}

.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.group {
  grid-column: 1 / -1;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.group-title {
  grid-column: 1 / -1;
  margin: 16px 0 0; font-size: 16px; letter-spacing: -0.015em;
}
.group:first-child .group-title { margin-top: 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.section-head .lead { margin: 0; }

.filter {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  margin-bottom: 4px; padding: 8px 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.16);
}
.filter-icon { display: inline-flex; width: 15px; height: 15px; color: var(--grey-light); }
.filter-icon svg { width: 100%; height: 100%; }
.filter input {
  border: 0; outline: 0; background: none; width: 190px;
  font-family: inherit; font-size: 13.5px; color: var(--ink);
}
.filter input::-webkit-search-cancel-button { cursor: pointer; }

.no-matches { margin: 18px 0 0; font-size: 14px; color: var(--grey); }

@media (max-width: 560px) {
  .filter { width: 100%; }
  .filter input { width: 100%; }
}

.model-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; color: var(--ink);
  transition: border-color var(--fast), transform var(--medium) var(--bounce),
              box-shadow var(--medium) var(--smooth);
}

.model-card:hover {
  border-color: var(--accent); color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.22);
}
.model-card:active { transform: translateY(-1px); transition-duration: 60ms; }
.model-card-photo {
  width: 48px; height: 48px; object-fit: contain; flex: 0 0 48px;
}
.model-card-head { display: flex; align-items: center; gap: 12px; }

.model-card-name { min-width: 0; }
.model-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.model-card-title strong { font-size: 14px; }

.year {
  display: inline-block; margin-top: 6px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #f0f0f0; color: var(--grey); font-variant-numeric: tabular-nums;
}
.tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-light); color: var(--accent-dark); border: 1px solid var(--accent-border);
}

.chip-median {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 5px 11px; border-radius: 9px;
  background: var(--accent-light); color: var(--accent-deep); border: 1px solid var(--accent-border);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.price-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.chip-per-gb { background: #fff; color: #404040; border-color: var(--border); }

.more {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--grey);
  transition: color 0.15s;
}
.more-arrow {
  display: inline-flex; width: 15px; height: 15px;
  transition: transform var(--medium) var(--bounce);
}
.more-arrow svg { width: 100%; height: 100%; }
.model-card:hover .more { color: var(--accent-dark); }
.model-card:hover .more-arrow { transform: translateX(3px); }

.breadcrumb { font-size: 13px; color: var(--grey); padding: 20px 0 0; }
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--accent-dark); }
.product { padding: 12px 0 8px; }

.product .lead { margin: 0; max-width: 68ch; }
.product h1 { font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.025em; margin: 8px 0 12px; }
.product-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.product-head > div > :first-child { margin-top: 0; }
.product-head > div > :last-child { margin-bottom: 0; }

.product-head > div { flex: 1; min-width: 0; }
.product-photo {
  width: 86px; height: 86px; object-fit: contain; flex: 0 0 86px;
}

@media (min-width: 720px) {
  .product-photo { width: auto; height: 104px; max-width: 150px; flex: 0 0 auto; }
}

.no-data { font-size: 13px; color: var(--grey); margin: 16px 0 0; }

.method-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.method-card {
  position: relative; padding: 24px;
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 15px; color: #525252;
}
.method-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; }

.method-step:not(:last-child)::after {
  content: ""; position: absolute; left: 39px; bottom: -17px;
  width: 2px; height: 16px; background: var(--accent-border);
}
.method-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--accent-light); border: 1px solid var(--accent-border);
  color: var(--accent-deep); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.method-main { min-width: 0; }
.method-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px;
  flex-wrap: wrap; min-height: 32px;
}
.method-card h2 { margin: 0; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.method-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.method-chip { font-size: 12px; padding: 4px 10px; }
.method-body { margin-top: 10px; }

.method-text p { margin: 0 0 10px; line-height: 1.65; }
.method-text p:last-child { margin-bottom: 0; }
.method-text strong { color: var(--ink); }
.method-body.has-figure {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start;
}
.method-extra {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px;
}
.method-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 86px;
  width: 86px; height: 86px; border-radius: 16px; padding: 24px;
  background: #fff; border: 1px solid var(--border); color: var(--accent-dark);
}
.method-icon svg { width: 100%; height: 100%; }

.calc-figure {
  margin: 0; padding: 16px; border-radius: 16px;
  background: rgba(250, 250, 250, 0.7); border: 1px solid rgba(0, 0, 0, 0.04);
}
.calc-plot { position: relative; height: 190px; border-bottom: 1px solid var(--border); }
.calc-band {
  position: absolute; left: 0; right: 0;
  background: rgba(31, 107, 255, 0.07);
  border-top: 1px dashed var(--accent-border); border-bottom: 1px dashed var(--accent-border);
}
.calc-median { position: absolute; left: 0; right: 0; height: 2px; background: #1a5fe0; }
.calc-median span {
  position: absolute; left: 0; bottom: 5px;
  font-size: 11px; font-weight: 700; color: var(--accent-deep); white-space: nowrap;
}
.calc-dot {
  position: absolute; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 999px;
  background: rgba(31, 107, 255, 0.7);
}
.calc-dot.high { background: rgba(168, 85, 247, 0.7); }
.calc-keys {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px;
  font-size: 11px; color: var(--grey);
}
.calc-key { display: inline-flex; align-items: center; gap: 6px; }
.calc-swatch { width: 8px; height: 8px; border-radius: 999px; background: rgba(31, 107, 255, 0.7); }
.calc-swatch.high { background: rgba(168, 85, 247, 0.7); }
.calc-swatch.band {
  width: 14px; border-radius: 2px;
  background: rgba(31, 107, 255, 0.1); border: 1px dashed var(--accent-border);
}
.calc-swatch.median { width: 16px; height: 4px; background: #1a5fe0; }

@media (max-width: 860px) {
  .method-body.has-figure { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .method-extra { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .method-card { padding: 18px; }
  .method-step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .method-step:not(:last-child)::after { left: 33px; }
  .method-icon { width: 64px; height: 64px; flex-basis: 64px; padding: 16px; border-radius: 14px; }
}

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1040px; margin: 0 auto; padding: 20px 24px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--grey-light);
}
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }

.legal { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
.legal-mail { font-size: 18px; font-weight: 600; }

@media (max-width: 560px) {
  main { padding: 0 16px 48px; }
  .hero { padding: 28px 0 24px; }

  .navbar { padding: 6px 12px; gap: 4px; }
  .pill, .navbar summary { padding: 6px 10px; font-size: 12px; gap: 6px; }

  .divider { display: none; }
  .brand + .divider { display: block; margin: 0 4px; }
  .brand { font-size: 14px; }
  .brand-logo { width: 22px; height: 22px; flex-basis: 22px; }

  .pill.soon { display: none; }
}

.notice {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px;
}

.price-summary { margin: 8px 0 0; font-size: 15px; color: #525252; line-height: 1.6; }
.price-summary strong { color: var(--ink); }
.data-date { margin: 4px 0 0; font-size: 13px; color: #737373; }
.price-basis { margin: 4px 0 0; font-size: 13px; color: #525252; }

.links { margin: 36px 0 0; }
.links h2 { font-size: 18px; letter-spacing: -0.02em; margin: 0 0 14px; }

.link-list {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.variant-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: #fff; border: 1px solid var(--border);
  border-radius: 13px; color: var(--ink); font-size: 13px;
  transition: border-color var(--fast), transform var(--medium) var(--bounce),
              box-shadow var(--medium) var(--smooth);
}
.variant-link:hover {
  border-color: var(--accent); color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.22);
}
.variant-link:active { transform: translateY(-1px); transition-duration: 60ms; }
.variant-link strong {
  font-size: 15px; color: var(--accent-dark); font-variant-numeric: tabular-nums; white-space: nowrap;
}

.hint a { font-weight: 600; }

@media (pointer: coarse) {
  .cv-card .cv-period { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; }
  .breadcrumb a { display: inline-block; padding: 4px 0; }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes panel-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-6px) scale(0.98); }
}
@keyframes row-in {
  from { opacity: 0; translate: 0 6px; }
  to   { opacity: 1; translate: 0; }
}
@keyframes rise-in {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0; }
}
@keyframes card-in {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0; }
}
@keyframes pop-in {
  from { opacity: 0; scale: 0.4; }
  to   { opacity: 1; scale: 1; }
}

.hero > .eyebrow { animation: rise-in var(--slow) var(--smooth) both; }
.hero > h1 { animation: rise-in var(--slow) var(--smooth) 40ms both; }
.hero > .lead { animation: rise-in var(--slow) var(--smooth) 100ms both; }
.hero > .search { animation: rise-in var(--slow) var(--smooth) 160ms both; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .grid .model-card,
    .top-models-grid .top-model,
    .link-list .variant-link,
    .method-card {
      animation: card-in var(--slow) var(--smooth) both;

      animation-timeline: view();
      animation-range: entry 0% cover 16%;
    }
  }
}

.nav-toggle, .nav-close { display: none; }
.nav-panel { display: contents; }

@media (max-width: 939px) {
  .navbar {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
    gap: 0; height: 56px; padding: 0 8px;
  }
  .navbar > .brand { grid-column: 2; grid-row: 1; justify-self: center; font-size: 16px; }
  .nav-toggle, .nav-close {
    grid-column: 1; grid-row: 1;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; color: var(--ink);
    transition: background var(--fast), transform var(--medium) var(--bounce);
  }
  .nav-toggle:hover, .nav-close:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
  .nav-toggle:active, .nav-close:active { transform: scale(0.92); transition-duration: 60ms; }
  .nav-toggle .icon, .nav-close .icon { width: 22px; height: 22px; color: inherit; }

  .nav-close { display: none; }
  html.nav-open .nav-toggle, .navbar:has(.nav-panel:target) .nav-toggle { display: none; }
  html.nav-open .nav-close, .navbar:has(.nav-panel:target) .nav-close { display: flex; }
  html.nav-closing .nav-toggle { display: flex; }
  html.nav-closing .nav-close { display: none; }
  .nav-close .icon, html.nav-closing .nav-toggle .icon { animation: pop-in var(--medium) var(--bounce) both; }

  .nav-panel {
    display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0; z-index: 100;
    flex-direction: column; gap: 2px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; padding: 12px 0 calc(24px + env(safe-area-inset-bottom));
  }
  .nav-panel:target, .nav-open .nav-panel {
    display: flex; animation: sheet-in var(--medium) var(--smooth) both;
  }
  .nav-closing .nav-panel { animation: sheet-out var(--fast) var(--smooth) both; }

  html.nav-open { overflow: hidden; }

  html.nav-open .navbar, .navbar:has(.nav-panel:target) {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff;
  }

  .nav-panel > .divider { display: none; }
  .nav-panel > .pill, .nav-panel > .dropdown { margin: 0 12px; }

  .nav-panel .pill, .nav-panel summary {
    display: flex; gap: 14px; height: 56px; padding: 0 12px; border-radius: 14px;
    font-size: 18px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink);
  }
  .nav-panel .pill:active, .nav-panel summary:active { transform: scale(0.98); }
  .nav-panel .icon { width: 20px; height: 20px; }
  .nav-panel .chevron { margin-left: auto; width: 18px; height: 18px; }
  .nav-panel .dropdown.active > summary { box-shadow: none; background: none; color: var(--ink); }
  .nav-panel .dropdown[open] { background: var(--bg); border-radius: 16px; padding-bottom: 6px; }

  .nav-panel .menu {
    position: static; min-width: 0; padding: 0; border: 0; border-radius: 0;
    background: none; box-shadow: none;
  }
  .nav-panel .dropdown[open] > .menu { animation: none; }
  .nav-panel .dropdown.closing > .menu { animation: row-out var(--fast) var(--smooth) both; }
  .nav-panel .sub {
    height: 48px; padding: 0 12px 0 46px; border-radius: 12px; font-size: 16px;
  }
  .nav-panel .sub:not(.active) { color: #525252; }

}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sheet-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(12px); }
}
@keyframes row-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@media (max-width: 560px) {
  .search-box { flex-wrap: wrap; gap: 10px; padding: 10px; }
  .search-go { flex: 1 0 100%; justify-content: center; height: 48px; font-size: 15px; }
}

.cv-card { scroll-margin-top: 72px; }

.breadcrumb + .cv-card { margin-top: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.hero-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-light); padding: 5px 10px; border-radius: 999px;
}
.hero-meta .data-date { margin: 0; }
.cv-card h1 {
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
  margin: 0;
}
.cv-card .price-summary, .cv-card .price-basis { margin: 0; font-size: 14px; color: #737373; }
.cv-card .price-summary strong { color: #525252; }

.dist, .ranking {
  margin: 24px 0 0; padding: 28px 32px;
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 24px;
}
.dist-copy, .ranking-copy { flex: 1 1 240px; min-width: 0; }
.dist h2, .ranking h2 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.dist-copy p, .ranking-copy p { margin: 0; font-size: 15px; line-height: 1.55; color: #525252; }
.dist-copy .dist-price { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.dist-price strong {
  font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.dist-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: #525252; }
.dist-legend li { display: flex; align-items: center; gap: 8px; }
.dist-sw { width: 12px; height: 12px; flex: none; border-radius: 3px; background: #d4d4d8; }
.dist-sw.is-usual, .dist-bar.is-usual { background: #9cbcff; }

.dist-chart { flex: 2 1 460px; min-width: 0; margin: 0; position: relative; padding-top: 34px; }
.dist-bars { display: flex; align-items: flex-end; gap: 4px; height: 200px; }
.dist-bar { flex: 1 1 0; min-width: 0; border-radius: 5px 5px 2px 2px; background: #d4d4d8; }
.dist-bar.is-median { background: var(--accent); }
.dist-median {
  position: absolute; top: 34px; height: 200px; width: 2px;
  background: var(--ink); transform: translateX(-1px); pointer-events: none;
}
.dist-median > span {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.dist-median.al-inicio > span { left: 0; transform: none; }
.dist-median.al-final > span { left: auto; right: 0; transform: none; }
.dist-axis { position: relative; height: 18px; margin-top: 10px; font-size: 12px; color: #737373; font-variant-numeric: tabular-nums; }
.dist-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.dist-axis span.al-inicio { transform: none; }
.dist-axis span.al-final { transform: translateX(-100%); }

.rank-list { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-row {
  display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 96px;
  align-items: center; gap: 16px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--ink); font-size: 15px; transition: background var(--fast);
}
a.rank-row:hover { background: var(--bg); color: var(--ink); }
.rank-row.is-current { background: var(--accent-light); font-weight: 700; }
.rank-name { color: #3f3f46; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row.is-current .rank-name { color: var(--ink); }
.rank-bar { height: 12px; border-radius: 6px; background: #f0f0f3; overflow: hidden; }
.rank-bar > span { display: block; height: 100%; border-radius: 6px; background: #c4c4cc; }
.rank-row.is-current .rank-bar > span { background: var(--accent); }
.rank-row strong { text-align: right; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.links:not(.ranking) { margin-top: 28px; }
.links:not(.ranking) h2 { font-size: 22px; font-weight: 700; }
.links:not(.ranking) .link-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.links:not(.ranking) .variant-link {
  flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px;
  padding: 20px 22px; border-radius: 20px; font-size: 14px; color: #737373;
}
.links:not(.ranking) .variant-link strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

@media (max-width: 640px) {
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-tag { font-size: 11px; padding: 4px 8px; }
  .cv-card h1 { font-size: 26px; line-height: 1.18; }

  .dist, .ranking { padding: 18px 16px; border-radius: 22px; gap: 16px; margin-top: 16px; }
  .dist h2, .ranking h2 { font-size: 22px; line-height: 1.2; }
  .dist-copy p, .ranking-copy p { font-size: 14px; }
  .dist-price strong { font-size: 34px; }
  .dist-chart { flex-basis: 100%; padding-top: 30px; }
  .dist-bars { height: 140px; gap: 3px; }
  .dist-median { top: 30px; height: 140px; }
  .dist-median > span { top: -26px; font-size: 11px; padding: 3px 8px; }
  .dist-axis { font-size: 11px; }

  .rank-list { flex-basis: 100%; gap: 2px; }
  .rank-row {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nombre precio" "barra barra";
    gap: 6px 8px; padding: 8px 10px; font-size: 14px;
  }
  .rank-name { grid-area: nombre; white-space: normal; }
  .rank-row strong { grid-area: precio; font-size: 14px; }
  .rank-bar { grid-area: barra; height: 8px; }

  .links:not(.ranking) .link-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .links:not(.ranking) .variant-link {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-radius: 16px; font-size: 15px; color: var(--ink);
  }
  .links:not(.ranking) .variant-link strong { font-size: 20px; }
}


.cv-card {
  position: relative;
  color: #171717;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
.cv-card *,
.cv-card *::before,
.cv-card *::after { box-sizing: border-box; }

.cv-radio {
  position: sticky; top: 50vh;
  display: block;
  width: 1px; height: 0;
  margin: 0; padding: 0; border: 0;
  opacity: 0;
  pointer-events: none;
}

.cv-body { display: flex; flex-direction: column; gap: 24px; }
.cv-summary, .cv-right {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.cv-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 32px;
}
.cv-summary-text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cv-frame {
  flex: 0 1 300px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-radius: 20px;
  background: #f5f5f7;
}
.cv-frame img { max-height: 100%; max-width: 100%; object-fit: contain; }
.cv-no-photo { font-size: 10px; color: #a3a3a3; }

.cv-name {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  color: #171717;
  letter-spacing: -0.02em;
}

.cv-price { display: none; flex-wrap: wrap; align-items: flex-end; gap: 6px 20px; }
.cv-price strong {
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1a5fe0;
  font-variant-numeric: tabular-nums;
}
.cv-price > span { padding-bottom: 8px; font-size: 15px; line-height: 1.45; color: #525252; }
.cv-price b { color: #171717; white-space: nowrap; }
.cv-per-gb { font-weight: 600; color: #404040; }

.cv-selector { display: flex; flex-direction: column; gap: 10px; }
.cv-selector-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #525252;
}

.cv-selected,
.cv-selected-m { display: none !important; }

.cv-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  background: #fff;
  color: #171717;
  border: 1px solid rgba(0, 0, 0, 0.14);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cv-option:hover { background: #f5f5f5; }

a.cv-option { text-decoration: none; }
.cv-count {
  font-size: 10px;
  padding: 0 6px;
  border-radius: 9999px;
  background: #f5f5f5;
  color: #525252;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cv-notice {
  display: none;
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 11.5px;
  line-height: 1.45;
}

.cv-right { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px 32px; }
.cv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cv-title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; color: #171717; }
.cv-metrics { display: none; margin: 4px 0 0; font-size: 14px; color: #737373; }
.cv-showing { font-size: 12px; line-height: 16px; font-weight: 500; color: #a3a3a3; }
.cv-showing strong { color: #262626; }
.cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eaf1ff;
  color: #0f47b8;
  border: 1px solid #c9daff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.cv-chip-icon { width: 14px; height: 14px; color: #1a5fe0; display: inline-flex; }
.cv-per-gb { background: #fff; color: #404040; border-color: #e5e5e5; }
.cv-chip-icon svg, .cv-cal svg { width: 100%; height: 100%; }

.cv-periods {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: #f0f0f3;
  padding: 4px;
  border-radius: 12px;
}
.cv-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #525252;
  transition: background 0.15s, color 0.15s;
}
.cv-period:hover { color: #262626; }

.cv-canvas {
  display: none;
  position: relative;
  width: 100%;
  overflow-x: auto;
  min-height: 260px;
  align-items: center;
  justify-content: center;
}

.cv-canvas svg {
  width: 100%; height: auto; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; -webkit-touch-callout: none;
}

.cv-legend {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #a3a3a3;
  gap: 8px;
}
.cv-keys { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cv-key { display: flex; align-items: center; gap: 4px; }
.cv-swatch { width: 8px; height: 8px; border-radius: 9999px; }
.cv-swatch-market { background: rgba(31, 107, 255, 0.7); }
.cv-swatch-high { background: rgba(168, 85, 247, 0.7); }

.cv-swatch-out {
  border-radius: 0; background: none;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 6px solid #a855f7; width: 0; height: 0;
}
.cv-bar { width: 16px; height: 4px; border-radius: 9999px; background: #1a5fe0; }
.cv-strong { font-weight: 600; color: #0f47b8; }
.cv-hint { font-style: italic; font-size: 10px; }

.cv-embed { position: relative; margin-left: auto; }
.cv-embed-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #737373;
  border: 1px solid #e5e5e5;
  background: #fff;
  list-style: none;
  transition: color 0.15s, border-color 0.15s;
}

.cv-embed-button::-webkit-details-marker { display: none; }
.cv-embed-button::marker { content: ""; }
.cv-embed-button:hover { color: #171717; border-color: #d4d4d4; }
.cv-embed-icon { display: inline-flex; width: 13px; height: 13px; }
.cv-embed-icon svg { width: 100%; height: 100%; }
.cv-embed[open] .cv-embed-button { color: #171717; border-color: #d4d4d4; }

.cv-embed-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: min(460px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 14px;
  text-align: left;
  font-style: normal;
}
.cv-embed-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #171717; padding-right: 20px; }

.cv-embed-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: #a3a3a3;
  font: 400 18px/1 inherit;
}
.cv-embed-close:hover { background: #f5f5f5; color: #171717; }
.cv-embed-formats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.cv-embed-option {
  padding: 3px 9px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #525252;
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cv-embed-option:hover { color: #171717; border-color: #d4d4d4; }

.cv-box { display: none; }
.cv-code {
  display: none;
  width: 100%;
  resize: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #262626;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 9px;
}
.cv-code:focus { outline: 2px solid #1f6bff; outline-offset: -1px; }

.cv-copy {
  display: none;
  margin-top: 7px;
  padding: 4px 11px;
  border-radius: 7px;
  cursor: pointer;
  font: 600 11px inherit;
  color: #fff;
  background: #1a5fe0;
  border: 0;
}
.cv-copy:hover { background: #0f47b8; }
.cv-embed-footer { margin: 9px 0 0; font-size: 10px; line-height: 1.4; color: #a3a3a3; }

.cv-guide { stroke: #1f6bff; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.cv-canvas.cv-pointing .cv-guide { opacity: 1; }
.cv-cursor {
  position: absolute;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  background: rgba(23, 23, 23, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: opacity 0.12s ease;
}
.cv-cursor.cv-below { transform: translate(-50%, 14px); }
.cv-canvas.cv-pointing .cv-cursor { opacity: 1; }

@media (max-width: 1023px) {

  .cv-canvas svg { min-width: 560px; }
}

@media (max-width: 640px) {

  .cv-body { gap: 16px; }
  .cv-summary {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
  }
  .cv-frame { width: 96px; height: 96px; padding: 8px; border-radius: 16px; }
  .cv-summary-text { display: contents; }
  .cv-summary-text > * { grid-column: 1 / -1; }
  .cv-summary-text > :first-child { grid-column: 2; }
  .cv-name { font-size: 22px; }
  .cv-price { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cv-price strong { font-size: 56px; }
  .cv-price > span { padding: 0; font-size: 14px; }
  .cv-grid { gap: 6px; }
  .cv-option { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 13px; }

  .cv-right { padding: 18px 16px; border-radius: 22px; gap: 12px; }
  .cv-title { font-size: 19px; }
  .cv-metrics { font-size: 13px; }
  .cv-head { flex-direction: column; align-items: stretch; }
  .cv-periods { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .cv-period { padding: 0 4px; }

  .cv-canvas { overflow: hidden; min-height: 0; justify-content: flex-start; }
  .cv-canvas svg { min-width: 0; width: 118%; max-width: none; flex: 0 0 auto; }
  .cv-canvas .cv-axis-y { font-size: 15px; }
  .cv-canvas .cv-axis-x { font-size: 16px; }
  .cv-canvas .cv-date-extra { display: none; }
  .cv-canvas .cv-plate, .cv-canvas .cv-plate-text { display: none; }
}

.cv-hint-touch { display: none; }
@media (hover: none) {
  .cv-hint-mouse { display: none; }
  .cv-hint-touch { display: inline; }
}

.cv-no-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: .5rem;
  min-height: 180px;
  padding: 1.5rem;
  color: #737373;
  font-size: .8125rem;
}
.cv-no-data p { margin: 0; }
.cv-no-data-footer { font-size: .75rem; color: #a3a3a3; max-width: 34ch; }

.cv-empty-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  background: #171717;
  color: #fff;
  font-size: .6875rem;
  line-height: 1.2;
  padding: .35rem .5rem;
  border-radius: 6px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.cv-option { position: relative; }

@keyframes cv-stroke {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes cv-peek {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cv-sprout {
  from { opacity: 0; scale: 0.6; }
  to   { opacity: 1; scale: 1; }
}

.cv-canvas .cv-line {
  stroke-dasharray: 1;
  animation: cv-stroke 900ms var(--smooth, cubic-bezier(0.2, 0.8, 0.3, 1)) both;
}

.cv-canvas .cv-point {
  transform-box: fill-box;
  transform-origin: center;
  animation: cv-sprout 260ms var(--smooth, cubic-bezier(0.2, 0.8, 0.3, 1)) both;

  animation-delay: calc(120ms + var(--o, 0) * 760ms);
}

.cv-canvas .cv-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: cv-sprout 320ms var(--bounce, cubic-bezier(0.34, 1.56, 0.64, 1)) 500ms both;
}

.cv-canvas .cv-plate,
.cv-canvas .cv-plate-text { animation: cv-peek 260ms linear 880ms both; }

@media (prefers-reduced-motion: reduce) {
  .cv-card *, .cv-card *::before, .cv-card *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

.cv-gridlines { stroke: #000000; stroke-opacity: 0.05; stroke-dasharray: 2 2; }
.cv-day-sep { stroke: #000000; stroke-opacity: 0.06; stroke-dasharray: 3 3; }
.cv-axis-y {
  font-size: 10px; fill: #a3a3a3; text-anchor: end;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.cv-axis-x { font-size: 10px; fill: #737373; font-weight: 600; text-anchor: middle; }
.cv-line {
  fill: none; stroke: #1a5fe0; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.cv-node { fill: #1a5fe0; stroke: #ffffff; stroke-width: 2; cursor: pointer; }

.cv-point { fill: #1f6bff; fill-opacity: 0.65; stroke: #ffffff; stroke-width: 1; cursor: pointer; }
.cv-high { fill: #a855f7; }
.cv-point.cv-active { r: 6; fill-opacity: 1; stroke-width: 2.5; }
.cv-node.cv-active { r: 7; stroke-width: 2.5; }
.cv-plate { fill: #1a5fe0; }

.cv-plate-text {
  fill: #ffffff; font-size: 12px; font-weight: 700; text-anchor: middle;
  letter-spacing: 0.04em;
}
