/* Spec 010 R2: the landing's look, from the approved mock ("AmicoDev landing", 2026-10-29).
   Every colour and size lives here as a variable; a brand change is the wordmark and
   --accent. The panel keeps spec 006a's tokens (frontend/src/styles/tokens.css). */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* brand */
  --accent: #3d5cff;
  --accent-hover: #2a46e0;
  --accent-soft: #e8edff;
  --accent-on-dark: #9db0ff;
  --accent-ring: rgb(61 92 255 / 22%);

  /* grounds */
  --ink: #0b0e14;
  --ink-raised: #151a24;
  --ink-line: #2a3140;
  --paper: #ffffff;
  --paper-soft: #f3f4f8;
  --paper-sunk: #f7f8fb;
  --paper-hover: #e9ecf3;

  /* text and lines */
  --text: #0e1116;
  --text-muted: #5b6472;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgb(255 255 255 / 72%);
  --line: #e3e6ec;
  --line-strong: #c9ced8;
  --line-on-dark: rgb(255 255 255 / 12%);
  --line-on-dark-strong: rgb(255 255 255 / 28%);
  --fill-on-dark: rgb(255 255 255 / 6%);
  --fill-on-dark-strong: rgb(255 255 255 / 10%);
  --dot: rgb(255 255 255 / 10%);
  --skeleton: #d4d8e0;

  /* states */
  --ok: #0f6b3c;
  --ok-soft: #dcf5e6;
  --error: #b42318;
  --error-soft: #fdecea;
  --error-on-dark: #ffb4ab;

  /* type */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --size-body: 17px;
  --size-display: 68px;
  --size-section: 44px;
  --size-card: 22px;
  --size-lead: 20px;
  --size-small: 15px;
  --size-xs: 14px;
  --size-tag: 13px;

  /* shape */
  --mark-size: 28px;
  --mark-size-sm: 22px;
  --radius-card: 22px;
  --radius-field: 12px;
  --radius-pill: 999px;
  --wrap: 1160px;
  --gutter: 24px;
  --section-pad: 104px;
  --shadow-visual: 0 40px 80px rgb(0 0 0 / 45%);
}

/* ---------- base ---------- */

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

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

.on-dark :focus-visible {
  outline-color: var(--accent-on-dark);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--text);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section {
  padding: var(--section-pad) 0;
}

.section-soft {
  background: var(--paper-soft);
}

.on-dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.dots {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
}

.section-head {
  max-width: 720px;
}

/* ---------- type ---------- */

.eyebrow {
  font-size: var(--size-tag);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.on-dark .eyebrow {
  color: var(--accent-on-dark);
}

.num {
  font-size: var(--size-tag);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.h-display {
  font-size: var(--size-display);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.h-page {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.h-section {
  font-size: var(--size-section);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.h-section-sm {
  font-size: 38px;
}

.h-card {
  font-size: var(--size-card);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.h-card-lg {
  font-size: 28px;
}

.lead {
  font-size: var(--size-lead);
  line-height: 1.5;
  color: var(--text-muted);
}

.on-dark .lead {
  color: var(--text-on-dark-muted);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: var(--size-small);
}

.xs {
  font-size: var(--size-xs);
}

.strong {
  font-weight: 800;
}

/* ---------- buttons, pills, tags ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: var(--size-small);
}

.btn-xs {
  min-height: 40px;
  padding: 0 14px;
  font-size: var(--size-xs);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-on-dark);
}

.btn-primary:disabled {
  cursor: progress;
  opacity: 0.75;
}

.btn-light {
  background: var(--paper);
  color: var(--text);
}

.btn-light:hover {
  background: var(--paper-hover);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  background: var(--paper-soft);
  color: var(--text);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line-on-dark-strong);
}

.btn-outline-dark:hover {
  background: var(--fill-on-dark);
  color: var(--text-on-dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: var(--size-tag);
  font-weight: 700;
}

.pill-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill-dark {
  background: var(--fill-on-dark-strong);
  color: var(--text-on-dark);
  border: 1px solid var(--line-on-dark);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.pills-tight {
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: var(--size-xs);
  font-weight: 600;
  color: var(--text);
}

a.tag:hover {
  border-color: var(--line-strong);
  color: var(--text);
  text-decoration: none;
}

.tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  list-style: none;
  flex: none;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 8px 0 20px;
  border-radius: var(--radius-pill);
  background: var(--fill-on-dark);
  border: 1px solid var(--line-on-dark);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  color: var(--text-on-dark);
  text-decoration: none;
}

.wordmark-dark {
  color: var(--text);
  font-size: 18px;
}

/* Spec 016 R2: the two-friends mark (copies of brand/), dark version in the header */
.mark {
  display: block;
  width: var(--mark-size);
  height: var(--mark-size);
}

.mark-sm {
  width: var(--mark-size-sm);
  height: var(--mark-size-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navlink {
  color: var(--text-on-dark-muted);
  font-weight: 600;
  font-size: var(--size-small);
}

.navlink:hover,
.navlink[aria-current='page'] {
  color: var(--text-on-dark);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- hero ---------- */

.hero {
  padding: 24px 0 96px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.page-hero {
  padding: 24px 0 88px;
}

.page-hero .hero-copy {
  max-width: 820px;
}

/* product visual: the chat with a job card */
.visual {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-visual);
  overflow: hidden;
}

.visual-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.visual-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: var(--size-small);
}

.dot {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--ok);
}

.dot-sm {
  width: 8px;
  height: 8px;
}

.visual-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--paper-sunk);
}

.bubble {
  align-self: flex-end;
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px 18px 6px 18px;
  background: var(--accent);
  color: var(--text-on-dark);
  font-size: var(--size-small);
  line-height: 1.4;
  font-weight: 500;
}

.job {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: var(--size-small);
}

.job-head span {
  font-weight: 500;
  font-size: var(--size-tag);
  color: var(--text-muted);
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--size-xs);
}

.row svg {
  flex: none;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  overflow: hidden;
  background: var(--paper);
}

.shot-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.shot-bar span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--skeleton);
}

.shot-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}

.shot-row {
  display: flex;
  gap: 8px;
}

.sk {
  height: 8px;
  border-radius: 4px;
  background: var(--paper-hover);
}

.sk-field {
  height: 22px;
  width: 34%;
  border-radius: 6px;
  background: var(--line);
}

.sk-new {
  height: 22px;
  width: 26%;
  border-radius: 6px;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
}

.sk-92 {
  width: 92%;
}

.sk-96 {
  width: 96%;
}

.fake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fake-actions .btn {
  cursor: default;
}

.visual-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--size-tag);
  color: var(--text-muted);
}

