/* Kredi+ 7.0.2 · compact layouts, iPhone safe areas and touch controls. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.menu-open,html.menu-open body,html.dialog-open,html.dialog-open body{overflow:hidden}

@media screen and (max-width:1020px){
  :root{--mobile-gutter:32px;--safe-gutter:max(var(--mobile-gutter),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));--safe-header-height:calc(var(--header-height) + env(safe-area-inset-top,0px))}
  html{scroll-padding-top:calc(var(--safe-header-height) + 20px)}
  .container{width:calc(100% - 2 * var(--safe-gutter));min-width:0}
  .site-header{padding-top:env(safe-area-inset-top,0px)}
  .nav-wrap{min-width:0}
  .menu-button,.nav-cta{flex-shrink:0;min-height:44px}
  .menu-button{width:44px;height:44px}
  .menu-button span{left:11px}
  .mobile-nav{
    padding:12px var(--safe-gutter) calc(20px + env(safe-area-inset-bottom,0px));
    max-height:calc(100vh - var(--safe-header-height));
    max-height:var(--menu-available-height,calc(100dvh - var(--safe-header-height)));
    overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  }
  .mobile-nav>a{min-height:48px;overflow-wrap:anywhere}
  html.menu-open .help-fab{visibility:hidden}
  .career-subnav{top:var(--safe-header-height)}
  .help-topic:target{scroll-margin-top:calc(var(--safe-header-height) + 20px)}
  .help-fab{right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .footer{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
  .legal-page{padding-left:var(--safe-gutter);padding-right:var(--safe-gutter);padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}

  /* Let the grid shrink before its text or a native select widens the page. */
  .hero-split,.feature-grid,.merchant-grid,.download-grid,.faq-grid,
  .walkthrough-grid,.split-feature,.directory-hero-grid,.merchant-hero-grid,
  .requirements-grid,.channel-grid,.home-pages-grid,.impact-goals{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .container>*,.hero-split>*,.feature-copy>*,.store-card-copy,.job-card>*,
  .plain-card,.channel-panel,.help-topic,.process-card,.footer-grid>*,
  .four-values>*,.impact-metrics>*,.partner-item{min-width:0}
  h1,h2,h3,.btn,.text-link,.job-meta,.partner-item,.metric-card,.footer a,.footer button{overflow-wrap:anywhere}
  .btn{max-width:100%;white-space:normal}
  .button-row>*{min-width:0;max-width:100%}
  .filter-bar{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr)}
  .subpage .search-field input,.subpage .select-field select,.subpage .channel-panel select{
    font-size:16px;min-width:0;max-width:100%;min-height:44px;
  }
  .subpage .search-field input{-webkit-appearance:none;appearance:none;border-radius:0;line-height:1.5;flex:1;padding:13px 0}
  .select-field{overflow:hidden}
  .select-field select{display:block}
  .filter-chips button,.audience-switch button{min-height:44px}
  .results-toolbar{flex-wrap:wrap;gap:8px 16px}
  .results-toolbar .text-link{min-height:44px;white-space:normal;text-align:left}
  .social-links{flex-wrap:wrap;gap:12px 20px}
  .download-button>span,.merchant-signature>span,.requirements-list span{min-width:0;overflow-wrap:anywhere}

  /* Content can grow with narrow widths and the user's text settings. */
  .hero-slides,.hero-slide{height:auto}
  .hero-centered,.hero-split{height:auto;min-height:590px}
  .hero-app-image{width:100%;max-width:100%;height:auto;margin:0}
  .hero-split-copy{min-width:0}
  .photo-copy,.careers-hero>.container{min-width:0}

  .info-dialog{
    width:calc(100% - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
    max-height:calc(100vh - 28px);
    max-height:calc(100dvh - 28px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  }
}

@media screen and (max-width:760px){
  :root{--mobile-gutter:22px}
  .hero-split,.merchant-grid,.download-grid,.faq-grid,.walkthrough-grid,
  .split-feature,.directory-hero-grid,.merchant-hero-grid,.requirements-grid,
  .channel-grid,.impact-goals{grid-template-columns:minmax(0,1fr)}
  .hero-app-image{width:min(100%,340px);margin:8px auto 0}
  .hero-split{padding-bottom:82px}
  .hero-controls .icon-button,.slide-dot{width:44px;height:44px}
  .slide-dot{padding:18px 7px}
  .slide-picker,.slide-actions{gap:0}
  .hero-scroll{min-height:44px}
  .filter-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .directory-hero-art{width:min(100%,400px)}
  .category-arrow{width:44px;height:44px}
  .category-arrow.previous{left:-16px}.category-arrow.next{right:-16px}
  .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer-grid>div:not(.footer-brand) a,.footer-grid>div:not(.footer-brand) button{min-height:40px;margin:4px 0;padding:9px 0}
  .info-dialog{padding:0 22px 26px}
  .dialog-topbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -22px 22px;padding:12px 14px 12px 22px;background:#fff;border-bottom:1px solid var(--line)}
  .dialog-topbar .dialog-brand img{width:120px;margin:0}
  .dialog-topbar .dialog-close{position:static;width:44px;height:44px;flex-shrink:0}
  .dialog-actions{flex-direction:column}
  .dialog-actions .btn{width:100%;min-height:48px}
  .info-dialog h2,.info-dialog p,.location-list,.job-detail-section{overflow-wrap:anywhere}
  .location-list a{min-height:44px;padding:10px 0}
}

@media screen and (max-width:520px){
  :root{--mobile-gutter:20px}
  .announcement{padding-left:var(--safe-gutter);padding-right:var(--safe-gutter)}
  .nav-cta{font-size:12px}
  .hero-centered{padding:40px 0 128px}
  .hero-split{padding:34px 0 128px;gap:12px}
  .hero-app-image{width:min(100%,310px);max-width:100%;margin:0 auto}
  .hero h1,.hero h2{font-size:clamp(40px,10.7vw,52px)}
  .hero-split h2{font-size:clamp(32px,9.2vw,39px)}
  .hero-controls{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;bottom:12px}
  .hero-controls .slide-picker{grid-column:1;grid-row:1;justify-self:start}
  .hero-controls .slide-actions{grid-column:2;grid-row:1}
  .hero-controls .hero-scroll{grid-column:1/-1;grid-row:2;justify-self:center;font-size:11px;gap:6px}
  .hero-controls .icon-button{width:44px;height:44px}
  .hero-controls .icon-button>.icon{width:20px;height:20px}
  .slide-dot{width:44px;height:44px}
  .hero .btn{min-height:48px}
  .feature-grid,.home-pages-grid{grid-template-columns:minmax(0,1fr)}
  .benefit-grid,.steps-grid{grid-template-columns:minmax(0,1fr)}
  .benefit{grid-template-columns:53px minmax(0,1fr)}
  .step{grid-template-columns:46px minmax(0,1fr)}
  .user-benefit{grid-template-columns:54px minmax(0,1fr)}
  .process-card{grid-template-columns:36px minmax(0,1fr)}
  .feature-media{height:auto;min-height:290px;aspect-ratio:1.12}
  .media-presentation{min-height:0;aspect-ratio:1.3}
  .media-presentation>img{width:100%;max-width:100%}
  .merchant-panel,.js .merchant-panel.reveal.is-visible{transform:none}
  .merchant-signature{flex-wrap:wrap;gap:12px}
  .download-copy h2{font-size:clamp(42px,11.5vw,53px)}
  .directory-hero-art{width:min(100%,335px);height:auto;aspect-ratio:335 / 233}
  .filter-bar{grid-template-columns:minmax(0,1fr)}
  .filter-bar .search-field{grid-column:auto}
  .select-field{padding:8px 15px;min-height:67px}
  .select-field>span{font-size:12px}
  .filter-chips{gap:8px}
  .filter-chips button{font-size:12px;padding:10px 14px}
  .store-card{grid-template-columns:86px minmax(0,1fr)}
  .store-logo{padding:16px}
  .store-card .text-link{min-height:44px;max-width:100%;text-align:left}
  .button-row{flex-direction:column;align-items:stretch}
  .button-row>.btn{width:100%;min-height:48px;min-width:0}
  .channel-panel>.btn,.channel-panel>.text-link{width:100%;min-height:48px;min-width:0}
  .channel-panel>.text-link{align-items:center}
  .careers-hero .button-row{max-width:340px;margin-left:auto;margin-right:auto}
  .careers-hero .button-row .btn{min-width:0}
  .four-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px}
  .four-values h3{font-size:18px}
  .partner-item{width:100%;flex-wrap:wrap;justify-content:center;text-align:center}
  .metric-card strong{font-size:clamp(28px,8vw,35px)}
  .career-subnav a{display:flex;align-items:center;min-height:44px}
  .job-card .btn{width:100%;min-height:48px}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-bottom{padding-right:52px;padding-bottom:30px}
  .dialog-note{padding:14px;font-size:13px}
}

