/* Nimantron public-site design polish: compact rhythm, stronger contrast, balanced light/dark themes. */
:root{
  --muted:#b1a79d;
}

.hero-copy>p,
.section-head p,
.page-hero p,
.hero-proof span,
.occasion-card a,
.template-meta p,
.flow-step p,
.feature span,
.mini-side span,
.mini-stat span,
.dash-section-note,
.pricing-rule-card p,
.public-rate-card span,
.public-rate-card small,
.pricing-calc-fields label,
.pricing-calc-total p,
#pricingBreakdown>div,
.site-footer a,
.site-footer .footer-brand p{
  color:var(--muted)!important;
}

.section{padding:72px 0}
.section-head{margin-bottom:32px}
.page-hero{padding:52px 0 34px}
.site-footer{padding:38px 0 22px}
.workflow{gap:10px}
.flow-step{min-height:150px;padding:18px 16px}
.occasion-card{min-height:235px;padding:20px 17px}
.template-preview{height:300px}
.pricing-rule-card{min-height:180px;padding:17px}
.public-rate-card{padding:14px}

/* Dark theme readability. */
html:not([data-public-theme="light"]) .template-card,
html:not([data-public-theme="light"]) .flow-step,
html:not([data-public-theme="light"]) .occasion-card,
html:not([data-public-theme="light"]) .feature,
html:not([data-public-theme="light"]) .pricing-rule-card,
html:not([data-public-theme="light"]) .public-rate-card{
  border-color:rgba(211,176,125,.20)
}
html:not([data-public-theme="light"]) .filter-chip,
html:not([data-public-theme="light"]) .occasion-chip{color:#b4aaa0}

/* Light theme: warmer surfaces and darker secondary text for reliable contrast. */
html[data-public-theme="light"]{
  --muted:#655c54;
  --line:rgba(113,79,42,.26);
}
html[data-public-theme="light"] .hero-card{
  background:rgba(255,250,243,.96);
  color:#342b25;
  border-color:rgba(113,79,42,.28);
  box-shadow:0 28px 70px rgba(79,58,34,.16)
}
html[data-public-theme="light"] .hero-card p{color:#665d55}
html[data-public-theme="light"] .geo{
  background:linear-gradient(145deg,rgba(127,144,158,.18),rgba(255,250,243,.64));
  border-color:rgba(113,79,42,.18);
  box-shadow:0 24px 60px rgba(79,58,34,.12)
}
html[data-public-theme="light"] .occasion-card,
html[data-public-theme="light"] .feature,
html[data-public-theme="light"] .pricing-rule-card,
html[data-public-theme="light"] .public-rate-card,
html[data-public-theme="light"] .workflow-visual{
  background:#fffaf2;
  border-color:rgba(113,79,42,.24)
}
html[data-public-theme="light"] .template-card,
html[data-public-theme="light"] .flow-step{
  border-color:rgba(113,79,42,.24)
}
html[data-public-theme="light"] .filter-chip,
html[data-public-theme="light"] .occasion-chip{color:#655c54}
html[data-public-theme="light"] .pill{color:#704b20;border-color:rgba(113,79,42,.28)}
html[data-public-theme="light"] .btn:not(.btn-primary){border-color:rgba(113,79,42,.30);color:#342b25}
html[data-public-theme="light"] .btn-primary{color:#20180f}
html[data-public-theme="light"] .pricing-calc-fields select,
html[data-public-theme="light"] .pricing-calc-fields input{background:#fffdf9;border-color:rgba(113,79,42,.26);color:#342b25}
html[data-public-theme="light"] .pricing-check span{border-color:rgba(113,79,42,.22)}
html[data-public-theme="light"] .site-footer a{color:#655c54}
html[data-public-theme="light"] .public-mobile-bottom a,
html[data-public-theme="light"] .public-mobile-bottom button{color:#665d55}

@media(max-width:820px){
  .section{padding:46px 0!important}
  .section-head{margin-bottom:24px!important}
  .section-head h2{font-size:clamp(30px,9.4vw,38px)!important;line-height:1.02!important}
  .section-head p{font-size:12px!important;line-height:1.62!important}
  .page-hero{padding:38px 0 24px!important}
  .page-hero h1{font-size:clamp(36px,11vw,46px)!important;line-height:.98!important;margin:10px 0 12px!important}
  .page-hero p{font-size:12.5px!important;line-height:1.62!important}
  .hero{padding:42px 0 46px!important}
  .hero-grid{gap:30px!important}
  .hero-copy>p{font-size:13.5px!important;line-height:1.7!important}
  .hero-actions{margin-top:20px!important}
  .hero-proof{margin-top:24px!important;gap:16px 14px!important}
  .hero-art{min-height:370px!important}
  .hero-card{width:min(258px,calc(100% - 24px))!important;padding:21px 17px!important;border-radius:22px!important}
  .hero-card img{width:58px!important;height:58px!important;margin-bottom:13px!important}
  .hero-card h3{font-size:32px!important}

  /* Home page category cards: two-column, short, readable. */
  #occasions .occasions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important
  }
  #occasions .occasion-card{
    min-height:0!important;
    padding:14px 12px!important;
    border-radius:16px!important
  }
  #occasions .occasion-card:last-child{grid-column:auto!important}
  #occasions .occasion-card .num{width:30px!important;height:30px!important;font-size:9px!important}
  #occasions .occasion-card h3{font-size:19px!important;margin:10px 0 7px!important}
  #occasions .occasion-card a{font-size:9.5px!important;line-height:1.35!important;padding:3px 0!important}

  /* Home client journey: two cards per row instead of long single-column slides. */
  #how-it-works .workflow{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important
  }
  #how-it-works .flow-step{
    min-height:0!important;
    padding:14px 12px!important;
    border-radius:16px!important
  }
  #how-it-works .flow-step .flow-num{font-size:26px!important}
  #how-it-works .flow-step h3{font-size:17px!important;line-height:1.08!important;margin:5px 0 6px!important}
  #how-it-works .flow-step p{font-size:9.8px!important;line-height:1.48!important}
  .workflow-visual{margin-top:16px!important;padding:11px!important;border-radius:18px!important}
  .mini-main{padding:13px!important}

  /* Optional extras stay two-column and compact. */
  #features .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #features .feature{min-height:104px!important;padding:11px 10px!important;border-radius:14px!important}
  #features .feature b{font-size:10.5px!important}
  #features .feature span{font-size:8.8px!important;line-height:1.4!important}

  /* Pricing: cards become two-column on mobile instead of one long vertical stack. */
  .pricing-rule-grid,
  .public-rate-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important
  }
  .pricing-rule-card{
    min-height:0!important;
    padding:13px 12px!important;
    border-radius:15px!important
  }
  .pricing-step{width:29px!important;height:29px!important;margin-bottom:9px!important;font-size:9px!important}
  .pricing-rule-card h3{font-size:17px!important;line-height:1.1!important;margin-bottom:6px!important}
  .pricing-rule-card p{font-size:9.4px!important;line-height:1.52!important}
  .pricing-rule-card small{font-size:8px!important;line-height:1.35!important}
  .public-rate-card{padding:12px 11px!important;border-radius:14px!important}
  .public-rate-card span{font-size:9.5px!important}
  .public-rate-card strong{font-size:18px!important}
  .public-rate-card small{font-size:8px!important}
  .pricing-formula-strip{margin-top:14px!important;padding:9px 10px!important;border-radius:13px!important;gap:5px 7px!important}
  .pricing-formula-strip span,.pricing-formula-strip strong{font-size:10px!important}
  .pricing-calculator{border-radius:18px!important}
  .pricing-calc-fields,.pricing-calc-total{padding:14px!important}
  .pricing-delivery-inputs,
  .pricing-calc-addons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .pricing-delivery-inputs .field:last-child{grid-column:1/-1}

  /* Template library remains visual, but removes excessive height. */
  .template-grid{gap:14px!important}
  .template-preview{height:235px!important}
  .template-meta{padding:15px!important}
  .template-meta h3{font-size:23px!important}
  .template-meta p{font-size:10.2px!important;line-height:1.55!important;margin:8px 0 11px!important}
  .template-meta-top{gap:8px!important}
  .card-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .card-actions .btn{min-height:36px!important;padding:0 7px!important;font-size:9.6px!important}

  /* Compact footer without turning every link group into a full-width block. */
  .site-footer{padding:30px 0 18px!important}
  .site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 16px!important}
  .site-footer .footer-brand{grid-column:1/-1!important}
  .site-footer h4{font-size:18px!important}
  .site-footer a{font-size:10px!important;line-height:1.8!important}
  .site-footer .footer-brand p{font-size:10.5px!important;line-height:1.55!important}
  .site-footer .footer-bottom{margin-top:20px!important;padding-top:13px!important;font-size:9px!important}

  .btn{min-height:42px}
}

@media(max-width:420px){
  .container{width:calc(100% - 24px)!important}
  .section{padding:42px 0!important}
  #how-it-works .flow-step{padding:13px 11px!important}
  #how-it-works .flow-step h3{font-size:16px!important}
  #how-it-works .flow-step p{font-size:9.3px!important}
  .pricing-rule-card p{font-size:9px!important}
  .template-preview{height:220px!important}
  .card-actions .btn{font-size:9.2px!important}
}

@media(max-width:350px){
  #occasions .occasions,
  #how-it-works .workflow,
  .pricing-rule-grid,
  .public-rate-grid{grid-template-columns:1fr!important}
  .card-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pricing-delivery-inputs,.pricing-calc-addons{grid-template-columns:1fr!important}
  .pricing-delivery-inputs .field:last-child{grid-column:auto}
}

/* Guest / auth pages share the same contrast and compactness standards. */
body.auth-page .auth-card>p,
body.auth-page .foot{color:var(--muted)!important}
body.auth-page .auth-card{border-color:var(--line)!important}
body.auth-page .field input{border-color:var(--line)!important}
html[data-public-theme="light"] body.auth-page .auth-card{border-color:rgba(113,79,42,.25)!important}
html[data-public-theme="light"] body.auth-page .field input{border-color:rgba(113,79,42,.26)!important}
@media(max-width:600px){
  body.auth-page{padding:14px 12px 24px!important}
  body.auth-page .auth-wrap{margin:62px auto 18px!important}
  body.auth-page .auth-brand{height:66px!important;margin-bottom:18px!important}
  body.auth-page .auth-brand-mark{width:64px!important;height:64px!important}
  body.auth-page .auth-card{padding:20px 17px!important;border-radius:19px!important}
  body.auth-page .auth-card h1{font-size:31px!important}
  body.auth-page .auth-card>p{font-size:11.2px!important;line-height:1.55!important;margin-bottom:16px!important}
  body.auth-page .field{margin-top:10px!important}
  body.auth-page .field input{min-height:44px!important;padding:10px 12px!important}
  body.auth-page .auth-actions{margin-top:15px!important}
}
