/* ===========================================================
   Instagram Highlight Viewer — deamachivers.com
   Shared stylesheet — clean, white, modern SaaS aesthetic
   =========================================================== */

:root{
  --green:#22c55e;
  --green-dark:#16a34a;
  --green-tint:#f0fdf4;
  --bg:#ffffff;
  --bg-hero:#f8fafc;
  --ink:#0f172a;
  --ink-soft:#64748b;
  --border:#e2e8f0;
  --input-bg:#f8fafc;
  --radius:14px;
  --max:1120px;
  --shadow:0 10px 40px rgba(15,23,42,0.08);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--green-dark);text-decoration:none;}
img{max-width:100%;display:block;}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px;}
h1,h2,h3{font-weight:800;letter-spacing:-0.02em;margin:0;}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--green);color:#fff;border:none;border-radius:12px;
  padding:16px 28px;font-size:1rem;font-weight:700;cursor:pointer;
  font-family:inherit;transition:background .15s ease, transform .15s ease;
}
.btn:hover{background:var(--green-dark);}
.btn:disabled{opacity:0.75;cursor:default;}

/* ---------- Nav ---------- */
nav.topnav{
  background:#fff;border-bottom:1px solid var(--border);
  padding:16px 0;position:sticky;top:0;z-index:50;
}
nav.topnav.scrolled{box-shadow:0 2px 12px rgba(15,23,42,0.06);}
nav.topnav .wrap{display:flex;align-items:center;justify-content:space-between;}
.logo{color:var(--ink);font-weight:800;font-size:1.1rem;}
.logo span{color:var(--green-dark);}
.nav-links{display:flex;gap:26px;font-size:0.92rem;align-items:center;}
.nav-links a{color:var(--ink-soft);font-weight:500;}
.nav-links a:hover{color:var(--ink);}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:4px;}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--ink);margin:5px 0;border-radius:2px;}

/* ---------- Hero ---------- */
.hero{background:var(--bg-hero);padding:64px 0 84px;text-align:center;}
.eyebrow{
  display:inline-block;background:var(--green-tint);border:1px solid #dcfce7;
  color:var(--green-dark);font-size:0.8rem;font-weight:700;padding:6px 14px;
  border-radius:999px;margin-bottom:22px;
}
.hero h1{font-size:clamp(1.8rem,4.4vw,3rem);line-height:1.15;max-width:760px;margin:0 auto 16px;}
.hero .subhead{color:var(--ink-soft);font-size:1.08rem;max-width:560px;margin:0 auto 40px;}

.tool-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:28px;max-width:560px;margin:0 auto;text-align:left;
}
.tool-card label{
  display:block;font-size:0.85rem;font-weight:700;color:var(--ink);margin-bottom:10px;
}
.input-row{position:relative;margin-bottom:14px;}
.input-row input[type="text"]{
  width:100%;height:56px;padding:0 96px 0 18px;border:1.5px solid var(--border);
  border-radius:12px;font-size:1rem;font-family:inherit;background:var(--input-bg);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.input-row input[type="text"]:focus{
  outline:none;border-color:var(--green);box-shadow:0 0 0 4px rgba(34,197,94,0.15);background:#fff;
}
.paste-btn{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  background:var(--green-tint);color:var(--green-dark);border:1px solid #bbf7d0;
  font-size:0.82rem;font-weight:700;padding:9px 14px;border-radius:999px;
  cursor:pointer;display:flex;align-items:center;gap:5px;font-family:inherit;
}
.paste-btn:hover{background:#dcfce7;}
.paste-btn svg{width:14px;height:14px;}

.tool-card .btn{width:100%;padding:16px;font-size:1.02rem;}
.error-msg{color:#dc2626;font-size:0.85rem;margin:0 0 10px;display:none;}
.tool-note{font-size:0.82rem;color:var(--ink-soft);text-align:center;margin:12px 0 0;}

.spinner{
  width:16px;height:16px;border:2px solid rgba(255,255,255,0.4);border-top-color:#fff;
  border-radius:50%;display:none;animation:spin .7s linear infinite;
}
.btn.loading .spinner{display:inline-block;}
@keyframes spin{to{transform:rotate(360deg);}}

.trust-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:30px;}
.trust-badge{
  display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--border);
  color:var(--ink-soft);font-size:0.85rem;font-weight:500;padding:8px 14px;border-radius:999px;
}
.trust-badge svg{width:16px;height:16px;flex:0 0 auto;color:var(--green-dark);}

.powered-by-hero{margin-top:22px;font-size:0.9rem;color:var(--ink-soft);}
.powered-by-hero a{color:var(--green-dark);font-weight:700;}

/* ---------- Sections ---------- */
section{padding:80px 0;}
.section-head{text-align:center;max-width:640px;margin:0 auto 52px;}
.eyebrow-light{
  display:inline-block;color:var(--green-dark);font-weight:700;font-size:0.8rem;
  text-transform:uppercase;letter-spacing:0.05em;margin-bottom:12px;
}
.section-head h2{font-size:clamp(1.5rem,3vw,2.1rem);margin-bottom:12px;}
.section-head p{color:var(--ink-soft);font-size:1.02rem;margin:0;}

/* ---------- Feature / supported grids ---------- */
.grid-3{display:grid;grid-template-columns:1fr;gap:22px;}
@media(min-width:700px){.grid-3{grid-template-columns:1fr 1fr;}}
@media(min-width:1000px){.grid-3{grid-template-columns:1fr 1fr 1fr;}}
.grid-4{display:grid;grid-template-columns:1fr;gap:18px;}
@media(min-width:700px){.grid-4{grid-template-columns:1fr 1fr;}}
@media(min-width:1000px){.grid-4{grid-template-columns:repeat(4,1fr);}}

.feature-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:26px;
}
.icon-circle{
  width:44px;height:44px;background:var(--green-tint);border-radius:50%;
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}
.icon-circle svg{width:22px;height:22px;color:var(--green-dark);}
.feature-card h3{font-size:1.05rem;margin-bottom:6px;}
.feature-card p{color:var(--ink-soft);font-size:0.93rem;margin:0;}

