/* Custom Fonts */
@font-face {
  font-family: 'Brockmann';
  src: url('../fonts/brockmann-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brockmann';
  src: url('../fonts/brockmann-semibold-webfont.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Design Tokens */
:root {
  --bg-color: #e1dfda;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-paper: #fffdfa;
  --color-line: #e8e8e8;
  --shadow-button: 2px 2px 0px 0px rgba(0, 0, 0, 1);
  --shadow-card: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  --shadow-product: 3.8px 3.8px 0px 0px rgba(0, 0, 0, 1);
  --font-primary: 'Brockmann', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --basket-z: 50;
  --package-default-z: 40;
  --dragging-z: 9000;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-color) url('../images/background.jpg') center center repeat;
  min-height: 100vh;
  position: relative;
}

.container {
  width: 100%;
  height: auto;
  min-height: max(100vh, calc(100vw * 5 / 9));
  position: relative;
  overflow: hidden;
}

/* ─── Phone Display ─────────────────────────────────────────── */
/* Hidden on mobile; shown at tablet+ */
.phone-display {
  display: none;
}

.phone-frame {
  position: absolute;
  background: #000;
  pointer-events: auto;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  background: #fff;
  overflow: hidden;
}

/* Gradient overlay — white-to-transparent, 49px tall, top of screen */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 49px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 11px;
  z-index: 6;
  pointer-events: none;
}

.phone-hand {
  position: absolute;
  left: 0;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

.phone-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-text {
  font-size: 14px;
  color: #999;
  text-align: center;
  padding: 20px;
}

/* ─── Basket ─────────────────────────────────────────────────── */
.basket-container {
  position: absolute;
  left: 32px;
  top: 321px;
  width: calc(100vw - 64px);
  height: auto;
  aspect-ratio: 1877 / 1334;
  z-index: var(--basket-z);
  pointer-events: none;
}

.basket {
  width: 100%;
  height: 100%;
  background-image: url('../images/basket.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 20px;
}

.basket.drag-over {
  transform: scale(1.02);
  filter: brightness(0.95);
}

@keyframes basket-bounce {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.12) rotate(-3deg); }
  40%  { transform: scale(1.12) rotate(3deg); }
  60%  { transform: scale(1.08) rotate(-2deg); }
  80%  { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1); }
}

.basket.basket-full {
  animation: basket-bounce 0.6s ease 0.1s both;
}

.basket-label {
  font-size: 18px;
  color: #999;
  pointer-events: none;
  opacity: 0;
}

/* ─── Groceries Checklist ────────────────────────────────────── */
/* Mobile: bottom flyout */
.groceries-checklist {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 60px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 26.2px 0 rgba(0, 0, 0, 0.25);
  transition: max-height 0.3s ease;
  overflow: hidden;
  z-index: 1000;
  background-image: none;
  background-color: var(--color-white);
}

.completion-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    overflow: hidden;
    z-index: 10;
}

.completion-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-black);
}

@keyframes progress-fill {
    from { width: 0%; }
    to   { width: 100%; }
}

.groceries-checklist.completing .completion-progress-bar {
    animation: progress-fill 15s linear forwards;
}

.groceries-checklist.expanded {
  max-height: 60vh;
}

.groceries-checklist-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px 30px;
}

.groceries-checklist h2 {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  line-height: 1.238;
  letter-spacing: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 15px;
  cursor: pointer;
}

.groceries-checklist h2::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 9px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath stroke='%23000' stroke-width='2' d='m.648 6.302 5.847-5 6.153 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.groceries-checklist.expanded h2::after {
  transform: rotate(180deg);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  cursor: default;
  transition: background 0.2s ease;
}

.checklist-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.checklist-item input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  cursor: default;
  border: 1.086px solid #9b9b9b;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background: white;
  border-radius: 2px;
  position: relative;
  opacity: 0.6;
}

.checklist-item input[type='checkbox']:checked {
  background: white;
}

.checklist-item input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background-image: url('../images/icon_checkmark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.checklist-label {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  flex: 1;
  line-height: 1.238;
}

.brand-details {
  margin-top: 6px;
  margin-left: calc(-16px - 10px);
  width: calc(100% + 16px + 10px);
  display: none;
  animation: slideDown 0.3s ease;
}

.brand-details.expanded {
  display: block;
}

.brand-description {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-black);
  margin-bottom: 10px;
  line-height: 1.4;
}

