/* ============================================================
   Penci — Marketing site styles
   Built on the Penci design system (colors_and_type.css)
   ============================================================ */

html { scroll-behavior: smooth; }
body { background: var(--bg-1); color: var(--fg-2); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
section { position: relative; }

/* accent override hook (Tweaks) */
:root { --accent: var(--penci-sky-400); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--dur-normal) var(--ease-out-soft),
              box-shadow var(--dur-normal) var(--ease-out-soft),
              border-color var(--dur-normal) var(--ease-out-soft);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--border-1);
  box-shadow: var(--shadow-sm);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img.mark { height: 30px; width: 30px; }
.brand img.word { height: 21px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: 8px; }
.nav__links a {
  font-family: var(--font-body); font-weight: var(--fw-semi);
  font-size: var(--text-sm); color: var(--fg-2);
  padding: 8px 2px; transition: color var(--dur-fast);
}
.nav__links a:hover { color: var(--accent); }
.nav__spacer { flex: 1; }
.nav__cta {
  font-family: var(--font-body); font-weight: var(--fw-bold);
  font-size: var(--text-sm); white-space: nowrap;
  padding: 10px 20px; border-radius: var(--radius-full);
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 14px color-mix(in oklab, var(--accent) 38%, transparent);
  transition: transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-normal), filter var(--dur-normal);
}
.nav__cta:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 22px color-mix(in oklab, var(--accent) 44%, transparent); }
.nav__cta:active { transform: translateY(0) scale(.98); }

/* ============================================================
   Shared bits
   ============================================================ */
.eyebrow {
  font-family: var(--font-body); font-weight: var(--fw-bold);
  font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--accent); opacity: .7;
}
.h-display {
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: clamp(40px, 6vw, 70px); line-height: 1.04; letter-spacing: -0.025em;
  color: var(--fg-1); margin: 0; text-wrap: balance;
}
.h-section {
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--fg-1); margin: 0; text-wrap: balance;
}
.lede {
  font-family: var(--font-body); font-weight: var(--fw-medium);
  font-size: clamp(17px, 1.55vw, 20px); line-height: var(--lh-relaxed);
  color: var(--fg-3); margin: 0; max-width: 46ch; text-wrap: pretty;
}
.hand-accent {
  font-family: var(--font-hand); font-weight: var(--fw-bold);
  color: var(--accent); font-size: 1.15em; line-height: 1;
  transform: rotate(-4deg); display: inline-block;
}

/* App-store style buttons (original styling, not official badges) */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 18px; border-radius: var(--radius-md);
  background: var(--penci-ink-800); color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-normal), background var(--dur-normal);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn:active { transform: translateY(0) scale(.99); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .st { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.store-btn .st small { font-family: var(--font-body); font-weight: var(--fw-medium); font-size: 11px; opacity: .8; letter-spacing: .02em; white-space: nowrap; }
.store-btn .st b { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }

/* ---- Pre-launch: "곧 출시 예정" ---- */
.soon-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--fw-bold);
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent);
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
}
.soon-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.store-row.is-soon .store-btn { pointer-events: none; cursor: default; opacity: .5; }
.store-row.is-soon .store-btn:hover { transform: none; box-shadow: var(--shadow-sm, none); }
/* centered contexts */
.v-a .soon-badge { align-self: center; }
.cta__card .soon-badge {
  align-self: center;
  color: #fff;
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.34);
}
.cta__card .soon-badge::before { background: #fff; }

.ghost-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--text-sm);
  color: var(--fg-2);
}
.ghost-link svg { width: 18px; height: 18px; transition: transform var(--dur-normal) var(--ease-out-soft); }
.ghost-link:hover { color: var(--accent); }
.ghost-link:hover svg { transform: translateX(3px); }

/* ============================================================
   Decorative pastel blobs
   ============================================================ */
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; pointer-events: none; z-index: 0; }
.blob.peach { background: var(--penci-peach-300); }
.blob.mint { background: var(--penci-mint-300); }
.blob.lav { background: var(--penci-lavender-300); }
.blob.butter { background: var(--penci-butter-300); }
.blob.sky { background: var(--penci-sky-200); }

.sparkle { color: var(--penci-butter-500); }

/* ============================================================
   DEVICE FRAMES
   ============================================================ */
