@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #211d1b;
  --muted: #645d55;
  --paper: #fbfbf4;
  --mist: #e6ddd0;
  --clay: #b95f43;
  --moss: #5d725a;
  --sky: #5f7f93;
  --line: rgba(33, 29, 27, 0.16);
  --shadow: 0 24px 80px rgba(48, 39, 31, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 28px clamp(20px, 5vw, 72px) 72px;
}

.hero__background {
  position: absolute;
  inset: 0;
  background: #33271e;
}

.hero__background picture,
.phone-picture {
  display: contents;
}

.hero__background img {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 125%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.96) contrast(0.9);
}

.hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 19, 17, 0.82), rgba(22, 19, 17, 0.32) 48%, rgba(22, 19, 17, 0.12)),
    linear-gradient(0deg, rgba(22, 19, 17, 0.58), rgba(22, 19, 17, 0) 45%);
}

.hero__content {
  --hero-title-size: clamp(3rem, 12.5vw, 9rem);
  position: relative;
  z-index: 1;
  width: min(100%, calc(var(--hero-title-size) * 5.7));
  color: #fbfbf4;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c7a7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: "Playfair Display", Georgia, Cambria, "Times New Roman", serif;
  font-size: var(--hero-title-size);
  line-height: 0.86;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.playfair-heading {
  font-family: "Playfair Display", Georgia, Cambria, "Times New Roman", serif;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.04rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero__copy,
.section-copy p,
footer {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.58;
}

.hero__copy {
  width: 100%;
  max-width: none;
  color: rgba(251, 251, 244, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: #fbfbf4;
  color: #231b14;
}

.button--secondary {
  border: 1px solid rgba(251, 251, 244, 0.52);
  color: #fbfbf4;
}

.preview,
.widgets,
.reviews {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 64px 0 52px;
}

.section-copy {
  max-width: 620px;
}

.feature-list {
  margin: 26px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.58;
}

.feature-list li + li {
  margin-top: 12px;
}

.phone-stage {
  display: grid;
  justify-items: center;
}

.phone-mockup {
  width: min(100%, 320px);
  height: auto;
  filter: drop-shadow(0 24px 46px rgba(48, 39, 31, 0.24));
}

.widgets {
  padding: 52px 0;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 2.6vw, 26px);
  align-items: center;
}

.widget-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  clip-path: inset(1px round 22%);
  box-shadow: 0 18px 45px rgba(48, 39, 31, 0.18);
}

.widget-grid picture {
  display: block;
  width: 100%;
}

.reviews {
  border-top: 1px solid var(--line);
  padding: 56px 0 76px;
}

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

.review-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border-radius: 28px;
  background: #ededeb;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 28px;
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.review-card h3 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.review-stars {
  color: #f28a00;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.review-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  text-align: right;
}

.review-card blockquote {
  margin: 28px 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 28px 0 36px;
}

.footer-badge {
  display: inline-flex;
  justify-self: start;
}

.footer-badge img {
  width: 120px;
  height: 40px;
}

.footer-rating {
  width: 120px;
  height: auto;
}

.footer-rating-picture {
  display: block;
  justify-self: center;
  line-height: 0;
}

.footer-link {
  justify-self: end;
  color: var(--muted);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 820px) {
  .hero {
    min-height: 88svh;
    padding-bottom: 42px;
  }

  .hero__background img {
    object-position: 58% 50%;
  }

  .hero__background::after {
    background:
      linear-gradient(0deg, rgba(22, 19, 17, 0.78), rgba(22, 19, 17, 0.1) 78%),
      linear-gradient(90deg, rgba(22, 19, 17, 0.42), rgba(22, 19, 17, 0.06));
  }

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

  .preview {
    padding-top: 64px;
  }

  .widget-grid {
    grid-template-columns: repeat(5, minmax(116px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

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

  .review-card {
    min-height: 0;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-badge,
  .footer-link {
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .actions,
  .actions .button {
    width: 100%;
  }

  .phone-mockup {
    width: min(100%, 290px);
  }
}
