/* ========================================
   PaperFlow — Design System
   Layout: Split-screen (home) + Bento (studio)
   ======================================== */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === TOKENS === */
:root {
  --paper:         #FBFAF7;
  --paper-2:       #F2EFE8;
  --ink:           #1C1A17;
  --ink-soft:      #4A453D;
  --line:          #DDD8CE;

  --studio:        #FF7A9C;
  --studio-deep:   #C45575;
  --studio-bg:     #FFF6F0;
  --studio-soft:   #FFE4D8;

  --peach:         #FFB570;
  --peach-deep:    #E08B40;

  --insights:      #0F4C5C;
  --insights-deep: #0A3844;
  --insights-bg:   #F0F4F5;
  --insights-soft: #DBE5E8;
  --gold:          #C28C3C;

  --display: 'Fraunces', Georgia, serif;
  --body:    'Inter', system-ui, sans-serif;

  --nav-h: 64px;
  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
}

/* === BASE === */
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
main { flex: 1; }

/* === NAV === */
nav {
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
  letter-spacing: .01em;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.lang-toggle {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 5px 13px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 28px;
  text-align: center;
  background: var(--paper-2);
}
.footer-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-logo { height: 26px; }
.footer-wrap p { font-size: 13px; color: var(--ink-soft); }
.footer-shop {
  font-size: 13px;
  font-weight: 600;
  color: var(--studio);
  border: 1.5px solid var(--studio);
  padding: 6px 16px;
  border-radius: 100px;
  transition: background .2s, color .2s;
  display: inline-block;
  margin-top: 4px;
}
.footer-shop:hover { background: var(--studio); color: white; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
  border: none;
  text-align: center;
  white-space: nowrap;
}
.btn-studio {
  background: var(--studio);
  color: white;
}
.btn-studio:hover {
  background: var(--studio-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,122,156,.3);
}
.btn-insights {
  background: var(--insights);
  color: white;
}
.btn-insights:hover {
  background: var(--insights-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,76,92,.3);
}

/* ================================================
   HOME — SPLIT-SCREEN (Direction A)
   ================================================ */
.split-screen {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}
.split-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 56px;
  transition: flex .45s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.split-half:hover { flex: 1.5; }
.split-studio {
  background: linear-gradient(150deg, var(--studio-bg) 0%, var(--studio-soft) 100%);
  border-right: 1px solid var(--line);
}
.split-insights {
  background: linear-gradient(150deg, var(--insights-bg) 0%, var(--insights-soft) 100%);
}

/* Decorative pattern overlay */
.split-half::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%231C1A17'/%3E%3C/svg%3E");
}

.split-inner {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.split-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  align-self: flex-start;
}
.split-studio .split-pill { background: var(--studio-soft); color: var(--studio-deep); }
.split-insights .split-pill { background: var(--insights-soft); color: var(--insights); }
.split-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.split-studio .split-pill-dot { background: var(--studio); }
.split-insights .split-pill-dot { background: var(--insights); }

.split-heading {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.split-heading em { font-style: italic; }
.split-studio .split-heading em { color: var(--studio); }
.split-insights .split-heading em { color: var(--gold); }

.split-desc {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 38ch;
}
.split-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  transition: transform .2s, box-shadow .2s;
  align-self: flex-start;
  margin-top: 4px;
}
.split-studio .split-cta { background: var(--studio); color: white; }
.split-insights .split-cta { background: var(--insights); color: white; }
.split-half:hover .split-cta {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}

@media (max-width: 700px) {
  .split-screen { flex-direction: column; min-height: auto; }
  .split-half { flex: none; padding: 56px 28px; }
  .split-half:hover { flex: none; }
  .split-studio { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ================================================
   STUDIO PAGE — Bento Grid Layout (Direction B)
   ================================================ */
.studio-hero {
  background: linear-gradient(150deg, var(--studio-bg) 0%, var(--studio-soft) 80%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.studio-hero .sec-eyebrow { color: var(--studio-deep); }
.sec-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.studio-hero .sec-eyebrow-dot { background: var(--studio); }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.35} }

.sec-heading {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 20ch;
}
.sec-heading em { font-style: italic; color: var(--studio); }
.sec-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-top: 20px;
  line-height: 1.65;
}

.studio-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: white;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
}
.badge-icon { font-size: 15px; }

/* === BENTO GRID (Studio products) === */
.bento-section { padding: 72px 0; }
.bento-heading {
  font-family: var(--display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: -.015em;
  margin-bottom: 28px;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto;
  gap: 16px;
}

/* Featured card — takes full left column */
.bento-card {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .28s, box-shadow .28s;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}
.bento-card.featured { grid-row: span 2; }

.bento-img {
  width: 100%;
  overflow: hidden;
  background: var(--studio-soft);
}
.bento-card.featured .bento-img { aspect-ratio: 3/4; }
.bento-card:not(.featured) .bento-img { aspect-ratio: 16/9; }

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
.bento-card:hover .bento-img img { transform: scale(1.05); }

.bento-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--studio-deep);
  background: var(--studio-soft);
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
}
.bento-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.bento-card:not(.featured) .bento-title { font-size: 18px; }
.bento-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}
.bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.bento-price {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}
.bento-card:not(.featured) .bento-price { font-size: 22px; }

/* Right-column: 2 stacked non-featured cards get this treatment */
.bento-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mobile: stack all cards */
@media (max-width: 720px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.featured { grid-row: span 1; }
  .bento-card.featured .bento-img { aspect-ratio: 4/3; }
  .bento-card:not(.featured) .bento-img { aspect-ratio: 4/3; }
  .studio-badges { gap: 8px; }
}

/* ================================================
   INSIGHTS PAGE — Coming Soon
   ================================================ */
.insights-hero {
  padding: 100px 0 90px;
  border-bottom: 1px solid var(--line);
}
.insights-hero .sec-eyebrow { color: var(--insights); }
.insights-hero .sec-eyebrow-dot { background: var(--gold); }
.insights-hero .sec-heading em { color: var(--gold); }

.insights-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 60px;
}
.ib-card {
  border-radius: var(--r-lg);
  padding: 36px 32px;
  border: 1px solid var(--line);
}
.ib-card.main {
  background: var(--insights);
  color: white;
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.ib-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.ib-title {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
}
.ib-desc {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
}
.ib-topics { display: flex; flex-direction: column; gap: 10px; }
.ib-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255,255,255,.8);
  padding: 10px 14px;
  background: rgba(255,255,255,.07);
  border-radius: var(--r-sm);
}
.ib-topic-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.ib-card.sub {
  background: var(--paper-2);
}
.ib-card.sub .ib-label { color: var(--ink-soft); }
.ib-card.sub .ib-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}
.ib-card.sub p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.ib-card.release {
  background: linear-gradient(135deg, var(--gold) 0%, #E5A847 100%);
  color: white;
}
.ib-card.release .ib-label { color: rgba(255,255,255,.75); }
.ib-card.release .ib-title { color: white; font-size: 20px; }
.ib-card.release p { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.6; }
.ib-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.ib-tag {
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255,255,255,.2);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
}

@media (max-width: 680px) {
  .insights-bento { grid-template-columns: 1fr; }
  .ib-card.main { grid-column: 1; grid-template-columns: 1fr; gap: 24px; }
  .ib-card { padding: 28px 22px; }
}
