/* PishiTools — سبک، سریع، ریسپانسیو */
@font-face {
  font-family: "IRANSans";
  src: url("fonts/IRANSansWeb.woff2") format("woff2"),
       url("fonts/IRANSansWeb.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("fonts/IRANSansWeb_Bold.woff2") format("woff2"),
       url("fonts/IRANSansWeb_Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f7f5;
  --bg-soft: #e8f0ec;
  --surface: #ffffff;
  --ink: #14231c;
  --muted: #5a6b63;
  --line: #d5e2db;
  --brand: #0b6e4f;
  --brand-2: #14966c;
  --brand-soft: #d8f3e7;
  --accent: #c45c26;
  --accent-soft: #fce8dc;
  --ok: #0b6e4f;
  --warn: #b7791f;
  --danger: #c53030;
  --shadow: 0 10px 30px rgba(20, 35, 28, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1100px;
  --font: "IRANSans", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(20, 150, 108, 0.12), transparent 55%),
    radial-gradient(900px 420px at -10% 0%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(180deg, #f7faf8 0%, var(--bg) 40%, #eef5f1 100%);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
button, input, select, textarea { font: inherit; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 245, 0.86);
  border-bottom: 1px solid rgba(213, 226, 219, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.brand-logo {
  width: 52px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: center;
  line-height: 1.2;
}
.brand-text strong { font-size: 1.1rem; }

.site-nav {
  display: flex;
  gap: 0.35rem;
}
.site-nav a {
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero (SEO panel at bottom of homepage) */
.hero {
  padding: 1rem 0 3rem;
  animation: rise 0.7s var(--ease) both;
}
.hero-bottom { padding-top: 0.5rem; }

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(135deg, rgba(11, 110, 79, 0.95), rgba(9, 90, 70, 0.92)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  line-height: 1.35;
  font-weight: 800;
  max-width: 28ch;
}

.hero-seo p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.85;
  opacity: 0.94;
}
.hero-seo p:last-child { margin-bottom: 0; }
.hero-seo h3 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.hero-seo ul {
  margin: 0 0 1rem;
  padding: 0 1.2rem 0 0;
  list-style: disc;
}
.hero-seo li {
  margin: 0.35rem 0;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.94;
}
.hero-seo a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.hero-seo a:hover {
  color: #e8fff5;
  text-decoration-color: #fff;
}
.hero-seo strong { font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section-head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.btn-primary:hover { color: var(--brand); background: #f3fff9; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-calc {
  background: var(--brand);
  color: #fff;
  width: 100%;
  margin-top: 0.5rem;
}
.btn-calc:hover { background: var(--brand-2); color: #fff; }

/* ابزارهای آنی — دکمه محاسبه از دید پنهان است */
.form-grid.is-live > .btn.btn-calc,
.tab-panel.is-live > .btn.btn-calc {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn-secondary {
  background: var(--brand-soft);
  color: var(--brand);
  border: none;
}
.btn-secondary:hover { background: #c7eedc; color: var(--brand); }

/* Sections */
.section { padding: 2.5rem 0; }
.section-head {
  margin-bottom: 1.5rem;
  animation: rise 0.6s var(--ease) both;
}
.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  animation: rise 0.55s var(--ease) both;
}
.tool-card:nth-child(1) { animation-delay: 0.02s; }
.tool-card:nth-child(2) { animation-delay: 0.05s; }
.tool-card:nth-child(3) { animation-delay: 0.08s; }
.tool-card:nth-child(4) { animation-delay: 0.11s; }
.tool-card:nth-child(5) { animation-delay: 0.14s; }
.tool-card:nth-child(6) { animation-delay: 0.17s; }
.tool-card:nth-child(7) { animation-delay: 0.2s; }
.tool-card:nth-child(8) { animation-delay: 0.23s; }
.tool-card:nth-child(9) { animation-delay: 0.26s; }
.tool-card:nth-child(10) { animation-delay: 0.29s; }

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #b7d9c8;
  box-shadow: 0 16px 36px rgba(20, 35, 28, 0.1);
  color: var(--ink);
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  font-size: 1.35rem;
}

.tool-card h2,
.tool-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.tool-card .more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

/* About / features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Event countdown tools */
.event-page {
  --event-color: var(--brand);
  --event-soft: var(--brand-soft);
  min-width: 0;
  max-width: 100%;
}
.event-birthday {
  --event-color: #9b4775;
  --event-soft: #f8e9f2;
}
.birthday-result {
  margin-top: 1.25rem;
}
.form-message {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.form-message-error {
  color: var(--danger);
  background: #fff0f0;
  border: 1px solid #f3caca;
}
.event-countdown {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--event-color);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--event-soft), var(--surface) 85%);
  max-width: 100%;
  overflow: hidden;
}
.event-christmas {
  --event-color: #b4232d;
  --event-soft: #fdeaeb;
}
.event-yalda {
  --event-color: #8f2d4c;
  --event-soft: #fae7ed;
}
.event-kicker {
  margin: 0 0 0.75rem;
  color: var(--event-color);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}
.countdown > div {
  min-width: 0;
  padding: 0.75rem 0.2rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.countdown strong,
.countdown span {
  display: block;
}
.countdown strong {
  color: var(--event-color);
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.countdown span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.countdown-status {
  margin: 0.85rem 0 0;
  color: var(--event-color);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.event-subtitle {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.02rem;
}
.event-details {
  margin: 0;
  border-top: 1px solid var(--line);
}
.event-details > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.event-details dt { color: var(--muted); }
.event-details dd {
  margin: 0;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.event-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.9;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.event-table {
  width: 100%;
  max-width: none;
  border-collapse: collapse;
  font-size: 0.86rem;
  white-space: nowrap;
}
.event-table th,
.event-table td {
  padding: 0.6rem 0.7rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.event-table thead th {
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.event-table tbody th {
  color: var(--event-color);
  font-weight: 700;
}
.event-table tbody tr:last-child th,
.event-table tbody tr:last-child td { border-bottom: 0; }
.event-table tbody tr:hover { background: var(--bg-soft); }

@media (max-width: 560px) {
  .event-details > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .event-countdown { padding: 0.85rem 0.7rem; }
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .countdown > div { padding: 0.65rem 0.25rem; }
  .countdown strong { font-size: clamp(1.35rem, 8vw, 1.7rem); }
  .countdown span { font-size: 0.75rem; }
  .countdown-status { font-size: 0.85rem; }
  .event-table { font-size: 0.8rem; }
}

/* Tool page */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 1.25rem 0 0.5rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

.tool-hero {
  padding: 0.75rem 0 1.5rem;
}
.tool-hero-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.tool-hero .tool-icon {
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.tool-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.3;
}
.tool-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2rem;
}
.tool-layout > *,
.side-stack,
.seo-content .panel {
  min-width: 0;
  max-width: 100%;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  max-width: 100%;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfefc;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.15);
}

.field-hint {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.field-block {
  display: grid;
  gap: 0.55rem;
}
.field-block-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.jdate-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: 0.5rem;
  align-items: stretch;
}
.jdate-row .field input,
.jdate-row .field select {
  min-height: 44px;
  padding: 0.45rem 0.4rem;
  font-size: 0.9rem;
}
.jdate-year input {
  direction: ltr;
  text-align: center;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.result {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid #bfe5d2;
  display: none;
}
.result.is-visible { display: block; animation: rise 0.35s var(--ease) both; }
.result-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.result-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--brand);
  word-break: break-word;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.result-item {
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  padding: 0.75rem;
}
.result-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.result-item strong {
  font-size: 1.15rem;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.badge-ok { background: var(--brand-soft); color: var(--ok); }
.badge-warn { background: #fff3cd; color: var(--warn); }
.badge-danger { background: #fde8e8; color: var(--danger); }
.badge-info { background: #e8f1ff; color: #2b6cb0; }

.side-stack { display: grid; gap: 1rem; }

.howto ol, .faq details {
  margin: 0;
}
.howto ol {
  padding-right: 1.2rem;
  color: var(--muted);
}
.howto li { margin-bottom: 0.4rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: left;
  color: var(--brand);
  font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.related-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fbfefc;
}
.related-link:hover {
  border-color: #b7d9c8;
  background: var(--brand-soft);
  color: var(--ink);
}
.related-link span { font-size: 1.2rem; }

.seo-content {
  padding: 0 0 2.5rem;
}
.seo-content .panel p {
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.seo-content .panel p:last-child { margin-bottom: 0; }

.password-box {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.password-box input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  direction: ltr;
  text-align: left;
}
.range-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.range-row input[type="range"] { flex: 1; }
.range-val {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--brand);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tab-btn {
  border: 1px solid var(--line);
  background: #fbfefc;
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
}
.tab-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.qr-panel { display: none; }
.qr-panel.is-active { display: block; }
.qr-result .result-label { margin-bottom: 0.85rem; }
.qr-preview-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background:
    linear-gradient(135deg, rgba(46, 125, 90, 0.06), transparent 55%),
    #f7fbf8;
  border: 1px dashed #c5dbcfe0;
  border-radius: 14px;
}
.qr-canvas {
  display: inline-grid;
  place-items: center;
  padding: 0.65rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 38, 29, 0.08);
}
.qr-canvas img,
.qr-canvas canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.qr-payload {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: #f3f7f4;
  border-radius: 10px;
  word-break: break-all;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.qr-actions .btn {
  width: auto;
  min-width: 8.5rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #10261d;
  color: #d7e6de;
  padding: 2.5rem 0 1.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #fff;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: #b7cfc3; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1rem;
  font-size: 0.88rem;
  color: #8eaa9c;
}
.footer-bottom p { margin: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .form-grid.two { grid-template-columns: 1fr; }
  .hero { padding-top: 1rem; }
  .hero h2 { max-width: none; }
  .tools-grid { gap: 0.75rem; }
  .tool-card { padding: 1rem 0.75rem; }
  .tool-card h2,
  .tool-card h3 { font-size: 0.95rem; }
  .tool-card p { font-size: 0.82rem; }
  .panel { padding: 1.1rem 0.9rem; }
  .tool-hero-inner { gap: 0.75rem; }
  .container { width: min(100% - 1.25rem, var(--max)); }
}