.brand-description p {
  margin: 0 0 0.75em;
}

.brand-description p:last-child {
  margin-bottom: 0;
}

.brand-actions-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
}

.view-all-work-link {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.238em;
  color: var(--color-black);
  text-decoration: underline;
  text-align: center;
  white-space: nowrap;
}

.view-all-work-link:hover {
  opacity: 0.7;
}

.qr-section {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
}

.qr-copy-container {
  position: relative;
  flex: 1;
  padding-top: 47px;
  margin-bottom: 12px;
}

.qr-scan-icon {
  position: absolute;
  top: 5px;
  right: 0;
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.brand-qr-img {
  width: 63px;
  height: 63px;
  object-fit: cover;
  border: 1px solid #000;
  border-radius: 6.5px;
  flex-shrink: 0;
}

.qr-text {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-black);
  white-space: normal;
  line-height: 1.3;
  display: block;
}

.brand-action-btn {
  background: white;
  color: black;
  border: 2px solid black;
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  margin-top: 8px;
}

.brand-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 2px 4px 0 0 rgba(0, 0, 0, 1);
}

.brand-action-btn:active {
  transform: translateY(1px);
  box-shadow: 2px 1px 0 0 rgba(0, 0, 0, 1);
}

/* ─── Brand Packages ─────────────────────────────────────────── */
.packages-container {
  position: relative;
  width: 100%;
  height: 850px;
  margin-top: 0;
}

.brand-package {
  position: absolute;
  cursor: grab;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  z-index: var(--package-default-z);
  filter: drop-shadow(var(--shadow-product));
}

.brand-package.is-rotating {
  transition: none;
}

.brand-package:hover {
  transform: scale(1.05);
}

.brand-package:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 4px;
  transform: scale(1.05);
  z-index: 9001 !important;
}

.brand-package.in-basket:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 4px;
  transform: rotate(var(--rotation, 0deg)) scale(0.6) !important;
}

@keyframes keyboard-drop-pulse {
  0%, 100% { outline-color: var(--color-black); outline-offset: 4px; }
  50%       { outline-color: var(--color-black); outline-offset: 8px; }
}

.brand-package.keyboard-over-basket {
  animation: keyboard-drop-pulse 0.4s ease infinite;
  outline: 3px solid var(--color-black);
}

.brand-package:hover:not(:active):not(.dragging) {
  filter: brightness(1.1);
}

.brand-package.dragging {
  cursor: grabbing;
  transform: scale(1.1);
  opacity: 0.9;
  z-index: var(--dragging-z) !important;
  filter: drop-shadow(0px 20px 32px rgba(0, 0, 0, 0.5)) drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.3));
  transition: filter 0.2s ease;
}

.brand-package.in-basket {
  filter: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}

.brand-package.in-basket.is-rotating {
  transition: none !important;
}

.brand-package img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* ─── Help Screen ───────────────────────────────────────────── */
.help-screen-content {
  max-width: 860px;
  gap: 20px;
}

.help-screen-content h1 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
  text-align: center;
}

.help-grid {
  display: flex;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 10px;
}

.help-section {
  flex: 1;
  min-width: 200px;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 18px 20px;
  box-sizing: border-box;
}

.help-section h2 {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-black);
}

.help-section ul {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-section li {
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-black);
}

/* ─── Overlay Screens ────────────────────────────────────────── */
.overlay-screen {  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.4s ease;
}

.overlay-screen.hidden {
  display: none;
}

.screen-content {
  background: #f7f6f0;
  border-radius: 10px;
  width: 811px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  min-height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 70px 40px 30px;
  box-sizing: border-box;
  position: relative;
}

.screen-body {
  overflow-y: auto;
  max-height: calc(100vh - 140px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 4px 8px 8px;
  box-sizing: border-box;
}

.screen-body .btn-primary {
  min-width: 190px;
  min-height: 48px;
}

/* Barrel logo */
.screen-logo {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 19px;
  display: block;
}

/* Close X button */
.close-popup-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-popup-btn::before,
.close-popup-btn::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: #000;
  border-radius: 1px;
}

.close-popup-btn::before {
  transform: rotate(45deg);
}

.close-popup-btn::after {
  transform: rotate(-45deg);
}

.close-popup-btn:hover::before,
.close-popup-btn:hover::after {
  background: #555;
}

