:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6f6f73;
  --line: #e7e7ea;
  --radius-lg: 28px;
  --radius-md: 14px;
  --shadow: 0 6px 20px rgba(17, 17, 17, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.4;
}

.container {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  height: 74px;
  background: #ffffff;
  border-bottom: 1.5px solid #f5f5f5;
  display: grid;
  place-items: center;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  text-decoration: none;
  color: #8b8b8f;
  font-weight: 700;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 1.5px solid currentcolor;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
}

.header-logo {
  width: 164px;
  height: 42px;
  display: inline-block;
}

.header-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  text-align: center;
  padding-top: 72px;
  padding-bottom: 68px;
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

.hero-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

h1 {
  margin: 0;
  color: #060606;
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero-description {
  max-width: 560px;
  margin: 20px auto 0;
  color: #060606;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  font-weight: 400;
}

.hero-actions {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  --icon: 32px;
  --gap: 8px;
  --pad-x: 16px;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  border-radius: 12px;
  width: 218px;
  height: 48px;
  padding: 0 var(--pad-x);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  border: 1px solid var(--line);
}

.btn-dark {
  --pad-x: 12px;
  background: #060606;
  color: #ffffff;
  border-color: #060606;
  justify-content: flex-start;
}

.btn-light {
  color: #060606;
  background: #ffffff;
  border: 1.5px solid #f5f5f5;
}

.btn__slot-left {
  width: var(--icon);
  height: var(--icon);
  flex: 0 0 var(--icon);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.btn__icon-left {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn__label {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn__icon-right {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  width: var(--icon);
  height: var(--icon);
  transform: translateY(-50%) translateX(12px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.btn-swap-has-left:hover .btn__icon-left,
.btn-swap-has-left:focus-visible .btn__icon-left {
  opacity: 0;
  transform: translateX(-12px);
}

.btn-swap-has-left:hover .btn__label,
.btn-swap-has-left:focus-visible .btn__label {
  transform: translateX(calc(-1 * (var(--icon) + var(--gap)) + 8px));
}

.btn-swap-no-left:hover .btn__label,
.btn-swap-no-left:focus-visible .btn__label {
  transform: translateX(-20px);
}

.btn-swap:hover .btn__icon-right,
.btn-swap:focus-visible .btn__icon-right {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .btn__icon-left,
  .btn__icon-right,
  .btn__label {
    transition: none;
  }
}

.hero-note {
  margin-top: 16px;
  color: #888888;
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.25;
  font-weight: 400;
}

.mobile-break {
  display: none;
}

.features {
  width: min(100%, 880px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 24px;
  padding-bottom: 84px;
}

.feature-card {
  width: 100%;
  height: 260px;
  border: 2px solid #f5f5f5;
  border-radius: 36px;
  background: #ffffff;
  box-shadow: none;
  padding: 20px;
  display: grid;
  grid-template-columns: 360px 1fr;
  column-gap: 40px;
  align-items: center;
}

.feature-visual {
  width: 360px;
  height: 220px;
  overflow: hidden;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-content h2 {
  margin: 0;
  color: #060606;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.feature-content p {
  margin: 12px 0 0;
  color: #888888;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.55;
  font-weight: 400;
  max-width: 430px;
}

.feature-card--reverse .feature-visual {
  order: 2;
}

.feature-card--reverse .feature-content {
  order: 1;
  padding-left: 20px;
}

.feature-card--reverse {
  grid-template-columns: 1fr 360px;
}

.window-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: #ff5f57;
}

.window-dots span:nth-child(2) {
  background: #febc2e;
}

.window-dots span:nth-child(3) {
  background: #28c840;
}

.tiny {
  margin: 0;
  color: #a0a0a5;
  font-size: 13px;
  font-weight: 600;
}

.mono {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.45;
  color: #404045;
  max-width: 260px;
}

.privacy-preview {
  display: grid;
  place-items: center;
}

.shield {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #f4f4f6;
  display: grid;
  place-items: center;
  font-size: 36px;
}

.calendar-preview {
  display: grid;
  align-content: start;
  gap: 14px;
}

.month {
  margin: 0;
  font-weight: 700;
}

.days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.days span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #66666a;
  font-size: 14px;
}

.days .active {
  background: #111111;
  color: white;
}

.text-preview {
  display: grid;
  place-items: center;
}

.text-lines {
  width: 100%;
  max-width: 260px;
  height: 120px;
  border-radius: 10px;
  background: repeating-linear-gradient(to bottom, #f0f0f2 0 2px, transparent 2px 14px);
}

.list-preview ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #4e4e52;
}

.list-preview li + li {
  margin-top: 8px;
}

.stats-title {
  margin: 0 0 16px;
  font-weight: 800;
  font-size: 28px;
  text-align: right;
}

.bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 90px;
}

.bars span {
  width: 16px;
  border-radius: 10px 10px 4px 4px;
  background: #111111;
  opacity: 0.88;
}

.faq {
  padding-bottom: 94px;
}

.faq h2 {
  margin: 0;
  padding-left: 20px;
  color: #060606;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.faq-intro {
  margin-top: 16px;
  padding-left: 20px;
  color: #060606;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  font-weight: 400;
  max-width: 520px;
}

.faq-list {
  width: 880px;
  max-width: calc(100% + 40px);
  margin-left: -20px;
  margin-top: 34px;
}

.faq details {
  border-bottom: 1.5px solid #f5f5f5;
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 68px;
  padding: 0 24px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #060606;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  font-weight: 400;
}

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

.faq summary::after {
  content: "";
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: center / contain no-repeat url("assets/faq-plus.svg");
}

.faq details[open] summary::after {
  background-image: url("assets/faq-minus.svg");
}

.faq details p {
  margin: 0;
  padding: 0 24px 20px 40px;
  max-width: 760px;
  color: #060606;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  font-weight: 400;
}

.site-footer {
  border-top: 1.5px solid #f5f5f5;
  padding: 32px 0 48px;
  text-align: center;
}

.footer-inner {
  display: grid;
  place-items: center;
}

.footer-logo {
  width: 164px;
  height: 42px;
  display: inline-block;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer p {
  margin: 8px 0 0;
  color: #060606;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 48px 0 0;
}

.footer-links a {
  color: #b7b7b7;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: #111111;
}

small {
  margin-top: 48px;
  color: #888888;
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.25;
  font-weight: 400;
}

html.js :is(
  .hero-icon,
  .hero h1,
  .hero-description,
  .hero-actions,
  .hero-note,
  .feature-card,
  .faq h2,
  .faq-intro,
  .faq details,
  .site-footer
) {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.05s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.05s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.js :is(
  .hero-icon,
  .hero h1,
  .hero-description,
  .hero-actions,
  .hero-note,
  .feature-card,
  .faq h2,
  .faq-intro,
  .faq details,
  .site-footer
).is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .features {
    width: 100%;
  }

  .feature-card {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .feature-visual {
    width: 100%;
    height: auto;
  }

  .feature-image {
    aspect-ratio: 16 / 10;
  }

  .feature-card--reverse .feature-visual,
  .feature-card--reverse .feature-content {
    order: initial;
  }

  .feature-card--reverse {
    grid-template-columns: 1fr;
  }

  .feature-card--reverse .feature-content {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .features {
    width: calc(100% - 40px);
    margin: 0 auto;
  }

  .hero {
    padding-top: 46px;
    padding-bottom: 52px;
  }

  .hero-icon {
    width: 112px;
    height: 112px;
    margin-bottom: 32px;
  }

  .hero-description {
    margin-top: 20px;
    font-size: 17px;
    letter-spacing: -0.02em;
    line-height: 1.4;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: -0.03em;
    line-height: 1.2;
  }

  .hero h1,
  .hero-description {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-description br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .btn {
    --icon: 40px;
    width: 272px;
    height: 68px;
    border-radius: 18px;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 1.25;
  }

  .hero-note {
    margin-top: 20px;
    font-size: 15px;
    letter-spacing: 0.01em;
    line-height: 1.35;
  }

  .feature-card {
    border-radius: 32px;
    padding: 20px 20px 32px;
    row-gap: 16px;
  }

  .feature-content {
    padding: 0 12px;
    text-align: center;
  }

  .feature-card--reverse .feature-content {
    padding: 0 12px;
  }

  .feature-content h2 {
    font-size: 24px;
    letter-spacing: -0.01em;
    line-height: 1.1;
  }

  .feature-content p {
    font-size: 17px;
    margin-top: 16px;
    letter-spacing: -0.01em;
    line-height: 1.45;
  }

  .faq-list {
    max-width: 100%;
    margin-left: 0;
  }

  .faq {
    padding-bottom: 40px;
  }

  .faq h2,
  .faq-intro {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .mobile-break {
    display: block;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html.js :is(
    .hero-icon,
    .hero h1,
    .hero-description,
    .hero-actions,
    .hero-note,
    .feature-card,
    .faq h2,
    .faq-intro,
    .faq details,
    .site-footer
  ) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
