/* ==========================================================================
   EditsInsta — token system
   ink #14171F | paper #F7F5F0 | amber #FF9F1C | teal #2EC4B6 | graphite #545862
   Display: Space Grotesk · Body: Inter · Utility/data: JetBrains Mono
   Signature: the horizontal "timeline scrubber" motif, echoed in hero,
   step numbers and section dividers.
   ========================================================================== */

:root {
  --ink: #14171F;
  --ink-soft: #1D2130;
  --paper: #F7F5F0;
  --paper-dim: #EDEAE2;
  --amber: #FF9F1C;
  --teal: #2EC4B6;
  --graphite: #545862;
  --line: #2A2E3C;
  --line-light: #DEDACE;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber);
  color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--graphite); }
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); display: inline-block; margin-bottom: 12px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-weight: 600; font-size: .95rem; padding: 13px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(255,159,28,.55); }
.btn-primary:hover { background: #ffb54a; box-shadow: 0 12px 26px -8px rgba(255,159,28,.65); }
.btn-secondary { background: transparent; color: var(--paper); border-color: rgba(247,245,240,.3); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-light); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-word { font-family: var(--font-display); font-weight: 700; color: var(--paper); font-size: 1.2rem; letter-spacing: -.01em; }
.brand-mark { position: relative; width: 30px; height: 30px; border-radius: 8px; background: var(--ink-soft); border: 1px solid var(--line); }
.brand-track { position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; background: var(--amber); border-radius: 2px; transform: translateY(-50%); }
.brand-play { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); transform: translate(-50%,-50%); }

.main-nav { display: flex; gap: 28px; }
.main-nav a { color: #C7C9D1; font-size: .93rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { color: var(--paper); border-color: var(--amber); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--paper); }

/* ---------- hero / timeline signature ---------- */
.hero {
  background: var(--ink); color: var(--paper); padding: 88px 0 64px; position: relative; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); color: var(--paper); max-width: 14ch; }
