/* Etix, pagina do produto. Cores da RINT, tipos de letra do sistema, sem JavaScript. */

:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --white: #ffffff;
  --ink: #1c1e23;
  --ink-2: #4a4e57;
  --ink-3: #7a7e87;
  --rule: #e3e1da;
  --rule-strong: #cfccc3;
  --navy: #1d3557;
  --navy-deep: #152843;
  --navy-soft: #24426b;
  --navy-line: rgba(255, 255, 255, 0.14);
  --clay: #c0624a;
  --clay-soft: #f6e6e1;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28, 30, 35, 0.06);
  --shadow: 0 1px 2px rgba(28, 30, 35, 0.05), 0 8px 24px -8px rgba(28, 30, 35, 0.14);
  --shadow-lg: 0 2px 4px rgba(21, 40, 67, 0.08), 0 28px 60px -20px rgba(21, 40, 67, 0.35);
  --max: 1140px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---- botoes */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-line {
  background: var(--white);
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--clay-soft);
  border-color: var(--clay-soft);
  color: var(--navy-deep);
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

.link-arrow::after {
  content: " \2192";
  transition: margin 0.15s;
}

.link-arrow:hover::after {
  margin-left: 3px;
}

/* ---- cabecalho */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 243, 239, 0.86);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.94rem;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--navy);
}

.site-header .btn {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.nav-mobile {
  display: none;
  margin-left: auto;
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--white);
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
}

.nav-mobile nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-mobile nav a:hover {
  background: var(--paper);
}

/* ---- abertura */

.hero {
  padding: 72px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.hero p.lead {
  margin-top: 24px;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 33em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}

/* painel com reguas em mm (o motivo da etiqueta de teste) */
.ruler-panel {
  position: relative;
  margin: 0;
  padding: 44px 40px 40px 52px;
  border-radius: var(--radius-lg);
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 5px);
  background-size: 100% 14px, 100% 8px, 14px 100%, 8px 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-lg);
}

.ruler-panel img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
}

.ruler-panel figcaption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.ruler-panel .dot {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clay);
}

/* ---- nota do Publisher */

.note {
  padding-bottom: 72px;
}

.note .wrap > div {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--clay);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.note p {
  color: var(--ink-2);
}

.note strong {
  color: var(--ink);
}

/* ---- seccoes */

.section {
  padding: 104px 0;
}

.intro {
  max-width: 44em;
  margin-bottom: 52px;
}

.intro p {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--clay);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.frame {
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.frame img {
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.frame figcaption {
  padding: 12px 6px 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}

.spaced {
  margin-top: 56px;
}

/* ---- etiquetas sequenciais: faixa azul */

.band {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}

.band h2,
.band h3 {
  color: var(--white);
}

.band .intro p {
  color: rgba(255, 255, 255, 0.78);
}

.band .num {
  color: #e9937d;
}

.examples {
  display: grid;
  gap: 12px;
  margin: 0;
}

.examples > div {
  padding: 20px 22px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: var(--navy-deep);
}

.examples dt {
  font-weight: 650;
  color: var(--white);
}

.examples dd {
  margin: 6px 0 0;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.74);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.chip {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.chips .more {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.chips .total {
  margin-left: 4px;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--clay);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.band .frame {
  position: sticky;
  top: 96px;
  border-color: transparent;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
}

/* ---- fontes de dados */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 56px;
}

.tiles > div {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tiles > div:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow);
}

.tiles dt {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
}

.tiles dd {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--navy);
}

.tag-clay {
  background: var(--clay-soft);
  border-color: #efd3cb;
  color: #9c4630;
}

/* ---- factos (impressao, informatica) */

.section-white {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 44px;
  margin: 0;
}

.facts > div {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.facts dt {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
}

.facts dd {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.facts-soft > div {
  border-top: 1px solid var(--rule-strong);
}

/* ---- licencas */

.plans-card {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.plans {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.plans th,
.plans td {
  text-align: left;
  vertical-align: top;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
}

.plans tr:last-child th,
.plans tr:last-child td {
  border-bottom: 0;
}

.plans thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.plans tbody th {
  font-family: var(--display);
  font-weight: 650;
  white-space: nowrap;
}

.plans td {
  color: var(--ink-2);
}

.plans td:last-child {
  color: var(--ink);
  font-weight: 500;
}

.plans tbody tr:hover {
  background: #faf9f6;
}

.plans-actions {
  margin-top: 28px;
}

/* ---- perguntas */

.faq {
  max-width: 50em;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.faq details + details {
  border-top: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  padding: 20px 60px 20px 26px;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--navy);
}

.faq details[open] summary::after {
  content: "\2212";
  background: var(--navy);
  color: var(--white);
}

.faq details p {
  padding: 0 26px 22px;
  color: var(--ink-2);
  max-width: 42em;
}

/* ---- contacto */

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.03), 0 0 0 80px rgba(255, 255, 255, 0.02);
}

.contact-card h2 {
  color: var(--white);
}

.contact-card p {
  margin-top: 16px;
}

.contact-side {
  position: relative;
  z-index: 1;
}

.mail {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--clay);
  padding-bottom: 2px;
}

.mail:hover {
  color: #f3c3b6;
}

.contact-card .actions {
  margin-top: 0;
}

.contact-card .btn-line {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.contact-card .btn-line:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ---- rodape */

.site-footer {
  padding: 36px 0 48px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.rint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}

.rint img {
  width: 34px;
  height: 34px;
}

.footer-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}

/* ---- paginas de texto (privacidade, 404) */

.header-push {
  margin-left: auto;
}

.doc {
  max-width: 760px;
  margin-top: 48px;
  margin-bottom: 72px;
  padding: 48px 52px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.doc h2 {
  font-size: 1.25rem;
  margin-top: 36px;
}

.doc p {
  color: var(--ink-2);
  margin-top: 12px;
}

/* ---- ecras mais pequenos */

@media (max-width: 960px) {
  .hero .wrap,
  .split,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ruler-panel {
    max-width: 440px;
  }

  .band .frame {
    position: static;
  }

  .tiles,
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .nav,
  .site-header .btn {
    display: none;
  }

  .nav-mobile {
    display: block;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .note {
    padding-bottom: 48px;
  }

  .hero p.lead {
    font-size: 1.06rem;
  }

  .ruler-panel {
    padding: 34px 24px 28px 34px;
  }

  .ruler-panel img {
    max-width: 220px;
  }

  .section {
    padding: 64px 0;
  }

  .intro {
    margin-bottom: 36px;
  }

  .tiles,
  .facts {
    grid-template-columns: 1fr;
  }

  .facts {
    gap: 28px;
  }

  .plans thead {
    display: none;
  }

  .plans,
  .plans tbody,
  .plans tr,
  .plans th,
  .plans td {
    display: block;
  }

  .plans tr {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule);
  }

  .plans tr:last-child {
    border-bottom: 0;
  }

  .plans tbody th,
  .plans td {
    border: 0;
    padding: 2px 0;
  }

  .contact-card {
    padding: 36px 24px;
    border-radius: 22px;
  }

  .doc {
    margin: 24px 16px 48px;
    padding: 28px 22px;
  }

  .footer-links {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
