/* Reposy — one stylesheet for every page.
   Palette is the approved brand: Flash (dark) and Warm Paper (light).
   Nothing here is a framework; every rule below is used by a page. */

:root {
  color-scheme: light dark;

  --bg:        #F6F4ED;
  --surface:   #FFFFFF;
  --surface-2: #EEECE4;
  --ink:       #171813;
  --ink-2:     #5F6257;
  --border:    #D5D5C9;
  --accent:    #D8FF3E;
  --link:      #4E5B16;
  --on-accent: #171813;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #111111;
    --surface:   #1C1D18;
    --surface-2: #25261F;
    --ink:       #F3F1E8;
    --ink-2:     #B9BAAF;
    --border:    #3D3F34;
    --link:      #D8FF3E;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 96px;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

main { max-width: 640px; margin: 0 auto; }
body.home main, body.wide main { max-width: 820px; }

h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.4px; }
h2 { font-size: 20px; margin: 38px 0 10px; letter-spacing: -0.2px; }
p, li { margin: 0 0 14px; }
ul { padding-left: 22px; }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }

.updated { color: var(--ink-2); font-size: 15px; margin-bottom: 34px; }
.fine { font-size: 14px; }
.muted { color: var(--ink-2); }

/* --- site header -------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  margin-bottom: 40px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}
.mark img { width: 28px; height: 28px; border-radius: 7px; }

.top nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* The page you are on is named in the bar but is not a link anywhere. */
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(0.94); }
.btn-ghost { border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }

/* --- hero --------------------------------------------------------------- */

.hero h1 {
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -1.3px;
  margin: 0 0 20px;
}
.hero .lede { font-size: 19px; max-width: 34em; }

.status {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.status b { color: var(--ink); font-weight: 600; }
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 7px; vertical-align: 1px;
}

/* --- sections ----------------------------------------------------------- */

section { margin-top: 72px; }
section > h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.section-lede { font-size: 18px; max-width: 34em; margin-top: -6px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
}
.card h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.2px; }
.card p { margin: 0; font-size: 16px; }

.steps { padding-left: 22px; }
.steps li { margin-bottom: 16px; }

.plain { list-style: none; padding-left: 0; }
.plain li { padding-left: 20px; position: relative; }
.plain li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}

/* --- before / after ----------------------------------------------------- */

figure.compare { margin: 0; max-width: 640px; }

.compare-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  aspect-ratio: 1280 / 1463;
}
.compare-box img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* The "after" sits on top and is revealed from the left by the slider. */
.compare-box .after { clip-path: inset(0 0 0 var(--split, 50%)); }

.compare-box .handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 2px; background: var(--accent);
  pointer-events: none;
}
.compare-box .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  background-image:
    linear-gradient(to right, transparent 12px, #171813 12px 13.5px,
                    transparent 13.5px 26.5px, #171813 26.5px 28px, transparent 28px);
}

.compare-box input[type=range] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}
.compare-box input[type=range]:focus-visible { opacity: 0.001; outline: none; }
.compare-box:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

.compare-tag {
  position: absolute; top: 12px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(17,17,17,0.72); color: #F3F1E8;
  backdrop-filter: blur(6px);
}
.compare-tag.left  { left: 12px; }
.compare-tag.right { right: 12px; background: var(--accent); color: #171813; }

figure.compare figcaption {
  margin-top: 12px; font-size: 15px; color: var(--ink-2);
}

/* --- pricing ------------------------------------------------------------ */

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}
.price.pick { border-color: var(--accent); border-width: 2px; padding: 17px 19px; }
.price .amount { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }
.price .per { font-size: 15px; color: var(--ink-2); margin: 2px 0 0; }
.price .tag {
  display: inline-block; margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--ink-2);
}
.price.pick .tag { color: var(--link); }

/* --- FAQ ---------------------------------------------------------------- */

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 32px 14px 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-size: 22px; font-weight: 400; color: var(--ink-2);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); max-width: 36em; }

/* --- footer ------------------------------------------------------------- */

footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 15px;
}
body.doc footer { margin-top: 52px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 18px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }

/* --- phone width -------------------------------------------------------- */

@media (max-width: 680px) {
  .hero h1 { font-size: 33px; letter-spacing: -0.9px; }
  .hero .lede { font-size: 17px; }
  .grid, .price-grid { grid-template-columns: minmax(0, 1fr); }
  section { margin-top: 56px; }
  .top { margin-bottom: 30px; padding: 18px 0; }
  .top nav { gap: 16px; font-size: 14px; }
  .top nav .hide-sm { display: none; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
}

/* --- the fence diagram -------------------------------------------------- */

.diagram { width: 100%; height: auto; margin: 4px 0 18px; }
.diagram text { font-family: inherit; }
.diagram .d-n { font-size: 15px; font-weight: 800; fill: var(--link); }
.diagram .d-t { font-size: 16px; font-weight: 700; fill: var(--ink); }
.diagram .d-s { font-size: 13.5px; fill: var(--ink-2); }

/* Below about 700px the three panels stop being readable side by side, so the
   drawing is dropped and the three steps are read as a list instead. */
@media (max-width: 700px) {
  .diagram { display: none; }
}
.diagram-steps { display: none; }
@media (max-width: 700px) {
  .diagram-steps { display: block; }
}


/* --- the wordmark ------------------------------------------------------- */

/* Set in Poppins Bold and converted to outlines, so it needs no webfont and
   is the same shape everywhere. A mask rather than an <img> so it takes the
   text colour in both themes. */
.wordmark {
  display: inline-block;
  width: 96px; height: 25px;
  background: currentColor;
  -webkit-mask: url(/img/wordmark.svg) no-repeat center / contain;
  mask: url(/img/wordmark.svg) no-repeat center / contain;
}
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --- skip link ---------------------------------------------------------- */

.skip {
  position: absolute; left: 12px; top: -60px;
  z-index: 50;
  padding: 12px 18px; border-radius: 0 0 12px 12px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
  transition: top .12s ease-out;
}
.skip:focus { top: 0; }

/* --- language picker ---------------------------------------------------- */

.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 44px; padding: 0 4px;
  font-size: 15px; color: var(--ink-2);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after { content: "\25be"; font-size: 11px; }
.lang[open] > summary { color: var(--ink); }
.lang-menu {
  position: absolute; right: 0; top: 100%;
  display: flex; flex-direction: column;
  min-width: 176px; padding: 6px; z-index: 30;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}
.lang-menu a {
  padding: 10px 12px; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-size: 15px;
}
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { color: var(--link); font-weight: 600; }
