/* sitefern.com homepage. Product-forward: real template previews, warm paper,
   serif display type with proper weight contrast, fern green as the single
   accent. No full-bleed stock photography. */

:root {
  --ink: #1c2620;
  --soft: #4d5c53;
  --faint: #7d8a80;
  --paper: #f5f4ed;
  --panel: #ffffff;
  --mist: #e9ece2;
  --fern: #2f5d44;
  --fern-deep: #1e4030;
  --rule: rgba(28, 38, 32, 0.14);
  --rule-soft: rgba(28, 38, 32, 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
[id] { scroll-margin-top: 90px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.wide { max-width: 1260px; margin: 0 auto; padding: 0 28px; }

:focus-visible { outline: 2px solid var(--fern); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }

/* type scale */
.display {
  font-family: var(--serif);
  font-weight: 560;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.015em;
  line-height: 1.04;
}
h2.display { font-size: clamp(32px, 4.2vw, 54px); }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fern);
  margin: 0 0 18px;
}
.lede { color: var(--soft); font-size: 19px; max-width: 56ch; }

/* buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--fern);
  color: #fff;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--fern-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}
.btn-ghost:hover { background: rgba(28, 38, 32, 0.05); }
.btn-light { background: #fff; color: var(--fern-deep); }
.btn-light:hover { background: var(--mist); }

/* nav */
.nav { position: relative; z-index: 10; border-bottom: 1px solid var(--rule-soft); }
.nav .wide { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .brand { font-family: var(--serif); font-size: 24px; font-weight: 600; text-decoration: none; }
.nav .links { display: flex; gap: 28px; align-items: center; }
.nav .links a { text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--soft); }
.nav .links a:hover { color: var(--ink); }
.nav .links .pill {
  color: #fff; background: var(--fern);
  padding: 9px 20px; border-radius: 999px; font-weight: 600;
}
.nav .links .pill:hover { background: var(--fern-deep); color: #fff; }

/* hero */
.hero { padding: 96px 0 0; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  max-width: 13ch;
}
.hero .lede { margin: 28px 0 0; }
.hero .act { margin: 38px 0 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .note { margin: 16px 0 0; font-size: 14.5px; color: var(--faint); }

/* browser-framed product shot */
.frame { margin-top: 76px; }
.frame .chrome {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 60px 120px -60px rgba(28, 38, 32, 0.45);
  overflow: hidden;
}
.frame .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--mist); }
.frame .bar .url {
  margin-left: 12px;
  font-size: 13px;
  color: var(--faint);
  background: var(--paper);
  border-radius: 8px;
  padding: 4px 14px;
}
.frame img { width: 100%; height: auto; }
.frame .credit { text-align: center; font-size: 14.5px; color: var(--faint); margin: 18px 0 0; }
.frame .credit a { color: var(--soft); }

/* sections */
.sec { padding: 130px 0; }
.sec--panel { background: var(--mist); }
.sec .head { max-width: 720px; margin-bottom: 72px; }
.sec .head .lede { margin: 20px 0 0; }

/* how it works: three plain blocks, no numbering */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.how .blk h3 { font-family: var(--serif); font-weight: 560; font-size: 26px; margin: 0 0 14px; }
.how .blk p { color: var(--soft); margin: 0; font-size: 17px; }
.how .blk .ln { width: 34px; height: 3px; background: var(--fern); margin-bottom: 22px; border-radius: 2px; }

/* template wall */
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.tile { text-decoration: none; color: inherit; display: block; }
.tile .pic {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 30px 60px -40px rgba(28, 38, 32, 0.4);
  background: var(--panel);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover .pic { transform: translateY(-5px); box-shadow: 0 40px 70px -40px rgba(28, 38, 32, 0.5); }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tile h3 { font-size: 19px; font-weight: 600; margin: 18px 0 2px; }
.tile p { color: var(--faint); margin: 0; font-size: 15.5px; }
.tmore { margin-top: 56px; }

/* convert: copy beside a mock of the admin pipeline */
.duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.duo .lede + .lede { margin-top: 18px; }
.duo .kicker { margin-bottom: 18px; }
.duo h2 { margin-bottom: 20px; }
.pipe {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 50px 100px -60px rgba(28, 38, 32, 0.45);
}
.pipe .ttl { font-weight: 600; font-size: 17px; }
.pipe .src { font-size: 13.5px; color: var(--faint); margin: 4px 0 18px; }
.pipe .track { height: 6px; border-radius: 999px; background: var(--mist); overflow: hidden; margin-bottom: 22px; }
.pipe .track i { display: block; height: 100%; width: 62%; border-radius: 999px; background: var(--fern); }
.pipe .steps { display: grid; gap: 13px; margin-bottom: 24px; }
.pipe .stp { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--soft); }
.pipe .stp .dot {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--mist); color: var(--faint);
}
.pipe .stp.done .dot { background: var(--fern); color: #fff; }
.pipe .stp.live .dot { background: var(--fern); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
.pipe .stp.live { color: var(--ink); font-weight: 600; }
@keyframes pulse { 50% { opacity: 0.55; } }
.pipe .found { border-top: 1px solid var(--rule-soft); padding-top: 18px; display: flex; align-items: center; gap: 14px; }
.pipe .found .lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.pipe .found .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--rule-soft); }
.pipe .found .sw-a { background: #264653; }
.pipe .found .sw-b { background: #e9c46a; }
.pipe .found .sw-c { background: #f4f1de; }
.pipe .found .ff { font-family: var(--serif); font-size: 16px; color: var(--soft); margin-left: auto; }

/* what we look after: ruled editorial list */
.handle-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 72px;
  border-top: 1px solid var(--rule);
}
.handle-list .item { border-bottom: 1px solid var(--rule); padding: 30px 0; }
.handle-list .item h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.handle-list .item p { color: var(--soft); margin: 0; font-size: 16.5px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--panel); border: 1px solid var(--rule-soft); border-radius: 18px; padding: 40px 34px; }
.plan.mid { background: var(--fern-deep); border-color: var(--fern-deep); color: #fff; }
.plan .pn { font-size: 20px; font-weight: 600; }
.plan .pr { margin: 12px 0 24px; font-size: 15.5px; color: var(--faint); }
.plan.mid .pr { color: rgba(255, 255, 255, 0.7); }
.plan .pr b { font-family: var(--serif); font-size: 42px; font-weight: 560; color: inherit; letter-spacing: -0.02em; }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; }
.plan li { padding: 10px 0; font-size: 16px; color: var(--soft); border-top: 1px solid var(--rule-soft); }
.plan.mid li { color: rgba(255, 255, 255, 0.88); border-color: rgba(255, 255, 255, 0.16); }
.plan li:first-child { border-top: 0; }
.plan .btn { display: block; text-align: center; }
.plan.mid .btn { background: #fff; color: var(--fern-deep); }
.plan.mid .btn:hover { background: var(--mist); }

/* faq */
.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 26px 0;
  font-size: 19px; font-weight: 600;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { width: 20px; height: 20px; flex: none; color: var(--fern); transition: transform 0.25s ease; }
.faq-list details[open] summary .pm { transform: rotate(45deg); }
.faq-list .a { padding: 0 0 26px; color: var(--soft); font-size: 17px; max-width: 62ch; margin: 0; }

/* closing band */
.closing { background: var(--fern-deep); color: #fff; padding: 120px 0; }
.closing h2 { color: #fff; max-width: 16ch; }
.closing p { color: rgba(255, 255, 255, 0.85); margin: 22px 0 0; max-width: 50ch; font-size: 19px; }
.closing .act { margin-top: 36px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.closing .note { margin-top: 18px; font-size: 14.5px; color: rgba(255, 255, 255, 0.65); }

/* footer */
.foot { padding: 70px 0; }
.foot .wide { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot .brand { font-family: var(--serif); font-size: 23px; font-weight: 600; text-decoration: none; }
.foot .tag { color: var(--faint); font-size: 15.5px; margin-top: 12px; max-width: 30ch; }
.foot .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 0 0 14px; }
.foot a { display: block; text-decoration: none; color: var(--soft); font-size: 15.5px; padding: 5px 0; }
.foot a:hover { color: var(--ink); }
.foot .legal { width: 100%; border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 24px; font-size: 13.5px; color: var(--faint); }

/* hamburger (injected by nav.js): hidden on desktop, base rules must precede
   the media query so its display:flex wins on mobile. */
.nav .sf-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 40px; padding: 9px 8px; background: none; border: 0; cursor: pointer; }
.nav .sf-burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav .sf-burger.sf-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav .sf-burger.sf-active span:nth-child(2) { opacity: 0; }
.nav .sf-burger.sf-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .sec { padding: 84px 0; }
  .hero { padding: 64px 0 0; }
  .frame { margin-top: 52px; }
  .how { grid-template-columns: 1fr; gap: 40px; }
  .duo { grid-template-columns: 1fr; gap: 48px; }
  .tgrid { grid-template-columns: 1fr; gap: 36px; }
  .handle-list { grid-template-columns: 1fr; gap: 0; }
  .plans { grid-template-columns: 1fr; }
  .closing { padding: 84px 0; }
  .nav .sf-burger { display: flex; }
  .nav .links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 0 14px; display: none;
    box-shadow: 0 30px 60px -24px rgba(28, 38, 32, 0.3);
  }
  .nav .links.sf-open { display: flex; }
  .nav .links a { padding: 14px 28px; font-size: 16px; display: block; }
  .nav .links .pill { margin: 12px 28px 4px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