.screen-content h1 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.238em;
  color: #000;
  margin: 0;
  text-align: center;
  align-self: stretch;
}

#completion-screen .screen-content {
  align-items: center;
}

#completion-screen .screen-content h1 {
  text-align: center;
  max-width: 356px;
  margin-left: auto;
  margin-right: auto;
}

.screen-content p {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  text-align: center;
  margin: 0;
  max-width: 355px;
  align-self: center;
}

.screen-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

/* ─── Newsletter Signup ──────────────────────────────────────── */
.newsletter-signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 338px;
  margin: 0;
  box-sizing: border-box;
}

.newsletter-label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.237;
  color: #161616;
  text-align: center;
  margin: 0;
}

.newsletter-form {
  width: 100%;
}

.newsletter-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #ACACAC;
  border-radius: 100px;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
}

.newsletter-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.237;
  color: #000;
  background: transparent;
  height: 100%;
  width: 100%;
}

.newsletter-input-wrapper input::placeholder {
  color: #000;
}

.newsletter-submit {
  padding: 15px 17px;
  height: 32px;
  background: #161616;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.238;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.newsletter-submit:hover {
  background: #333;
}

.newsletter-submit:active {
  background: #000;
}

.newsletter-message {
  margin-top: 8px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  min-height: 20px;
}

.newsletter-message.success {
  color: #000000;
}

.newsletter-message.error {
  color: #dc2626;
}


.btn-primary {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-primary);
  border: 2px solid #000;
  border-radius: 100px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  background: #ffffff;
  color: #000;
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1);
}

#intro-screen .btn-primary {
  padding: 14px 32px;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 2px 4px 0px 0px rgba(0, 0, 0, 1);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 2px 1px 0px 0px rgba(0, 0, 0, 1);
}

/* ─── Restart Button ─────────────────────────────────────────── */
.top-left-controls {
  position: fixed;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1000;
}