.browser {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border-2);
  box-shadow: var(--shadow-xl);
}
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: var(--bg-3); border-bottom: 1px solid var(--border-1);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser__dots i:nth-child(1){ background:#FF6F61; } .browser__dots i:nth-child(2){ background:var(--penci-butter-500);} .browser__dots i:nth-child(3){ background:var(--penci-mint-500);}
.browser__url {
  flex: 1; max-width: 320px; margin: 0 auto;
  text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: var(--radius-full); padding: 5px 14px;
}
.browser__screen { display: block; width: 100%; }

.phone {
  border-radius: 34px; padding: 9px; background: #1C1B18;
  box-shadow: var(--shadow-xl), inset 0 0 0 1.5px rgba(255,255,255,.08);
  position: relative;
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 20px; background: #1C1B18; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen { border-radius: 27px; overflow: hidden; background: var(--bg-1); }
.phone__screen img { display: block; width: 100%; }

/* Floating synced pill */
.synced-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 13px; border-radius: var(--radius-full);
  background: var(--bg-2); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-1);
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--text-sm); color: var(--fg-1);
}
.synced-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--penci-mint-500); box-shadow: 0 0 0 0 var(--penci-mint-500); }
.synced-pill.live .dot { animation: pulse 2s var(--ease-out-soft) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--penci-mint-500) 60%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ============================================================
   HERO (shared frame)
   ============================================================ */
.hero { padding-top: 132px; padding-bottom: 88px; }
.hero__variant { display: none; }
[data-hero="a"] .hero__variant.v-a,
[data-hero="b"] .hero__variant.v-b,
[data-hero="c"] .hero__variant.v-c { display: block; }

/* ---- Hero A — centered ---- */
.v-a { text-align: center; }
.v-a .eyebrow { justify-content: center; }
.v-a .eyebrow::before { display: none; }
.v-a .hero-copy { display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 2; }
.v-a .lede { max-width: 52ch; }
.v-a .store-row { justify-content: center; }
.v-a .hero-stage {
  position: relative; margin-top: 56px; z-index: 1;
  display: flex; justify-content: center;
}
.v-a .browser { max-width: 900px; width: 100%; }
.v-a .float-pill { position: absolute; top: -22px; right: 8%; z-index: 5; transform: rotate(3deg); }
.v-a .float-note { position: absolute; bottom: -26px; left: 4%; z-index: 5; width: 168px; transform: rotate(-5deg); }
.v-a .float-note .phone { border-radius: 26px; }
.v-a .scribble { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font-size: 26px; }

/* ---- Hero B — split / cross-device ---- */
.v-b .hero-grid {
  display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center;
}
.v-b .hero-copy { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 2; }
.v-b .hero-copy h1 .hand-accent { font-size: .92em; }
.v-b .mini-note { display: flex; align-items: center; gap: 9px; font-family: var(--font-body); font-weight: var(--fw-semi); font-size: var(--text-sm); color: var(--fg-3); }
.v-b .mini-note svg { width: 18px; height: 18px; color: var(--penci-mint-500); }
.v-b .hero-stage { position: relative; z-index: 1; }
.v-b .browser { position: relative; z-index: 1; }
.v-b .phone { position: absolute; width: 168px; right: -18px; bottom: -42px; z-index: 4; }
.v-b .float-pill { position: absolute; left: -26px; top: 26px; z-index: 5; transform: rotate(-4deg); }
.v-b .scribble { position: absolute; right: 18%; top: -34px; font-size: 30px; z-index: 5; }

/* ---- Hero C — paper ---- */
.v-c .paper-hero {
  position: relative; z-index: 1;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: clamp(36px, 5vw, 72px);
  overflow: hidden;
  background-image: radial-gradient(circle, var(--border-2) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  background-position: 0 0;
}
.v-c .paper-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(251,250,246,.9), rgba(251,250,246,.55));
}
.v-c .paper-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.v-c .hero-copy { display: flex; flex-direction: column; gap: 24px; }
.v-c .h-display { font-size: clamp(40px, 5.6vw, 66px); }
.v-c .h-display em { font-style: normal; font-family: var(--font-hand); color: var(--accent); font-weight: var(--fw-bold); }
.v-c .paper-stage { display: flex; justify-content: center; position: relative; }
.v-c .phone { width: 230px; transform: rotate(4deg); }
.v-c .tape {
  position: absolute; width: 88px; height: 26px; background: color-mix(in oklab, var(--penci-butter-300) 75%, transparent);
  top: -8px; left: 50%; transform: translateX(-50%) rotate(-3deg); z-index: 6; border-radius: 2px;
  box-shadow: var(--shadow-xs);
}
.v-c .float-pill { position: absolute; left: -18px; bottom: 30px; z-index: 6; transform: rotate(-5deg); }

/* ============================================================
   SYNC BAND
   ============================================================ */
.sync { padding: 96px 0; background: var(--bg-3); border-block: 1px solid var(--border-1); }
.sync__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.sync__copy { display: flex; flex-direction: column; gap: 22px; }
.sync__points { display: flex; flex-direction: column; gap: 16px; margin: 4px 0 0; }
.sync__point { display: flex; gap: 14px; align-items: flex-start; }
.sync__point .ic {
  flex: none; width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--bg-2); box-shadow: var(--shadow-sm); color: var(--accent);
}
.sync__point .ic svg { width: 20px; height: 20px; }
.sync__point b { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-md); color: var(--fg-1); display: block; margin-bottom: 2px; }
.sync__point span { font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-sm); color: var(--fg-3); line-height: var(--lh-normal); }

