/* Pen Pot Sales Kit - Rubik's playful-premium
   Theme: light, locked. Accent: Rubik's red. Shape rule: buttons pill, cards 16px, chips pill. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #191b1f;
  --ink-soft: #4b5058;
  --ink-faint: #7a8089;
  --paper: #ffffff;
  --paper-dim: #f6f6f7;
  --line: #e6e7ea;
  --red: #e2231a;
  --red-dark: #c01d15;
  --blue: #0053a0;
  --yellow: #ffcb05;
  --green: #009a44;
  --orange: #ff5800;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(25, 27, 31, 0.05), 0 12px 32px -16px rgba(25, 27, 31, 0.18);
  --shadow-pop: 0 2px 4px rgba(25, 27, 31, 0.06), 0 18px 44px -18px rgba(25, 27, 31, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 13px 24px;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:active { transform: scale(0.98) translateY(1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover { background: var(--red-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover { border-color: var(--ink-faint); }

.btn-sm { padding: 9px 18px; font-size: 14.5px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo { height: 26px; width: auto; }

.brand-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.brand-name {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- Squares motif ---------- */

.square-strip {
  display: inline-flex;
  gap: 5px;
}

.sq {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.sq-red { background: var(--red); }
.sq-blue { background: var(--blue); }
.sq-yellow { background: var(--yellow); }
.sq-green { background: var(--green); }
.sq-orange { background: var(--orange); }
.sq-white { background: #fff; border: 1.5px solid var(--line); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 14ch;
}

.hero-sub {
  margin: 0 0 24px;
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.fact-chips li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.float-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s var(--ease);
}

.float-card:hover { transform: translateY(-2px); }

.float-card-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
}

.float-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Sections ---------- */

.clients { padding: 32px 0 8px; }

.clients h2, .presentation h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-sub {
  margin: 0 0 24px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.tab:hover { border-color: var(--ink-faint); color: var(--ink); }

.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tab-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--dot, var(--red));
  flex: 0 0 auto;
}

/* ---------- Panel ---------- */

.panel { margin-top: 20px; }

.panel.appearing { animation: panel-in 0.32s var(--ease); }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
}

/* Case card */

.case-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.case-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-dim);
}

.case-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.case-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.case-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.case-link {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--red);
  text-decoration: none;
}

.case-link:hover { text-decoration: underline; }

/* Email tool */

.email-tool {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.email-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.email-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.email-target {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-dim);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.email-subject {
  display: flex;
  gap: 10px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
}

.email-subject-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: 0 0 auto;
}

.email-body {
  margin: 0;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper-dim);
  border-radius: 10px;
  padding: 16px 18px;
  white-space: pre-wrap;
  overflow-y: auto;
  flex: 1;
  min-height: 220px;
  max-height: 320px;
}

.email-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.email-hint {
  font-size: 13px;
  color: var(--ink-faint);
}

.copy-btn.copied {
  background: var(--ink);
}

/* ---------- Presentation strip ---------- */

.presentation { padding: 40px 0 24px; }

.presentation-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  background: linear-gradient(0deg, var(--paper-dim), #fff);
  box-shadow: var(--shadow-card);
}

.presentation-thumb {
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.presentation-copy p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-contact a { color: var(--ink-soft); }

.footer-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 36px 0 28px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy h1 { max-width: none; }

  .hero-visual img { aspect-ratio: 3 / 2; }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .email-body {
    max-height: 260px;
    min-height: 0;
  }

  .presentation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .presentation-thumb { max-width: 300px; }
}

@media (max-width: 640px) {
  .shell { padding: 0 18px; }

  .header-inner { height: 58px; }

  .brand-name, .brand-sep { display: none; }

  .header-cta { padding: 9px 14px; font-size: 13.5px; }

  .hero-ctas .btn { width: 100%; }

  .tab { padding: 10px 16px; font-size: 14px; }

  .case-body, .email-tool { padding: 16px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .panel.appearing { animation: none; }

  .btn, .float-card, .tab {
    transition: none;
  }
}
