/* PoultryWinner website. Light, fast, no web fonts, no trackers.
   Visual idea: the farmer's record book. Ruled lines, a margin rule, a lime highlighter. */
:root {
  --ink: #14301f;
  --paper: #f5faf3;
  --sheet: #ffffff;
  --forest: #0b6b3a;
  --deep: #06331d;
  --lime: #b9f23a;
  --yolk: #ffc83d;
  --line: #d4e3d6;
  --rule: #e3eee4;
  --muted: #55685c;
  --margin-red: #e8a29a;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 68rem;
}

/* language and currency: the other language is simply not shown */
html:not([data-lang="sw"]) [data-l="sw"] { display: none; }
html[data-lang="sw"] [data-l="en"] { display: none; }
html:not([data-cur="tzs"]) [data-c="tzs"] { display: none; }
html[data-cur="tzs"] [data-c="usd"] { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
}
img { max-width: 100%; height: auto; }
a { color: var(--forest); text-underline-offset: .18em; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 5px var(--ink); }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; border-radius: 8px; }
.skip:focus { left: .5rem; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 7.4vw, 3.9rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: #28402f; }
.mark { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); }

/* ---------- top bar ---------- */
.top { padding: .9rem 0; }
.top .wrap { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--sheet); }
.seg button { font: 700 .9rem var(--font); padding: .4rem .85rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav { display: flex; gap: 1.2rem; flex-wrap: wrap; width: 100%; padding-top: .3rem; }
.nav a { color: var(--ink); font-weight: 600; text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--forest); }
@media (min-width: 52rem) { .nav { width: auto; padding: 0; order: 2; } .brand { margin-right: 1rem; } .top .wrap { gap: 1.4rem; } .nav { margin-right: auto; } .brand { margin-right: 0; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.35rem; border-radius: 12px; font: 700 1.05rem var(--font); text-decoration: none; border: 2px solid var(--forest); cursor: pointer; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: #e6f2e6; color: var(--deep); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.4rem 0 .9rem; }

/* ---------- hero ---------- */
.hero { padding: 1.6rem 0 3.4rem; }
.hero .wrap { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 3.4rem; } .hero { padding-top: 3rem; } }
.fine { color: var(--muted); font-size: .95rem; }

/* the notebook page: the one illustrated moment on the site */
.page { position: relative; background:
    linear-gradient(90deg, transparent 2.9rem, var(--margin-red) 2.9rem, var(--margin-red) calc(2.9rem + 2px), transparent calc(2.9rem + 2px)),
    repeating-linear-gradient(transparent 0, transparent 3.25rem, var(--rule) 3.25rem, var(--rule) calc(3.25rem + 1px)),
    var(--sheet);
  border: 2px solid var(--ink); border-radius: 18px; padding: 1.1rem 1.2rem 1.2rem 3.6rem; box-shadow: 8px 8px 0 var(--ink); max-width: 25rem; width: 100%; justify-self: center; }
.page-tab { position: absolute; top: -1.05rem; left: 3.6rem; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: .2rem .8rem; font-weight: 800; font-size: .95rem; }
.page h2 { font-size: 1rem; font-weight: 700; color: var(--muted); margin: .7rem 0 .5rem; letter-spacing: 0; }
.entry { display: flex; align-items: center; gap: .8rem; min-height: 3.25rem; margin: 0; }
.entry .tick { width: 1.7rem; height: 1.7rem; border: 2px solid var(--ink); border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--sheet); }
.entry .tick svg { width: 1.1rem; height: 1.1rem; stroke: var(--ink); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.entry .what { flex: 1; font-weight: 600; }
.entry .num { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.entry .num small { font-size: .85rem; font-weight: 700; color: var(--muted); margin-left: .15rem; }
.status { position: relative; height: 2.4rem; margin-top: .8rem; }
.chip { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .95rem; padding: .3rem .8rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--yolk); }
.chip.synced { background: var(--lime); opacity: 0; }
.chip i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink); display: inline-block; }
.page-note { margin: .7rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.35; }

