:root{
  --ink:#0F2B33;
  --paper:#F4F9F8;
  --paper-dim:#E6F0EF;
  --teal:#1C7C88;
  --teal-deep:#125A63;
  --sand:#E3A64F;
  --sand-deep:#C6893A;
  --coral:#D9714E;
  --line:#CFE1DE;
  --muted:#5C7876;
  --white:#FFFFFF;
  --radius-lg:22px;
  --radius-md:14px;
  --radius-sm:9px;
}
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Work Sans',sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3{font-family:'Fraunces',serif;font-weight:500;margin:0;letter-spacing:-0.01em;}
p{margin:0;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}
select{font-family:inherit;}
.icon{width:100%;height:100%;}
.wrap{max-width:1200px;margin:0 auto;padding:0 32px;}
section{padding:88px 0;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 24px;border-radius:999px;border:1px solid transparent;
  font-size:15px;font-weight:600;white-space:nowrap;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active{transform:scale(0.97);}
.btn-primary{background:var(--teal);color:var(--white);}
.btn-primary:hover{background:var(--teal-deep);}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line);}
.btn-ghost:hover{border-color:var(--ink);}
.btn-sand{background:var(--sand);color:var(--ink);}
.btn-sand:hover{background:var(--sand-deep);}
.btn-block{width:100%;}

/* ---------- Header ---------- */
header{
  position:relative;z-index:50;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.nav{display:flex;align-items:center;gap:28px;padding:16px 0;}
.brand{display:flex;align-items:center;gap:10px;font-family:'Fraunces',serif;font-size:21px;font-weight:600;margin-right:8px;}
.brand-mark{width:34px;height:34px;flex:none;}
.nav-collapse{display:contents;}
.nav-links{display:flex;align-items:center;gap:24px;font-size:15px;color:var(--muted);flex:1;}
.nav-links a:hover{color:var(--ink);}
.nav-links a.current{color:var(--teal-deep);font-weight:600;}
.nav-right{display:flex;align-items:center;gap:14px;}
.nav-login{font-size:15px;font-weight:600;color:var(--ink);}
.nav-toggle{display:none;background:none;border:none;padding:6px;}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--ink);margin:5px 0;transition:transform .2s ease, opacity .2s ease;}
.nav-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.active span:nth-child(2){opacity:0;}
.nav-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ---------- Hero ---------- */
.hero{padding:76px 0 40px;}
.hero-grid{display:grid;grid-template-columns:1.05fr 0.95fr;gap:56px;align-items:center;}
.hero-kicker{font-size:15px;color:var(--teal-deep);font-weight:600;margin-bottom:18px;}
.hero h1{font-size:52px;line-height:1.08;max-width:15ch;}
.hero p.lede{margin-top:20px;font-size:18px;color:var(--muted);max-width:46ch;}
.search-bar{
  margin-top:32px;display:flex;align-items:center;gap:10px;
  background:var(--white);border:1px solid var(--line);border-radius:999px;
  padding:8px 8px 8px 20px;max-width:520px;
}
.search-bar .icon{width:19px;height:19px;color:var(--muted);flex:none;}
.search-bar input{
  flex:1;border:none;outline:none;background:none;font-family:inherit;
  font-size:15px;color:var(--ink);padding:8px 0;
}
.search-bar input::placeholder{color:#8CA3A1;}
.search-bar button{border:none;background:var(--teal);color:var(--white);border-radius:999px;padding:11px 20px;font-size:14px;font-weight:600;}
.search-bar button:hover{background:var(--teal-deep);}
.hero-stats{display:flex;gap:34px;margin-top:34px;}
.hero-stats div b{display:block;font-family:'Fraunces',serif;font-size:26px;font-weight:600;}
.hero-stats div span{font-size:13.5px;color:var(--muted);}

/* Hero icon "current" cluster — bubbles drifting on a diagonal flow */
.wave-cluster{position:relative;height:440px;}
.wave-tile{
  position:absolute;border-radius:50%;background:var(--white);
  border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 24px -14px rgba(15,43,51,0.28);
}
.wave-tile .icon{width:38%;height:38%;}
.w1{width:128px;height:128px;top:0;left:40%;background:var(--teal);color:var(--white);border-color:var(--teal);}
.w2{width:96px;height:96px;top:26px;left:4%;color:var(--teal-deep);}
.w3{width:84px;height:84px;top:60px;right:2%;color:var(--sand-deep);}
.w4{width:150px;height:150px;top:182px;left:16%;background:var(--sand);color:var(--ink);border-color:var(--sand);}
.w5{width:92px;height:92px;top:206px;right:8%;color:var(--teal);}
.w6{width:108px;height:108px;bottom:6px;left:2%;color:var(--sand-deep);}
.w7{width:120px;height:120px;bottom:0;right:18%;background:var(--ink);color:var(--paper);border-color:var(--ink);}
.wave-divider{display:block;width:100%;height:44px;color:var(--paper-dim);margin-top:8px;}

/* ---------- Category strip ---------- */
.categories{padding:0 0 20px;}
.cat-scroll{display:flex;gap:12px;overflow-x:auto;padding:4px 0 14px;scrollbar-width:none;}
.cat-scroll::-webkit-scrollbar{display:none;}
.cat-chip{
  flex:none;display:flex;align-items:center;gap:9px;
  padding:11px 18px;border-radius:999px;background:var(--white);
  border:1px solid var(--line);font-size:14.5px;font-weight:500;
  transition:border-color .15s ease, background .15s ease;
}
.cat-chip .icon{width:17px;height:17px;color:var(--teal-deep);}
.cat-chip:hover{border-color:var(--teal);background:var(--paper-dim);}
.cat-chip.active{background:var(--teal);border-color:var(--teal);color:var(--white);}
.cat-chip.active .icon{color:var(--white);}

/* ---------- Section headers ---------- */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:36px;}
.section-head h2{font-size:32px;}
.section-head p{color:var(--muted);font-size:15.5px;margin-top:8px;}
.section-head a{font-size:14.5px;font-weight:600;color:var(--teal-deep);border-bottom:1px solid var(--teal-deep);padding-bottom:2px;}

