:root {
  --paper: #faf6ed;
  --ink: #362e2c;
  --wine: #672e40;
  --pink: #f2dce0;
  --rule: #d8ccc3;
  font: 16px/1.55 Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { font: inherit; color: inherit; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
button { border: 0; background: none; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #ac5c73; outline-offset: 4px; }

header, section, footer { max-width: 1280px; margin-inline: auto; }

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: 90%;
  margin-top: 22px;
  padding: 12px 24px;
  border: 1px solid var(--rule);
  border-radius: 32px;
  background: #fffcf6;
}

.brand { font: bold 1.6rem Georgia, serif; letter-spacing: -.08em; }
.brand b { vertical-align: super; font: 700 .65rem Arial, sans-serif; letter-spacing: .02em; color: var(--wine); }

nav, .actions { display: flex; flex-wrap: wrap; align-items: center; }
nav { gap: 8px 22px; }
nav a { font-size: .9rem; }

.btn, .float, .intro-call button {
  display: inline-block;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--wine);
  color: white;
  font-weight: 600;
  text-align: center;
}

.outline { border-color: var(--wine); background: transparent; color: var(--wine); }
button:hover, .btn:hover { filter: brightness(.9); }
.intro-call button { font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: normal; }
.intro-call:has(button) > a { display: none; }
iframe[src^="https://calendar.google.com/calendar/appointments/schedules/"] {
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 36px #2615224d;
}
.hero { padding: clamp(36px, 5vw, 62px) 5% 0; text-align: center; }
.intro { max-width: 880px; margin-inline: auto; }
.kicker, small, figcaption { font: 600 .76rem/1.5 ui-monospace, monospace; letter-spacing: .09em; }
.kicker { margin: 0 0 19px; color: var(--wine); text-transform: uppercase; }

h1, h2, h3 { margin: 0; font: 400 4rem/1 Georgia, serif; letter-spacing: -.065em; }
h1 { font-size: clamp(2.65rem, 7.5vw, 6.75rem); }
h1 em { display: block; }
h2 { font-size: clamp(2.25rem, 4.9vw, 4.875rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.6875rem); }
em { color: var(--wine); }
.intro > p:not(.kicker) { max-width: 58ch; margin: 22px auto; font-size: clamp(1rem, 2.3vw, 1.125rem); }
.actions { justify-content: center; gap: 10px; }
small { display: block; margin-top: 15px; font-size: .75rem; letter-spacing: .025em; }

.editorial { margin: 34px 0 0; }
.editorial img, .barber img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.editorial figcaption { padding-block: 15px; color: var(--wine); text-transform: uppercase; }
.editorial i { margin-inline: clamp(3px, 1vw, 12px); }

.section, #how, footer { padding: clamp(38px, 6vw, 85px) 6%; }
.section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8%; align-items: center; }
.section p:not(.kicker) { max-width: 46ch; }
.stat { padding-block: 18px 22px; border-block: 1px solid var(--wine); }
.stat strong { font: 400 clamp(4rem, 8vw, 7.5rem)/1 Georgia, serif; color: var(--wine); letter-spacing: -.08em; }
.stat p { margin: 8px 0; }
.demo { background: #efe3d9; }
.barber { width: min(100%, 400px); margin: 0; justify-self: center; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 34px; }
.steps article { padding-top: 18px; border-top: 1px solid var(--rule); }
.steps h3 { margin: 0 0 10px; font-size: 2rem; }
.offer { background: #402b33; color: white; }
.offer em, .offer .kicker { color: #f1bccc; }
.pricing { padding: clamp(18px, 4vw, 30px); border: 1px solid #bb949e; border-radius: 12px; }
.pricing .outline { border-color: var(--pink); background: var(--pink); }

.launcher {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 5;
  max-width: calc(100% - 28px);
  text-align: right;
}
.float { padding: 11px 18px; box-shadow: 0 3px 16px #26152233; }
.launcher #nudge {
  max-width: 236px;
  margin: 0 0 9px auto;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 15px #0001;
  text-align: left;
}

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding-bottom: 96px; }
dialog { width: min(440px, 94vw); max-height: 90dvh; padding: 22px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #261b20ba; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head button { font-size: 28px; }
#frame iframe { width: 100%; height: min(490px, 55dvh); border: 0; }
[hidden] { display: none !important; }

@media (max-width: 720px) {
  header { width: 94%; padding: 9px 14px; }
  nav { gap: 8px 12px; }
  nav a { font-size: .85rem; }
  .brand { font-size: 1.4rem; }
  .section, .steps { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .editorial { margin-inline: -2%; }
  .editorial figcaption { letter-spacing: .04em; }
  .btn, .float, .intro-call button { padding: 11px 16px; }
  .float { font-size: .875rem; }

  html:has(> body > div > iframe[src^="https://calendar.google.com/calendar/appointments/schedules/"]) {
    overflow: hidden;
  }
  body > div:has(> iframe[src^="https://calendar.google.com/calendar/appointments/schedules/"]) {
    padding: calc(52px + env(safe-area-inset-top)) env(safe-area-inset-right)
      env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  body > div:has(> iframe[src^="https://calendar.google.com/calendar/appointments/schedules/"]) > button {
    inset: calc(8px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) auto auto;
  }
}