.barrel-logo-link {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.barrel-logo-link:hover {
  opacity: 0.8;
}

.barrel-logo {
  width: 94px;
  height: auto;
  display: block;
}

.top-right-buttons {
  display: none;
  align-items: center;
  gap: 8px;
}

.top-right-buttons.visible {
  display: flex;
}

.restart-btn {
  position: relative;
  top: auto;
  left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.restart-btn span:first-child,
.btn-icon-restart {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-image: url('../images/icon_restart%20arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0px 0px rgba(0, 0, 0, 1);
}

.restart-btn:active {
  transform: translateY(1px);
  box-shadow: 4px 1px 0px 0px rgba(0, 0, 0, 1);
}

.join-newsletter-btn {
  position: relative;
  height: 40px;
  padding: 7.4px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 46px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.237;
  color: var(--color-black);
  cursor: pointer;
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.join-newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0px 0px rgba(0, 0, 0, 1);
}

.join-newsletter-btn:active {
  transform: translateY(1px);
  box-shadow: 4px 1px 0px 0px rgba(0, 0, 0, 1);
}

/* Newsletter popup — same layout as completion screen */
#newsletter-screen .screen-content {
  align-items: center;
}

#newsletter-screen .screen-content h1 {
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#newsletter-screen .newsletter-signup {
  gap: 0;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

/* ─── Small Mobile → Mobile (min-width: 481px) ───────────────── */
@media (min-width: 481px) {
  .basket-container {
    left: 32px;
    top: 321px;
    width: calc(100vw - 64px);
    height: auto;
  }

  .screen-content {
    padding: 80px 32px 40px;
  }

  .screen-body {
    max-height: calc(100vh - 160px);
  }

  .screen-logo {
    top: 28px;
    width: 109px;
  }

  .screen-content h1 {
    font-size: 26px;
  }

  .screen-actions {
    flex-direction: row;
    align-items: initial;
  }

  .newsletter-label {
    font-size: 14px;
  }
}

/* ─── Tablet (min-width: 769px) ──────────────────────────────── */
@media (min-width: 769px) {
  .brand-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .view-all-work-link {
    margin-top: -8px;
  }

  .container {
    height: auto;
  }

  /* Show phone on tablet */
  .phone-display {
    display: block;
    position: fixed;
    left: -60px;
    bottom: -80px;
    width: 320px;
    height: 470px;
    z-index: 9999;
    pointer-events: none;
  }

  .phone-frame {
    left: 120px;
    top: 0;
    width: 175px;
    height: 348px;
    border-radius: 22px 18px 22px 22px;
  }

  .phone-screen {
    left: 3px;
    top: 3px;
    width: 169px;
    height: 342px;
    border-radius: 18px 15px 18px 18px;
  }

  .phone-island {
    top: 16px;
    width: 60px;
    height: 14px;
  }

  .phone-hand {
    top: 50px;
    width: 320px;
    height: 420px;
  }

  /* Basket — tablet centered */
  .basket-container {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 350px;
  }

  .basket {
    border-radius: 0;
  }

  .basket-label {
    font-size: 24px;
  }

  /* Packages */
  .packages-container {
    height: 100%;
  }

  .brand-package {
    transform: scale(0.7);
  }

  /* Groceries checklist — fixed notebook panel */
  .groceries-checklist {
    position: fixed;
    bottom: auto;
    left: auto;
    top: 20px;
    right: 20px;
    width: 240px;
    height: auto;
    min-height: 380px;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    background-color: var(--color-paper);
    border: 1px solid var(--color-black);
    background-image:
      linear-gradient(to right, transparent 21px, var(--color-line) 21px, var(--color-line) 22px, transparent 22px),
      linear-gradient(to bottom, var(--color-paper) 63px, transparent 63px),
      repeating-linear-gradient(
        to bottom,
        var(--color-line) 0px,
        var(--color-line) 1px,
        transparent 1px,
        transparent 21px
      );
    background-position:
      0 0,
      0 0,
      0 0;
    background-size:
      100% 100%,
      100% 100%,
      100% 21px;
  }

  .groceries-checklist-inner {
    padding: 46px 12px 20px 28px;
  }

  .groceries-checklist h2 {
    font-size: 14px;
    font-weight: 600;
    display: block;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 20px;
    cursor: default;
  }

  .groceries-checklist h2::after {
    content: none;
  }

  .checklist-items {
    max-height: none;
    overflow-y: visible;
  }

  /* Overlay */
  .screen-content {
    padding: 150px 180px 60px;
    min-height: 526px;
  }

  .screen-body {
    max-height: calc(100vh - 250px);
  }

  .screen-content h1 {
    font-size: 32px;
  }

  #completion-screen .screen-content h1 {
    max-width: 400px;
  }

  .newsletter-signup {
    max-width: 458px;
  }

  .screen-logo {
    top: 62px;
    width: 109px;
  }

  .screen-content h1 {
    font-size: 32px;
    font-weight: 600;
  }

  .screen-content p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
  }

  #intro-screen .btn-primary {
    padding: 16px 40px;
    font-size: 16px;
  }

  .btn-primary {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
  }

  /* Restart button */
  .top-left-controls {
    top: 25px;
    left: 26px;
    right: auto;
    gap: 15px;
    justify-content: flex-start;
  }

  .barrel-logo {
    width: 115px;
  }

  .restart-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  }

  .join-newsletter-btn {
    height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  }
}

/* ─── Desktop (min-width: 1025px) ────────────────────────────── */
/* Figma: Group 50 at x:-85, y:279. Viewport=1440x800.
   Group bottom: 279+619=898 → 98px below viewport. */
@media (min-width: 1025px) {
  .phone-display {
    left: -85px;
    bottom: -98px;
    width: 427px;
    height: 619px;
  }

  .phone-frame {
    left: 164px;
    top: 0;
    width: 231px;
    height: 458px;
    border-radius: 28.82px 24px 28.82px 28.82px;
  }

  .phone-screen {
    left: 4px;
    top: 4px;
    width: 223px;
    height: 452px;
    border-radius: 24px 20px 24px 24px;
  }

  .phone-island {
    top: 18px;
    width: 68px;
    height: 14px;
  }

  .phone-hand {
    top: 66px;
    width: 427px;
    height: 553px;
  }

  /* Basket — Figma: x:380, y:158, width:680, height:483 */
  .basket-container {
    left: 380px;
    top: 158px;
    width: 680px;
    height: 483px;
    transform: none;
  }

  /* Packages */
  .brand-package {
    transform: none;
  }

  /* Groceries checklist — Figma: x:1138, y:19, width:270, height:438 */
  .groceries-checklist {
    top: 19px;
    right: 32px;
    width: 270px;
    min-height: 438px;
  }

  .brand-description {
    line-height: 1.6;
  }

  .brand-details {
    margin-top: 20px;
  }
}
