@font-face {
  font-family: Manrope;
  src: url("./fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("./fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f7f8fb;
  --surface: #fff;
  --ink: #141824;
  --slate: #5d667a;
  --line: #e8ebf0;
  --coral: #cf4142;
  --coral-original: #fe5657;
  --coral-soft: #fff0f1;
  --midnight: #0b1017;
  --night-panel: #121a24;
  background: var(--canvas);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100% - 3rem, 73rem);
  min-height: 100svh;
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-weight: 500;
}

header,
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
}

header {
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.brand img {
  display: block;
}

.status {
  padding: .5rem .85rem;
  border-radius: 2rem;
  background: var(--coral-soft);
  color: #a72e36;
  font-size: .875rem;
  font-weight: 500;
}

main {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.25rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}

.intro {
  min-width: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.4rem, 4.45vw, 4.25rem);
  font-weight: 500;
  line-height: 1.1;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 em {
  color: #a72e36;
  font-style: normal;
}

.intro p {
  max-width: 40ch;
  color: var(--slate);
  font-size: clamp(1.0625rem, 1.7vw, 1.22rem);
  line-height: 1.65;
}

.product-preview {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
  min-height: clamp(25rem, 42vw, 33rem);
  padding: clamp(1rem, 4.6vw, 3.6rem);
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse at 90% 0%, #512830, transparent 65%),
    linear-gradient(150deg, var(--night-panel), var(--midnight));
}

.plan {
  width: 100%;
  max-width: 24rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--coral-original);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1rem 3rem #0004;
}

.plan h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(1.12rem, 2.1vw, 1.38rem);
  line-height: 1.3;
}

.plan-steps {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  counter-reset: plan-step;
  list-style: none;
}

.plan-steps li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  font-size: .9375rem;
}

.plan-steps li::before {
  display: grid;
  flex: 0 0 1.65rem;
  place-items: center;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--coral-soft);
  color: #a72e36;
  font-size: .8rem;
  font-weight: 500;
  counter-increment: plan-step;
  content: counter(plan-step);
}

.plan-note {
  margin-top: 1.1rem;
  color: var(--slate);
  font-size: .875rem;
  line-height: 1.45;
}

figcaption {
  color: #e0e5ee;
  font-size: .875rem;
  text-align: center;
}

.sandbox main {
  grid-template-columns: 1fr;
}

.sandbox h1 {
  max-width: none;
}

.intro .sandbox-note {
  margin-top: 1.6rem;
  padding-left: .9rem;
  border-left: 3px solid var(--coral);
  font-size: 1rem;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: .95rem;
}

footer a {
  color: #a72e36;
  text-underline-offset: .25em;
}

a:focus-visible {
  outline: 2px solid #a72e36;
  outline-offset: 5px;
}

@media (max-width: 53rem) {
  main {
    grid-template-columns: 1fr;
  }

  .product-preview {
    min-height: auto;
    padding-block: 1.75rem;
  }
}

@media (max-width: 24rem) {
  .page {
    width: calc(100% - 2rem);
  }
}
