/* Shared look for the overview and report pages, based on taxfix.com */

:root {
  --cream: #fdf8f2;
  --ink: #0c0b0a;
  --ink-soft: #4a4540;
  --forest: #154618;
  --lime: #adee68;
  --lime-soft: #cef5a4;
  --amber-soft: #ffefd3;
  --blue-soft: #e8f0ff;
  --lilac-soft: #f6ebfe;
  --stone: #9a9288;
  --line: #eae0d7;
  --tile-radius: 24px;
  --page-width: 1280px; /* same on every page, so the grid doesn't jump when navigating */

  /* Basecoat theme (tabs, badges, tables in the reports) */
  --radius: 12px;
  --background: #fff;
  --foreground: var(--ink);
  --card: #fff;
  --primary: var(--forest);
  --primary-foreground: #fff;
  --secondary: var(--cream);
  --secondary-foreground: var(--ink);
  --muted: var(--cream);
  --muted-foreground: var(--stone);
  --border: var(--line);
  --input: var(--line);
  --ring: var(--forest);
  --font-sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

/* Bento grid */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 40px 16px 64px;
}
.bento-4 { grid-template-columns: repeat(4, 1fr); }
.span-full { grid-column: 1 / -1; }
.span-2 { grid-column: span 2; }

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: var(--tile-radius);
  padding: 32px;
}
.tile h1, .tile h2, .tile h3, .tile p { margin: 0; }

.tile-lime { background: var(--lime-soft); }
.tile-amber { background: var(--amber-soft); }
.tile-blue { background: var(--blue-soft); }
.tile-lilac { background: var(--lilac-soft); }

.tile-hero { background: var(--forest); color: var(--cream); padding: 48px 32px; }
.tile-hero h1 {
  margin-top: 4px;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}
.tile-hero p { max-width: 36rem; font-size: 1.125rem; opacity: .85; }
.tile-hero .chip { background: var(--lime); color: var(--forest); }
.tile-hero .chip-outline { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgb(253 248 242 / .4); }

.tile-market { justify-content: space-between; min-height: 240px; }
.tile-market h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.tile-market .meta { font-size: .9375rem; }

.tile-report h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.tile-report p { color: var(--ink-soft); }
.tile-report h3 + p { margin-bottom: 20px; }
.tile-report .btn { margin-top: auto; align-self: flex-start; }

.tile-soon { justify-content: center; background: transparent; border: 2px dashed var(--line); }
.tile-soon h3 { font-size: 1.375rem; font-weight: 700; color: var(--stone); }
.tile-soon p { color: var(--stone); }