/* ---------- cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.card-soft {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.card-dark {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-card);
  color: var(--text-on-dark);
}

.card-dark .num,
.card-dark .eyebrow {
  color: var(--accent-on-dark);
}

.card-dark p {
  color: var(--text-on-dark-muted);
}

.card-dark .strong {
  color: var(--text-on-dark);
}

.pad {
  padding: 32px;
}

.pad-lg {
  padding: 36px;
}

.pad-sm {
  padding: 20px;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-sm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-field);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.icon-box-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.card-dark .icon-box {
  background: var(--fill-on-dark-strong);
  color: var(--accent-on-dark);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.span-2 {
  grid-column: span 2;
}

/* "Cosa facciamo" bento */
.bento-lead {
  min-height: 300px;
  gap: 18px;
}

.bento-lead p {
  max-width: 540px;
}

.bento-lead .pills {
  margin-top: auto;
}

.bento-split {
  display: flex;
  gap: 28px;
  align-items: center;
}

.bento-split > .flow {
  flex: 1;
  gap: 12px;
}

/* "Garanzie" */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.sticky {
  position: sticky;
  top: 32px;
}

.guarantees {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.guarantee {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
}

.guarantee p + p {
  font-size: var(--size-small);
  color: var(--text-muted);
}

/* "Software house" */
.sh {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
}

.sh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sh-grid p {
  font-size: var(--size-xs);
}

.sh-grid .strong {
  font-size: var(--size-body);
}

.sh-grid .card-dark .strong {
  font-size: 18px;
}

.sh-links {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sh-links .pills {
  flex: 0 1 auto;
  min-width: 0;
}

/* service pages: long-form content */
.prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.prose h2 {
  margin-top: 18px;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
}

.prose li::marker {
  color: var(--accent);
}

.steps {
  counter-reset: step;
  list-style: none;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq details {
  padding: 20px 24px;
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

.faq details p {
  margin-top: 10px;
  color: var(--text-muted);
}

/* ---------- demo form ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: start;
}

.demo-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.on-dark .note {
  font-size: var(--size-small);
  color: var(--text-on-dark-muted);
}

.on-dark .note a {
  color: var(--accent-on-dark);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  color: var(--text);
  border-color: transparent;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: var(--size-xs);
  font-weight: 700;
}

.label .muted {
  font-weight: 500;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.input[aria-invalid='true'] {
  border-color: var(--error);
}

textarea.input {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--size-xs);
  color: var(--text-muted);
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.error {
  font-size: var(--size-xs);
  font-weight: 600;
  color: var(--error);
}

.form-error {
  padding: 12px 14px;
  border-radius: var(--radius-field);
  background: var(--error-soft);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.confirmation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  color: var(--text);
}

.confirmation:focus {
  outline: none;
}

.noscript {
  font-size: var(--size-xs);
  color: var(--text-muted);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-meta {
  font-size: var(--size-xs);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.footlink,
.footer-meta a {
  color: var(--text-muted);
  font-size: var(--size-xs);
  font-weight: 600;
}

.footlink:hover,
.footer-meta a:hover {
  color: var(--text);
}

/* ---------- privacy page ---------- */

.legal {
  padding: 72px 0 var(--section-pad);
}

.legal .prose h2 {
  font-size: var(--size-card);
}

.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--accent-soft);
  font-weight: 700;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  :root {
    --size-display: 44px;
    --size-section: 34px;
    --section-pad: 72px;
  }

  .h-page {
    font-size: 40px;
  }

  .h-section-sm {
    font-size: 30px;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .split,
  .sh,
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .grid-3 > .span-2 {
    grid-column: auto;
  }

  .hero-inner {
    gap: 56px;
  }

  .sticky {
    position: static;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --size-display: 38px;
    --size-section: 30px;
    --size-lead: 18px;
    --gutter: 16px;
  }

  .h-page {
    font-size: 34px;
  }

  .pad,
  .pad-lg,
  .sh,
  .form,
  .confirmation {
    padding: 22px;
  }

  .bento-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row,
  .sh-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sh-grid > .span-2 {
    grid-column: auto;
  }

  .nav {
    padding-left: 14px;
  }

  .wordmark {
    font-size: 18px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}
