/* PetaniRapi v2.25 - logo consistency, adaptive splash, higher-contrast cards */
:root{
  --brand-green-900:#143d2a;
  --brand-green-800:#155235;
  --brand-green-700:#166a40;
  --brand-green-600:#1d7b4d;
  --brand-lime:#8ccf65;
  --brand-gold:#f2a529;
  --brand-cyan:#2f8fdb;
  --brand-teal:#1f9e86;
  --brand-violet:#7867dd;
  --brand-orange:#dd8f1f;
}
/* universal logo handling on light surfaces */
.landing-wordmark-v224,
.auth-wordmark-v224,
.admin-brand img,
.login-card > img,
.auth-brand-row img,
.topbar-brandline img{display:block;max-width:100%;height:auto;object-fit:contain}
.landing-wordmark-v224,
.auth-wordmark-v224,
.admin-brand img,
.login-card > img,
.auth-brand-row img{filter:none}
/* dark-surface logo polish */
.logo-horizontal.hero-logo,
.logo-horizontal.auth-logo,
.splash-logo-dark{filter:drop-shadow(0 4px 14px rgba(0,0,0,.24))}

/* adaptive splash */
.app-splash{background:linear-gradient(180deg,#f7faf8 0%,#edf3ef 100%)!important}
.app-splash-card{display:grid;place-items:center;gap:14px;padding:26px 20px;text-align:center;width:min(88vw,380px)}
.app-splash-brand{display:grid;place-items:center;gap:14px;width:100%}
.app-splash-brand img{display:block;width:min(240px,72vw)!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center center!important;border-radius:0!important;box-shadow:none!important}
.splash-logo-dark{display:none}
.app-splash-badge{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;background:#ffffff;border:1px solid #deebe4;color:#21563c;font-size:12px;font-weight:800;box-shadow:0 10px 24px rgba(17,45,30,.06)}
.app-splash-badge:before{content:"";width:9px;height:9px;border-radius:50%;background:linear-gradient(180deg,#2ec273,#16764a)}
.app-splash-copy{font-size:13px;line-height:1.5;color:#567167;max-width:28ch}
@media (prefers-color-scheme:dark){
  .app-splash{background:linear-gradient(180deg,#0f231a 0%,#142c21 100%)!important}
  .splash-logo-light{display:none!important}
  .splash-logo-dark{display:block!important}
  .app-splash-badge{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.08);color:#ecf8f0}
  .app-splash-copy{color:#c7dad0}
}

/* logos on specific bright sections */
.guest-landing .landing-brand-v214 .landing-wordmark-v224,
.auth-screen-v215 .auth-brand-row .auth-wordmark-v224,
.login-card > img,
.admin-brand img{content-visibility:auto}

/* stronger icon contrast for cards */
.home-action-card-v218{overflow:hidden;position:relative}
.home-action-card-v218 .home-action-icon-v218{width:50px;height:50px;border-radius:18px;border:none!important;box-shadow:0 12px 20px rgba(13,34,24,.12)!important;color:#fff!important}
.home-action-card-v218 .home-action-icon-v218 .app-icon,
.home-action-card-v218 .home-action-icon-v218 .app-icon svg{width:22px;height:22px;color:#fff!important;stroke:currentColor}
.home-action-card-v218.harvest .home-action-icon-v218{background:linear-gradient(180deg,#29bf70 0%,#177c49 100%)!important}
.home-action-card-v218.upkeep .home-action-icon-v218{background:linear-gradient(180deg,#27b3a1 0%,#127e70 100%)!important}
.home-action-card-v218.fertilizer .home-action-icon-v218{background:linear-gradient(180deg,#8b77eb 0%,#5a49c5 100%)!important}
.home-action-card-v218.sale .home-action-icon-v218{background:linear-gradient(180deg,#f1a53d 0%,#cf7814 100%)!important}
.home-action-copy-v218 strong{color:#17372a}
.home-action-copy-v218 small{color:#5d736a}
.home-action-card-v218:after{content:"";position:absolute;right:-26px;top:-26px;width:88px;height:88px;border-radius:50%;background:radial-gradient(circle,rgba(18,55,38,.03) 0%,rgba(18,55,38,0) 70%)}

/* more colorful supportive icon treatments */
.landing-proof-row-v214 .usp-mark,
.auth-mini-badges-v215 .usp-mark,
.landing-outcome-v214 span,
.onboarding-icon,
.weather-icon-badge,
.dashboard-weather-head h3 span[aria-hidden="true"]{color:#fff;border:none!important;box-shadow:0 10px 18px rgba(18,43,31,.12)!important}
.landing-proof-row-v214>span:nth-child(1) .usp-mark,
.auth-mini-badges-v215 span:nth-child(1) .usp-mark,
.landing-outcome-grid-v214 .landing-outcome-v214:nth-child(1) span{background:linear-gradient(180deg,#28be72 0%,#177b4a 100%)}
.landing-proof-row-v214>span:nth-child(2) .usp-mark,
.auth-mini-badges-v215 span:nth-child(2) .usp-mark,
.landing-outcome-grid-v214 .landing-outcome-v214:nth-child(2) span{background:linear-gradient(180deg,#2fa0de 0%,#2c7fc3 100%)}
.landing-proof-row-v214>span:nth-child(3) .usp-mark,
.landing-outcome-grid-v214 .landing-outcome-v214:nth-child(3) span{background:linear-gradient(180deg,#f1ab3c 0%,#d28217 100%)}
.landing-outcome-grid-v214 .landing-outcome-v214:nth-child(4) span{background:linear-gradient(180deg,#8c79ea 0%,#6651d2 100%)}
.auth-brand-compact-v215 .auth-mini-badges-v215 .usp-mark{background:rgba(255,255,255,.14)!important;box-shadow:none!important;color:#fff;border:1px solid rgba(255,255,255,.16)!important}
.auth-brand-compact-v215 .auth-mini-badges-v215 .usp-mark .app-icon,
.auth-brand-compact-v215 .auth-mini-badges-v215 .usp-mark .app-icon svg{color:#fff!important}
.weather-icon-badge{background:linear-gradient(180deg,#6d97ff 0%,#8b7aed 100%)}
.dashboard-weather-head h3 span[aria-hidden="true"]{background:linear-gradient(180deg,#2fa0de 0%,#2a83c8 100%)}
.onboarding-icon{background:linear-gradient(180deg,#28be72 0%,#177b4a 100%)}
.onboarding-icon .app-icon,.onboarding-icon .app-icon svg{color:#fff!important}

/* stronger cards with clear text */
.card h3,.card strong,.list-item strong,.weather-mini-action strong{color:#183427}
.card p,.list-item small,.weather-mini-action{color:#5f746b}
.home-metrics>div{background:linear-gradient(180deg,#ffffff 0%,#f7faf8 100%);border-color:#e1ece5}
.home-metrics>div strong{font-size:18px;color:#17382a}
.home-metrics>div small{color:#647970}
.topbar-quickcard{border-color:#dfeae4;background:linear-gradient(180deg,#ffffff 0%,#f8fbf9 100%)}
.sync-status{grid-template-columns:12px minmax(0,1fr) auto;align-items:center}
.sync-status-copy strong,.sync-status-copy small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.sync-status-action{min-height:36px;white-space:nowrap}

/* keep menus and buttons fitting on small phones */
.btn{white-space:normal;line-height:1.25;text-align:center}
.topbar{gap:10px}
.topbar-main,.topbar-copy,.topbar-brandline{min-width:0}
.topbar h1,.topbar-copy h1{overflow-wrap:anywhere}
.home-farm-switcher,.home-metrics,.dashboard-weather-head,.landing-secondary-actions-v220{min-width:0}
.home-farm-switcher>*{min-width:0}
.home-farm-switcher select,
.home-farm-switcher .slim-select,
.home-weather-copy-v223,
.home-action-copy-v218,
.home-secondary-actions-v218 a,
.bottom-nav a,
.bottom-nav a small,
.card,
.list-item,
.pill,
.quick,
.choice,
.stat,
label,
select,
input,
textarea{min-width:0;overflow-wrap:anywhere}
.bottom-nav a small{white-space:normal;line-height:1.15;text-align:center}
.bottom-nav a{padding-inline:4px}
.weather-mini-action{line-height:1.4}

/* typography accessibility without breakage */
html[data-font-size="large"] .bottom-nav a small,
html[data-font-size="xlarge"] .bottom-nav a small{font-size:10.5px}
html[data-font-size="large"] .home-metrics,
html[data-font-size="xlarge"] .home-metrics,
html[data-font-size="xlarge"] .home-farm-switcher{grid-template-columns:1fr!important}
html[data-font-size="xlarge"] .home-action-grid-v218,
html[data-font-size="xlarge"] .quick-grid,
html[data-font-size="xlarge"] .feature-grid,
html[data-font-size="xlarge"] .grid2,
html[data-font-size="xlarge"] .grid3,
html[data-font-size="xlarge"] .weather-day-grid{grid-template-columns:1fr!important}
html[data-font-size="large"] .home-action-card-v218,
html[data-font-size="xlarge"] .home-action-card-v218{grid-template-columns:auto 1fr;align-items:flex-start}
html[data-font-size="large"] .home-action-arrow-v218,
html[data-font-size="xlarge"] .home-action-arrow-v218{grid-column:2;justify-self:end;margin-top:-22px}

/* small screen hardening */
@media (max-width:390px){
  .content{padding-inline:12px!important}
  .topbar{padding:12px}
  .home-quick-actions-v218,.home-overview-card,.dashboard-weather-card,.landing-outcomes-v214,.landing-start-v214,.auth-card-v215{padding:14px}
  .home-action-card-v218{padding:13px}
  .home-action-card-v218 .home-action-icon-v218{width:46px;height:46px;border-radius:16px}
  .home-action-copy-v218 strong{font-size:16px}
  .home-action-copy-v218 small{font-size:11.5px}
  .home-secondary-actions-v218 a{padding:12px 13px;font-size:12.5px}
  .landing-brand-v214{flex-direction:column;align-items:flex-start;gap:10px}
  .landing-proof-row-v214{grid-template-columns:1fr!important}
  .landing-hero-v214 h1{font-size:27px}
  .landing-visual-v214 img{aspect-ratio:4/3;object-position:center 22%}
  .topbar-quickcard{max-width:46%;padding:8px 9px}
  .topbar-quickcard-copy.compact strong{font-size:16px}
}
@media (max-width:340px){
  .topbar{padding:10px}
  .bottom-nav a:nth-child(3) .nav-ico{width:40px;height:40px}
  .bottom-nav a small{font-size:10px}
  .home-quick-all-v218{justify-self:start}
  .landing-primary-cta-v214,.landing-login-link-v214,.landing-install-link-v220{min-height:48px}
}