/* ---------- Icon grid + cards (shared by homepage + browse) ---------- */
.icon-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;}
.icon-grid.cols-4{grid-template-columns:repeat(4,1fr);}
.icon-card{
  position:relative;background:var(--white);border:1px solid var(--line);
  border-radius:var(--radius-md);padding:22px 14px 16px;text-align:center;
  overflow:hidden;
}
.icon-card .icon{width:34px;height:34px;margin:0 auto 14px;color:var(--ink);}
.icon-card .pack{font-size:12.5px;color:var(--muted);}
.icon-card .quick{
  position:absolute;inset:auto 0 0 0;display:flex;justify-content:center;gap:6px;
  padding:9px;background:var(--paper-dim);border-top:1px solid var(--line);
  transform:translateY(100%);transition:transform .18s ease;
}
.icon-card:hover .quick{transform:translateY(0);}
.quick button{
  width:auto;height:26px;padding:0 11px;border-radius:999px;
  border:1px solid var(--line);background:var(--white);
  display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
  font-size:10.5px;font-weight:700;letter-spacing:0.01em;color:var(--muted);
}
.quick button:hover{border-color:var(--teal);color:var(--teal);}

/* ---------- Customize spotlight ---------- */
.spotlight{background:var(--ink);color:var(--paper);border-radius:32px;padding:64px;margin:0 32px;}
.spot-inner{max-width:1136px;margin:0 auto;display:grid;grid-template-columns:0.85fr 1.15fr;gap:64px;align-items:center;}
.spot-copy h2{color:var(--white);font-size:34px;max-width:12ch;}
.spot-copy p{margin-top:16px;color:#AFC6C3;font-size:16px;max-width:40ch;}
.spot-preview{
  width:280px;height:280px;border-radius:50%;background:#173C42;
  display:flex;align-items:center;justify-content:center;margin:0 auto;
  border:1px solid #285053;
}
.spot-preview .icon{width:120px;height:120px;color:var(--demo-color,var(--sand));transition:color .2s ease;}
.spot-controls{margin-top:28px;}
.ctrl-label{font-size:12.5px;color:#9BB6B3;font-weight:600;margin-bottom:10px;}
.swatch-row{display:flex;gap:10px;margin-bottom:26px;}
.swatch{width:30px;height:30px;border-radius:50%;border:2px solid transparent;cursor:pointer;position:relative;}
.swatch.active{border-color:var(--white);}
.pill-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px;}
.pill{
  padding:8px 15px;border-radius:999px;border:1px solid #2E5559;background:transparent;
  color:#CBDEDB;font-size:13.5px;font-weight:600;
}
.pill.active{background:var(--sand);border-color:var(--sand);color:var(--ink);}
.spot-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;}

