.app-link-short { display: none; }

.circle-link svg { display: block; width: 21px; height: 21px; }
.button svg { display: inline-block; width: 16px; height: 16px; vertical-align: -.15em; }
.story-hero h1.story-brand-evolution {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.2vw, 16px);
  white-space: nowrap;
  font-size: clamp(41px, 5.5vw, 76px);
}
.story-brand-evolution > span { flex: none; }
.story-brand-arrow { display: block; flex: none; width: clamp(27px, 3.8vw, 48px); height: auto; }
.story-hero .story-brand-evolution .story-myfrank-logo { display: block; flex: none; width: clamp(160px, 20vw, 250px); margin: 0; }

@media (max-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 12px;
    height: auto;
    min-height: 68px;
    padding: 12px 20px;
  }
  .nav .rank-brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .nav-actions { grid-column: 2; grid-row: 1; justify-self: end; min-width: 0; }
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #e3e8f3;
  }
  .nav-links a:first-child { display: inline; }
  .hero { padding-top: 48px; }
}

@media (max-width: 640px) {
  .nav { padding: 10px 12px; column-gap: 8px; row-gap: 9px; }
  .nav-links { gap: clamp(12px, 5vw, 24px); padding-top: 10px; }
  .nav-links a { font-size: 12px; }
  .nav .rank-brand { flex: none; }
  .app-link { max-width: 94px; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 44px); line-height: 1.12; }
  .rank-hero-art { min-height: 160px; }
  .boutique-hero h1 { font-size: clamp(39px, 10vw, 52px); }
  .story-hero h1.story-brand-evolution {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    box-sizing: border-box;
    width: 100%;
    margin: 22px 0 28px;
    padding: 16px 14px;
    border: 1px solid #e2e9f8;
    border-radius: 17px;
    background: #f7f9ff;
    font-size: clamp(20px, 6.4vw, 27px);
    line-height: 1.1;
    letter-spacing: -.06em;
  }
  .story-brand-evolution .story-brand-arrow { width: clamp(12px, 4vw, 17px); height: auto; color: var(--blue); transform: none; margin: 0; }
  .story-hero .story-brand-evolution .story-myfrank-logo { width: clamp(80px, 25vw, 105px); max-width: none; margin: 0; }
  .story-hero { padding-top: 38px; }
  .config-heading h1 { font-size: clamp(34px, 9vw, 48px); line-height: 1.12; }
  .config-steps { gap: 4px; }
  .config-steps span { padding: 10px 3px; font-size: clamp(10px, 2.7vw, 12px); line-height: 1.25; }
  .config-panel { padding: clamp(16px, 4vw, 24px); }
  .design-preview { padding: 14px; }
  #rank-card-previews { gap: 10px; }
  .brand-picker-option strong { font-size: 12px; }
  .tier-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-options button { min-width: 0; padding: 9px 4px; }
  .config-actions .button { flex: 1; min-width: 0; gap: 6px; padding: 12px 8px; font-size: 12px; }
  .boutique-order .button { width: 100%; }
  .boutique-plaque span { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
  .brand-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; }
  .brand-picker-option { padding: 8px; }
  .brand-picker-option canvas, .brand-picker-custom { width: min(100%, 112px); }
  .brand-picker-custom { font-size: 15px; }
}

@media (max-width: 360px) {
  .nav { padding-inline: 11px; }
  .nav .rank-brand { display: grid; grid-template-columns: 68px; gap: 0; align-items: start; }
  .nav .rank-brand img { width: 68px; height: 32px; }
  .nav .rank-brand span { font-size: 8px; margin-top: 1px; }
  .app-link-wide { display: none; }
  .app-link-short { display: inline; }
  .app-link { max-width: none; font-size: 11px; white-space: nowrap; }
  .nav-actions { gap: 4px; }
  .cart-link { padding: 8px; }
}

@media (max-width: 640px) {
  .hero { display: block; padding: 30px 0 0; }
  .hero-copy h1 { font-size: clamp(36px, 9.5vw, 44px); margin: 16px 0; }
  .hero-copy > p { margin-bottom: 0; }
  .hero-actions, .rank-hero-art { display: none; }
  .products { padding-block: 24px 65px; }
  .products .section-heading { margin-bottom: 18px; }
  .products .section-heading .eyebrow { display: none; }
  .products .section-heading h2 { font-size: 29px; margin: 0; }
  .products .section-heading > p { margin: 5px 0 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { border-radius: 14px; }
  .product-visual { height: clamp(130px, 41vw, 190px); }
  .product-info { display: block; padding: 12px; }
  .product-kicker { font-size: 10px; }
  .product-info h3 { min-height: 36px; margin: 5px 0 9px; font-size: 15px; line-height: 1.2; letter-spacing: -.02em; }
  .product-info p { display: none; }
  .product-action { flex-direction: row; align-items: center; gap: 4px; white-space: normal; }
  .product-action strong { font-size: 14px; white-space: nowrap; }
  .product-action strong small { font-size: 9px; }
  .circle-link { width: 28px; height: 28px; flex: none; }
  .circle-link svg { width: 14px; height: 14px; }
}
