/* Facem Programări landing: shared by the home page and the industry pages. */
/*
 * "Agenda de programări": the paper appointment book every salon and clinic keeps, ruled like
 * a Romanian notebook (blue lines, red margin), written in ballpoint blue. System fonts only:
 * the landing page makes no third-party requests.
 */
:root {
  --paper: #f6f7fa;
  --sheet: #ffffff;
  --ink: #1b1f2a;
  --muted: #5b6372;
  --pen: #1e3a8a;
  --pen-dark: #172c69;
  --pen-tint: #e8edf8;
  --rule: #dbe2ef;
  --margin: #d23b3b;
  --row: 32px; /* one ruled line */
  --serif: Charter, 'Bitstream Charter', 'Sitka Text', 'Iowan Old Style', Cambria, Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a {
  color: var(--pen);
  text-underline-offset: 3px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 3px;
  border-radius: 3px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p,
li,
td {
  text-wrap: pretty;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* One button style for the one action; everything else is a plain link. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--pen);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: var(--pen-dark);
}
.button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 15px;
}

/* Header */
.top {
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.top nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.top nav a:not(.button):hover {
  color: var(--pen);
}

/* Hero: an open agenda. The pitch on a clean left page; on the right page one day, ruled
   like a notebook, times in the red margin, entries written in pen on the lines. */
.agenda {
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.pitch {
  padding: 80px 56px 80px 0;
}
.pitch h1 {
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1.08;
  margin-bottom: 24px;
}
.pitch p {
  font-size: 18px;
  color: var(--muted);
  max-width: 31em;
  margin: 0 0 32px;
}
.pitch .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
.pitch .actions a:not(.button) {
  font-weight: 600;
}
.pitch .fine {
  font-size: 15px;
  margin: 24px 0 0;
}
.page {
  --margin-x: 64px;
  border-left: 1px solid var(--rule);
  box-shadow: inset 14px 0 18px -16px rgba(27, 31, 42, 0.2);
  padding: calc(var(--row) * 2) 0 calc(var(--row) * 2);
  background:
    linear-gradient(var(--margin), var(--margin)) var(--margin-x) 0 / 2px 100% no-repeat,
    repeating-linear-gradient(
        to bottom,
        transparent 0 calc(var(--row) - 1px),
        var(--rule) calc(var(--row) - 1px) var(--row)
      )
      0 0 / 100% var(--row);
}
.page h2 {
  font-size: 20px;
  line-height: var(--row);
  height: var(--row);
  padding-left: calc(var(--margin-x) + 18px);
  margin-bottom: var(--row);
}
.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Each entry is one ruled line: the text's baseline rests on the rule. */
.entries li {
  display: grid;
  grid-template-columns: var(--margin-x) 1fr;
  align-items: end;
  height: var(--row);
  padding-bottom: 5px;
}
.entries time {
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 12px;
}
.entries li > span {
  grid-column: 2;
  padding-left: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entries .written {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1;
  color: var(--pen);
}
.entries .free {
  color: #a3abba;
  font-size: 15px;
  line-height: 1;
}
/* The story plays once on load: Ion cancels (struck out in red), Ioana books the slot
   (written in), and Google Calendar follows at the same moment. Without motion preferences
   the final state shows straight away. */
.struck {
  position: relative;
  color: #8d97b4;
}
.struck::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 55%;
  height: 2px;
  background: var(--margin);
  transform-origin: left;
  animation: strike 0.5s ease-out 0.8s both;
}
.entries .step-2 > span,
.entries .step-4 > span {
  animation: appear 0.4s ease-out both;
}
.entries .step-2 > span {
  animation-delay: 1.4s;
}
.entries .step-4 > span {
  animation-delay: 2.9s;
}
.entries .step-3 .written {
  animation: write 0.9s steps(14, end) 2s both;
}
@keyframes strike {
  from {
    transform: scaleX(0);
  }
}
@keyframes appear {
  from {
    opacity: 0;
  }
}
@keyframes write {
  from {
    clip-path: inset(0 100% 0 0);
  }
}
.gsync {
  margin: var(--row) 0 0 calc(var(--margin-x) + 18px);
  max-width: 300px;
}
.gsync p {
  height: var(--row);
  line-height: var(--row);
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.gday {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  font-size: 13px;
}
.gev {
  padding: 4px 8px;
  border-radius: 4px;
  background: #e8f0fe;
  border-left: 3px solid #1a73e8;
  color: #174ea6;
  font-variant-numeric: tabular-nums;
}
.gev.gone,
.gev.new {
  grid-row: 2;
  grid-column: 1;
}
.gev.gone {
  animation: vanish 0.4s ease-in 1.3s both;
}
.gev.new {
  animation: appear 0.5s ease-out 2.4s both;
}
@keyframes vanish {
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .struck::after,
  .entries .step-2 > span,
  .entries .step-3 .written,
  .entries .step-4 > span,
  .gev.new {
    animation: none;
  }
  .gev.gone {
    animation: none;
    opacity: 0;
  }
}
.entries .note {
  font-size: 13.5px;
  line-height: 1;
  color: var(--muted);
}
.entries .note.red {
  color: var(--margin);
}

/* Sections below: plain paper, structure from lines, never boxes. */
section {
  padding: 96px 0;
}
section + section {
  border-top: 1px solid var(--rule);
}
.lead {
  max-width: 40em;
  margin-bottom: 48px;
}
.lead h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
  margin-bottom: 14px;
}
.lead p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* How it works: a real sequence, so it is numbered. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px minmax(0, 30em) minmax(0, 1fr);
  gap: 0 32px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.steps > li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--pen);
}
.steps h3 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.sample {
  justify-self: end;
  width: min(100%, 340px);
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.slots span {
  text-align: center;
  padding: 9px 0;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.slots span.on {
  background: var(--pen);
  border-color: var(--pen);
  color: #fff;
  font-weight: 600;
}
.slots span.off {
  color: #a3abba;
  text-decoration: line-through;
}
.sample .caption {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 10px;
}
.gcal {
  font-size: 14px;
  border-top: 1px solid var(--rule);
}
.gcal div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.gcal time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gcal .busy {
  color: var(--muted);
}
.gcal .ours {
  font-weight: 600;
  color: var(--pen);
}
.sms {
  margin: 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--pen);
  font-size: 15px;
  line-height: 1.5;
}
.sms .link {
  color: var(--pen);
  text-decoration: underline;
  word-break: break-all;
}

/* Prices: one table, like a page of the agenda. */
.prices {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.prices th,
.prices td {
  text-align: left;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.prices thead th {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0;
}
.prices tbody th {
  font-family: var(--serif);
  font-size: 22px;
}
.prices tbody th small {
  display: block;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.prices .price {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
}
.prices .price small {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.prices td:last-child,
.prices th:last-child {
  padding-right: 0;
  text-align: right;
}
/* Seat map: 20 places (the largest plan), the plan's people in pen blue. */
.seats {
  --dot: 9px;
  display: inline-block;
  vertical-align: middle;
  width: calc(10 * (var(--dot) + 3px));
  height: calc(2 * (var(--dot) + 3px));
  margin-right: 12px;
  background: radial-gradient(
      circle,
      #cfd7e6 calc(var(--dot) / 2 - 0.5px),
      transparent calc(var(--dot) / 2)
    )
    0 0 / calc(var(--dot) + 3px) calc(var(--dot) + 3px);
  position: relative;
}
.seats::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: calc(var(--n) * (var(--dot) + 3px));
  max-width: 100%;
  height: calc(var(--dot) + 3px);
  background: radial-gradient(
      circle,
      var(--pen) calc(var(--dot) / 2 - 0.5px),
      transparent calc(var(--dot) / 2)
    )
    0 0 / calc(var(--dot) + 3px) calc(var(--dot) + 3px);
}
.seats.two::before {
  height: 100%;
  width: 100%;
  clip-path: inset(0 calc(100% - var(--n2) * (var(--dot) + 3px)) 0 0);
}
.extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 56px;
  margin-top: 40px;
}
.extras h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.extras p {
  margin: 0;
  color: var(--muted);
}
.packs {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-variant-numeric: tabular-nums;
}
.packs b {
  font-weight: 600;
}

/* Questions */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}
.faq .lead {
  margin: 0;
}
details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
details:first-child {
  border-top: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  color: var(--pen);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}
details[open] summary::after {
  content: '–';
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Closing: back to the agenda's margin, one sentence and the button. */
.closing .wrap {
  border-left: 2px solid var(--margin);
  padding-left: 32px;
  max-width: 1072px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.closing h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 8px;
}
.closing p {
  margin: 0;
  color: var(--muted);
  max-width: 34em;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 44px;
  font-size: 15px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
footer .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Industry pages: where you are, and the other industries (footer, home page). */
.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.crumbs a {
  color: inherit;
}
.industries p {
  margin: 0 0 6px;
}
.industries a,
.industries [aria-current] {
  white-space: nowrap;
}
footer .industries {
  flex-basis: 100%;
  font-size: 14px;
}
.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 56px;
}
.audience h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.audience ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.audience li {
  padding: 6px 0;
  border-top: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .spread {
    grid-template-columns: 1fr;
  }
  .pitch {
    padding: 56px 0 48px;
  }
  .page {
    border-left: 0;
    border-top: 1px solid var(--rule);
    box-shadow: none;
    margin: 0 -24px;
    padding-top: var(--row);
  }
  .steps > li {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .sample {
    grid-column: 2;
    justify-self: start;
    margin-top: 20px;
  }
  .faq,
  .extras,
  .audience {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  section {
    padding: 64px 0;
  }
}
@media (max-width: 640px) {
  .page {
    --margin-x: 58px;
  }
  .entries .written {
    font-size: 17px;
  }
  /* Phones: logo and login; the hero carries "Creează cont" right below. */
  .top nav .hide-sm,
  .top nav .button {
    display: none;
  }
  /* The price table becomes one block per plan. */
  .prices thead {
    display: none;
  }
  .prices,
  .prices tbody,
  .prices tr,
  .prices th,
  .prices td {
    display: block;
  }
  .prices tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }
  .prices th,
  .prices td {
    border: 0;
    padding: 0;
  }
  .prices td:last-child {
    grid-column: 2;
    grid-row: 1;
  }
  .prices td.people,
  .prices td.volume {
    grid-column: 1 / -1;
    font-size: 15px;
    color: var(--muted);
  }
  .closing .wrap {
    margin: 0 24px;
    padding-left: 20px;
  }
}
