/* Takonto — takonto.com.br
 *
 * The palette is the app's own (apps/mobile/lib/core/theme.dart), so the site
 * and the app look like one thing. Light only, for the same reason: the app
 * builds one theme and it is `Brightness.light`.
 *
 * Two typefaces, one job each. Prose is the platform's own UI face, which is
 * what the app renders in. Anything that belongs to the cupom — item lines,
 * totals, the chave, section numbers, labels — is monospace, because that is
 * how a nota fiscal is printed.
 *
 * No web fonts, no analytics, no third-party anything. The privacy policy this
 * site hosts says the app carries no tracking; a page that loaded a tracker to
 * say so would be lying on its own domain.
 */

:root {
  --paper: #fbf8f3;
  --card: #ffffff;
  --ink: #1a1714;
  --ink-soft: #6b635a;
  --ink-faint: #a79d92;
  --accent: #116149;
  --accent-ink: #116149;
  --accent-soft: #e3f0ea;
  --line: #e8e2d9;
  --shadow: 0 1px 2px rgba(26, 23, 20, 0.04), 0 10px 30px rgba(26, 23, 20, 0.07);
  --up: #c2544a;

  /* The cupom's own values, kept separate from the page's so the receipt
     stays paper if the page ever gains another ground. */
  --receipt: #fbf8f3;
  --receipt-ink: #1a1714;
  --receipt-soft: #6b635a;
  --receipt-line: #d9d1c4;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  color-scheme: light;

  --shell: 1080px;
  --gutter: clamp(20px, 5vw, 44px);
  --radius: 18px;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-ink);
  text-decoration-color: color-mix(in srgb, var(--accent-ink) 35%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--card);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* An eyebrow is a label off the cupom: small, spaced, monospace. */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

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

.site-header {
  padding-block: 22px 8px;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-ink);
}

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

.hero {
  padding-block: clamp(36px, 7vw, 76px) clamp(40px, 8vw, 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.hero__title {
  font-size: clamp(36px, 6.4vw, 60px);
  font-weight: 800;
  margin-top: 14px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-ink);
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(17px, 2.1vw, 19.5px);
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__mascot {
  width: 96px;
  height: 96px;
  display: block;
  margin-bottom: 10px;
}

/* ---------- the cupom ---------- */

.cupom-wrap {
  filter: drop-shadow(0 18px 34px rgba(26, 23, 20, 0.16));
  transform: rotate(-1.4deg);
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}

.cupom {
  background: var(--receipt);
  color: var(--receipt-ink);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 22px 20px 16px;
  border-radius: 4px 4px 0 0;
}

/* The torn edge, as an SVG pattern rather than a mask: the teeth stay the same
   size at every width and the drop-shadow above traces them. */
.cupom-tear {
  display: block;
  width: 100%;
  height: 13px;
  color: var(--receipt);
  margin-top: -1px;
}

.cupom__store {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cupom__where {
  text-align: center;
  color: var(--receipt-soft);
  font-size: 11.5px;
}

.cupom__rule {
  border: 0;
  border-top: 1px dashed var(--receipt-line);
  margin: 12px 0;
}

.cupom__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}

.cupom__row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cupom__qty {
  color: var(--receipt-soft);
  font-size: 11.5px;
  padding-left: 14px;
}

.cupom__row--total {
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
}

/* The one annotated line: paper goes in, a number the app computed comes out. */
.cupom__row--marked span:first-child {
  box-shadow: inset 0 -7px 0 var(--accent-soft);
}

.cupom__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0 8px 14px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.01em;
  white-space: normal;
}

.cupom__note::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.cupom__chave {
  color: var(--receipt-soft);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  word-spacing: 2px;
  text-align: center;
  overflow-wrap: anywhere;
}

.cupom__anon {
  text-align: center;
  font-size: 11px;
  color: var(--receipt-soft);
  letter-spacing: 0.06em;
}

.cupom__qr {
  display: block;
  width: 66px;
  height: 66px;
  margin: 10px auto 4px;
}

/* ---------- store badge slot ---------- */

.badges {
  margin-top: 30px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--card) 55%, transparent);
  max-width: 46ch;
}

.badges__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.badges__note {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

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

.section {
  padding-block: clamp(40px, 7vw, 72px);
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 56ch;
}

.section__title {
  font-size: clamp(25px, 3.6vw, 34px);
  font-weight: 700;
  margin-top: 12px;
}

.section__lead {
  margin-top: 14px;
  color: var(--ink-soft);
}

.section__art {
  width: 84px;
  height: 84px;
  float: right;
  margin: 0 0 12px 20px;
}

/* ---------- what you get out of it ---------- */

.folds {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fold {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.fold h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 10px;
}

.fold p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.fold__rows {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
}

.fold__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.fold__row b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fold__row .up {
  color: var(--up);
}

.fold__row .down {
  color: var(--accent-ink);
}

/* ---------- steps ---------- */

.steps {
  margin-top: 34px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.step__n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 14px;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- the honest limits ---------- */

.limits {
  margin-top: 30px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.limit {
  background: var(--card);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 4px 22px;
  align-items: baseline;
}

.limit dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.limit dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.limit dd b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- privacy ---------- */

.privacy {
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
}

.privacy .section {
  border-top: 0;
}

.privacy__claims {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
}

.privacy__claims li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.privacy__claims b {
  color: var(--ink);
  font-weight: 600;
}

.check {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--accent-ink);
  flex: none;
}

.cpf {
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.cpf h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 10px;
}

.cpf p {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.cpf p b {
  color: var(--ink);
  font-weight: 600;
}

.policy-link {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--accent-ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.policy-link:hover {
  gap: 14px;
}

.policy-link svg {
  transition: transform 0.18s ease;
}

.policy-link:hover svg {
  transform: translateX(3px);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px 44px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer__id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ---------- the policy document ---------- */

.doc {
  padding-block: clamp(28px, 5vw, 52px) clamp(48px, 8vw, 80px);
  max-width: 74ch;
}

.doc__title {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  margin-top: 12px;
}

.doc__dates {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.doc__summary {
  margin-top: 28px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.doc__summary p {
  color: var(--ink);
  font-size: 16.5px;
}

.doc__summary p + p {
  margin-top: 12px;
}

.toc {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--card);
}

.toc ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
}

.toc li {
  counter-increment: toc;
  break-inside: avoid;
  padding: 3px 0;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero) " ";
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-ink);
}

.doc section {
  margin-top: 44px;
  scroll-margin-top: 24px;
}

.doc h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 700;
  margin-top: 8px;
}

.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
}

.doc section > p {
  margin-top: 14px;
  color: var(--ink-soft);
}

.doc section > p b,
.doc li b {
  color: var(--ink);
  font-weight: 600;
}

.doc ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.doc li + li {
  margin-top: 8px;
}

.doc__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
}

.callout {
  margin-top: 18px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
}

.callout p {
  color: var(--ink);
  font-size: 15.5px;
}

.callout p + p {
  margin-top: 10px;
}

.doc em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

.doc__back {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

/* ---------- motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  }

  .hero__copy > *:nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero__copy > *:nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero__copy > *:nth-child(4) {
    animation-delay: 0.18s;
  }

  .cupom-wrap {
    animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) 0.1s backwards;
  }
}

/* ---------- narrower ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .cupom-wrap {
    order: 2;
  }

  .folds,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy__claims {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

  .section__art {
    width: 64px;
    height: 64px;
    margin-left: 14px;
  }

  .limit {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .cupom {
    font-size: 12px;
  }
}