.support-card{
  background:var(--green-tint);border:1px solid #dcfce7;border-radius:var(--radius);
  padding:20px;text-align:center;
}
.support-card .icon-circle{margin:0 auto 12px;background:#fff;}
.support-card h3{font-size:0.98rem;margin-bottom:4px;}
.support-card p{color:var(--ink-soft);font-size:0.85rem;margin:0;}

/* ---------- How it works ---------- */
.how-it-works{background:var(--bg-hero);}
.steps-row{display:grid;grid-template-columns:1fr;gap:34px;}
@media(min-width:900px){.steps-row{grid-template-columns:repeat(3,1fr);}}
.step-card{text-align:center;}
.step-num-wrap{
  width:60px;height:60px;border-radius:50%;background:var(--green);
  display:flex;align-items:center;justify-content:center;margin:0 auto 18px;
  box-shadow:0 8px 20px rgba(34,197,94,0.3);
}
.step-num-wrap span{color:#fff;font-weight:800;font-size:1.3rem;}
.step-card h3{font-size:1.08rem;margin-bottom:8px;}
.step-card p{color:var(--ink-soft);font-size:0.93rem;margin:0;max-width:270px;margin-inline:auto;}

/* ---------- Article / content ---------- */
.content-section .wrap{max-width:760px;}
.byline{
  font-size:0.87rem;color:var(--ink-soft);background:var(--green-tint);
  border:1px solid #dcfce7;border-radius:8px;padding:10px 16px;display:inline-block;margin-bottom:26px;
}
.content-section h2{font-size:1.45rem;margin:36px 0 12px;}
.content-section h3{font-size:1.1rem;margin:22px 0 10px;}
.content-section p{color:var(--ink-soft);margin:0 0 15px;font-size:1rem;}
.content-section ul,.content-section ol{color:var(--ink-soft);padding-left:22px;}
.content-section li{margin-bottom:8px;}
.content-section strong{color:var(--ink);}

.author-box{
  background:var(--bg-hero);border:1px solid var(--border);border-radius:var(--radius);
  padding:18px 20px;margin:28px 0;font-size:0.92rem;color:var(--ink-soft);
}
.author-box strong{color:var(--ink);}

/* ---------- Steps (how-to-use page) ---------- */
.step{display:flex;gap:16px;margin-bottom:24px;align-items:flex-start;}
.step-num{
  flex:0 0 auto;width:36px;height:36px;border-radius:50%;background:var(--green);
  color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1rem;
}
.step-body h3{margin:0 0 6px;}
.step-body p{margin:0;color:var(--ink-soft);}

/* ---------- FAQ ---------- */
.faq{background:var(--bg-hero);}
.faq-list{max-width:760px;margin:0 auto;}
.faq-item{background:#fff;border:1px solid var(--border);border-radius:12px;margin-bottom:12px;overflow:hidden;}
.faq-question{
  width:100%;background:none;border:none;text-align:left;cursor:pointer;
  padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  font-family:inherit;font-size:1rem;font-weight:600;color:var(--ink);
}
.faq-toggle-icon{flex:0 0 auto;width:22px;height:22px;position:relative;}
.faq-toggle-icon::before,.faq-toggle-icon::after{
  content:"";position:absolute;background:var(--green-dark);border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.faq-toggle-icon::before{width:14px;height:2px;top:10px;left:4px;}
.faq-toggle-icon::after{width:2px;height:14px;top:4px;left:10px;}
.faq-item.open .faq-toggle-icon::after{transform:rotate(90deg);opacity:0;}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .28s ease;}
.faq-answer-inner{padding:0 22px 20px;color:var(--ink-soft);font-size:0.95rem;}
.faq-item.open .faq-answer{max-height:260px;}

/* ---------- Cards (generic, about/how-to pages) ---------- */
.card{border:1px solid var(--border);border-radius:var(--radius);padding:20px;background:var(--bg-hero);}
.card h3{margin-top:0;}

/* ---------- Footer ---------- */
footer{background:#fff;border-top:1px solid var(--border);color:var(--ink-soft);padding:40px 0 26px;}
.footer-top{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;
  padding-bottom:26px;border-bottom:1px solid var(--border);margin-bottom:20px;
}
.footer-logo{color:var(--ink);font-weight:800;font-size:1.02rem;}
.footer-logo span{color:var(--green-dark);}
.footer-nav{display:flex;gap:22px;flex-wrap:wrap;font-size:0.9rem;}
.footer-nav a{color:var(--ink-soft);}
.footer-nav a:hover{color:var(--ink);}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:0.84rem;}
.footer-bottom .powered-by a{color:var(--green-dark);font-weight:700;}

/* ---------- Utility ---------- */
.center{text-align:center;}
.updated-line{
  font-size:0.85rem;color:var(--ink-soft);background:var(--bg-hero);
  border:1px solid var(--border);border-radius:8px;padding:10px 14px;display:inline-block;margin-bottom:20px;
}

/* ---------- Mobile ---------- */
@media(max-width:760px){
  .nav-links{
    position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--border);
    flex-direction:column;padding:16px 24px;gap:16px;display:none;
  }
  .nav-links.open{display:flex;}
  .nav-toggle{display:block;}
  section{padding:56px 0;}
  .paste-btn{font-size:0.76rem;padding:7px 10px;}
  .input-row input[type="text"]{padding-right:82px;}
}