/* Hex / native color-picker row, background toggle, margin slider, size-custom input
   — shared look used in the homepage spotlight (dark theme) and reused/overridden
   inside the light-themed download modal below. */
.hex-row{display:flex;align-items:center;gap:10px;margin:-10px 0 26px;}
.hex-row input[type=color]{width:34px;height:34px;padding:0;border:1px solid #2E5559;border-radius:50%;background:none;flex:none;cursor:pointer;}
.hex-row input[type=color]::-webkit-color-swatch-wrapper{padding:2px;border-radius:50%;}
.hex-row input[type=color]::-webkit-color-swatch{border-radius:50%;border:none;}
.hex-row input[type=text]{flex:1;min-width:0;background:transparent;border:1px solid #2E5559;border-radius:999px;padding:8px 14px;font-family:inherit;font-size:13.5px;color:var(--white);}
.size-custom{width:84px;border-radius:999px;border:1px solid #2E5559;background:transparent;color:var(--white);padding:8px 6px;font-family:inherit;font-size:12.5px;text-align:center;}
.size-custom::placeholder{color:#7FA09D;}
.bg-color-row.hidden, .jpg-note.hidden{display:none;}
.margin-row input[type=range]{width:100%;accent-color:var(--sand);}
.ctrl-live{color:var(--sand);font-weight:700;}
.jpg-note{font-size:12.5px;color:#9BB6B3;margin:-14px 0 20px;line-height:1.5;}

/* ---------- Customize & Download modal (used from every icon card) ---------- */
.icon-card{cursor:pointer;}
.dl-overlay{
  position:fixed;inset:0;z-index:300;display:none;align-items:center;justify-content:center;
  background:rgba(15,43,51,0.55);padding:24px;
}
.dl-overlay.open{display:flex;}
.dl-modal{
  position:relative;background:var(--white);border-radius:var(--radius-lg);
  width:100%;max-width:760px;max-height:92vh;overflow:auto;
  box-shadow:0 30px 80px -30px rgba(15,43,51,0.55);
}
.dl-close{
  position:absolute;top:16px;right:16px;z-index:2;width:34px;height:34px;border-radius:50%;
  border:1px solid var(--line);background:var(--white);color:var(--muted);
  display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;
}
.dl-close:hover{border-color:var(--ink);color:var(--ink);}
.dl-grid{display:grid;grid-template-columns:0.95fr 1.05fr;}
.dl-preview-pane{
  padding:48px 32px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;
  background:var(--paper-dim);border-radius:var(--radius-lg) 0 0 var(--radius-lg);
}
.dl-preview-bg{
  width:220px;height:220px;border-radius:20px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line);overflow:hidden;flex:none;
  background-color:#fff;
  background-image:
    linear-gradient(45deg,#e3ecea 25%,transparent 25%),
    linear-gradient(-45deg,#e3ecea 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#e3ecea 75%),
    linear-gradient(-45deg,transparent 75%,#e3ecea 75%);
  background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0px;
  transition:background-color .15s ease;
}
.dl-preview-bg.has-bg{background-image:none;}
.dl-preview-bg svg{width:66%;height:66%;transition:color .15s ease;}
.dl-preview-pack{font-size:13.5px;color:var(--muted);text-align:center;}
.dl-controls-pane{padding:44px 36px 40px;}
.dl-controls-pane .ctrl-label{color:var(--muted);font-size:12.5px;font-weight:600;margin-bottom:10px;}
.dl-controls-pane .swatch{width:28px;height:28px;}
.dl-controls-pane .swatch.active{border-color:transparent;box-shadow:0 0 0 2px var(--white),0 0 0 4px var(--teal);}
.dl-controls-pane .hex-row input[type=color]{border-color:var(--line);}
.dl-controls-pane .hex-row input[type=text]{border-color:var(--line);color:var(--ink);}
.dl-controls-pane .size-custom{border-color:var(--line);color:var(--ink);width:84px;}
.dl-controls-pane .size-custom::placeholder{color:#8CA3A1;}
.dl-controls-pane .pill{border-color:var(--line);color:var(--muted);background:var(--white);}
.dl-controls-pane .pill.active{background:var(--teal);border-color:var(--teal);color:var(--white);}
.dl-controls-pane .margin-row input[type=range]{accent-color:var(--teal);}
.dl-controls-pane .ctrl-live{color:var(--teal-deep);}
.dl-controls-pane .jpg-note{color:var(--muted);}

@media (max-width:720px){
  .dl-grid{grid-template-columns:1fr;}
  .dl-preview-pane{border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding:36px 24px;}
  .dl-preview-bg{width:180px;height:180px;}
  .dl-controls-pane{padding:32px 24px 34px;}
}

/* ---------- Plans ---------- */
.plans-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.plan-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:36px;}
.plan-card.featured{border-color:var(--teal);box-shadow:0 18px 40px -26px rgba(28,124,136,0.55);}
.plan-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.plan-top h3{font-size:22px;}
.tag{font-size:12px;font-weight:700;color:var(--teal-deep);background:#DDEEEC;padding:5px 11px;border-radius:999px;}
.plan-limit{font-family:'Fraunces',serif;font-size:40px;font-weight:600;margin:14px 0 2px;}
.plan-limit span{font-size:15px;font-family:'Work Sans',sans-serif;color:var(--muted);font-weight:500;}
.plan-list{margin:24px 0 28px;display:flex;flex-direction:column;gap:12px;}
.plan-list li{display:flex;gap:10px;font-size:14.5px;color:var(--ink);align-items:flex-start;}
.plan-list .icon{width:17px;height:17px;color:var(--teal);flex:none;margin-top:2px;}

/* ---------- CTA banner ---------- */
.banner{
  margin:0 32px;border-radius:28px;background:var(--paper-dim);
  padding:56px 64px;display:flex;align-items:center;justify-content:space-between;gap:32px;
  border:1px solid var(--line);
}
.banner h2{font-size:28px;max-width:16ch;}
.banner-actions{display:flex;gap:12px;flex:none;}

/* ---------- Footer ---------- */
footer{padding:72px 0 32px;}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr 1.1fr;gap:32px;padding-bottom:48px;border-bottom:1px solid var(--line);}
.foot-brand p{margin-top:14px;color:var(--muted);font-size:14px;max-width:32ch;}
.foot-col h4{font-size:13.5px;font-weight:600;margin-bottom:16px;}
.foot-col ul{display:flex;flex-direction:column;gap:11px;}
.foot-col a{font-size:14px;color:var(--muted);}
.foot-col a:hover{color:var(--ink);}
.foot-news{display:flex;gap:8px;margin-top:14px;}
.foot-news input{
  flex:1;min-width:0;border:1px solid var(--line);border-radius:999px;
  padding:10px 14px;font-family:inherit;font-size:13.5px;background:var(--white);
}
.foot-news button{border:none;background:var(--ink);color:var(--white);border-radius:999px;padding:10px 16px;font-size:13px;font-weight:600;flex:none;}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px;font-size:13px;color:var(--muted);flex-wrap:wrap;gap:12px;}

/* ================= Browse / search results page ================= */
.browse-head{padding:44px 0 28px;border-bottom:1px solid var(--line);}
.browse-crumb{font-size:13.5px;color:var(--muted);margin-bottom:14px;}
.browse-crumb a:hover{color:var(--ink);}
.browse-title{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.browse-title h1{font-size:30px;}
.browse-count{font-size:14.5px;color:var(--muted);margin-top:6px;}
.browse-search{margin-top:22px;}

.browse-body{display:grid;grid-template-columns:260px 1fr;gap:40px;padding:40px 0 90px;align-items:start;}

.filter-panel{position:sticky;top:96px;display:flex;flex-direction:column;gap:30px;}
.filter-group h3{font-size:14px;font-weight:600;margin-bottom:14px;}
.filter-check{display:flex;align-items:center;gap:10px;font-size:14.5px;color:var(--ink);padding:6px 0;cursor:pointer;}
.filter-check input{
  appearance:none;width:18px;height:18px;border:1.5px solid var(--line);border-radius:5px;
  flex:none;position:relative;background:var(--white);
}
.filter-check input:checked{background:var(--teal);border-color:var(--teal);}
.filter-check input:checked::after{
  content:'';position:absolute;left:5px;top:1.5px;width:5px;height:9px;
  border:solid var(--white);border-width:0 2px 2px 0;transform:rotate(40deg);
}
.filter-check .count{margin-left:auto;color:var(--muted);font-size:13px;}
.filter-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;}
.filter-swatches .swatch{width:28px;height:28px;border:1px solid rgba(0,0,0,0.08);}
.filter-style{display:flex;gap:8px;}
.filter-style button{
  flex:1;padding:9px 0;border-radius:999px;border:1px solid var(--line);background:var(--white);
  font-size:13.5px;font-weight:600;color:var(--muted);
}
.filter-style button.active{background:var(--ink);border-color:var(--ink);color:var(--white);}
.filter-note{font-size:13px;color:var(--muted);background:var(--paper-dim);border-radius:var(--radius-sm);padding:14px;}

.results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;}
.results-toolbar .cat-chip{padding:8px 14px;}
.sort-select{
  appearance:none;background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C7876' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5,8.5 12,15.5 19,8.5'/%3E%3C/svg%3E") no-repeat right 12px center/14px;
  border:1px solid var(--line);border-radius:999px;padding:9px 34px 9px 16px;font-size:13.5px;font-weight:500;color:var(--ink);
}
.mobile-filter-toggle{display:none;align-items:center;gap:8px;border:1px solid var(--line);background:var(--white);border-radius:999px;padding:9px 16px;font-size:13.5px;font-weight:600;}
.mobile-filter-toggle .icon{width:15px;height:15px;}

.pagination{display:flex;justify-content:center;gap:8px;margin-top:44px;}
.pagination a, .pagination span{
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  border-radius:50%;font-size:14px;font-weight:600;color:var(--muted);
}
.pagination a:hover{background:var(--paper-dim);color:var(--ink);}
.pagination .current{background:var(--teal);color:var(--white);}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .wrap{padding:0 22px;}
  section{padding:64px 0;}
  .nav-toggle{display:block;}
  .nav-collapse{
    display:none;
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:18px;
    background:var(--white);border-bottom:1px solid var(--line);
    padding:20px 22px 26px;
    box-shadow:0 16px 28px -20px rgba(15,43,51,0.4);
  }
  .nav-collapse.open{display:flex;}
  .nav-links{flex-direction:column;align-items:flex-start;gap:16px;}
  .nav-right{flex-direction:column;align-items:stretch;gap:10px;}
  .nav-right .btn, .nav-right .nav-login{width:100%;text-align:center;padding-top:12px;padding-bottom:12px;}
  .nav-login{border:1px solid var(--line);border-radius:999px;}
  .hero-grid{grid-template-columns:1fr;}
  .wave-cluster{height:300px;margin-top:20px;}
  .hero h1{font-size:38px;}
  .icon-grid{grid-template-columns:repeat(3,1fr);}
  .results-toolbar{flex-wrap:wrap;}
  .pagination{flex-wrap:wrap;}
  .spotlight{margin:0 22px;padding:40px 26px;}
  .spot-inner{grid-template-columns:1fr;gap:36px;}
  .spot-grid{grid-template-columns:1fr;}
  .spot-preview{width:220px;height:220px;}
  .spot-preview .icon{width:92px;height:92px;}
  .plans-grid{grid-template-columns:1fr;}
  .banner{margin:0 22px;flex-direction:column;text-align:center;padding:40px 28px;}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .foot-brand{grid-column:1/-1;}
  .browse-body{grid-template-columns:1fr;}
  .filter-panel{position:static;display:none;}
  .filter-panel.open{display:flex;}
  .mobile-filter-toggle{display:flex;}
}
@media (max-width:520px){
  .hero h1{font-size:32px;}
  .icon-grid{grid-template-columns:repeat(2,1fr);}
  .foot-grid{grid-template-columns:1fr;}
  .hero-stats{flex-wrap:wrap;row-gap:16px;}
  .browse-title{flex-direction:column;align-items:flex-start;}
  .wave-cluster{height:250px;}
  .wave-tile{transform:scale(0.78);}
  .w1{top:-6px;}
  .w4{top:140px;}
  .w7{bottom:-10px;}
}
