/* Extra product surfaces, matched to Lilt Liquid Glass. */

.studio-extras {
  display: grid;
  gap: 16px;
  padding: 4px 24px 22px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .16);
  border-radius: 0;
}

.appearance-controls {
  border-radius: 0;
  border-bottom: 0;
}

.preset-row,
.wallpaper-row,
.anchor-row {
  display: grid;
  grid-template-columns: 85px 1fr auto;
  gap: 12px;
  align-items: center;
}

.preset-row > span,
.wallpaper-row > span,
.anchor-row > span {
  font-size: 13px;
  color: var(--muted);
}

.preset-chips,
.wallpaper-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chips button,
.wallpaper-chips button,
.anchor-button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 980px;
  background: rgba(255, 255, 255, .32);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.preset-chips button[aria-pressed="true"],
.wallpaper-chips button[aria-current="true"] {
  background: linear-gradient(180deg, #4aa3ff, var(--accent));
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 8px 18px rgba(10, 132, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.wallpaper-chips button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
}

.wallpaper-chips button img,
.wallpaper-chips button span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swatch-frost { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.swatch-night { background: linear-gradient(135deg, #111827, #334155); }

.anchor-button { justify-self: start; }

.privacy-lock {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(8,10,16,.78);
  color: #f5f5f7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease);
}

.privacy-lock.is-on { opacity: 1; }

.privacy-lock > div {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.privacy-lock b {
  font-size: 2.4cqw;
  letter-spacing: -.03em;
}

.privacy-lock span {
  font-size: 1.2cqw;
  color: #d2d2d7;
}

.lock-glyph {
  width: 4.4cqw;
  height: 4.4cqw;
  border: .28cqw solid var(--accent);
  border-radius: 1cqw;
  position: relative;
}

.lock-glyph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.8cqw;
  width: 2cqw;
  height: 2.1cqw;
  border: .28cqw solid var(--accent);
  border-bottom: 0;
  border-radius: 2cqw 2cqw 0 0;
  transform: translateX(-50%);
}

.media-chip {
  position: absolute;
  right: 3%;
  bottom: 6%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .7cqw;
  padding: .7cqw 1.1cqw;
  border-radius: 999px;
  background: rgba(29,29,31,.82);
  color: #f5f5f7;
  font-size: 1.15cqw;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 180ms var(--ease);
}

.media-chip.is-on {
  opacity: 1;
  transform: none;
}

.media-chip i {
  width: .7cqw;
  height: .7cqw;
  border-radius: 50%;
  background: var(--accent);
}

.plus-block { padding-top: 72px; padding-bottom: 8px; }
.plus-block h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -.045em; margin: 0 0 14px; }
.plus-lede { font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.7; margin: 0 0 36px; }

.feature-strip { margin-top: 0; }

.automation-board {
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 28px;
  background: rgba(255, 255, 255, .28);
  padding: 28px 28px 22px;
}

.automation-track {
  position: relative;
  height: 64px;
  margin: 28px 8px 18px;
}

.automation-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 2px;
  background: #d2d2d7;
}

.automation-fill {
  position: absolute;
  left: 0;
  top: 28px;
  height: 2px;
  width: 0;
  background: var(--accent);
}

.automation-needle {
  position: absolute;
  top: 10px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(0,113,227,.18);
}

.automation-marks {
  position: absolute;
  inset: 0;
}

.automation-marks button {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
  padding-top: 38px;
  min-width: 64px;
}

.automation-marks button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #d2d2d7;
}

.automation-marks button.is-active { color: var(--accent); }
.automation-marks button.is-active::before { background: var(--accent); }

.automation-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
}

.automation-status b {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.rule-card {
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 18px;
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.rule-card.is-live {
  border-color: rgba(10, 132, 255, .45);
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .12), 0 10px 28px rgba(10, 132, 255, .12);
}

.rule-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.rule-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.rule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.compat-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}

.compat-form {
  display: grid;
  gap: 12px;
}

.compat-form select,
.notify-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
}

.compat-result {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.compat-result[hidden],
.notify-form .ok[hidden] {
  display: none;
}

.compat-result[data-state="yes"] { color: var(--accent); }
.compat-result[data-state="no"] { color: #f0b4a0; }
.compat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.model-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.notify-band {
  margin-top: 72px;
  background: transparent;
  color: #f5f8ff;
}

.notify-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: end;
  padding: 56px 0 52px;
}

.notify-band h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.12;
  margin: 0 0 14px;
}

.notify-band p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 460px; }

.notify-form { display: grid; gap: 10px; }
.notify-form input[type="email"] {
  background: #fff;
  color: #1d1d1f;
  border-color: rgba(255,255,255,.18);
}

.notify-form button {
  min-height: 48px;
  border-radius: 980px;
  background: linear-gradient(180deg, #4aa3ff, var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.notify-form .ok { font-size: 13px; }

@media (hover: hover) and (pointer: fine) {
  .preset-chips button:hover,
  .anchor-button:hover { border-color: rgba(255, 255, 255, .9); color: var(--ink); }
  .preset-chips button[aria-pressed="true"]:hover,
  .wallpaper-chips button[aria-current="true"]:hover { color: #fff; }
  .notify-form button:hover { background: #1b8cff; }
}

@media (max-width: 1050px) {
  .rule-grid { grid-template-columns: 1fr 1fr; }
  .compat-card, .notify-inner { gap: 28px; }
}

@media (max-width: 760px) {
  .studio-extras { padding: 2px 17px 18px; }
  .preset-row, .wallpaper-row, .anchor-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .plus-block { padding-top: 52px; }
  .rule-grid, .compat-card, .notify-inner { grid-template-columns: 1fr; }
  .automation-board { padding: 20px 16px 16px; }
  .notify-band { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-lock, .media-chip { transition: none; }
}
