/* ==========================================================================
   Soft Break: product page. A sub-brand page like /dial: the studio nav and
   type, on the game's own cool lavender ground and in the game's ink.
   ========================================================================== */

:root {
  --sb-page: #eef0f6;
  --sb-page-deep: #e2e5f0;
  --sb-ink: #26212e;              /* the game's own ink */
  --sb-ink-muted: #5c5769;
  --sb-ink-subtle: #8a8699;
  --sb-rule: rgba(38, 33, 46, 0.1);
  --sb-amber: #f2b13e;
  --font-sans: "Darker Grotesque", -apple-system, sans-serif;
  --color-text: #1a1918;
  --color-text-muted: #6b6560;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: linear-gradient(var(--sb-page), var(--sb-page-deep));
  background-color: var(--sb-page);
  color: var(--sb-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: var(--sb-amber); color: var(--sb-ink); }

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* --------------------------------------------------------------------------
   Studio nav: lifted from apps.html so /softbreak reads as part of the site.
   -------------------------------------------------------------------------- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(238, 240, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.logo {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}

.nav-links { display: flex; gap: 3rem; list-style: none; }

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--color-text);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  width: 20px; height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* --------------------------------------------------------------------------
   Page
   -------------------------------------------------------------------------- */

.sb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }

.sb-hero { padding-top: 10rem; text-align: center; }

.sb-icon {
  width: 120px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(60, 64, 120, 0.18));
}

.sb-name {
  font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-top: 2rem;
}

.sb-lede {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--sb-ink-muted);
  margin-top: 1rem;
}

.sb-meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sb-ink-subtle);
  margin-top: 2.25rem;
}

.sb-meta span { white-space: nowrap; }

.sb-badge { display: inline-block; margin-top: 1.5rem; line-height: 0; transition: opacity 0.3s ease; }
.sb-badge:hover { opacity: 0.8; }
.sb-badge img { height: 52px; width: auto; }

/* the engine-rendered header, as a soft panel */
.sb-header {
  margin-top: 5rem;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1920 / 822;
  background: #d8deec url(../images/softbreak/header.jpg) center / cover;
  box-shadow: 0 40px 80px -40px rgba(60, 64, 120, 0.35);
}
.sb-header video { width: 100%; height: 100%; object-fit: cover; }

/* the game itself, beside a few words */
.sb-play {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 920px;
  margin: 8rem auto 0;
}

.sb-phone {
  width: 300px;
  border-radius: 44px;
  overflow: hidden;
  aspect-ratio: 590 / 1278;
  background: #f4e9e3 url(../images/softbreak/trailer.jpg) center / cover;
  box-shadow: 0 0 0 10px #16141a, 0 50px 90px -30px rgba(38, 33, 46, 0.45);
  margin: 10px;
}
.sb-phone video { width: 100%; height: 100%; object-fit: cover; }

.sb-phone-col { margin: 0; text-align: center; }
.sb-soon {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sb-ink-subtle);
  margin-top: 1.75rem;
}

.sb-points { list-style: none; }
.sb-points li { padding: 1.75rem 0; border-top: 1px solid var(--sb-rule); }
.sb-points li:last-child { border-bottom: 1px solid var(--sb-rule); }
.sb-points h2 { font-size: 1.875rem; font-weight: 600; line-height: 1.1; }
.sb-points p { font-size: 1.375rem; font-weight: 500; line-height: 1.35; color: var(--sb-ink-muted); margin-top: 0.4rem; }

.sb-close { text-align: center; margin: 8rem auto 0; padding-bottom: 7rem; }
.sb-close p { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; line-height: 1.25; }

footer { border-top: 1px solid var(--sb-rule); padding: 2.5rem 0; }
footer .sb-wrap { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; font-size: 1.125rem; font-weight: 500; color: var(--sb-ink-subtle); }
footer a { text-decoration: none; color: var(--sb-ink-muted); }
footer a:hover { color: var(--sb-ink); }
.sb-footer-links { display: flex; gap: 1.75rem; }

@media (max-width: 900px) {
  nav { padding: 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--sb-page);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.active { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1rem; }

  .sb-wrap { padding: 0 1rem; }
  .sb-hero { padding-top: 7.5rem; }
  .sb-icon { width: 96px; }
  .sb-header { margin-top: 3.5rem; border-radius: 18px; aspect-ratio: 4 / 3; }
  .sb-play { grid-template-columns: 1fr; gap: 3.5rem; margin-top: 5rem; justify-items: center; }
  .sb-phone { width: min(260px, 70vw); border-radius: 38px; }
  .sb-close { margin-top: 5rem; padding-bottom: 5rem; }
}
