/* TallyTweet support and privacy pages. Colours and type come from the app (Palette.cs, Fredoka); the
   Luminark header and footer still come from site.css. */
@font-face { font-family: "Fredoka"; src: url("/assets/tallytweet/fredoka-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/tallytweet/fredoka-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.tt-page {
  --tt-cream: #fff6e3; --tt-paper: #fffdf7; --tt-ink: #4a2817; --tt-ink-soft: #5e4a3e;
  --tt-line: #f0dcb4; --tt-shadow: #ead2a3; --tt-sky: #8cc8ee; --tt-sky-soft: #e4f3fc;
  --tt-leaf: #7cbf5a; --tt-leaf-soft: #e9f6df; --tt-link: #2e6b1c; --tt-coral: #f07c5c; --tt-gold: #f4c542;
  background: var(--tt-cream); color: var(--tt-ink);
}
.tt-page main { padding-bottom: 72px; }
.tt-page h1, .tt-page h2, .tt-page h3 { font-family: "Fredoka", ui-rounded, system-ui, sans-serif; color: var(--tt-ink); letter-spacing: 0; }
.tt-page p, .tt-page li { color: var(--tt-ink-soft); }
.tt-page main a:not(.tt-btn):not(.tt-switch a) { color: var(--tt-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tt-page a:focus-visible { outline: 3px solid var(--tt-ink); outline-offset: 3px; border-radius: 6px; }

/* Header scene: the garden from the game, fading into the cream page. */
.tt-hero { position: relative; overflow: hidden; padding: 56px 20px 64px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 246, 227, 0) 45%, var(--tt-cream) 100%), url("/assets/tallytweet/garden.webp") center 38% / cover no-repeat; }
.tt-hero-inner { position: relative; max-width: 920px; margin: 0 auto; }
.tt-logo { display: block; width: min(420px, 78vw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(74, 40, 23, .25)); }
.tt-hero h1 { display: inline-block; margin: 14px 0 0; padding: 10px 26px; border-radius: 999px; background: var(--tt-paper); border: 3px solid var(--tt-ink); box-shadow: 0 5px 0 var(--tt-ink); font-size: clamp(26px, 5vw, 38px); font-weight: 700; line-height: 1.15; }
.tt-hero .tt-sub { max-width: 520px; margin: 18px auto 0; padding: 10px 18px; border-radius: 18px; background: rgba(255, 253, 247, .9); color: var(--tt-ink); font-size: 17px; font-weight: 500; }
.tt-bird { position: absolute; right: -6px; bottom: -40px; width: 170px; height: auto; transform: rotate(4deg); filter: drop-shadow(0 8px 10px rgba(74, 40, 23, .2)); }
.tt-switch { display: inline-flex; gap: 6px; margin-top: 22px; padding: 6px; border-radius: 999px; background: var(--tt-paper); border: 2px solid var(--tt-line); }
.tt-switch a { padding: 9px 20px; border-radius: 999px; color: var(--tt-ink); font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 16px; text-decoration: none; }
.tt-switch a[aria-current="page"] { background: var(--tt-ink); color: var(--tt-paper); }
.tt-switch a:not([aria-current]):hover { background: var(--tt-cream); }

/* Content */
.tt-wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; display: grid; gap: 22px; }
.tt-card { background: var(--tt-paper); border: 2px solid var(--tt-line); border-radius: 28px; padding: 28px 30px; box-shadow: 0 6px 0 var(--tt-shadow); }
.tt-card > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: clamp(22px, 3.4vw, 27px); font-weight: 600; }
.tt-card > h2 img, .tt-card > h2 .tt-glyph { width: 40px; height: 40px; flex: none; }
.tt-card p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.tt-card p:last-child { margin-bottom: 0; }
.tt-glyph { display: inline-grid; place-items: center; border-radius: 50%; background: var(--tt-cream); border: 2px solid var(--tt-line); }
.tt-glyph svg { width: 22px; height: 22px; fill: none; stroke: var(--tt-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.tt-lead { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--tt-leaf-soft); border-color: #cfe7bd; box-shadow: 0 6px 0 #c5e0b0; }
.tt-lead img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 4px 0 rgba(74, 40, 23, .15); }
.tt-lead p { margin: 0; color: var(--tt-ink); font-size: 19px; font-weight: 600; line-height: 1.5; }
.tt-meta { color: var(--tt-ink-soft); font-size: 15px; text-align: center; margin: -6px 0 0; }

.tt-nots { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tt-nots li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; background: var(--tt-cream); color: var(--tt-ink); font-weight: 500; }
.tt-nots li::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--tt-coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

.tt-saved { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tt-saved li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--tt-line); color: var(--tt-ink); font-weight: 500; line-height: 1.35; }
.tt-saved img, .tt-saved .tt-glyph { width: 36px; height: 36px; flex: none; }
.tt-card > h2 img, .tt-saved img { object-fit: contain; }
.tt-saved .tt-glyph svg { width: 19px; height: 19px; }

.tt-steps { list-style: none; counter-reset: step; padding: 0; margin: 4px 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tt-steps li { counter-increment: step; position: relative; padding: 46px 16px 16px; border-radius: 20px; background: var(--tt-cream); color: var(--tt-ink); font-size: 16px; line-height: 1.45; }
.tt-steps li::before { content: counter(step); position: absolute; top: 12px; left: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tt-gold); border: 2px solid var(--tt-ink); font: 700 15px/1 "Fredoka", system-ui, sans-serif; color: var(--tt-ink); }
.tt-steps strong { color: var(--tt-ink); }

.tt-info { background: var(--tt-sky-soft); border-color: #c7e3f5; box-shadow: 0 6px 0 #b9dbf1; }
.tt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tt-grid .tt-card { display: flex; flex-direction: column; }
.tt-card ul:not(.tt-nots):not(.tt-saved) { margin: 0 0 12px; padding-left: 20px; }
.tt-card ul:not(.tt-nots):not(.tt-saved) li { margin: 6px 0; font-size: 17px; line-height: 1.55; }

.tt-contact { text-align: center; background: var(--tt-paper); }
.tt-contact > h2 { justify-content: center; }
.tt-btn { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 14px 26px; border-radius: 999px; background: var(--tt-ink); color: var(--tt-paper); border: 0; box-shadow: 0 5px 0 #2a160b; font: 600 18px/1 "Fredoka", system-ui, sans-serif; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tt-btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 #2a160b; }
.tt-btn.alt { background: var(--tt-leaf); color: var(--tt-ink); box-shadow: 0 5px 0 #4f8a34; }
.tt-btn.alt:hover { box-shadow: 0 3px 0 #4f8a34; }
.tt-small { font-size: 15px !important; color: var(--tt-ink-soft); }

@media (max-width: 760px) {
  .tt-hero { padding: 40px 16px 52px; }
  .tt-bird { position: static; display: block; width: 96px; margin: 16px auto -34px; transform: none; }
  .tt-wrap { padding: 0 16px; gap: 18px; }
  .tt-card { padding: 22px 20px; border-radius: 24px; }
  .tt-lead { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tt-steps, .tt-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tt-btn { transition: none; } }
