:root {
  color-scheme: light;
  --mare-50: #e8f2f6;
  --mare-100: #c4dde8;
  --mare-300: #5a9db8;
  --mare-500: #1a3a4a;
  --mare-700: #0b1d26;
  --turchese-50: #e4f6f4;
  --turchese-500: #2a9d8f;
  --turchese-600: #1e7268;
  --verde-50: #eaf7f1;
  --verde-700: #22503c;
  --limone-100: #fdf2c4;
  --limone-700: #8a7218;
  --fiore-400: #f37c6c;
  --fiore-600: #c0392b;
  --ink: var(--mare-500);
  --muted: var(--mare-300);
  --line: var(--mare-100);
  --surface: #ffffff;
  --surface-soft: var(--mare-50);
  font-family:
    "InterFace Light", "InterFace", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "InterFace Light";
  src: url("assets/fonts/interface-light.ttf") format("truetype");
  font-weight: 300;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(42, 157, 143, 0.06), transparent 34%),
    linear-gradient(315deg, rgba(192, 57, 43, 0.05), transparent 28%),
    var(--surface-soft);
  color: var(--ink);
  font-weight: 300;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px;
}

.app-header,
.panel-heading,
.dialog-heading,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.app-header {
  margin-bottom: 18px;
}

.brand-wordmark {
  width: fit-content;
}

.brand-name {
  color: var(--mare-700);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 5px;
  line-height: 1;
}

.brand-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  border-radius: 1px;
  background: var(--fiore-400);
  position: relative;
  top: -3px;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 3px;
  margin-top: 7px;
  position: relative;
  left: 3px;
  text-align: right;
  text-transform: uppercase;
}

.hero-card,
.panel,
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(26, 58, 74, 0.04);
}

.hero-card,
.panel {
  margin-bottom: 12px;
  padding: 18px;
}

.hero-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 8vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
}

.hero-card p,
.meta {
  color: var(--muted);
  line-height: 1.45;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin: 0;
}

h2 {
  font-size: 1.1rem;
  font-weight: 500;
}

.primary-action,
.ghost-action,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}

.primary-action {
  background: var(--turchese-500);
  border-color: var(--turchese-600);
  color: #fff;
  font-weight: 600;
}

.ghost-action,
.icon-button {
  background: var(--mare-50);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  display: grid;
  place-items: center;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.offer-list,
.timeline {
  display: grid;
  gap: 10px;
}

.offer-card,
.timeline-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.offer-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--mare-50);
  color: var(--mare-500);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge.good {
  background: var(--verde-50);
  color: var(--verde-700);
}

.badge.warning {
  background: var(--limone-100);
  color: var(--limone-700);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

dialog {
  width: min(520px, calc(100vw - 28px));
}

dialog::backdrop {
  background: rgba(11, 29, 38, 0.42);
}

.profile-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.profile-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 600;
}

.profile-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
}

@media (max-width: 620px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .offer-top {
    display: grid;
  }
}
