:root {
  --escala: 1;
  --background: oklch(93.6% 0.026 318);
  --foreground: oklch(31% 0.106 316);
  --card: oklch(98.5% 0.012 82);
  --primary: oklch(31% 0.106 316);
  --primary-foreground: oklch(98.5% 0.012 82);
  --secondary: oklch(90% 0.04 318);
  --muted: oklch(45% 0.06 316);
  --matcha: oklch(58.5% 0.106 132);
  --matcha-foreground: oklch(99% 0.01 120);
  --coral: oklch(72% 0.122 36);
  --coral-foreground: oklch(25% 0.08 30);
  --destructive: oklch(55% 0.2 27);
  --border: oklch(85% 0.04 318);
  --font-sans: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-leitura: "Literata", Georgia, serif;
  --radius: 1rem;
}

* { box-sizing: border-box; }
html { font-size: calc(16px * var(--escala)); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75;
  overflow-x: hidden;
}
button, a { font-weight: 600; font-family: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.screen { min-height: 100vh; }
.screen.with-nav { padding-bottom: 7.5rem; }
.header {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1.25rem 1rem 1.5rem;
  background-image: radial-gradient(circle at 50% 100%, transparent 0 9px, color-mix(in oklab, var(--primary-foreground) 16%, transparent) 9px 11px, transparent 11px 18px, color-mix(in oklab, var(--primary-foreground) 12%, transparent) 18px 20px, transparent 20px);
  background-size: 40px 20px;
  background-repeat: repeat;
}
.header-inner { max-width: 36rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.brand { font-size: 1.125rem; font-weight: 700; margin: 0; }
.header h1 { font-size: 1.5rem; }
.header .sub { margin-top: 0.25rem; font-size: 1rem; opacity: 0.9; font-weight: 500; }
.back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; background: none; border: 0; color: inherit;
  font-size: 1rem; padding: 0; cursor: pointer;
}
.fonts { display: flex; gap: 0.5rem; }
.fonts button {
  flex: 1; min-height: 44px; border-radius: 0.75rem; border: 2px solid color-mix(in oklab, var(--primary-foreground) 40%, transparent);
  background: transparent; color: var(--primary-foreground); font-size: 0.875rem; cursor: pointer; padding: 0.4rem;
}
.fonts button.on { background: var(--primary-foreground); color: var(--primary); border-color: var(--primary-foreground); }

.sakura {
  height: 0.75rem; width: 100%;
  background-image: radial-gradient(circle at 50% 50%, var(--coral) 0 3px, transparent 4px);
  background-repeat: repeat-x; background-size: 28px 12px;
}
.main { max-width: 36rem; margin: 0 auto; padding: 1.25rem 1rem 1.5rem; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.card {
  background: var(--card); border: 1px solid color-mix(in oklab, var(--primary) 15%, transparent);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.card.stack { gap: 0.85rem; }
.leitura { font-family: var(--font-leitura); font-size: 1.3rem; line-height: 1.75; text-align: left; }
.muted { color: var(--muted); font-size: 1rem; }
.disclaimer { margin-top: 2rem; padding: 0 0.25rem; text-align: center; font-size: 0.875rem; color: var(--muted); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  width: 100%; min-height: 56px; border: 0; border-radius: 1rem; padding: 0.75rem 1.25rem;
  font-size: 1.125rem; cursor: pointer; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); transition: transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-matcha { background: var(--matcha); color: var(--matcha-foreground); }
.btn-coral { background: var(--coral); color: var(--coral-foreground); }
.btn-claro { background: var(--card); color: var(--foreground); border: 2px solid color-mix(in oklab, var(--primary) 30%, transparent); }
.btn.left { justify-content: flex-start; text-align: left; }
.linkish { background: none; border: 0; width: 100%; min-height: 44px; color: var(--muted); font-size: 1rem; cursor: pointer; }

.opt, .check {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  width: 100%; min-height: 56px; text-align: left; border-radius: 1rem;
  border: 2px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: var(--card); color: var(--foreground); padding: 0.75rem 1.25rem;
  font-size: 1.125rem; cursor: pointer;
}
.opt.on, .check.on { border-color: var(--matcha); background: var(--matcha); color: var(--matcha-foreground); }
.check .box, .shop .box {
  width: 2rem; height: 2rem; border-radius: 999px; border: 2px solid currentColor;
  display: grid; place-items: center; flex: 0 0 auto;
}
.field {
  display: flex; align-items: center; gap: 0.75rem;
  border-radius: 1rem; border: 2px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: var(--card); padding: 0 1rem;
}
.field input, .bare, textarea.bare {
  width: 100%; min-height: 56px; border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 1.25rem; font-weight: 700; outline: none;
}
textarea.bare { min-height: 6.5rem; font-size: 1.125rem; font-weight: 500; padding: 0.9rem 1rem; resize: vertical; border-radius: 1rem; border: 2px solid color-mix(in oklab, var(--primary) 25%, transparent); background: var(--card); }
.suf { color: var(--muted); font-weight: 600; flex: 0 0 auto; }
label.block { display: block; }
label.block span { display: block; font-size: 1.125rem; font-weight: 600; margin-bottom: 0.4rem; }

.bar { height: 1rem; width: 100%; overflow: hidden; border-radius: 999px; background: var(--secondary); }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--matcha); transition: width 0.3s; }
.bar.tall { height: 1.25rem; }

.stats { display: grid; grid-cols: 2; gap: 0.75rem; }
.stats, .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stat { background: var(--secondary); border-radius: 1rem; padding: 0.75rem; }
.stat b { display: block; font-size: 1.5rem; }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.weeks button, .levels button, .lvl button {
  min-height: 56px; border-radius: 1rem; border: 2px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: var(--card); color: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.weeks button.on, .lvl button.on, .chip.on {
  border-color: var(--primary); background: var(--primary); color: var(--primary-foreground);
}
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.days button {
  height: 3rem; border-radius: 0.75rem; border: 2px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: var(--card); font-weight: 700; cursor: pointer; color: inherit;
}
.days button.on { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.days button.done { background: var(--matcha); color: var(--matcha-foreground); border-color: var(--matcha); }

.meal { border: 2px solid color-mix(in oklab, var(--primary) 20%, transparent); border-radius: 1rem; overflow: hidden; }
.meal button.head {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center;
  text-align: left; background: transparent; border: 0; padding: 1rem; cursor: pointer; color: inherit;
}
.meal .tag { display: block; color: var(--coral); font-size: 1rem; font-weight: 700; }
.meal .prep { border-top: 2px solid color-mix(in oklab, var(--primary) 15%, transparent); background: color-mix(in oklab, var(--secondary) 50%, transparent); padding: 1rem; }
.chev { transition: transform 0.2s; }
.chev.open { transform: rotate(180deg); }

.row { display: flex; gap: 1rem; align-items: flex-start; border: 2px solid color-mix(in oklab, var(--primary) 20%, transparent); border-radius: 1rem; padding: 1rem; }
.ico {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--secondary);
  display: grid; place-items: center; flex: 0 0 auto; font-size: 1.4rem; color: var(--primary);
}
.ico svg { width: 1.8rem; height: 1.8rem; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 999px; background: var(--coral); margin-top: 0.55rem; flex: 0 0 auto; }
.li { display: flex; gap: 0.75rem; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--card); border-top: 2px solid color-mix(in oklab, var(--primary) 20%, transparent);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav ul {
  max-width: 36rem; margin: 0 auto; display: flex; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav li { flex: 0 0 auto; }
.nav a {
  width: 5.4rem; min-height: 4.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  padding: 0.4rem 0.35rem 0.5rem; color: var(--muted); text-decoration: none; font-size: 0.78rem; text-align: center;
}
.nav a.on { color: var(--primary); font-weight: 700; background: color-mix(in oklab, var(--secondary) 60%, transparent); }
.nav svg { width: 1.6rem; height: 1.6rem; }

.menu a.item {
  display: flex; align-items: center; gap: 1rem; min-height: 80px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid color-mix(in oklab, var(--primary) 15%, transparent);
  border-radius: 1rem; padding: 0.8rem 1rem; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.menu { display: grid; gap: 0.75rem; }

.waters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.waters button {
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 2px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background: var(--card); cursor: pointer;
}
.waters button.on { background: var(--matcha); border-color: var(--matcha); }

.overlay { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--background); padding: 1rem; }
.overlay-inner { max-width: 36rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; padding-bottom: 4rem; }
.x {
  width: 3rem; height: 3rem; border-radius: 999px; border: 0; background: var(--card); cursor: pointer;
  display: grid; place-items: center; font-size: 1.4rem;
}
.toprow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; }

.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; }
.chip {
  flex: 0 0 auto; min-height: 48px; border-radius: 1rem; border: 2px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: var(--card); padding: 0 1rem; font-weight: 700; cursor: pointer; color: inherit;
}
.search {
  display: flex; align-items: center; gap: 0.75rem; border-radius: 1rem;
  border: 2px solid color-mix(in oklab, var(--primary) 25%, transparent); background: var(--card); padding: 0 1rem;
}
.search input { min-height: 56px; }
.why { color: var(--coral); font-weight: 700; font-size: 1rem; }
.swap { background: var(--matcha); color: var(--matcha-foreground); border-radius: 1rem; padding: 1rem; }
.note { display: flex; gap: 0.75rem; background: var(--secondary); border-radius: 1rem; padding: 1rem; }
.timer-box { background: var(--secondary); border-radius: 1rem; padding: 1rem; text-align: center; }
.timer-num { font-size: 3rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0.4rem 0; }
.timer-actions { display: flex; gap: 0.75rem; }
.cert { border: 4px solid var(--coral); text-align: center; }
.cert .kicker { color: var(--coral); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1rem; }
.pre {
  white-space: pre-wrap; word-break: break-word; background: var(--secondary);
  border-radius: 1rem; padding: 1rem; font-family: var(--font-sans); font-size: 1rem;
}
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.photos img { width: 100%; border-radius: 1rem; display: block; }
.file {
  display: flex; min-height: 56px; align-items: center; justify-content: center; gap: 0.75rem;
  border-radius: 1rem; background: var(--coral); color: var(--coral-foreground); cursor: pointer; font-weight: 600;
}
.file input { display: none; }
.chart { width: 100%; height: 16rem; }
.shop.on { text-decoration: line-through; }
.pulse { animation: pulse 1.2s ease-in-out infinite; color: var(--coral); }
@keyframes pulse { 50% { opacity: 0.45; } }
.center { text-align: center; }
.step-dot {
  width: 1.75rem; height: 1.75rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--secondary); flex: 0 0 auto; margin-top: 0.15rem; font-size: 0.95rem;
}
.step-dot.on { background: var(--matcha); color: var(--matcha-foreground); }
.lvl { display: flex; flex-direction: column; gap: 0.5rem; }
.lvl button { width: 100%; }
hr.soft { border: 0; border-top: 2px solid color-mix(in oklab, var(--coral) 80%, transparent); height: 0.75rem; background-image: radial-gradient(circle at 50% 50%, var(--coral) 0 3px, transparent 4px); background-size: 28px 12px; }
