/* ===== nonfee.uassuk.com — Sky & Deep Navy PWA design system ===== */
:root{
  --sky:#eaf4fd;
  --sky-deep:#d7ecfb;
  --navy:#0b2545;
  --navy-2:#123a6b;
  --accent:#2f7fe0;
  --accent-dark:#1c63c4;
  --ink:#101826;
  --ink-soft:#3d4a5a;
  --ink-faint:#6b7787;
  --line:#dce7f2;
  --white:#ffffff;
  --danger:#e0483e;
  --radius-sm:8px;
  --radius-md:16px;
  --radius-lg:24px;
  --radius-pill:999px;
  --shadow-sm:0 1px 3px rgba(11,37,69,.08);
  --shadow-md:0 6px 20px rgba(11,37,69,.10);
  --shadow-lg:0 16px 40px rgba(11,37,69,.16);
  --sp-1:4px;--sp-2:8px;--sp-3:16px;--sp-4:24px;--sp-5:32px;--sp-6:48px;--sp-7:64px;--sp-8:80px;
  --maxw:720px;
  --topbar-h:56px;
  --tabbar-h:60px;
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body.nonfee-app{
  margin:0;
  background:var(--sky);
  color:var(--ink);
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  padding-top:calc(var(--topbar-h) + var(--safe-t));
  padding-bottom:calc(var(--tabbar-h) + var(--safe-b));
  min-height:100vh;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
button{font-family:inherit;}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;}

/* ---------- Top App Bar ---------- */
.nonfee-topbar{
  position:fixed;top:0;left:0;right:0;z-index:40;
  height:calc(var(--topbar-h) + var(--safe-t));
  padding-top:var(--safe-t);
  background:var(--navy);
  color:var(--white);
  box-shadow:var(--shadow-sm);
  display:flex;align-items:center;
}
.nonfee-topbar-inner{
  width:100%;max-width:var(--maxw);margin:0 auto;
  padding:0 var(--sp-3);
  display:flex;align-items:center;gap:var(--sp-2);
  min-height:var(--topbar-h);
}
.nonfee-mark{
  width:30px;height:30px;border-radius:9px;background:var(--accent);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.nonfee-mark svg{width:16px;height:16px;}
.nonfee-topbar-title{font-size:16px;font-weight:700;letter-spacing:-0.01em;}
.nonfee-topbar-back{
  width:36px;height:36px;display:flex;align-items:center;justify-content:center;
  border-radius:var(--radius-sm);margin-right:2px;flex:none;
}
.nonfee-topbar-spacer{flex:1;}
.nonfee-topbar-action{
  width:40px;height:40px;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;
  border-radius:var(--radius-sm);background:transparent;border:0;color:#fff;cursor:pointer;
}
.nonfee-topbar-action svg{width:20px;height:20px;}
.nonfee-topbar-action.is-active{color:#ffd166;}

/* ---------- Hero ---------- */
.nonfee-hero{
  padding:var(--sp-6) var(--sp-3) var(--sp-4);
  background:linear-gradient(180deg,var(--sky-deep) 0%, var(--sky) 62%, transparent 100%);
  text-align:center;
}
.nonfee-hero-inner{max-width:var(--maxw);margin:0 auto;}
.nonfee-h1{
  font-size:24px;font-weight:800;color:var(--ink);margin:0 0 var(--sp-2);letter-spacing:-0.02em;
}
.nonfee-hero-tagline{
  font-size:16px;color:var(--ink-soft);margin:0 auto var(--sp-4);max-width:440px;line-height:1.6;
}
.nonfee-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:48px;padding:0 28px;border-radius:var(--radius-pill);
  background:var(--accent);color:#fff;font-weight:700;font-size:15px;
  box-shadow:var(--shadow-md);border:0;cursor:pointer;
  transition:transform 180ms ease, box-shadow 180ms ease;
}
.nonfee-cta:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg);}
.nonfee-cta:active{transform:translateY(0);}

/* ---------- Icon summary cards (3) ---------- */
.nonfee-icon-cards{
  max-width:var(--maxw);margin:var(--sp-5) auto 0;padding:0 var(--sp-3);
  display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-2);
}
.nonfee-icon-card{
  background:#fff;border-radius:var(--radius-md);padding:var(--sp-3) var(--sp-2);
  text-align:center;box-shadow:var(--shadow-sm);
  transition:transform 200ms ease, box-shadow 200ms ease;
}
.nonfee-icon-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);}
.nonfee-icon-card img{
  width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:var(--radius-sm);margin-bottom:var(--sp-2);
}
.nonfee-icon-card-label{font-size:14px;font-weight:700;color:var(--ink);margin-bottom:2px;}
.nonfee-icon-card-desc{font-size:12px;color:var(--ink-faint);line-height:1.5;}

