/*
Theme Name:   Little Natter
Theme URI:    https://littlenatter.co.uk
Description:  Little Natter child theme for Flatsome. Brand styling, in-browser product demos, and digital-download checkout compliance.
Author:       Little Natter
Author URI:   https://littlenatter.co.uk
Template:     flatsome
Version:      1.0.0
Requires PHP: 7.4
Text Domain:  littlenatter
*/

/* ============================================================
   LITTLE NATTER — BRAND TOKENS
   Palette taken from the Little Natter logo.
   ============================================================ */
:root{
  --ln-sage:#8A9E7E;
  --ln-coral:#E8837A;
  --ln-mustard:#E8B84B;
  --ln-teal:#5B9EAD;
  --ln-navy:#2E3F5C;
  --ln-cream:#F7F3EE;
  --ln-line:#E7E0D6;
  --ln-ink:#2E3F5C;
  --ln-muted:#7A879B;
  --ln-ok:#5DA271;
  --ln-radius:16px;
  --ln-shadow:0 4px 20px rgba(46,63,92,.09);
  --ln-shadow-lg:0 14px 44px rgba(46,63,92,.16);
}

/* ============================================================
   TYPOGRAPHY & BASE
   ============================================================ */
body{ color:var(--ln-ink); background:#fff; }
h1,h2,h3,h4,h5,h6,.heading-font{ color:var(--ln-navy); font-weight:800; letter-spacing:-.012em; }
h1{ line-height:1.15; }
p{ color:#4a5568; }
a{ color:var(--ln-sage); }
a:hover{ color:var(--ln-navy); }

.ln-cream-bg{ background:var(--ln-cream); }
.ln-lead{ font-size:1.12rem; color:var(--ln-muted); font-weight:600; max-width:640px; }

/* ============================================================
   BUTTONS — softer, rounder, friendlier than Flatsome default
   ============================================================ */
.button, button, input[type="submit"], .button.primary{
  border-radius:var(--ln-radius);
  font-weight:800;
  letter-spacing:0;
  text-transform:none;
  box-shadow:var(--ln-shadow);
  transition:transform .12s ease, filter .18s ease, box-shadow .18s ease;
}
.button:hover, button:hover{ transform:translateY(-1px); filter:brightness(1.05); }
.button:active{ transform:translateY(0) scale(.98); }

.button.primary, .button.checkout, .single_add_to_cart_button{
  background-color:var(--ln-sage) !important;
  border-color:var(--ln-sage) !important;
  color:#fff !important;
}
.button.secondary{ background-color:var(--ln-coral) !important; border-color:var(--ln-coral) !important; }
.button.is-outline{ box-shadow:none; }

/* The big "Try it free" button — the most important control on the site */
.ln-try-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  background:linear-gradient(135deg, var(--ln-coral), #f0968d);
  color:#fff !important; font-weight:900; font-size:1.06rem;
  padding:17px 30px; border-radius:var(--ln-radius);
  box-shadow:0 8px 26px rgba(232,131,122,.38);
  border:none; cursor:pointer; text-decoration:none; line-height:1.2;
}
.ln-try-btn:hover{ transform:translateY(-2px); box-shadow:0 12px 32px rgba(232,131,122,.46); color:#fff !important; }
.ln-try-btn .ln-ico{ font-size:1.24em; }
.ln-try-sub{
  display:block; font-size:.8rem; font-weight:700; color:var(--ln-muted);
  margin-top:8px; text-align:center;
}
.ln-buybox{ margin:6px 0 18px; }
.ln-buybox .ln-try-btn{ width:100%; max-width:400px; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.ln-trust{
  display:flex; flex-wrap:wrap; gap:10px 26px; justify-content:center;
  padding:16px 18px; background:var(--ln-cream); border-radius:var(--ln-radius);
}
.ln-trust span{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:800; font-size:.86rem; color:var(--ln-navy);
}
.ln-trust span i{ font-style:normal; font-size:1.15em; }
.ln-trust.ln-trust-plain{ background:transparent; padding:8px 0; }

/* Compact badges under the buy button */
.ln-badges{ display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.ln-badges b{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--ln-cream); border-radius:30px; padding:7px 14px;
  font-size:.78rem; font-weight:800; color:var(--ln-navy);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.ln-steps{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:22px; }
.ln-step{ text-align:center; padding:8px; }
.ln-step .n{
  width:52px; height:52px; border-radius:50%; margin:0 auto 14px;
  display:grid; place-items:center; font-weight:900; font-size:1.24rem;
  background:var(--ln-sage); color:#fff; box-shadow:var(--ln-shadow);
}
.ln-step:nth-child(2) .n{ background:var(--ln-coral); }
.ln-step:nth-child(3) .n{ background:var(--ln-mustard); }
.ln-step h4{ margin-bottom:6px; font-size:1.06rem; }
.ln-step p{ font-size:.92rem; color:var(--ln-muted); font-weight:600; margin:0; }

/* ============================================================
   DEVICE BADGES
   ============================================================ */
.ln-devices{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.ln-devices div{
  background:#fff; border:2px solid var(--ln-line); border-radius:14px;
  padding:14px 18px; text-align:center; min-width:104px;
}
.ln-devices div i{ font-style:normal; font-size:1.7rem; display:block; margin-bottom:5px; }
.ln-devices div span{ font-size:.78rem; font-weight:800; color:var(--ln-navy); }

/* ============================================================
   DEMO MODAL
   ============================================================ */
.ln-modal{
  position:fixed; inset:0; z-index:100000; display:none;
  background:rgba(46,63,92,.86); backdrop-filter:blur(6px);
}
.ln-modal.is-open{ display:flex; flex-direction:column; }
.ln-modal-bar{
  display:flex; align-items:center; gap:14px; padding:10px 16px;
  background:#fff; box-shadow:0 2px 12px rgba(0,0,0,.16); flex:none;
}
.ln-modal-bar img{ height:30px; width:auto; }
.ln-modal-bar .ln-modal-title{ font-weight:900; color:var(--ln-navy); font-size:.98rem; }
.ln-modal-bar .ln-demo-tag{
  background:var(--ln-mustard); color:var(--ln-navy); font-size:.68rem; font-weight:900;
  padding:4px 10px; border-radius:20px; text-transform:uppercase; letter-spacing:.05em;
}
.ln-modal-bar .ln-spacer{ flex:1; }
.ln-modal-bar .ln-modal-buy{
  background:var(--ln-sage); color:#fff; font-weight:800; font-size:.88rem;
  padding:10px 18px; border-radius:12px; text-decoration:none; white-space:nowrap;
}
.ln-modal-bar .ln-modal-buy:hover{ color:#fff; filter:brightness(1.06); }
.ln-modal-bar .ln-modal-close{
  width:38px; height:38px; border-radius:11px; border:2px solid var(--ln-line);
  background:#fff; font-size:1.1rem; font-weight:900; color:var(--ln-muted); cursor:pointer;
}
.ln-modal-bar .ln-modal-close:hover{ border-color:var(--ln-coral); color:var(--ln-coral); }
.ln-modal-frame{ flex:1; width:100%; border:none; background:#fff; }
.ln-modal-loading{
  position:absolute; inset:56px 0 0; display:grid; place-items:center;
  color:#fff; font-weight:800; pointer-events:none;
}
body.ln-modal-open{ overflow:hidden; }

/* Post-demo conversion overlay */
.ln-after{
  position:fixed; inset:0; z-index:100001; display:none;
  background:rgba(46,63,92,.72); backdrop-filter:blur(5px);
  place-items:center; padding:22px;
}
.ln-after.is-open{ display:grid; }
.ln-after-box{
  background:#fff; border-radius:24px; padding:36px 32px; max-width:460px;
  text-align:center; box-shadow:var(--ln-shadow-lg);
  animation:lnPop .42s cubic-bezier(.3,1.5,.5,1);
}
@keyframes lnPop{ from{ transform:scale(.86); opacity:0 } to{ transform:none; opacity:1 } }
.ln-after-box img{ width:110px; height:auto; margin-bottom:12px; }
.ln-after-box h3{ font-size:1.42rem; margin-bottom:8px; }
.ln-after-box p{ color:var(--ln-muted); font-weight:600; margin-bottom:18px; }
.ln-after-box ul{
  list-style:none; margin:0 0 20px; padding:0; text-align:left;
  display:inline-block;
}
.ln-after-box ul li{
  font-weight:700; font-size:.92rem; color:var(--ln-navy);
  padding:5px 0 5px 26px; position:relative;
}
.ln-after-box ul li:before{
  content:"✓"; position:absolute; left:0; color:var(--ln-ok); font-weight:900;
}
.ln-after-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.ln-after-actions .ln-ghost{
  background:transparent; border:2px solid var(--ln-line); color:var(--ln-muted);
  border-radius:14px; padding:14px 20px; font-weight:800; cursor:pointer;
}
.ln-after-actions .ln-ghost:hover{ border-color:var(--ln-navy); color:var(--ln-navy); }

/* ============================================================
   WOOCOMMERCE — PRODUCT PAGE
   ============================================================ */
.woocommerce div.product .price,
.product-info .price{
  color:var(--ln-navy); font-weight:900;
}
.product-info .price del{ color:var(--ln-muted); font-weight:600; }
.product-info .price ins{ text-decoration:none; }

.ln-saving{
  display:inline-block; background:var(--ln-coral); color:#fff;
  font-size:.76rem; font-weight:900; padding:4px 11px; border-radius:20px;
  margin-left:8px; vertical-align:middle;
}

/* Product cards */
.product-small .box-image{ border-radius:var(--ln-radius); overflow:hidden; }
.product-small .box-text{ padding-top:14px; }
.badge-container .badge-inner{ background:var(--ln-coral); border-radius:10px; }

/* Hide physical-product clutter on digital stores */
.ln-digital-only .shipping-calculator-button,
.ln-digital-only .woocommerce-shipping-fields,
.ln-digital-only tr.shipping,
.ln-digital-only .cart-collaterals .shipping{ display:none !important; }

/* Downloads table in My Account */
.woocommerce-MyAccount-content .woocommerce-table--order-downloads,
.woocommerce-table--order-downloads{ border-radius:var(--ln-radius); overflow:hidden; }
.woocommerce-table--order-downloads .button{ background:var(--ln-sage) !important; color:#fff !important; }

/* ============================================================
   CHECKOUT — DIGITAL CONSENT (legal requirement, keep visible)
   ============================================================ */
.ln-consent{
  background:var(--ln-cream); border:2px solid var(--ln-line);
  border-radius:var(--ln-radius); padding:16px 18px; margin:18px 0;
}
.ln-consent label{
  display:flex; gap:12px; align-items:flex-start;
  font-size:.9rem; font-weight:700; color:var(--ln-navy); cursor:pointer; margin:0;
}
.ln-consent input[type=checkbox]{
  width:22px; height:22px; margin:1px 0 0; flex:none; accent-color:var(--ln-sage); cursor:pointer;
}
.ln-consent .ln-consent-note{
  display:block; font-weight:600; color:var(--ln-muted); font-size:.82rem; margin-top:6px;
}
.ln-consent.ln-error{ border-color:var(--ln-coral); background:#FDEDEC; }

/* ============================================================
   EMAIL CAPTURE
   ============================================================ */
.ln-optin{
  background:linear-gradient(135deg, var(--ln-cream), #fff);
  border-radius:22px; padding:38px 32px; text-align:center;
  box-shadow:var(--ln-shadow);
}
.ln-optin h3{ font-size:1.6rem; margin-bottom:8px; }
.ln-optin p{ color:var(--ln-muted); font-weight:600; max-width:520px; margin:0 auto 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.ln-footer-logo{ max-width:170px; height:auto; margin-bottom:14px; }
.ln-tagline{ font-style:italic; color:var(--ln-muted); font-weight:600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media only screen and (max-width: 48em){
  .ln-try-btn{ width:100%; font-size:1rem; padding:16px 22px; }
  .ln-trust{ gap:9px 16px; }
  .ln-trust span{ font-size:.8rem; }
  .ln-modal-bar{ padding:8px 10px; gap:9px; }
  .ln-modal-bar .ln-modal-title{ display:none; }
  .ln-modal-bar img{ height:26px; }
  .ln-after-box{ padding:28px 22px; }
  .ln-devices div{ min-width:88px; padding:11px 13px; }
}