.sync__stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.sync__stage .browser { width: 100%; max-width: 520px; }
.sync__stage .phone { position: absolute; width: 158px; right: 2%; bottom: -28px; z-index: 4; }
.sync__stage .arc {
  position: absolute; z-index: 3; left: 38%; top: 44%;
}
.sync__stage .float-pill { position: absolute; left: 6%; top: 8%; z-index: 5; transform: rotate(-3deg); }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 104px 0; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 56px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
.section-head .lede { text-align: center; max-width: 54ch; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feat-card {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: 32px; overflow: hidden; position: relative;
  transition: transform var(--dur-normal) var(--ease-out-soft), box-shadow var(--dur-normal) var(--ease-out-soft);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-card .fc-ic {
  width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center;
  margin-bottom: 20px; color: #fff;
}
.feat-card .fc-ic svg { width: 24px; height: 24px; }
.feat-card h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-xl); color: var(--fg-1); margin: 0 0 8px; }
.feat-card p { font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-base); line-height: var(--lh-normal); color: var(--fg-3); margin: 0; max-width: 42ch; }

.feat-card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; padding: 0; }
.feat-card.wide .fc-body { padding: 40px; }
.feat-card.wide .fc-media { align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 28px; background: var(--bg-3); border-left: 1px solid var(--border-1); }
.feat-card.wide.flip { grid-template-columns: 1.05fr 1fr; }
.feat-card.wide.flip .fc-media { order: -1; border-left: 0; border-right: 1px solid var(--border-1); }
.feat-card .fc-media img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid var(--border-1); }

.ic-sky { background: linear-gradient(150deg, var(--penci-sky-300), var(--penci-sky-500)); }
.ic-mint { background: linear-gradient(150deg, var(--penci-mint-300), var(--penci-mint-500)); }
.ic-lav { background: linear-gradient(150deg, var(--penci-lavender-300), var(--penci-lavender-500)); }
.ic-peach { background: linear-gradient(150deg, var(--penci-peach-300), var(--penci-peach-500)); }
.ic-rose { background: linear-gradient(150deg, var(--penci-rose-300), var(--penci-rose-500)); }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 40px 0 110px; }
.cta__card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-2xl); padding: clamp(48px, 7vw, 92px) 32px;
  text-align: center; color: #fff;
  background:
    radial-gradient(120% 130% at 82% 8%, var(--penci-sky-300) 0%, transparent 55%),
    linear-gradient(155deg, var(--penci-sky-400) 0%, var(--penci-sky-500) 52%, var(--penci-sky-600) 100%);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.cta__card h2 { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.cta__card p { font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-md); color: rgba(255,255,255,.92); margin: 0; max-width: 40ch; }
.cta__card .store-row { justify-content: center; margin-top: 6px; }
.cta__card .store-btn { background: #fff; color: var(--penci-ink-800); }
.cta__card .scribble { position: absolute; font-family: var(--font-hand); font-weight: var(--fw-bold); color: rgba(255,255,255,.9); font-size: 34px; }
.cta__ruled { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, rgba(255,255,255,.18) 47px, rgba(255,255,255,.18) 48px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0 48px; border-top: 1px solid var(--border-1); }
.footer__simple { display: flex; flex-direction: column; gap: 18px; }
.footer__simple .footer__brand { gap: 14px; max-width: 42ch; }
.footer__copy { font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-xs); color: var(--fg-4); margin: 6px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 30ch; }
.footer__brand .brand { gap: 10px; }
.footer__brand p { font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-sm); color: var(--fg-3); line-height: var(--lh-normal); margin: 0; }
.footer__col h4 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-sm); color: var(--fg-1); margin: 0 0 14px; }
.footer__col a { display: block; font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-sm); color: var(--fg-3); padding: 6px 0; transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--accent); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-1); flex-wrap: wrap; }
.footer__bar p { font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-xs); color: var(--fg-4); margin: 0; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--bg-3); color: var(--fg-3); transition: color var(--dur-fast), background var(--dur-fast); }
.footer__social a:hover { color: var(--accent); background: var(--brand-soft); }
.footer__social svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .v-b .hero-grid, .v-c .paper-grid, .sync__grid { grid-template-columns: 1fr; gap: 48px; }
  .v-c .paper-stage { order: -1; }
  .sync__stage { order: -1; }
  .feat-card.wide, .feat-card.wide.flip { grid-template-columns: 1fr; }
  .feat-card.wide .fc-media, .feat-card.wide.flip .fc-media { border: 0; border-top: 1px solid var(--border-1); order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 620px) {
  .wrap { width: min(1180px, 100% - 36px); }
  .hero { padding-top: 108px; padding-bottom: 64px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card.wide, .feat-card.wide.flip { grid-column: span 1; }
  .v-b .phone, .sync__stage .phone { width: 132px; }
  .v-a .float-note { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .store-btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}
