/* Studio contemporan: aer, colțuri moi, un serif doar la titluri. */
:root {
  --ink: #1f2933;
  --blue: #3b82f6;
  --orange: #f97316;
  --paper: #f5f6f8;
  --sheet: #ffffff;
  --muted: #5c6770;
  --line: rgba(31, 41, 51, 0.1);
  --header: 72px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(31, 41, 51, 0.04), 0 16px 40px rgba(31, 41, 51, 0.06);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.logo,
.price {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  margin-bottom: 1.1rem;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

a {
  color: inherit;
}

::selection {
  background: #cfe0fb;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--orange);
  color: #1a120c;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section {
  padding: 5.2rem 0;
  scroll-margin-top: var(--header);
}

.section-muted {
  background: #eef2f6;
}

.section-dark {
  background: #17202a;
  color: #f4f7fb;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.2rem;
}

.section-head p,
.lede,
.hero-note,
.price-desc,
.price-note {
  color: var(--muted);
}

.section-dark p,
.section-dark .section-head p {
  color: #c5ced6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-orange {
  background: var(--orange);
  color: #1a120c;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

.btn-orange:hover {
  background: #ea6a0c;
}

.btn-dark {
  background: var(--ink);
  color: #f7f8fa;
}

.btn-dark:hover {
  background: #111820;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(31, 41, 51, 0.28);
}

.btn:focus-visible,
.nav a:focus-visible,
.logo:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible,
.auth-tabs button:focus-visible,
.thread-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: rgba(245, 246, 248, 0.86);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3d4852;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.nav-cta {
  background: var(--ink);
  color: #f7f8fa;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.nav a.nav-cta:hover {
  background: var(--orange);
  color: #1a120c;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  padding: 3.4rem 0 4.4rem;
  scroll-margin-top: var(--header);
}

.hero-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.1rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #e7f0fe;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.18rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0 1.15rem;
}

.hero-note {
  max-width: 34rem;
  margin: 0;
  font-size: 0.98rem;
}

.shot {
  margin: 0;
}

.shot-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.portrait-canvas {
  object-position: center 32%;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  counter-reset: serviciu;
}

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.95rem;
  padding: 1.35rem 1.3rem 1.2rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card .icon {
  grid-row: 1 / span 3;
  width: 52px;
  height: 52px;
  margin: 0.15rem 0 0;
  overflow: hidden;
  border-radius: 14px;
  background: #1f2933;
}

.card .icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.card h3::before {
  counter-increment: serviciu;
  content: counter(serviciu, decimal-leading-zero);
  display: block;
  margin-bottom: 0.2rem;
  color: var(--orange);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.card ul,
.price-card ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.card li,
.price-card li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.card li + li,
.price-card li + li {
  margin-top: 0.35rem;
}

.card li::before,
.price-card li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
}

.samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sample {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: var(--shadow);
}

.sample-email {
  grid-column: 1 / -1;
}

.tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #e7f0fe;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.email-subject {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.email-subject span {
  color: #c2410c;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.email-body p:last-child {
  margin-bottom: 0;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem 1.3rem 1.25rem;
  box-shadow: var(--shadow);
}

.price-card ul {
  margin-bottom: 1.4rem;
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.price {
  font-size: 2.6rem;
  margin: 0.2rem 0 0.35rem;
}

.price span {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.price-card-featured {
  background: #17202a;
  color: #f4f7fb;
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(23, 32, 42, 0.22);
}

.price-card-featured .price-desc,
.price-card-featured .price span {
  color: #c5ced6;
}

.price-card-featured li::before {
  background: var(--orange);
}

.badge {
  display: inline-block;
  width: fit-content;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
}

.price-note {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
}

.steps {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.steps li {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.steps li + li {
  margin-top: 0;
}

.section-dark .shot figcaption {
  color: #c5ced6;
}

.auth-card,
.pane,
.inbox {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 1.25rem 1.25rem 1.05rem;
  max-width: 28rem;
}

.google-btn {
  width: 100%;
  margin-bottom: 0.35rem;
}

.google-or {
  margin: 0 0 0.85rem;
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.25rem;
  width: fit-content;
  border-radius: 12px;
  background: #eef2f6;
}

.auth-tabs button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 9px;
  cursor: pointer;
}

.auth-tabs button.is-on {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 41, 51, 0.08);
}

.desk {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.desk.solo {
  grid-template-columns: 1fr;
}

.inbox {
  padding: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.inbox-title {
  margin: 0.2rem 0.35rem 0.35rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.thread-btn {
  display: grid;
  gap: 0.1rem;
  text-align: left;
  border: 1px solid transparent;
  background: #f5f6f8;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.thread-btn span {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-btn em {
  color: #c2410c;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
}

.thread-btn.is-on {
  border-color: rgba(59, 130, 246, 0.45);
  background: #eef4fe;
}

.pane {
  padding: 1rem 1rem 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.chat-top p {
  margin: 0;
  font-weight: 600;
  font-size: 1.02rem;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.log {
  display: grid;
  gap: 0.55rem;
  max-height: 26rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.bubble {
  justify-self: start;
  max-width: min(34rem, 100%);
  background: #eef4fe;
  border-radius: 16px 16px 16px 6px;
  padding: 0.75rem 0.9rem;
}

.bubble.mine {
  justify-self: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 6px 16px;
}

.bubble p {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
}

.bubble img,
.bubble video {
  display: block;
  max-width: 16rem;
  border-radius: 12px;
  margin-top: 0.3rem;
}

.file-name,
.bubble time {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.composer {
  display: grid;
  gap: 0.5rem;
}

.composer textarea,
.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #f8f9fb;
}

.composer textarea:focus,
.form input:focus,
.form textarea:focus {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.55);
}

.composer textarea {
  resize: vertical;
}

.file-label {
  font-weight: 600;
  cursor: pointer;
}

.file-label input {
  display: block;
  margin-top: 0.3rem;
  font: inherit;
}

.form {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.form .btn {
  margin-top: 0.75rem;
  justify-self: start;
}

.is-hidden {
  display: none;
}

.form-hint {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.3rem;
  margin: 0.3rem 0 0;
  font-weight: 600;
}

.form-status.is-ok {
  color: #1f6b45;
}

.form-status.is-err {
  color: #9f2d16;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.15rem 0 1.4rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  h1 {
    max-width: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header) - 6px);
    left: 0.8rem;
    right: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.4rem 1rem 0.9rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
  }

  .nav a:first-child {
    border-top: 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.7rem;
  }

  .hero-grid,
  .about-grid,
  .pricing,
  .cards,
  .samples,
  .desk {
    grid-template-columns: 1fr;
  }

  .sample-email {
    grid-column: auto;
  }

  .shot-canvas {
    aspect-ratio: 5 / 4;
  }

  .section {
    padding: 3.3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
