:root {
  --blue: #3266d6;
  --blue-hover: #2a58bd;
  --yellow: #ffc800;
  --yellow-hover: #e6b400;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #1c1e21;
  --muted: #606770;
  --border: #dddfe2;
  --green: #31a24c;
  --red: #e41e3f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}
.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-bg {
  background-color: var(--blue);
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-bg img {
  height: 24px;
  width: auto;
  display: block;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
}
.dropdown {
  position: relative;
}
.dropdown-toggle {
  background: none;
  border: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.dropdown:hover .dropdown-menu,
.dropdown-toggle:focus + .dropdown-menu,
.dropdown-menu:focus-within {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  padding: 10px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.1s;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--bg);
  color: var(--blue);
}
.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

/* Hero */
.hero {
  text-align: center;
  padding: 48px 20px 32px;
}
.hero h1 {
  font-size: 2rem;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--ink);
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Card */
.app-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 32px;
}
.input-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.input-heading label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
#line-count {
  font-size: 0.85rem;
  color: var(--muted);
}
#line-count.over-limit {
  color: var(--red);
  font-weight: 600;
}
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 140px;
  background: #fafafa;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(50, 102, 214, 0.15);
}
textarea::placeholder, .text-input::placeholder {
  color: #999;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.text-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.text-input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(50, 102, 214, 0.15);
}
.file-input {
  width: 100%;
  padding: 10px 0;
  font-size: 1rem;
}
.form-bottom {
  margin-top: 16px;
}
.primary-button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
}
.primary-button:hover:not(:disabled) {
  background: var(--blue-hover);
}
.primary-button:active:not(:disabled) {
  transform: scale(0.99);
}
.primary-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.notice-icon {
  background: #e4e6eb;
  color: var(--ink);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Feedback */
.feedback {
  margin-bottom: 32px;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.feedback-warning {
  background: #fff8e1;
  color: #8f6c00;
  border: 1px solid #ffe082;
}
.feedback-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.feedback-mark {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex-shrink: 0;
}

/* Results */
.results {
  margin-bottom: 64px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}
.results-heading h2 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
}
.batch-summary {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}
.batch-summary strong {
  display: block;
  font-size: 1.1rem;
  color: var(--ink);
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.download-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.download-item.has-error {
  border-color: #ffcdd2;
  background: #fffbfa;
}
.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e4e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: bold;
  flex-shrink: 0;
}
.icon-done {
  background: #e8f5e9;
  color: var(--green);
}
.icon-error {
  background: #ffebee;
  color: var(--red);
}
.item-content {
  flex-grow: 1;
  min-width: 0;
}
.item-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.item-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  padding-right: 12px;
}
.item-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  flex-shrink: 0;
}
.status-active { color: var(--blue); background: #e8f0fe; }
.status-done { color: var(--green); background: #e8f5e9; }
.status-error { color: var(--red); background: #ffebee; }

.item-url {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}
.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  transition: width 0.3s ease;
}
.progress-fill.done {
  background: var(--green);
}
.item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.individual-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.individual-link:hover {
  text-decoration: underline;
}
.item-error {
  font-size: 0.85rem;
  color: var(--red);
  margin-top: 6px;
}

/* ZIP */
.zip-area {
  margin-top: 24px;
  background: #fffde7;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.zip-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #8f6c00;
}
.zip-text span {
  font-size: 0.9rem;
  color: #b08d00;
}
.zip-button {
  background: var(--yellow);
  color: #000;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.zip-button:hover {
  background: var(--yellow-hover);
}

/* Tool Results */
.success-box, .progress-box, .analysis-box, .result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}
.success-box strong {
  color: var(--green);
  font-size: 1.1rem;
}
.copy-box {
  background: #f4f6f8;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: monospace;
  word-break: break-all;
  margin-top: 8px;
}
.result-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.result-list li {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 500;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.stat-box strong {
  display: block;
  font-size: 2rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-box span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.analysis-box p {
  margin: 0 0 8px;
}
.analysis-box ul {
  margin: 0;
  padding-left: 20px;
}

/* Step-by-step instructions */
.how-to-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}
.how-to-heading {
  margin-bottom: 20px;
}
.how-to-kicker {
  color: var(--blue);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.how-to-heading h2 {
  color: var(--ink);
  font-size: 1.25rem;
  margin: 0;
}
.how-to-steps {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.how-to-steps li {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}
.step-number {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 0.8rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
}
.how-to-steps p {
  color: var(--ink);
  line-height: 1.55;
  margin: 2px 0 0;
}
.how-to-note {
  background: #fff9df;
  border-left: 3px solid var(--yellow);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 20px 0 0;
  padding: 10px 12px;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  animation: rotate 2s linear infinite;
  display: inline-block;
}
.spinner circle {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate {
  100% { transform: rotate(360deg); }
}
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Content Sections */
.content-section {
  margin-bottom: 64px;
}
.section-heading {
  margin-bottom: 32px;
}
.section-heading span {
  color: var(--blue);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.section-heading h2 {
  color: var(--ink);
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.feature-check {
  color: var(--blue);
  font-weight: bold;
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 12px;
  background: #e8f0fe;
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
}
.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--ink);
}
.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Related Tools */
.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related-tools a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 20px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.related-tools a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #f8faff;
}

/* FAQ */
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  position: relative;
  user-select: none;
  font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--muted);
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
}
.faq-list p {
  padding: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Legal / Content Pages */
.content-page {
  padding-top: 48px;
  padding-bottom: 64px;
}
.content-page-heading {
  margin-bottom: 32px;
  text-align: center;
}
.back-link {
  display: inline-block;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.back-link:hover {
  text-decoration: underline;
}
.content-page-heading h1 {
  font-size: 2.2rem;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 700;
}
.content-page-heading p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}
.legal-disclaimer {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #8f6c00;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  text-align: center;
}
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px;
}
.prose-card section {
  margin-bottom: 36px;
}
.prose-card section:last-child {
  margin-bottom: 0;
}
.prose-card h2 {
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 700;
}
.prose-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
}
.prose-card p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
  margin-top: 64px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  display: inline-flex;
  background-color: var(--blue);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 24px;
  display: block;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 280px;
}
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-column strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-column a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-column a:hover {
  color: var(--blue);
}
.footer-link-button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  padding: 0;
  text-align: left;
}
.footer-link-button:hover {
  color: var(--blue);
}
.footer-bottom {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 24px 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Cookie consent */
.cookie-banner {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  bottom: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 50%;
  max-width: 1120px;
  padding: 20px;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  z-index: 1000;
}
.cookie-banner[hidden], .cookie-dialog[hidden] { display: none; }
.cookie-banner-copy { max-width: 650px; }
.cookie-banner-copy strong { display: block; font-size: 1.05rem; margin-bottom: 5px; }
.cookie-banner-copy p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin: 0; }
.cookie-banner-copy a { color: var(--blue); }
.cookie-actions, .cookie-dialog-actions { display: flex; flex-shrink: 0; gap: 10px; }
.cookie-button {
  border: 1px solid var(--blue);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 16px;
}
.cookie-button-primary { background: var(--blue); color: #fff; }
.cookie-button-primary:hover { background: var(--blue-hover); }
.cookie-button-secondary { background: #fff; color: var(--blue); }
.cookie-button-secondary:hover { background: #f3f6fd; }
.cookie-dialog {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1100;
}
.cookie-dialog-backdrop { background: rgba(18, 24, 38, 0.58); inset: 0; position: absolute; }
.cookie-dialog-card {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  max-width: 560px;
  padding: 28px;
  position: relative;
  width: 100%;
}
.cookie-dialog-kicker { color: var(--blue); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.cookie-dialog-card h2 { font-size: 1.5rem; margin: 6px 0 10px; }
.cookie-dialog-card > p { color: var(--muted); line-height: 1.55; margin: 0 0 24px; }
.cookie-preference-row {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px;
}
.cookie-preference-row strong, .cookie-preference-row span { display: block; }
.cookie-preference-row span { color: var(--muted); font-size: 0.86rem; line-height: 1.4; margin-top: 4px; }
.cookie-switch { cursor: pointer; flex: 0 0 46px; position: relative; }
.cookie-switch input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.cookie-switch > span:first-of-type { background: #a9afb8; border-radius: 14px; height: 26px; margin: 0; position: relative; transition: background 0.2s; width: 46px; }
.cookie-switch > span:first-of-type::after { background: #fff; border-radius: 50%; content: ""; height: 20px; left: 3px; position: absolute; top: 3px; transition: transform 0.2s; width: 20px; }
.cookie-switch input:checked + span { background: var(--blue); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + span { outline: 3px solid rgba(50, 102, 214, 0.25); outline-offset: 2px; }
.cookie-dialog-actions { justify-content: flex-end; }
.consent-dialog-open { overflow: hidden; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 768px) {
  .header-container {
    align-items: flex-start;
  }
  .header-left {
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }
  .header-nav {
    width: 100%;
    padding-bottom: 4px;
    margin-left: 0;
    gap: 0;
    justify-content: space-between;
  }
  .header-nav > .nav-link {
    display: none;
  }
  .header-nav > .dropdown {
    width: 25%;
  }
  .dropdown-toggle {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.15;
  }
  .dropdown:nth-last-child(-n + 2) .dropdown-menu {
    right: 0;
    left: auto;
  }
  .site-header {
    height: auto;
    padding: 12px 0;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 640px) {
  .hero { padding: 32px 20px 24px; }
  .hero h1 { font-size: 1.6rem; }
  .app-card { padding: 16px; margin-bottom: 24px; }
  .how-to-card { padding: 18px 16px; margin-bottom: 24px; }
  .zip-area { flex-direction: column; align-items: flex-start; gap: 16px; }
  .zip-button { width: 100%; justify-content: center; }
  .item-topline { flex-direction: column; align-items: flex-start; gap: 6px; }
  .item-status { order: -1; }
  .item-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lang-selector { display: none; }
  
  .content-section {
    margin-bottom: 48px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .prose-card {
    padding: 24px 20px;
  }
  .content-page-heading h1 {
    font-size: 1.8rem;
  }
  .cookie-banner {
    align-items: stretch;
    bottom: 10px;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    width: calc(100% - 20px);
  }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-actions .cookie-button-primary { grid-column: 1 / -1; grid-row: 1; }
  .cookie-dialog-card { padding: 22px 18px; }
  .cookie-dialog-actions { flex-direction: column-reverse; }
  .cookie-dialog-actions .cookie-button { width: 100%; }
}