@media screen and (max-width:360px){
  :root{--mobile-gutter:16px}
  .brand,.brand img{flex-basis:117px;width:117px}
  .nav-wrap{gap:6px}
  .nav-cta{font-size:11px}
  .four-values{grid-template-columns:minmax(0,1fr);max-width:280px;margin-left:auto;margin-right:auto}
  .four-values h3{font-size:21px}
  .store-card-copy{padding:18px 16px}
  .channel-panel{padding:25px 20px}
  .category-tile>span:last-child{padding-left:10px;padding-right:10px;font-size:12px}
  .empty-state{padding:30px 18px}
}

@media screen and (max-width:1020px) and (max-height:540px) and (orientation:landscape){
  .hero-centered,.hero-split{min-height:440px}
  .photo-hero,.careers-hero{min-height:420px}
  .careers-hero>.container{padding-top:44px;padding-bottom:52px}
}

@media (hover:none){
  a,button,summary{touch-action:manipulation}
  .btn:hover,.download-button:hover,.category-card:hover,.category-tile:hover,
  .home-page-card:hover,a.plain-card:hover,.help-fab:hover{transform:none}
}

/* Screenshot fixes: readable word spacing and product art with its own row. */
@media screen and (max-width:1020px){
  h1,h2,h3{letter-spacing:-.025em;word-spacing:normal;line-height:1.2}
  .section-heading h2,.photo-copy h1,.merchant-hero h1,.impact-hero h1,
  .help-hero h1,.careers-hero h1,.hero h1,.hero h2,.hero-split h2,
  .feature-copy h2,.merchant-copy h2,.download-copy h2,.faq-heading h2,
  .walkthrough-copy h2,.split-feature h2,.channel-grid h2,.requirements-grid h2{
    letter-spacing:-.025em;word-spacing:normal;line-height:1.2;
  }
  .category-card{display:flex;flex-direction:column;justify-content:flex-start;height:auto;min-height:0}
  .category-card>.product-art{position:relative;left:auto;top:auto;width:100%;max-width:100%;flex:0 0 auto;aspect-ratio:1;margin:0;transform:none}
  .category-label{display:flex;flex-direction:column;justify-content:space-between;flex:1;min-height:104px;padding:16px 18px 22px;background:inherit}
  .category-label strong{font-size:clamp(18px,4.6vw,21px);line-height:1.25;letter-spacing:-.015em;overflow-wrap:normal;word-break:normal}
  .category-label>span{margin-top:12px;min-height:24px;font-size:13px}
  .category-arrow{top:50%;transform:translateY(-50%)}
  .category-arrow:hover:not(:disabled){transform:translateY(-50%)}
}
@media screen and (max-width:520px){
  .photo-copy h1{font-size:clamp(34px,9.6vw,42px);line-height:1.18}
  .section-heading h2{font-size:clamp(28px,7.8vw,34px);line-height:1.22}
  .split-feature h2{font-size:clamp(30px,8.7vw,37px);line-height:1.2}
  .user-benefit h3{font-size:clamp(19px,5.2vw,22px);line-height:1.3}
  .category-card{flex-basis:76%;min-width:0;max-width:310px}
  .category-card>.product-art{position:relative;left:auto;top:auto;width:100%;max-width:100%;margin:0}
  .category-label{padding:14px 17px 20px;min-height:105px}
  .hero h1,.hero h2,.hero-split h2,.feature-copy h2,.merchant-copy h2{letter-spacing:-.025em;line-height:1.2}
  .section-footnote,.category-foot>span{line-height:1.7}
}
