/* Localized pages (/de, /es, /pt, /en-in). Loaded after styles.css and pages.css. */

/* longer headlines than English: scale the display type down a step */
.loc .loc-hero .display { font-size: clamp(38px, 6.6vw, 104px); overflow-wrap: anywhere; }
.loc .loc-hero { min-height: 0; padding-bottom: 90px; }
.loc .loc-page-hero .display { font-size: clamp(38px, 7.4vw, 112px); }
.loc .display-md { font-size: clamp(34px, 5vw, 78px); overflow-wrap: anywhere; }
.loc .cta .display { font-size: clamp(36px, 6vw, 100px); overflow-wrap: anywhere; }
.loc .card h3 { font-size: clamp(22px, 2vw, 30px); overflow-wrap: anywhere; }
.loc .card p { overflow-wrap: break-word; }
.loc .store-btn small { white-space: nowrap; }

/* bento tuning for the compact home */
.loc-features { padding-top: clamp(72px, 9vw, 130px); }
.loc .card { min-height: 300px; }
.c-cal { background: var(--white); color: var(--primary); box-shadow: inset 0 0 0 1px var(--line); }
.c-cal .tag { background: var(--accent-soft); }
.weekdots { display: flex; gap: 8px; margin: 4px 0; }
.weekdots i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); position: relative; flex: none; transform: scale(0.4); opacity: 0; transition: transform 0.5s var(--spring), opacity 0.4s; transition-delay: calc(var(--k, 0) * 70ms + 300ms); }
.weekdots i::after { content: ""; position: absolute; left: 9px; top: 6px; width: 7px; height: 12px; border: solid var(--primary); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.weekdots i.gap { background: transparent; box-shadow: inset 0 0 0 3px var(--line); }
.weekdots i.gap::after { display: none; }
.weekdots i:nth-child(2) { --k: 1; } .weekdots i:nth-child(3) { --k: 2; } .weekdots i:nth-child(4) { --k: 3; }
.weekdots i:nth-child(5) { --k: 4; } .weekdots i:nth-child(6) { --k: 5; } .weekdots i:nth-child(7) { --k: 6; }
.c-cal.in .weekdots i { transform: none; opacity: 1; }

.c-ask.span-2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
.c-ask .wave { height: 120px; justify-content: center; }
.c-ask .wave i { max-width: 10px; }
.c-report { min-height: 340px; }

.reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reasons .card { min-height: 280px; }
.c-remind h3, .c-remind p { color: var(--gold); }

/* faq teaser + faq page */
.faq-more { max-width: 1240px; margin: 28px auto 0; padding: 0 var(--gutter); }
.loc details p { padding-bottom: 26px; }
.loc details p a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--primary-light); text-underline-offset: 3px; }
.loc details p a:hover { text-decoration-thickness: 2px; }
.loc summary { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.05; padding: 14px 0; }
.loc-faq { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 8vw, 110px); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.loc-faq .faq-list { margin: 0; padding: 0; max-width: none; }
.cat-h { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 78; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; font-size: clamp(28px, 3.4vw, 48px); color: var(--primary); margin-bottom: 16px; overflow-wrap: anywhere; }
.loc-page-hero .lede a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cta-guides { color: var(--primary); max-width: 40em; }
.cta-guides a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* medisafe comparison table */
.cmp { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.cmp-wrap { background: var(--white); border-radius: 32px; overflow-x: auto; box-shadow: inset 0 0 0 1px var(--line); -webkit-overflow-scrolling: touch; }
.cmp-wrap:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 720px; font-size: 16.5px; line-height: 1.45; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table thead th { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; font-size: 18px; color: var(--primary); background: var(--paper); }
.cmp-table tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.cmp-table td { color: var(--ink-2); }
.cmp-table .hl-col { background: var(--accent); color: var(--primary); }
.cmp-table thead .hl-col { background: var(--primary); color: var(--accent); }
.cmp-table tbody tr { transition: background 0.2s; }
.cmp-table tbody tr:hover > th, .cmp-table tbody tr:hover > td:not(.hl-col) { background: var(--accent-soft); }
.cmp-table .ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--accent); font-size: 13px; font-weight: 800; margin-right: 6px; vertical-align: 1px; }
.loc-reasons { padding-top: clamp(72px, 9vw, 130px); }

/* footer language switcher */
.foot-lang a[aria-current="true"] { color: var(--primary); font-weight: 800; }
.foot-lang a[aria-current="true"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--primary-light); }
.foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.1fr); }

@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .reasons { grid-template-columns: 1fr; }
  .c-ask.span-2 { grid-template-columns: 1fr; }
  .cmp-wrap { border-radius: 24px; }
  .cmp-table th, .cmp-table td { padding: 16px 18px; }
  .loc .loc-hero { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .weekdots i { transform: none !important; opacity: 1 !important; }
}