/* ---------- Section wrapper ---------- */
.nonfee-section{max-width:var(--maxw);margin:0 auto;padding:var(--sp-6) var(--sp-3) 0;}
.nonfee-section-title{font-size:20px;font-weight:800;color:var(--ink);margin:0 0 4px;letter-spacing:-0.01em;}
.nonfee-section-sub{font-size:14px;color:var(--ink-faint);margin:0 0 var(--sp-3);}

/* ---------- Carousel ---------- */
.nonfee-carousel{
  display:flex;gap:var(--sp-2);overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:var(--sp-2);-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.nonfee-carousel::-webkit-scrollbar{display:none;}
.nonfee-carousel-slide{
  flex:0 0 78%;scroll-snap-align:start;position:relative;border-radius:var(--radius-lg);
  overflow:hidden;box-shadow:var(--shadow-sm);aspect-ratio:4/3;background:#dbe7f3;
}
.nonfee-carousel-slide img{width:100%;height:100%;object-fit:cover;}
.nonfee-carousel-caption{
  position:absolute;left:0;right:0;bottom:0;padding:var(--sp-3);
  background:linear-gradient(0deg,rgba(11,37,69,.72) 0%,rgba(11,37,69,0) 100%);
  color:#fff;font-size:14px;font-weight:600;
}
.nonfee-carousel-dots{display:flex;gap:6px;justify-content:center;margin-top:var(--sp-2);}
.nonfee-carousel-dots span{width:6px;height:6px;border-radius:50%;background:var(--line);}
.nonfee-carousel-dots span.is-active{background:var(--accent);width:16px;border-radius:4px;}

/* ---------- Card group feed ---------- */
.nonfee-group{margin-bottom:var(--sp-6);}
.nonfee-group-title{
  font-size:17px;font-weight:800;color:var(--navy);margin:0 0 var(--sp-3);
  display:flex;align-items:center;gap:8px;
}
.nonfee-group-title::before{content:"";width:4px;height:16px;background:var(--accent);border-radius:2px;display:inline-block;}
.nonfee-cardlist{display:flex;flex-direction:column;gap:var(--sp-2);}
.nonfee-card{
  position:relative;display:flex;gap:var(--sp-3);align-items:center;
  background:#fff;border-radius:var(--radius-md);padding:var(--sp-2);
  box-shadow:var(--shadow-sm);border:1px solid var(--line);
  transition:transform 180ms ease, box-shadow 180ms ease;
}
.nonfee-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);}
.nonfee-card-thumb{
  width:76px;height:76px;flex:none;border-radius:var(--radius-sm);overflow:hidden;background:#dbe7f3;
}
.nonfee-card-thumb img{width:100%;height:100%;object-fit:cover;}
.nonfee-card-body{min-width:0;flex:1;}
.nonfee-card-title{font-size:15px;font-weight:700;color:var(--ink);margin:0 0 4px;line-height:1.4;
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.nonfee-card-desc{font-size:13px;color:var(--ink-faint);line-height:1.5;
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.nonfee-pin{
  position:absolute;top:-6px;left:-6px;width:26px;height:26px;border-radius:50%;
  background:linear-gradient(145deg,#cfd8e3,#8fa0b3 55%,#5f7188);
  box-shadow:0 2px 6px rgba(11,37,69,.35),inset 0 1px 1px rgba(255,255,255,.6);
  display:flex;align-items:center;justify-content:center;z-index:2;
}
.nonfee-pin svg{width:13px;height:13px;fill:#fff;}

/* ---------- Install banner (in-flow) ---------- */
.nonfee-install-banner{
  max-width:var(--maxw);margin:var(--sp-6) auto 0;padding:0 var(--sp-3);
}
.nonfee-install-banner-inner{
  display:flex;align-items:center;gap:var(--sp-3);
  background:var(--navy);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md);
}
.nonfee-install-banner-img{width:96px;height:96px;flex:none;}
.nonfee-install-banner-img img{width:100%;height:100%;object-fit:cover;}
.nonfee-install-banner-text{padding:var(--sp-3) var(--sp-3) var(--sp-3) 0;color:#fff;}
.nonfee-install-banner-text h3{font-size:15px;font-weight:800;margin:0 0 4px;}
.nonfee-install-banner-text p{font-size:12.5px;color:#bcd0e8;margin:0 0 10px;line-height:1.5;}
.nonfee-install-banner-btn{
  display:inline-flex;align-items:center;min-height:36px;padding:0 16px;border-radius:var(--radius-pill);
  background:var(--accent);color:#fff;font-size:13px;font-weight:700;border:0;cursor:pointer;
}

/* ---------- Bottom Tab Bar ---------- */
.nonfee-tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:50;
  height:calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom:var(--safe-b);
  background:var(--navy);
  box-shadow:0 -2px 16px rgba(11,37,69,.18);
}
.nonfee-tabbar-inner{
  max-width:var(--maxw);margin:0 auto;height:var(--tabbar-h);
  display:flex;align-items:center;justify-content:space-around;padding:0 var(--sp-2);
}
.nonfee-tab{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  min-width:56px;min-height:44px;padding:6px 10px;border-radius:var(--radius-md);
  color:#9fb4cf;transition:transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.nonfee-tab svg{width:20px;height:20px;}
.nonfee-tab span{font-size:10.5px;font-weight:600;}
.nonfee-tab.is-active{
  color:#fff;background:rgba(255,255,255,.10);
  transform:translateY(-3px);box-shadow:0 6px 14px rgba(0,0,0,.25);
}

/* ---------- Install bottom sheet ---------- */
.nonfee-sheet-overlay{
  position:fixed;inset:0;z-index:80;background:rgba(11,20,32,.0);backdrop-filter:blur(0px);
  display:flex;align-items:flex-end;justify-content:center;
  opacity:0;pointer-events:none;
  transition:opacity 320ms ease, background-color 320ms ease, backdrop-filter 320ms ease;
}
.nonfee-sheet-overlay.is-open{
  opacity:1;pointer-events:auto;background:rgba(11,20,32,.42);backdrop-filter:blur(6px);
}
.nonfee-sheet{
  width:100%;max-width:var(--maxw);max-height:50vh;background:#fff;
  border-radius:24px 24px 0 0;padding:var(--sp-4) var(--sp-4) calc(var(--sp-4) + var(--safe-b));
  box-shadow:0 -10px 40px rgba(11,37,69,.25);
  transform:translateY(100%);
  transition:transform 320ms cubic-bezier(.22,1,.36,1);
  overflow-y:auto;
}
.nonfee-sheet-overlay.is-open .nonfee-sheet{transform:translateY(0);}
.nonfee-sheet-handle{width:36px;height:4px;border-radius:2px;background:var(--line);margin:0 auto var(--sp-3);}
.nonfee-sheet h3{font-size:17px;font-weight:800;margin:0 0 8px;color:var(--ink);}
.nonfee-sheet p{font-size:14px;color:var(--ink-soft);line-height:1.6;margin:0 0 var(--sp-4);}
.nonfee-sheet-actions{display:flex;gap:var(--sp-2);}
.nonfee-sheet-btn{
  flex:1;min-height:48px;border-radius:var(--radius-pill);font-weight:700;font-size:14px;border:0;cursor:pointer;
}
.nonfee-sheet-btn.primary{background:var(--accent);color:#fff;}
.nonfee-sheet-btn.ghost{background:var(--sky);color:var(--ink-soft);}

/* ---------- Search page ---------- */
.nonfee-search-hero{padding:var(--sp-5) var(--sp-3) var(--sp-4);background:var(--sky-deep);}
.nonfee-search-form{max-width:var(--maxw);margin:0 auto;display:flex;gap:8px;}
.nonfee-search-input{
  flex:1;min-height:48px;border-radius:var(--radius-pill);border:1px solid var(--line);
  padding:0 20px;font-size:15px;background:#fff;color:var(--ink);
}
.nonfee-search-submit{
  min-width:48px;min-height:48px;border-radius:50%;background:var(--navy);border:0;color:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.nonfee-search-submit svg{width:20px;height:20px;}
.nonfee-search-results{max-width:var(--maxw);margin:0 auto;padding:var(--sp-4) var(--sp-3);}
.nonfee-search-count{font-size:13px;color:var(--ink-faint);margin-bottom:var(--sp-3);}

/* ---------- Saved (bookmark) page + swipe delete ---------- */
.nonfee-saved-empty{max-width:var(--maxw);margin:0 auto;padding:var(--sp-7) var(--sp-4);text-align:center;color:var(--ink-faint);}
.nonfee-saved-empty svg{width:48px;height:48px;margin:0 auto var(--sp-3);opacity:.4;}
.nonfee-swipe-row{position:relative;overflow:hidden;border-radius:var(--radius-md);}
.nonfee-swipe-tray{
  position:absolute;top:0;right:0;bottom:0;width:76px;background:var(--danger);
  display:flex;align-items:center;justify-content:center;color:#fff;
}
.nonfee-swipe-tray svg{width:22px;height:22px;transition:transform 160ms ease;}
.nonfee-swipe-content{position:relative;background:#fff;transition:transform 200ms ease;touch-action:pan-y;}

/* ---------- Generic content pages (privacy/terms/about) ---------- */
.nonfee-page{max-width:var(--maxw);margin:0 auto;padding:var(--sp-6) var(--sp-3) var(--sp-7);}
.nonfee-page h1{font-size:22px;font-weight:800;margin:0 0 var(--sp-4);color:var(--ink);}
.nonfee-page h2{font-size:17px;font-weight:800;margin:var(--sp-5) 0 var(--sp-2);color:var(--navy);}
.nonfee-page p, .nonfee-page li{font-size:15px;color:var(--ink-soft);line-height:1.75;}
.nonfee-page ul,.nonfee-page ol{padding-left:1.2em;}

/* ---------- Article (single post) ---------- */
.nonfee-post-hero{max-width:var(--maxw);margin:0 auto;padding:0 var(--sp-3);}
.nonfee-post-hero img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);}
.nonfee-post-title{
  max-width:var(--maxw);margin:var(--sp-4) auto var(--sp-2);padding:0 var(--sp-3);
  font-size:24px;font-weight:800;line-height:1.4;color:var(--ink);letter-spacing:-0.01em;
}
.nonfee-post-meta{max-width:var(--maxw);margin:0 auto var(--sp-4);padding:0 var(--sp-3);font-size:13px;color:var(--ink-faint);}
.nonfee-article{max-width:var(--maxw);margin:0 auto;padding:0 var(--sp-3) var(--sp-7);}
.nonfee-article h2{font-size:19px;font-weight:800;color:var(--navy);margin:var(--sp-5) 0 var(--sp-2);padding-top:var(--sp-2);border-top:1px solid var(--line);}
.nonfee-article h2:first-child{border-top:0;padding-top:0;margin-top:var(--sp-2);}
.nonfee-article h3{font-size:16px;font-weight:700;color:var(--ink);margin:var(--sp-4) 0 var(--sp-2);}
.nonfee-article p{font-size:16px;color:var(--ink-soft);line-height:1.75;margin:0 0 var(--sp-3);}
.nonfee-article ul,.nonfee-article ol{padding-left:1.3em;margin:0 0 var(--sp-3);color:var(--ink-soft);}
.nonfee-article li{margin-bottom:6px;line-height:1.7;}
.nonfee-article table{width:100%;border-collapse:collapse;margin:0 0 var(--sp-3);font-size:14px;display:block;overflow-x:auto;}
.nonfee-article th,.nonfee-article td{border:1px solid var(--line);padding:8px 10px;text-align:left;}
.nonfee-article th{background:var(--sky);color:var(--navy);font-weight:700;}
.nonfee-article figure{margin:var(--sp-4) 0;}
.nonfee-article figure img{width:100%;border-radius:var(--radius-md);box-shadow:var(--shadow-sm);}
.nonfee-article figcaption{font-size:12.5px;color:var(--ink-faint);text-align:center;margin-top:6px;}
.nonfee-toc{background:#fff;border:1px solid var(--line);border-radius:var(--radius-md);padding:var(--sp-3);margin:0 0 var(--sp-4);}
.nonfee-toc-title{font-size:13px;font-weight:800;color:var(--navy);margin:0 0 8px;}
.nonfee-toc ol{margin:0;padding-left:1.2em;font-size:14px;}
.nonfee-toc a{color:var(--accent-dark);}
.nonfee-related{margin-top:var(--sp-6);}
.nonfee-save-btn{
  display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border-radius:var(--radius-pill);
  background:#fff;border:1px solid var(--line);color:var(--ink-soft);font-size:13px;font-weight:700;cursor:pointer;
}
.nonfee-save-btn svg{width:16px;height:16px;}
.nonfee-save-btn.is-saved{background:var(--navy);color:#fff;border-color:var(--navy);}

/* ---------- Footer (in-flow, above tab bar) ---------- */
.nonfee-footer{max-width:var(--maxw);margin:0 auto;padding:var(--sp-6) var(--sp-3) var(--sp-4);text-align:center;}
.nonfee-footer-links{display:flex;gap:var(--sp-3);justify-content:center;flex-wrap:wrap;margin-bottom:var(--sp-2);}
.nonfee-footer-links a{font-size:12.5px;color:var(--ink-faint);}
.nonfee-footer-copy{font-size:11.5px;color:#9aa7b6;}

/* ---------- Pull to refresh ---------- */
.nonfee-ptr{
  position:fixed;top:calc(var(--topbar-h) + var(--safe-t));left:0;right:0;z-index:35;
  display:flex;align-items:center;justify-content:center;height:0;overflow:hidden;
  color:var(--accent-dark);transition:height 120ms ease;
}
.nonfee-ptr svg{width:20px;height:20px;animation:nonfee-spin 900ms linear infinite;}
@keyframes nonfee-spin{to{transform:rotate(360deg);}}

/* ---------- Motion & responsiveness ---------- */
@media (prefers-reduced-motion: reduce){
  *{transition-duration:0.01ms !important;animation-duration:0.01ms !important;}
}
@media (min-width:600px){
  .nonfee-h1{font-size:28px;}
}
@media (max-width:380px){
  .nonfee-icon-cards{gap:6px;}
  .nonfee-icon-card{padding:10px 6px;}
}
