/* The product site (apps/website): plain HTML and this file, no build step. The tokens
   follow the brand of the apps (ADR 0043): Nunito Sans, the blue accent, the warm ground. */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, 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;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-sans-latin-wght-normal.woff2) format("woff2-variations");
  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;
}

:root {
  --background: #f7f4ef;
  --foreground: #1e2235;
  --muted-foreground: #615e6b;
  --card: #ffffff;
  --border: #e7e2da;
  --hairline: #e2ddd5;
  --primary: #4b5bd6;
  --primary-strong: #2a379a;
  --primary-soft: #e8ebfb;
  --jewel: #ff9f5a;
  --ink-soft: #2b3048;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:hover {
  color: var(--primary-strong);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--foreground);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus-visible {
  top: 12px;
  color: #ffffff;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Header */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: inherit;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  font-size: 15px;
}

.top-links a {
  text-decoration: none;
}

/* Text links get a 44px tall hit area without changing how they look. */
.top-links a:not(.btn),
.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.lang {
  color: var(--muted-foreground);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-strong);
  color: #ffffff;
}

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--foreground);
  color: var(--foreground);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Hero: the words on one side, the product on the other */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 88px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted-foreground);
  font-size: 15px;
  font-weight: 700;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.lead {
  max-width: 32em;
  margin: 0 0 32px;
  color: var(--muted-foreground);
  font-size: 19px;
}

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

.call {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 15px;
}

.call a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--foreground);
}

/* The product picture: the staff entry screen on a phone and a month summary.
   Drawn in HTML with the app's own labels; hidden from screen readers. */

.visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone {
  width: 280px;
  padding: 10px;
  border-radius: 40px;
  background: var(--foreground);
  box-shadow: 0 30px 60px -20px rgb(30 34 53 / 0.35);
}

.screen {
  padding: 22px 18px 20px;
  border-radius: 31px;
  background: var(--background);
  font-size: 13px;
  line-height: 1.3;
}

.screen-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
}

.field span,
.chips-label {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
}

.field b {
  font-weight: 700;
}

.field-price b {
  font-size: 22px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.field-price small {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}

.chips-label {
  margin: 4px 0 6px;
}

.chips {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.chip {
  flex: 1;
  padding: 7px 0;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chip-on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-strong);
}

.save {
  display: block;
  margin-top: 12px;
  padding: 12px 0;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  text-align: center;
}

.summary {
  width: 280px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -16px rgb(30 34 53 / 0.25);
  font-size: 13px;
}

.summary-title {
  margin: 0 0 8px;
  font-weight: 800;
}

.summary dl {
  margin: 0;
}

.summary dl div,
.summary-margin {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.summary dt,
.summary-margin span {
  color: var(--muted-foreground);
}

.summary dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.summary dl div:last-child dd {
  color: var(--primary-strong);
  font-weight: 850;
}

.summary-margin {
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

.summary-margin b {
  font-variant-numeric: tabular-nums;
}

/* Sections */

.section {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--hairline);
}

.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.section-head h2,
.clients h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 850;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 18px;
}

/* What it does: three columns of plain rows */

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.col-title {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--foreground);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rows {
  margin: 0;
}

.rows div {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.rows dt {
  margin-bottom: 4px;
  font-weight: 800;
}

.rows dd {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 16px;
}

/* How you start */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: var(--muted-foreground);
}

/* For the salons' clients */

.clients {
  max-width: 44em;
}

.clients p:last-child {
  margin: 14px 0 0;
  color: var(--muted-foreground);
  font-size: 18px;
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--hairline);
  color: var(--muted-foreground);
  font-size: 15px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

/* Terms and privacy */

.legal article {
  max-width: 44em;
  padding-top: 24px;
  padding-bottom: 72px;
}

.legal h1 {
  font-size: clamp(32px, 4.4vw, 46px);
}

.legal-date {
  margin: 0 0 24px;
  color: var(--muted-foreground);
  font-size: 15px;
}

.legal-intro {
  margin: 0 0 8px;
  font-size: 19px;
}

.legal h2 {
  margin: 40px 0 10px;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.3;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  margin: 10px 0;
  padding-inline-start: 22px;
}

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

.legal code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
}

.legal-back {
  margin-top: 48px;
  font-weight: 700;
}

/* A fact only the owner can give: impossible to miss before publishing. */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #ffe3a3;
  color: #6b3d00;
  font-weight: 700;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 56px;
    padding-top: 56px;
  }

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

/* Wide enough for the card to sit beside the phone, over its bezel only. */
@media (min-width: 1100px) {
  .visual {
    align-items: flex-end;
    padding-bottom: 32px;
  }

  .summary {
    position: absolute;
    bottom: 0;
    /* Reaches into the column gap and overlaps only the phone's bezel. */
    inset-inline-start: -40px;
    width: 200px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }

  .top-links {
    gap: 16px;
  }

  .top-links a.hide-sm {
    display: none;
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 64px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
