/* The Specchio palette, as in frontend/src/global.css: Notte for text,
   Ghiaccio behind the page, Ottanio the brand's own colour. Outfit is served
   from this origin so the page asks Google for nothing. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --navy: #10232b;
  --brand: #0f7a78;
  --brand-deep: #0b5c5a;
  --page: #f3f8f8;
  --band: #dcecea;
  --ardesia: #5b6b73;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--navy);
  font:
    400 17px/1.55 "Outfit",
    ui-sans-serif,
    system-ui,
    sans-serif;
}

a {
  color: var(--brand-deep);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 22px;
}

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

main > section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 16px;
}

h1 {
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}

h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  margin: 0 0 16px;
}

h3 {
  font-size: 19px;
  margin: 0 0 6px;
}

.three {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  max-width: 640px;
}

.three li {
  padding: 10px 0 10px 18px;
  border-left: 3px solid var(--brand);
  margin-bottom: 12px;
  font-size: 19px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--brand);
}

.btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn.small {
  padding: 8px 14px;
  font-size: 15px;
}

.btn.ghost {
  background: transparent;
  color: var(--brand-deep);
}

.btn.ghost:hover {
  background: var(--band);
}

.link {
  font-weight: 600;
}

.video figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video video {
  width: min(360px, 100%);
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 20px 50px rgba(16, 35, 43, 0.18);
}

figcaption {
  color: var(--ardesia);
  font-size: 15px;
  margin-top: 12px;
  text-align: center;
}

main > .promise {
  text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  max-width: 1008px;
  margin: 24px max(16px, calc((100% - 1008px) / 2));
  padding: 48px 24px;
}

.demo .contact {
  margin: 16px auto 0;
  color: var(--ardesia);
}

.promise p {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 700;
  margin: 0 0 12px;
}

.promise span {
  color: #c9dcdc;
  max-width: 560px;
  display: inline-block;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid article {
  background: var(--white);
  border-radius: 18px;
  padding: 20px;
}

.grid p {
  margin: 0;
  color: var(--ardesia);
}

.note {
  color: var(--ardesia);
  margin-top: 20px;
}

.price .card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  border: 2px solid var(--brand);
  max-width: 560px;
}

.amount {
  margin: 0;
  font-size: 20px;
}

.amount span {
  font-size: 56px;
  font-weight: 700;
  color: var(--brand-deep);
}

.price ul {
  padding-left: 20px;
  margin: 16px 0 0;
}

.price li {
  margin-bottom: 8px;
}

.founding {
  margin-top: 20px;
  max-width: 560px;
  background: var(--band);
  border-radius: 18px;
  padding: 20px;
}

.founding p {
  margin: 0;
}

.demo {
  text-align: center;
}

.demo p {
  max-width: 520px;
  margin: 0 auto 24px;
}

.demo .cta {
  justify-content: center;
}

footer {
  text-align: center;
  color: var(--ardesia);
  font-size: 14px;
  padding: 32px 16px 48px;
}

footer .legal {
  font-size: 12px;
  max-width: 640px;
  margin: 8px auto 0;
}

.bar {
  gap: 12px;
}

.lang {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.lang a {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ardesia);
}

.lang a[aria-current="page"] {
  color: var(--navy);
  background: var(--band);
}

/* On a phone the header holds the name and the language switch only; the
   hero's own button is a thumb away. */
@media (max-width: 480px) {
  .bar .btn.small {
    display: none;
  }
}

.for {
  font-size: 19px;
  color: var(--ardesia);
  margin: -8px 0 24px;
  max-width: 640px;
}

/* The feedback log at /registro/ (site/worker/page.ts). */
.log-form {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-bottom: 32px;
}

.log-form label {
  font-weight: 600;
  margin-top: 8px;
}

.log-form input,
.log-form select,
.log-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--ardesia);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
}

.log-form button {
  margin-top: 16px;
  justify-self: start;
  cursor: pointer;
}

.log-notice {
  background: var(--band);
  border-radius: 10px;
  padding: 10px 14px;
}

.log-entry {
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.log-entry dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, 35%) 1fr;
  gap: 4px 12px;
}

.log-entry dt {
  font-weight: 600;
}

.log-entry dd {
  margin: 0;
  white-space: pre-wrap;
}