.tile-stat { gap: 4px; padding: 24px 28px; }
.tile-stat .label { font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.tile-stat .value { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }

/* Chips */

.chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  width: fit-content;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}
.chip-name { text-transform: none; letter-spacing: 0; }
.chip-lime { background: var(--lime); color: var(--forest); }
.chip-amber { background: #f8c677; color: var(--ink); }
.chip-lime-soft { background: var(--lime-soft); color: var(--forest); }
.chip-coral { background: #f5a894; color: var(--ink); }
.chip-muted { background: transparent; color: var(--stone); box-shadow: inset 0 0 0 1px var(--line); }

/* Summary chips above a report's block list */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.legend-title { margin-right: 4px; font-size: .875rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Taxfix CTA: lime pill with a forest circle arrow */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  padding: 0 4px 0 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--lime-soft);
  transform: translateX(-100%);
  transition: transform .4s ease;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.btn svg { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.btn svg circle { fill: var(--forest); }
.btn svg path { fill: none; stroke: #fff; stroke-width: 2.6; transition: transform .4s cubic-bezier(.2, .7, .15, 1.41); }
.btn svg .in { transform: translateX(-100%); }
.btn:hover svg .in, .btn:focus-visible svg .in { transform: translateX(0); }
.btn:hover svg .out, .btn:focus-visible svg .out { transform: translateX(100%); }

/* Back link on the hero: small cream pill */

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgb(253 248 242 / .12);
  color: var(--cream);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.back:hover { background: rgb(253 248 242 / .22); }
.back:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.back svg { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); padding: 5px; stroke: var(--forest); stroke-width: 2.6; fill: none; }

/* Report body */

.bento-head { padding-bottom: 32px; }
.report-body { max-width: var(--page-width); margin: 0 auto; padding: 0 16px 64px; }

.report-body > * + * { margin-top: 40px; }
.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.block {
  background: #fff;
  border-radius: var(--tile-radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.block > summary::-webkit-details-marker { display: none; }
.block > summary:focus-visible { outline: 3px solid var(--forest); outline-offset: -3px; border-radius: var(--tile-radius); }
.block .name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.block .sub { margin-left: 8px; font-size: .8125rem; font-weight: 400; color: var(--stone); }
.block .toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream);
  transition: transform .3s, background .2s;
}
.block .toggle svg { width: 16px; height: 16px; fill: none; stroke: var(--forest); stroke-width: 2.6; }
.block > summary:hover .toggle { background: var(--lime-soft); }
.block[open] .toggle { transform: rotate(180deg); background: var(--lime); }
.block .end { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.block .end .chip { align-self: center; }
.block .panel { padding: 0 24px 24px; }

/* Screenshots: rounded, with a lime hover ring */
.shot { border-radius: 12px; }
.shot img { border-radius: 12px; border: 1px solid var(--line); }
a.shot:hover img { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime); }

/* Pill tabs */
.tabs [role=tablist] { height: 48px; padding: 4px; border-radius: 999px; background: var(--cream); }
.tabs [role=tablist] [role=tab] { border-radius: 999px; padding-inline: 20px; font-weight: 600; color: var(--ink); }
.tabs [role=tablist] [role=tab][aria-selected=true] { background: var(--forest); color: #fff; box-shadow: none; }
.tabs [role=tablist] [role=tab] .chip { align-self: center; padding: 1px 8px; font-size: .6875rem; }
.tabs [role=tablist] [role=tab][aria-selected=true] .chip { background: var(--lime); color: var(--forest); }
.tabs [role=tablist] [role=tab][aria-selected=true] .chip-amber { background: #f8c677; color: var(--ink); }
.tabs [role=tablist] [role=tab][aria-selected=true] .chip-coral { background: #f5a894; color: var(--ink); }
.tabs [role=tablist] [role=tab][aria-selected=true] .chip-lime-soft { background: var(--lime-soft); color: var(--forest); }
.chip-lime-soft { background: var(--lime-soft); color: var(--forest); }
.chip-coral { background: #f5a894; color: var(--ink); }
.chip-muted { background: transparent; color: var(--stone); box-shadow: inset 0 0 0 1px var(--line); }

/* Summary chips above a report's block list */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.legend-title { margin-right: 4px; font-size: .875rem; font-weight: 700; }

.uniform-link { color: var(--forest); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.uniform-link:hover { text-decoration-color: var(--forest); }

.site-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 16px 32px;
  font-size: .8125rem;
  color: var(--stone);
}
.site-footer .brand { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .brand::before { content: ""; width: 18px; height: 18px; border-radius: 4px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.brand-studioalaaf::before { background-image: url(studioalaaf.svg); }
.brand-taxfix::before { background-image: url(../favicon.png); }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .tile-market { grid-column: 1 / -1; min-height: 0; }
  .bento .tile-soon { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; padding-top: 16px; }
  .bento-4 { grid-template-columns: 1fr 1fr; }
  .tile, .tile-hero { padding: 24px; }
  .tile-stat { padding: 20px; }
  .block > summary { padding: 16px 20px; }
  .block .panel { padding: 0 16px 16px; }
  .block .sub { display: block; margin-left: 0; }
  .block > summary { flex-wrap: wrap; row-gap: 10px; }
  .block > summary > span:first-child { flex: 1 1 100%; }
  .block .end { flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
  .block .end .toggle { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn svg path, .block .toggle { transition: none; }
}
