/* The public website (#681), the first build of the Bright Calendar system in DESIGN.md:
 * royal blue and calendar red on white, Mukta headings with Rozha One accent words (<em>, in
 * red), soft washes, rounded cards and product mock-ups. */

:root {
  --blue: #1d3f94;
  --blue-deep: #152f70;
  --blue-wash: #e9eef9;
  --red: #cc1d27;
  --red-deep: #a9161f;
  --red-wash: #fdeceb;
  --hi: #fff0a8;
  --green: #0b7a4b;
  --ink: #16181d;
  --ink-soft: #555b66;
  --paper: #ffffff;
  --cream: #fbf6ee;
  --tint: #f3f4f7;
  --line: #e2e4ea;
  --control: #7b8190;
  --shadow: 0 1px 2px rgb(22 24 29 / 0.06), 0 12px 32px rgb(22 24 29 / 0.08);
  --display: 'Rozha One', 'Mukta', serif;
  font-size: 106.25%;
  font-family: 'Mukta', system-ui, sans-serif;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--blue);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

::selection {
  background: var(--hi);
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

h1 em,
h2 em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--red);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

p,
li,
dd {
  max-width: 70ch;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.875rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  color: var(--red);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

.skip {
  position: absolute;
  left: -100vw;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 3;
  background: var(--paper);
  padding: 0.5rem 1rem;
}

/* The header: white and sticky, over a hairline. */
.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 4.25rem;
  padding: 0.5rem max(2.5rem, calc((100% - 72rem) / 2));
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.5rem;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 2rem;
  height: 2rem;
}

.brand b {
  font-weight: 400;
  color: #f08a00;
}

.bar ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar a:not(.brand, .button) {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.bar a:not(.brand, .button):hover,
.bar a[aria-current]:not(.button) {
  color: var(--blue);
  background: var(--blue-wash);
}

.bar .button {
  margin-left: 0.5rem;
}

/* Buttons. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.4rem;
  border-radius: 8px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}

.button.primary {
  border: 0;
  background: var(--red);
  color: var(--paper);
  font-weight: 800;
  box-shadow: 0 6px 16px rgb(204 29 39 / 0.25);
}

.button.primary:hover {
  background: var(--red-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

.button.primary:disabled {
  background: var(--ink-soft);
  box-shadow: none;
  cursor: progress;
}

.button.secondary {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Pages. */
main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}

main > section,
.page-head {
  padding: 4.5rem 0 0;
}

.page-head {
  padding-top: 3rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

/* Hero: words on the left, the product on the right, over a soft wash. */
.page:has(.hero) {
  background:
    radial-gradient(60rem 30rem at 85% 0%, var(--blue-wash), transparent 70%),
    radial-gradient(50rem 30rem at 0% 10%, var(--cream), transparent 70%);
  max-width: none;
  padding-inline: max(2.5rem, calc((100% - 72rem) / 2));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  padding-top: 3.5rem;
}

.chip {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.chip::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--green);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0.75rem;
}

.hero-art {
  position: relative;
  padding: 0 3rem 7rem 0;
}

/* The calendar mock-up: a browser window with a week of stays. */
.mock {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 30px 60px rgb(9 20 52 / 0.16);
  overflow: hidden;
  font-size: 0.8125rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.mock-bar i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line);
}

.mock-bar span {
  margin-left: 0.6rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.cal {
  padding: 0.5rem 0.9rem 0.25rem;
}

.cal-row {
  display: grid;
  grid-template-columns: 7.5rem repeat(7, minmax(0, 1fr));
  align-items: center;
  min-height: 3rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(to right, transparent 7.5rem, var(--paper) 7.5rem);
}

.cal-row > * {
  grid-row: 1;
}

.cal-head {
  border-top: 0;
  min-height: 2.75rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--blue);
}

.cal-head small {
  display: block;
  font-family: 'Mukta', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cal-head .sun,
.cal-head .sun small {
  color: var(--red);
}

.room {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  grid-column: 1;
}

.room small {
  color: var(--ink-soft);
}

.stay {
  margin: 0 2px;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  color: var(--paper);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.airbnb {
  background: #e0565b;
}

.booking {
  background: #2c6bd6;
}

.mmt {
  background: #e07b18;
}

.website {
  background: var(--blue);
}

.owner {
  background: repeating-linear-gradient(135deg, var(--tint) 0 6px, var(--line) 6px 12px);
  color: var(--ink-soft);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.6rem 0.9rem 0.8rem;
  color: var(--ink-soft);
}

.legend span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 3px;
}

/* The phone with the guest's WhatsApp message, over the calendar's corner. */
.phone {
  position: absolute;
  right: -1rem;
  bottom: 0;
  width: 14rem;
  padding: 0.75rem 0.75rem 1rem;
  border: 6px solid var(--ink);
  border-radius: 26px;
  background: #ece5dd;
  box-shadow: 0 24px 48px rgb(9 20 52 / 0.25);
  font-size: 0.75rem;
  line-height: 1.35;
}

.phone-head {
  display: flex;
  justify-content: space-between;
  margin: -0.75rem -0.75rem 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 18px 18px 0 0;
  background: #075e54;
  color: var(--paper);
}

.msg {
  margin: 0 0 0.45rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--paper);
  max-width: 92%;
}

.msg.me {
  margin-left: auto;
  background: #dcf8c6;
  width: fit-content;
}

.sent {
  display: block;
  text-align: right;
  color: var(--ink-soft);
}

