:root {
  --bg: #fbf9f1;
  --surface: #fffdf8;
  --ink: #20211e;
  --muted: #5f605b;
  --line: #ddd6c8;
  --accent: #849f82;
  --accent-dark: #728d70;
  --sidebar: #eff2e8;
  --peach: #f3a18e;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

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

.page {
  min-height: 100vh;
  overflow-x: hidden;
}

.landing {
  display: grid;
  grid-template-columns: minmax(0, 864px) 489px;
  gap: 40px;
  width: 100%;
  max-width: 1487px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 58px 42px 10px 54px;
}

.left-column {
  padding-top: 18px;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.03;
}

.intro-copy {
  max-width: 560px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.28;
}

.companion-panel {
  height: 694px;
  margin-top: 41px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(43, 45, 35, 0.11);
}

.panel-grid {
  display: grid;
  grid-template-columns: 176px 1fr;
  grid-template-rows: 596px 98px;
  height: 100%;
}

.panel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 38px 26px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.panel-brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.panel-brand span {
  margin-left: 8px;
  font-size: 18px;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 28px;
}

.nav-item {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 0 16px;
  color: #4d574b;
  font-size: 14px;
  font-weight: 500;
}

.nav-item.active {
  background: #ffffff;
  color: #26382c;
  box-shadow: 0 10px 20px rgba(45, 52, 38, 0.08);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #29362c;
  font-size: 15px;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7d3c6;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-caret {
  margin-left: auto;
  color: #71756c;
  font-size: 18px;
}

.panel-main {
  padding: 69px 35px 0;
}

.timer-block {
  text-align: center;
}

.timer-label {
  margin: 0;
  color: #26382c;
  font-size: 18px;
  line-height: 1;
}

.timer-value {
  margin: 13px 0 0;
  color: #26382c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  font-weight: 500;
  line-height: 0.86;
}

.primary-button,
.secondary-button,
.play-button {
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  min-width: 152px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(73, 92, 72, 0.16);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.room-section {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #ded8c9;
}

.room-heading {
  margin: 0;
  color: #29362c;
  font-size: 18px;
  line-height: 1;
}

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

.room-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px 16px 15px;
  text-align: left;
}

.room-card:hover {
  border-color: #a8b49f;
}

.room-card.selected {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(73, 92, 72, 0.08);
}

.room-image {
  position: relative;
  display: block;
  aspect-ratio: 151 / 155;
  overflow: hidden;
  border-radius: 6px;
  background: #ece6d8;
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-check {
  position: absolute;
  top: -1px;
  right: -1px;
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 0 6px 0 14px;
  background: var(--accent);
}

.room-check::after {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  transform: rotate(-45deg);
}

.room-card.selected .room-check {
  display: block;
}

.room-name {
  display: block;
  margin-top: 15px;
  color: #29362c;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.panel-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px;
  border-top: 1px solid var(--line);
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #29362c;
  font-size: 16px;
  line-height: 1.5;
}

.footer-cat {
  width: 44px;
  height: 44px;
  overflow: hidden;
}

.footer-cat img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.secondary-button {
  display: inline-flex;
  min-width: 178px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: #425948;
  font-size: 16px;
  font-weight: 500;
}

.secondary-button:hover {
  background: #eef1e5;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-card {
  margin: 0;
  padding: 15px;
  border: 1px solid #e2dbce;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(43, 45, 35, 0.06);
}

.feature-card + .feature-card {
  margin-top: 0;
}

.feature-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ece6d8;
}

.focus-image {
  aspect-ratio: 457 / 313;
}

.reference-image {
  aspect-ratio: 458 / 147;
}

.courier-image {
  aspect-ratio: 456 / 200;
}

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

.feature-text-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.feature-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.feature-card p {
  margin: 9px 0 0;
  color: #4f514d;
  font-size: 14px;
  line-height: 1;
}

.round-icon,
.play-button {
  display: grid;
  width: 53px;
  height: 53px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
}

.round-icon {
  background: #e0e3d3;
  color: #26382c;
}

.play-button {
  border: 0;
  background: var(--peach);
  color: var(--ink);
}

.play-button:hover {
  background: #ee927a;
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  color: currentColor;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.icon[data-icon="clock"] {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
}

.icon[data-icon="eye"] {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 12s3.4-6 9-6 9 6 9 6-3.4 6-9 6-9-6-9-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

.icon[data-icon="letter"] {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='4' y='6' width='16' height='12' rx='2'/%3E%3Cpath d='M4 8l8 6 8-6'/%3E%3C/svg%3E");
}

.icon[data-icon="play"] {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.8c0-1 1.1-1.6 2-1l8.4 5.3c.9.6.9 1.9 0 2.5L10 18c-.9.6-2-.1-2-1V5.8Z'/%3E%3C/svg%3E");
}

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

@media (max-width: 1199px) {
  .landing {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
    padding: 56px 40px;
  }
}

@media (max-width: 1023px) {
  .landing {
    grid-template-columns: 1fr;
  }

  .feature-stack {
    max-width: 489px;
  }
}

@media (max-width: 767px) {
  .landing {
    gap: 28px;
    padding: 40px 20px;
  }

  h1 {
    font-size: 38px;
  }

  .desktop-break {
    display: none;
  }

  .companion-panel {
    height: auto;
  }

  .panel-grid {
    display: block;
    height: auto;
  }

  .panel-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .panel-brand,
  .sidebar-profile {
    display: none;
  }

  .panel-nav {
    flex: 1;
    flex-flow: row wrap;
    gap: 8px 16px;
    margin-top: 0;
  }

  .panel-main {
    padding: 36px 20px 32px;
  }

  .timer-value {
    font-size: 72px;
  }

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

  .panel-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .secondary-button {
    width: 100%;
  }
}
