:root {
  --bg: #fff7fb;
  --bg-soft: #f3f8ff;
  --white: #ffffff;

  --blue: #246bfe;
  --blue-dark: #1647b8;
  --blue-soft: #dce9ff;

  --pink: #ff4fb8;
  --pink-soft: #ffe1f2;

  --yellow: #ffe86b;
  --green: #31d6a0;

  --text: #172033;
  --muted: #667085;
  --border: #e6eaf2;

  --shadow: 0 18px 50px rgba(36, 107, 254, 0.12);
  --shadow-pink: 0 18px 50px rgba(255, 79, 184, 0.16);

  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #ffe1f2 0, transparent 34%),
    radial-gradient(circle at top right, #dce9ff 0, transparent 35%),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 48%, #f3f8ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin: 14px 0 34px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(36, 107, 254, 0.28);
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: 0.2s ease;
}

.main-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-btn,
.lang-btn {
  border: 0;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #b91571;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
  padding: 40px 0 70px;
}

.kicker,
.section-tag {
  display: inline-flex;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--yellow);
  font-weight: 900;
  font-size: 0.82rem;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.93;
  letter-spacing: -0.08em;
  margin: 0 0 24px;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
  margin: 0;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 950;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: white;
  box-shadow: var(--shadow-pink);
}

.primary-btn:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.secondary-btn {
  background: white;
  border: 1px solid var(--border);
  color: var(--blue-dark);
  box-shadow: var(--shadow);
}

.trust-row {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-card {
  background:
    linear-gradient(180deg, white, #fff7fb);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 28px;
  box-shadow: var(--shadow-pink);
  transform: rotate(2deg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "💸";
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 8rem;
  opacity: 0.12;
}

.hero-card > span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
  margin-bottom: 16px;
}

.hero-card > strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.mini-breakdown {
  display: grid;
  gap: 12px;
}

.mini-breakdown div {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
}

.mini-breakdown small {
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.mini-breakdown b {
  font-size: 1.05rem;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 42px;
}

.intro-strip article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.intro-strip strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.intro-strip span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.panel,
.info-section,
.results,
.cta-section,
.footer {
  margin: 34px 0;
}

.panel,
.breakdown-card,
.zones-card,
.share-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 24px;
}

.panel-head.center {
  text-align: center;
}

.panel-head.center .section-tag {
  margin-left: auto;
  margin-right: auto;
}

.panel-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0 0 12px;
}

.panel-head p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 760px;
}

.panel-head.center p {
  margin-left: auto;
  margin-right: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 900;
  font-size: 0.9rem;
}

.field input,
.field select {
  width: 100%;
  border: 2px solid var(--border);
  background: #fbfcff;
  border-radius: 18px;
  padding: 15px 14px;
  outline: none;
  color: var(--text);
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(36, 107, 254, 0.12);
}