@media (prefers-reduced-motion: no-preference) {
  .entry .tick svg { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .45s ease-out forwards; }
  .entry:nth-of-type(1) .tick svg { animation-delay: .5s; }
  .entry:nth-of-type(2) .tick svg { animation-delay: 1s; }
  .entry:nth-of-type(3) .tick svg { animation-delay: 1.5s; }
  .chip.saved { animation: fadeout .4s 3s ease forwards; }
  .chip.synced { animation: fadein .4s 3.3s ease forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fadeout { to { opacity: 0; } }
  @keyframes fadein { to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .chip.synced { display: none; } }

/* ---------- sections ---------- */
section { padding: 3.4rem 0; }
.sec-head { max-width: 40rem; margin-bottom: 1.8rem; }

/* ledger: what you can keep track of */
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger > div { display: grid; gap: .2rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-weight: 800; font-size: 1.15rem; color: var(--forest); }
.ledger dd { margin: 0; max-width: 56ch; }
@media (min-width: 46rem) { .ledger > div { grid-template-columns: 15rem 1fr; padding: 1.15rem 0; } }

/* offline band */
.band { background: var(--deep); color: #fff; }
.band h2 { color: #fff; }
.band .lead { color: #d7ecd9; }
.flow { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.flow li { position: relative; padding: 1.1rem 1.2rem 1.2rem; border: 2px solid #5da97f; border-radius: 16px; }
.flow li strong { display: block; font-size: 1.15rem; color: var(--lime); margin-bottom: .25rem; }
.flow li p { margin: 0; color: #e6f3e8; }
@media (min-width: 52rem) { .flow { grid-template-columns: repeat(3, 1fr); } .flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -1.25rem; width: 1.2rem; border-top: 3px dashed #5da97f; } }

/* install */
.install { display: grid; gap: 1.6rem; }
@media (min-width: 46rem) { .install { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--sheet); border: 2px solid var(--ink); border-radius: 18px; padding: 1.3rem 1.3rem .6rem; }
.panel h3 { margin-bottom: .8rem; }
.panel ol { list-style: none; counter-reset: s; margin: 0 0 .8rem; padding: 0; }
.panel li { counter-increment: s; display: flex; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.panel li::before { content: counter(s); flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.after { margin-top: 1.4rem; max-width: 60ch; }

/* plans */
.cur { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1rem; }
.notice { border-left: 6px solid var(--yolk); background: #fff7dc; padding: .8rem 1rem; border-radius: 0 12px 12px 0; max-width: 62ch; margin-bottom: 1.4rem; }
.tablewrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 16px; background: var(--sheet); }
table.plans { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 21rem; }
.plans th, .plans td { padding: .65rem .55rem; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plans th:first-child, .plans td:first-child { text-align: left; font-weight: 600; width: 36%; padding-left: .9rem; }
.plans thead th { background: #eaf5ec; border-bottom: 2px solid var(--ink); font-size: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.plans .price { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.plans .yes { font-weight: 800; color: var(--forest); font-size: 1.15rem; }
.plans .no { color: #8a9a8f; }
@media (min-width: 40rem) { .plans { font-size: 1.02rem; } .plans th, .plans td { padding: .8rem .9rem; } }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.4rem 1rem 0; font-weight: 700; font-size: 1.1rem; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .3rem; top: 1.35rem; width: .7rem; height: .7rem; border-right: 3px solid var(--forest); border-bottom: 3px solid var(--forest); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq .ans { padding: 0 0 1rem; }
.faq .ans p:last-child { margin-bottom: 0; }

/* contact + footer */
.contact { background: #eaf5ec; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.foot { padding: 2rem 0 3rem; color: var(--muted); font-size: .97rem; }
.foot .wrap { display: grid; gap: 1rem; }
.foot nav { display: flex; gap: .4rem 1.4rem; flex-wrap: wrap; }
.foot a { color: var(--ink); }

/* document pages (terms, privacy, refunds, delete account) */
.doc { padding: 1.6rem 0 3rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); }
.doc h2 { font-size: 1.25rem; margin: 1.8em 0 .4em; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3rem; margin: 0 0 1em; }
.doc .meta { color: var(--muted); font-size: .95rem; }
.doc .callout { border: 2px solid var(--ink); border-radius: 14px; padding: 1rem 1.2rem; background: var(--sheet); margin: 1.4rem 0; }

@media print { .top, .foot, .skip, .actions { display: none; } body { background: #fff; } }

/* store buttons */
.stores{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0 .2rem}
.store{display:inline-flex;flex-direction:column;justify-content:center;min-width:9.5rem;padding:.5rem 1rem;border-radius:.7rem;background:var(--deep);color:#fff;text-decoration:none;line-height:1.15}
.store small{font-size:.72rem;opacity:.85}
.store b{font-size:1.05rem}
.store.soon{background:transparent;color:var(--ink);border:1.5px dashed #8aa595;cursor:default}
.store.soon small{opacity:.8}