.hero .lede { color: #B7BAC4; font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-family: var(--font-mono); font-size: .78rem; color: #8B8FA0; }

.scrubber {
  --ticks: 28;
  background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 22px;
}
.scrubber-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.scrubber-label { font-family: var(--font-mono); font-size: .72rem; color: #8B8FA0; letter-spacing: .06em; text-transform: uppercase; }
.scrubber-clips { display: flex; gap: 6px; height: 46px; margin-bottom: 14px; }
.clip { flex: 1; border-radius: 6px; background: linear-gradient(180deg, rgba(255,159,28,.35), rgba(255,159,28,.08)); border: 1px solid rgba(255,159,28,.4); }
.clip.teal { background: linear-gradient(180deg, rgba(46,196,182,.35), rgba(46,196,182,.08)); border-color: rgba(46,196,182,.4); }
.ruler { position: relative; height: 26px; border-top: 1px solid var(--line); }
.ruler::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100%/var(--ticks)));
}
.playhead { position: absolute; top: -8px; left: 38%; width: 2px; height: 40px; background: var(--amber); }
.playhead::before { content: ""; position: absolute; top: -6px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
.scrubber-meta { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--font-mono); font-size: .74rem; color: #8B8FA0; }

/* ---------- trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-soft); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; padding: 18px 24px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .78rem; color: #C7C9D1; letter-spacing: .01em; }
.trust-item svg { flex-shrink: 0; }

/* ---------- stats bar ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 26px 12px; border: 1px solid var(--line-light); border-radius: var(--radius); background: #fff; }
.stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); display: block; }
.stat .label { font-family: var(--font-mono); font-size: .74rem; color: var(--graphite); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- image placeholders (swap with real screenshots later) ---------- */
.img-slot {
  position: relative; width: 100%; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--paper-dim) 0 12px, #fff 12px 24px);
  border: 1.5px dashed #cfcabb; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot .img-slot-label {
  font-family: var(--font-mono); font-size: .74rem; color: var(--graphite);
  background: rgba(247,245,240,.92); padding: 8px 14px; border-radius: 20px; margin: 12px;
}
.section-dark .img-slot { background: repeating-linear-gradient(135deg, var(--ink-soft) 0 12px, #232838 12px 24px); border-color: #3a3f52; }
.section-dark .img-slot .img-slot-label { color: #B7BAC4; background: rgba(29,33,48,.92); }
.img-slot.ratio-16-9 { aspect-ratio: 16 / 9; }
.img-slot.ratio-9-16 { aspect-ratio: 9 / 16; max-width: 280px; margin: 0 auto; }
.img-slot.ratio-4-3 { aspect-ratio: 4 / 3; }
.img-slot.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ---------- generic sections ---------- */
.section { padding: 76px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: #B7BAC4; }
.section-alt { background: var(--paper-dim); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

.divider { height: 1px; background: repeating-linear-gradient(90deg, var(--line-light) 0 8px, transparent 8px 16px); margin: 0; }
.section-dark .divider { background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(20,23,31,.18); border-color: #cfcabb; }
.section-dark .card { background: var(--ink-soft); border-color: var(--line); }
.section-dark .card:hover { box-shadow: 0 16px 32px -18px rgba(0,0,0,.5); border-color: #3a3f52; }
.card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: rgba(255,159,28,.15); }
.card-icon.teal-bg { background: rgba(46,196,182,.15); }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: .93rem; margin-bottom: 0; }

/* ---------- steps (how it works) ---------- */
.steps { position: relative; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 26px 14px; margin: 0 -14px; border-top: 1px solid var(--line-light); border-radius: 10px; transition: background .15s ease; }
.step:hover { background: var(--paper-dim); }
.step:first-child { border-top: none; }
.step-num { font-family: var(--font-mono); font-size: .85rem; color: var(--teal); padding-top: 4px; }
.step h3 { margin-bottom: 6px; font-size: 1.1rem; }

/* ---------- compare table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-light); }
table.compare { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line-light); font-size: .92rem; }
table.compare tbody tr { transition: background .12s ease; }
table.compare tbody tr:hover { background: var(--paper-dim); }
table.compare th { font-family: var(--font-display); background: var(--paper-dim); }
table.compare td:first-child, table.compare th:first-child { font-weight: 600; }
table.compare tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: .72rem; padding: 3px 9px; border-radius: 20px; }
.tag.yes { background: rgba(46,196,182,.15); color: #1a8f84; }
.tag.no { background: rgba(84,88,98,.12); color: var(--graphite); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary {
  cursor: pointer; padding: 20px 4px; font-family: var(--font-display); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
  transition: color .15s ease;
}
.faq-item summary:hover { color: var(--teal); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--amber); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 20px; max-width: 68ch; }

/* ---------- guide list ---------- */
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.guide-card { border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(20,23,31,.18); border-color: #cfcabb; }
.guide-thumb { height: 8px; background: linear-gradient(90deg, var(--amber), var(--teal)); }
.guide-card-body { padding: 24px; }
.guide-meta { font-family: var(--font-mono); font-size: .74rem; color: var(--graphite); margin-bottom: 10px; }
.guide-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.guide-card a.read-more { font-family: var(--font-mono); font-size: .8rem; color: var(--teal); }

.post-body h2 { margin-top: 1.6em; font-size: 1.4rem; }
.post-body p { max-width: 68ch; }
.post-body ul { color: var(--graphite); max-width: 68ch; }

/* ---------- download page ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card { border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px; text-align: center; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.platform-card:not(.unavailable):hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(20,23,31,.18); border-color: #cfcabb; }
.platform-card.unavailable { opacity: .7; }
.platform-badge { font-family: var(--font-mono); font-size: .72rem; padding: 4px 10px; border-radius: 20px; background: var(--paper-dim); display: inline-block; margin-bottom: 14px; }

.notice {
  border: 1px dashed var(--line-light); border-radius: var(--radius); padding: 18px 20px;
  font-size: .9rem; color: var(--graphite); background: var(--paper-dim);
}

/* ---------- contact ---------- */
.form-grid { display: grid; gap: 16px; max-width: 560px; }
.form-grid label { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--graphite); margin-bottom: 6px; display: block; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-light); border-radius: 8px;
  font-family: var(--font-body); font-size: .95rem; background: #fff;
}
.form-grid textarea { min-height: 140px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: #9EA1AE; font-size: .9rem; max-width: 32ch; margin-top: 12px; }
.footer-col h3 { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #8B8FA0; margin-bottom: 14px; }
.footer-col a { display: block; color: #C7C9D1; font-size: .92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--amber); }
.footer-legal { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-legal p { color: #74778A; font-size: .78rem; max-width: 90ch; margin: 0; }

/* ---------- misc page hero (non-home) ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: 56px 0; }
.page-hero h1 { color: var(--paper); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-hero p { color: #B7BAC4; max-width: 60ch; }
.breadcrumbs { font-family: var(--font-mono); font-size: .76rem; color: #8B8FA0; margin-bottom: 16px; }
.breadcrumbs a { color: #8B8FA0; }
.breadcrumbs a:hover { color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .guide-list { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .trust-strip .wrap { gap: 16px 24px; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--ink); flex-direction: column;
    padding: 10px 24px 20px; gap: 4px; border-bottom: 1px solid var(--line); transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: all .18s ease; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