/* What makes it different: icon tiles. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.tiles li {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.tiles li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tiles p {
  margin: 0;
  color: var(--ink-soft);
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--blue-wash);
  color: var(--blue);
}

/* One record, two views. */
.views {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2rem;
}

.card-label {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.views dl {
  margin: 0;
}

.views dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.views dt {
  color: var(--ink-soft);
}

.views dd {
  margin: 0;
  font-weight: 800;
}

.views .ok {
  color: var(--green);
}

.views .hl {
  margin: 0 -0.5rem;
  padding-inline: 0.5rem;
  border-radius: 6px;
  background: var(--hi);
}

.arrow {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.25rem;
}

/* Before and after. */
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2rem;
}

.hard,
.easy {
  height: 100%;
  padding: 1.75rem;
  border-radius: 18px;
}

.hard {
  background: var(--ink);
  color: #e6e8ee;
}

.hard h3,
.easy h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.hard h3 {
  color: var(--paper);
}

.tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hard .tag {
  border: 1px solid #4a4e58;
  color: #c3c7d0;
}

.hard ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hard li {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.hard li::before {
  content: '✕';
  flex: none;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #33363e;
  font-size: 0.7rem;
}

.easy {
  background: var(--cream);
  border: 1px solid #efe5d4;
}

.easy .tag {
  background: var(--paper);
  color: var(--red);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts-grid li {
  padding: 1rem;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.facts-grid b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--blue);
}

/* How a month runs. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--tint);
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

.steps h3::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--red);
}

/* Built for India. */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.pills li::before {
  content: '✓';
  margin-right: 0.5rem;
  color: var(--green);
  font-weight: 800;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.two > .eyebrow,
.two > h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.two .card p {
  margin: 0;
  color: var(--ink-soft);
}

.facts {
  margin: 0;
  padding-left: 1.25rem;
}

.facts li {
  padding: 0.3rem 0;
}

.faq {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
}

.faq details[open] summary::after {
  content: '–';
}

.faq p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.cta {
  margin-top: 4.5rem;
  padding: 3.5rem 2rem !important;
  border-radius: 22px;
  background:
    radial-gradient(40rem 20rem at 100% 0%, #2f56b8, transparent 70%),
    var(--blue);
  color: var(--paper);
  text-align: center;
}

.cta h2 em {
  color: var(--hi);
}

.cta p {
  margin-inline: auto;
  color: #dbe3f7;
}

.cta a:not(.button) {
  color: var(--paper);
}

.jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.jump a:hover {
  border-color: var(--blue);
  background: var(--blue-wash);
}

/* The trial form. */
.trial {
  display: grid;
  grid-template-columns: minmax(0, 35rem) minmax(0, 1fr);
  gap: 3rem;
  padding-top: 2rem;
}

.trial form {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.trial aside {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--cream);
  align-self: start;
}

.trial aside h2 {
  font-size: 1.375rem;
}

form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 800;
}

form input:not([type='radio']),
form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--control);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  background: var(--paper);
}

form input:hover,
form textarea:hover {
  border-color: var(--ink);
}

fieldset {
  margin: 0 0 1rem;
  padding: 0.5rem 1rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  font-weight: 800;
  padding: 0 0.25rem;
}

label.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0;
  font-weight: 400;
}

label.check input {
  width: 1.15rem;
  height: 1.15rem;
}

.trap {
  position: absolute;
  left: -100vw;
}

.error {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--red-wash);
  color: var(--red);
  font-weight: 600;
}

/* The guides. */
.docs {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 2.5rem;
}

.guides ul {
  position: sticky;
  top: 6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides a {
  display: block;
  margin-bottom: 0.15rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.guides a:hover {
  background: var(--blue-wash);
}

.guides a[aria-current] {
  background: var(--blue);
  color: var(--paper);
  font-weight: 800;
}

.guide {
  max-width: 48rem;
}

.guide h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.guide h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
}

.guide h3 {
  margin-top: 1.5rem;
}

.guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.guide th,
.guide td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide th {
  background: var(--tint);
  color: var(--ink-soft);
}

.guide blockquote {
  margin: 1rem 0;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--hi);
}

.guide code {
  font-size: 0.9em;
  background: var(--tint);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.toc {
  margin-bottom: 1.5rem;
}

.toc summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
}

.foot {
  padding: 2.5rem max(2.5rem, calc((100% - 72rem) / 2));
  background: var(--tint);
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0;
  list-style: none;
}

@media (max-width: 960px) {
  .hero,
  .two,
  .trial,
  .docs,
  .views,
  .versus {
    grid-template-columns: minmax(0, 1fr);
  }

  .views .arrow,
  .versus .arrow {
    justify-self: center;
    rotate: 90deg;
  }

  .guides ul {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .guides a {
    border: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .bar {
    position: static;
    padding: 0.5rem 1rem;
  }

  .bar ul {
    flex-wrap: wrap;
  }

  main,
  .page:has(.hero) {
    padding: 0 1rem 3rem;
  }

  main > section {
    padding-top: 3.5rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-art {
    padding: 0;
  }

  .cal-row {
    grid-template-columns: 5.25rem repeat(7, minmax(0, 1fr));
    background: none;
  }

  .stay {
    font-size: 0.6875rem;
    padding-inline: 0.3rem;
  }

  .phone {
    position: relative;
    right: auto;
    margin: -1rem auto 0;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 2.5rem 1.25rem !important;
  }

  .foot {
    padding: 1.5rem 1rem;
  }

  .guide table {
    display: block;
    overflow-x: auto;
  }
}