.extras {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.extras label {
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-weight: 800;
  cursor: pointer;
}

.extras input {
  accent-color: var(--pink);
}

.big-btn {
  width: 100%;
  padding: 18px 24px;
  font-size: 1.05rem;
}

.info-section {
  padding: 54px 0;
}

.info-section.soft {
  background: linear-gradient(135deg, #ffffff, #fff0f8, #eef5ff);
  border-radius: 40px;
  padding: 44px 30px;
}

.city-grid,
.cost-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.city-card,
.cost-grid article,
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.city-card h3,
.cost-grid h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.city-card p,
.cost-grid p,
.stat-card p {
  color: var(--muted);
  line-height: 1.6;
}

.city-card span {
  display: inline-flex;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #b91571;
  font-weight: 900;
  font-size: 0.85rem;
}

.metro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.metro-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
}

.metro-card h3 {
  margin: 0 0 18px;
  font-size: 1.7rem;
}

.metro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.metro-list li {
  padding: 16px;
  border-radius: 20px;
  background: var(--bg-soft);
}

.metro-list b {
  display: block;
  margin-bottom: 5px;
}

.metro-list span {
  color: var(--muted);
  line-height: 1.5;
}

.cost-grid article span {
  font-size: 2rem;
}

.hidden {
  display: none;
}

.results {
  display: grid;
  gap: 20px;
}

.results.hidden {
  display: none;
}

.verdict-card {
  border-radius: 34px;
  padding: 32px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: var(--shadow-pink);
}

.small-label {
  margin: 0 0 10px;
  font-weight: 900;
  opacity: 0.85;
}

.verdict-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.verdict-card p {
  max-width: 760px;
  line-height: 1.7;
}

.score-wrap {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.score-wrap span {
  display: block;
  opacity: 0.82;
}

.score-wrap strong {
  font-size: 1.5rem;
}

.score-bar {
  height: 15px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.score-bar div {
  width: 0%;
  height: 100%;
  background: white;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.stat-card span {
  color: var(--muted);
  font-weight: 900;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.breakdown-list,
.zone-results {
  display: grid;
  gap: 12px;
}

.breakdown-row,
.zone-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.breakdown-row strong,
.zone-row strong {
  color: var(--blue-dark);
}

.share-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--pink);
  color: white;
  font-weight: 950;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
}

.share-btn.alt {
  background: white;
  color: var(--blue-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-section {
  background: linear-gradient(135deg, #ffe1f2, #dce9ff);
  border-radius: 40px;
  padding: 38px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.cta-section p {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.7;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  color: var(--muted);
  max-width: 600px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--blue-dark);
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero,
  .metro-layout,
  .share-panel,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .intro-strip,
  .form-grid,
  .city-grid,
  .cost-grid,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    display: none;
  }

  .hero-card {
    transform: none;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    border-radius: 24px;
    align-items: flex-start;
  }

  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .intro-strip,
  .form-grid,
  .city-grid,
  .cost-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .panel,
  .breakdown-card,
  .zones-card,
  .share-panel {
    padding: 22px;
    border-radius: 26px;
  }

  .cta-section {
    padding: 26px;
  }

  .footer {
    flex-direction: column;
  }
}
.result-hero {
  min-height: 520px;
}

.result-hero .hero-card {
  transform: rotate(-1deg);
}

@media (max-width: 980px) {
  .result-hero .hero-card {
    transform: none;
  }
}
.hero-vibe {
  margin-top: 18px !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.extras-block {
  margin-top: 30px;
}

.panel-head.compact h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.summary-card,
.transport-section,
.roast-panel,
.suggestions-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.summary-grid,
.transport-grid,
.suggestions-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.summary-grid div,
.transport-card,
.suggestion-card,
.roast-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.summary-grid strong {
  font-size: 1.1rem;
}

.transport-card {
  display: flex;
  gap: 14px;
}

.transport-card > span {
  font-size: 2rem;
}

.transport-card strong {
  display: block;
  margin-bottom: 6px;
}

.transport-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 8px;
}

.transport-card small {
  color: var(--blue-dark);
  font-weight: 800;
}

.roast-list {
  display: grid;
  gap: 12px;
}

.roast-item {
  font-weight: 850;
  line-height: 1.55;
}

.suggestion-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.suggestion-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.suggestion-card div {
  display: grid;
  gap: 8px;
}

.suggestion-card span {
  color: var(--text);
  font-weight: 800;
}

.suggestion-card strong {
  color: var(--blue-dark);
}

.zone-row.current {
  background: var(--pink-soft);
  border-color: #ffc1e3;
}

.zone-numbers {
  text-align: right;
}

.zone-numbers span {
  display: block;
  font-weight: 950;
}

.zone-numbers small {
  display: block;
  color: var(--muted);
  margin: 4px 0;
}

.verdict-roast {
  display: inline-flex;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  line-height: 1.5;
}

.verdict-card.danger {
  background: linear-gradient(135deg, #ff3b6b, #7c2d12);
}

.verdict-card.warning {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.verdict-card.okay {
  background: linear-gradient(135deg, #246bfe, #8b5cf6);
}

.verdict-card.good {
  background: linear-gradient(135deg, #246bfe, #31d6a0);
}

.verdict-card.great {
  background: linear-gradient(135deg, #10b981, #246bfe);
}

@media (max-width: 980px) {
  .summary-grid,
  .transport-grid,
  .suggestions-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .summary-grid,
  .transport-grid,
  .suggestions-list {
    grid-template-columns: 1fr;
  }

  .brand span {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }
}
.brand-mark.image-logo {
  background: white;
  padding: 4px;
}

.brand-mark.image-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.report-btn {
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.report-btn:hover {
  background: #f6f6f6;
  color: #111;
}
.tool-page {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 48px 0 80px;
}

.tool-hero {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 28px;
  padding: 36px;
  margin-bottom: 24px;
}

.kicker {
  font-weight: 800;
  color: #ea580c;
  margin-bottom: 8px;
}

.tool-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 14px;
}

.tool-hero p {
  max-width: 720px;
  font-size: 1.1rem;
  color: #57534e;
}

.tool-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.form-grid input,
.form-grid select {
  border: 1px solid #d6d3d1;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
}

.primary-btn {
  border: 0;
  background: #111827;
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.result-box {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 22px;
}

.result-box h3 {
  margin-top: 0;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.rank-card {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 20px;
}

.tag-row,
.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
}

.tag-row span,
.link-grid a {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #155e75;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .tool-hero,
  .tool-card {
    padding: 22px;
  }
}
/* =========================
   MOBILE FIX FINAL
========================= */

:root {
  --text: #101828;
}

/* impedir scroll lateral */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* imagens nunca rebentam */
img {
  max-width: 100%;
}

/* tablets */
@media (max-width: 980px) {
  .app-shell,
  .tool-page {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    position: sticky;
    top: 8px;
    border-radius: 26px;
    padding: 12px;
    gap: 10px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 0 42px;
  }

  .hero-card {
    transform: none;
  }

  .intro-strip,
  .city-grid,
  .cost-grid,
  .cards-grid,
  .summary-grid,
  .transport-grid,
  .suggestions-list,
  .metro-layout,
  .share-panel,
  .cta-section {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* telemóvel */
@media (max-width: 620px) {
  .app-shell,
  .tool-page {
    width: calc(100% - 18px);
  }

  body {
    font-size: 15px;
  }

  .topbar {
    margin: 8px 0 22px;
    border-radius: 22px;
    padding: 10px;
    align-items: center;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand strong {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .brand span {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .top-actions {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    gap: 6px;
  }

  .ghost-btn,
  .lang-btn {
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 18px 0 36px;
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .big-btn {
    width: 100%;
    padding: 15px 18px;
  }

  .trust-row span {
    width: 100%;
    text-align: center;
  }

  .hero-card,
  .panel,
  .breakdown-card,
  .zones-card,
  .share-panel,
  .summary-card,
  .transport-section,
  .roast-panel,
  .suggestions-card,
  .tool-card,
  .tool-hero {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-card > strong {
    font-size: 1.65rem;
  }

  .intro-strip,
  .city-grid,
  .cost-grid,
  .cards-grid,
  .summary-grid,
  .transport-grid,
  .suggestions-list,
  .metro-layout,
  .share-panel,
  .cta-section,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .field input,
  .field select,
  .form-grid input,
  .form-grid select {
    min-height: 48px;
    font-size: 16px;
  }

  .extras {
    gap: 8px;
  }

  .extras label {
    width: 100%;
    border-radius: 18px;
    padding: 13px 14px;
  }

  .panel-head h2,
  .cta-section h2,
  .tool-hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1;
  }

  .breakdown-row,
  .zone-row {
    grid-template-columns: 1fr;
  }

  .zone-numbers {
    text-align: left;
  }

  .transport-card {
    flex-direction: column;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
  }

  .cta-section {
    padding: 22px;
  }

  .footer {
    flex-direction: column;
    padding-bottom: 28px;
  }

  .footer-links {
    flex-direction: column;
  }

  .link-grid a,
  .tag-row span {
    width: 100%;
    text-align: center;
  }
}

/* telemóveis muito pequenos */
@media (max-width: 390px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .top-actions {
    gap: 4px;
  }

  .ghost-btn,
  .lang-btn {
    padding: 8px 9px;
    font-size: 0.72rem;
  }

  .panel,
  .tool-card,
  .tool-hero {
    padding: 17px;
  }
}
.link-grid a small {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 620px) {
  .link-grid a small {
    font-size: 0.75rem;
  }
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tool-link-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.tool-link-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--shadow-pink);
}

.tool-link-card span {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 14px;
}

.tool-link-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.tool-link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-link-card {
    padding: 20px;
    border-radius: 24px;
  }
}
.confession-message {
  margin: 20px 0;
}

.confession-message textarea {
  width: 100%;
  border: 2px solid var(--border);
  background: #fbfcff;
  border-radius: 18px;
  padding: 16px;
  outline: none;
  resize: vertical;
  color: var(--text);
}

.confession-message textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(36, 107, 254, 0.12);
}

.privacy-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.privacy-options label {
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-weight: 800;
  cursor: pointer;
}

.privacy-options input {
  accent-color: var(--pink);
}

.privacy-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 16px;
  color: #7c2d12;
  line-height: 1.55;
  margin: 18px 0;
}

.form-status {
  font-weight: 900;
  color: var(--blue-dark);
  margin-top: 14px;
}

.confessions-list {
  display: grid;
  gap: 16px;
}

.confession-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
}

.confession-card.reported {
  opacity: 0.65;
}

.confession-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.confession-meta span {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-weight: 850;
  font-size: 0.82rem;
}

.confession-card p {
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
  white-space: pre-wrap;
}

.confession-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.confession-actions button {
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 850;
  cursor: pointer;
}

.confession-actions button:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.empty-state {
  text-align: center;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 24px;
  padding: 28px;
}

.empty-state.hidden {
  display: none;
}

@media (max-width: 620px) {
  .privacy-options label,
  .confession-actions button {
    width: 100%;
  }

  .confession-meta {
    flex-direction: column;
  }

  .confession-meta span {
    width: 100%;
  }
}