/* penna.social home page. Shared tokens, header, footer and FAQ live in
   site.css; this file only styles the landing sections. Mirrors the App Store
   screenshots: brand blue, deep navy, a light blue tint, real app captures in
   a device frame. No inline styles (the CSP allows only 'self'). */

.home { background: #fff; }

/* ---------- Shared bits ---------- */
.h-section { padding: 80px 0; }
@media (min-width: 900px) { .h-section { padding: 120px 0; } }
.on-tint { background: var(--tint-bg); }
.h-head { max-width: 680px; margin-bottom: 44px; }
.h-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.h-title { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin-top: 12px; text-wrap: balance; }
.h-text { font-size: clamp(17px, 1.7vw, 19px); color: var(--text-2); margin-top: 16px; line-height: 1.55; text-wrap: pretty; }
.h-head.center .h-text { margin-left: auto; margin-right: auto; max-width: 34em; }
.overline.on-dark { color: #9DB8FF; }

.ticks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 500; line-height: 1.45; }
.ticks .i { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: var(--tint); color: var(--brand); margin-top: 0; }
.ticks.on-dark li { color: #E4EAFB; }
.ticks.on-dark .i { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Device frame ---------- */
.phone {
  --pw: 280px;
  position: relative; width: var(--pw); flex: none;
  padding: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .17);
  background: #0B0D12;
  box-shadow: inset 0 0 0 1.5px #3A3F4B, 0 2px 4px rgba(14,27,64,.12), 0 30px 60px -18px rgba(14,27,64,.42);
}
.phone img, .phone picture { display: block; width: 100%; height: auto; border-radius: calc(var(--pw) * .14); }
.phone img { aspect-ratio: 1206 / 2622; background: #E9EDF5; }

/* ---------- Store badge (Apple badge styling; becomes a link at launch, see site.js) ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 22px 8px 16px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}
a.store-badge:hover { text-decoration: none; background: #16181D; }
.store-badge .apple { width: 26px; height: 26px; fill: currentColor; margin-top: -3px; }
.store-badge small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.15; opacity: .85; }
.store-badge strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.store-badge.light { background: #fff; color: #000; box-shadow: none; }

/* ---------- Hero ---------- */
.h-hero { padding: 8px 8px 0; }
@media (min-width: 768px) { .h-hero { padding: 12px 16px 0; } }
.h-hero-card {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  background: linear-gradient(180deg, #4A7BF7 0%, #3A6DF2 42%, #2D5BDA 100%);
}
@media (min-width: 768px) { .h-hero-card { border-radius: 36px; } }
.h-hero-card::before {
  /* the pick, very large and faint, like a watermark behind the phones */
  content: ""; position: absolute; width: 760px; height: 850px; right: -220px; top: -120px;
  background: url("/assets/brand/penna-logo-beyaz.svg") no-repeat center / contain; opacity: .06; pointer-events: none;
}
.h-hero-grid { position: relative; display: grid; gap: 40px; padding-top: 48px; }
@media (min-width: 960px) {
  .h-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 0; min-height: 680px; }
}
.h-hero-copy { max-width: 600px; }
@media (min-width: 960px) { .h-hero-copy { padding: 88px 0; } }
.h-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.h-eyebrow img { width: 18px; height: 20px; }
.h-hero h1 { font-size: clamp(42px, 7.4vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; margin-top: 22px; text-wrap: balance; }
.h-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: #E2E9FD; margin-top: 20px; max-width: 30em; }
.h-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.h-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 16px; padding: 10px 2px; }
.h-link .i { width: 18px; height: 18px; transition: transform .2s ease; }
.h-link:hover { text-decoration: none; }
.h-link:hover .i { transform: translateY(3px); }
.h-hero :focus-visible, .h-dark :focus-visible, .h-cta :focus-visible { outline-color: #fff; }
.h-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin-top: 28px; font-size: 14px; font-weight: 600; color: #DCE5FD; }
.h-facts li { display: inline-flex; align-items: center; gap: 6px; }
.h-facts .i { width: 16px; height: 16px; }

/* phones: on phones the stage rises out of the card's bottom edge */
.h-stage { position: relative; height: 470px; display: flex; justify-content: center; }
@media (min-width: 480px) { .h-stage { height: 540px; } }
@media (min-width: 960px) { .h-stage { height: 680px; align-self: end; } }
.h-stage .phone-front { --pw: clamp(236px, 64vw, 300px); position: absolute; top: 0; left: 50%; margin-left: calc(var(--pw) * -0.62); z-index: 2; }
.h-stage .phone-back { --pw: clamp(206px, 54vw, 260px); position: absolute; top: 56px; left: 50%; margin-left: calc(var(--pw) * -0.02); transform: rotate(7deg); opacity: .96; z-index: 1; }
@media (min-width: 960px) {
  .h-stage .phone-front { top: 64px; }
  .h-stage .phone-back { top: 128px; }
}

/* ---------- Roles strip ---------- */
.h-roles { padding: 48px 0 8px; }
.h-roles-title { text-align: center; font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.role-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin-top: 18px; }
.role-pills li {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); font-size: 16px; font-weight: 600;
}
.role-pills .i { width: 20px; height: 20px; color: var(--brand); }

/* ---------- How it works ---------- */
.h-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .h-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.h-step {
  position: relative; padding: 28px 24px 26px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 0 var(--lip);
}
.h-step-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 3px 0 var(--brand-pressed); }
.h-step-icon .i { width: 26px; height: 26px; }
.h-step-num { position: absolute; top: 26px; right: 24px; font-size: 14px; font-weight: 700; color: var(--icon); font-variant-numeric: tabular-nums; }
.h-step h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-top: 22px; }
.h-step p { font-size: 16px; color: var(--text-2); margin-top: 8px; line-height: 1.5; }

/* ---------- Feature rows ---------- */
#nasil { padding-bottom: 32px; }
.h-features { padding: 0 0 40px; }
@media (min-width: 900px) { #nasil { padding-bottom: 56px; } .h-features { padding: 0 0 72px; } }
.feature { display: grid; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 48px; padding-bottom: 48px; }
  .feature.flip .feature-copy { order: 2; }
}
.feature-copy { max-width: 520px; }
.feature-media {
  position: relative; display: flex; justify-content: center; align-items: center; gap: 20px;
  padding: 44px 16px; border-radius: 32px; background: var(--tint-bg); overflow: hidden;
}
@media (min-width: 900px) { .feature-media { padding: 56px 24px; min-height: 640px; } }
.feature-media .phone { --pw: clamp(220px, 62vw, 290px); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 0; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { padding: 16px 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.stats dt { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); line-height: 1.1; }
.stats dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--text-2); }

.fx { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 24px; }
.fx li { padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--brand-pressed); font-size: 15px; font-weight: 600; }

/* Keşfet illustration: a card and the three gestures, drawn in CSS */
.deck-illu { width: min(100%, 360px); }
.di-card {
  position: relative; aspect-ratio: 4 / 4.4; border-radius: 24px; padding: 14px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #24345F 0%, #0E1B40 70%);
  box-shadow: 0 30px 60px -20px rgba(14,27,64,.45);
  display: flex; flex-direction: column;
}
.di-card::after {
  content: ""; position: absolute; width: 70%; aspect-ratio: 457.73 / 512; right: -14%; top: 14%;
  background: url("/assets/brand/penna-logo-beyaz.svg") no-repeat center / contain; opacity: .06;
}
.di-tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.di-tags span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.di-tags .i { width: 12px; height: 12px; }
.di-tags .t-white { background: #fff; color: var(--brand); }
.di-tags .t-blue { background: var(--brand); color: #fff; }
.di-wave { position: relative; z-index: 1; margin: auto 0 0; display: flex; align-items: center; gap: 4px; height: 56px; }
.di-wave i { flex: 1; border-radius: 3px; background: rgba(255,255,255,.9); }
.di-wave i:nth-child(n+14) { background: rgba(255,255,255,.3); }
.di-name { position: relative; z-index: 1; margin-top: 18px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.di-name span { font-weight: 500; opacity: .8; }
.di-roles { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.di-roles span { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.di-roles span.on { background: var(--brand); box-shadow: inset 0 0 0 1px #6F95F6; }
.di-actions { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; text-align: center; }
.di-actions li { display: grid; justify-items: center; gap: 2px; }
.di-actions .round {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: #fff; color: var(--brand); box-shadow: 0 6px 16px -4px rgba(14,27,64,.28);
}
.di-actions .round.super { width: 66px; height: 66px; margin-top: -4px; margin-bottom: 4px; background: var(--brand); color: #fff; }
.di-actions .i { width: 26px; height: 26px; }
.di-actions b { font-size: 14px; font-weight: 700; }
.di-actions small { font-size: 13px; color: var(--text-2); font-weight: 500; }

/* ---------- Dark band (match & chat) ---------- */
.h-dark { color: #fff; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); padding: 32px 0; }
@media (min-width: 900px) { .h-dark { padding: 48px 0; } }
.h-dark .h-text { color: #C3CFEE; }
.h-dark .feature-media { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.h-dark .phone { box-shadow: inset 0 0 0 1.5px #4A5163, 0 30px 60px -18px rgba(0,0,0,.6); }

/* ---------- Gallery of the App Store screenshots ---------- */
.h-gallery { padding-bottom: 96px; }
.gallery { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -3px; }
.gallery ul {
  list-style: none; display: flex; gap: 14px; margin: 0 auto; width: max-content;
  padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2)) 12px;
}
.gallery li { flex: none; width: 220px; scroll-snap-align: center; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; border-radius: 22px; background: #E9EDF5; box-shadow: 0 1px 2px rgba(14,27,64,.08), 0 18px 36px -18px rgba(14,27,64,.35); }
@media (min-width: 1100px) {
  .gallery ul { gap: 20px; padding-left: 0; padding-right: 0; }
  .gallery li { width: 208px; }
}

/* ---------- Penna Plus ---------- */
.plans { display: grid; gap: 20px; max-width: 920px; margin: 0 auto; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }
.plan { padding: 30px 26px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.plan h3 img { width: 22px; height: 25px; }
.plan-price { margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--text-2); }
.plan .ticks { margin-top: 22px; }
.plan-plus { color: #fff; border: 0; background: linear-gradient(160deg, #3A6DF2 0%, #2B57CF 55%, #1D3B9A 100%); box-shadow: 0 30px 60px -24px rgba(29,59,154,.6); }
.plan-plus .plan-price { color: #D5E0FD; }
.durations { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.durations li { display: grid; gap: 2px; padding: 12px 10px; border-radius: 16px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); text-align: center; }
.durations span { font-size: 13px; font-weight: 600; color: #D5E0FD; }
.durations b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.fine { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

.invite {
  display: grid; gap: 16px; align-items: center; max-width: 920px; margin: 48px auto 0; padding: 22px;
  border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 0 var(--lip);
}
@media (min-width: 720px) { .invite { grid-template-columns: auto 1fr auto; gap: 20px; padding: 24px 28px; } }
.invite h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.invite p { font-size: 15px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.invite .code {
  justify-self: start; padding: 10px 16px; border-radius: 14px; border: 2px dashed #B9CBF7; color: var(--brand);
  font-size: 17px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- Safety ---------- */
.safety { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .safety { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .safety { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.safety li { padding: 24px; border-radius: var(--r-lg); background: var(--surface); }
.safety h3 { font-size: 18px; font-weight: 700; margin-top: 18px; letter-spacing: -0.01em; }
.safety p { font-size: 15px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.safety .icon-tile { background: #fff; }

/* ---------- FAQ additions ---------- */
#sss .faq { background: #fff; border-radius: 24px; padding: 4px 24px; border: 1px solid var(--line); }
#sss .faq details:first-child { border-top: 0; }
#sss .faq details:last-child { border-bottom: 0; }
.faq summary:focus-visible { outline-offset: 2px; }
.faq-more { text-align: center; margin-top: 28px; color: var(--text-2); font-size: 15px; }

/* ---------- Download CTA ---------- */
.h-cta {
  position: relative; overflow: hidden; color: #fff; border-radius: 36px; padding: 48px 24px;
  background: linear-gradient(160deg, #4A7BF7 0%, #3A6DF2 45%, #2B57CF 100%);
  display: grid; gap: 28px; justify-items: center; text-align: center;
}
@media (min-width: 900px) { .h-cta { padding: 72px 72px; grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 64px; align-items: center; } }
.h-cta h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.h-cta p { margin-top: 12px; font-size: 18px; color: #E2E9FD; max-width: 32em; }
.h-cta p a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.h-cta .h-actions { margin-top: 28px; }
.h-cta .pena .shadow { background: rgba(0,0,0,.18); }
@media (max-width: 899px) { .h-cta .h-actions { justify-content: center; } }

/* ---------- Bar heights (fixed, hand-shaped; no inline styles under the CSP) ---------- */
.di-wave i:nth-child(1) { height: 30%; }
.di-wave i:nth-child(2) { height: 55%; }
.di-wave i:nth-child(3) { height: 80%; }
.di-wave i:nth-child(4) { height: 45%; }
.di-wave i:nth-child(5) { height: 95%; }
.di-wave i:nth-child(6) { height: 62%; }
.di-wave i:nth-child(7) { height: 38%; }
.di-wave i:nth-child(8) { height: 74%; }
.di-wave i:nth-child(9) { height: 100%; }
.di-wave i:nth-child(10) { height: 58%; }
.di-wave i:nth-child(11) { height: 36%; }
.di-wave i:nth-child(12) { height: 66%; }
.di-wave i:nth-child(13) { height: 84%; }
.di-wave i:nth-child(14) { height: 50%; }
.di-wave i:nth-child(15) { height: 30%; }
.di-wave i:nth-child(16) { height: 56%; }
.di-wave i:nth-child(17) { height: 78%; }
.di-wave i:nth-child(18) { height: 92%; }
.di-wave i:nth-child(19) { height: 60%; }
.di-wave i:nth-child(20) { height: 42%; }
.di-wave i:nth-child(21) { height: 70%; }
.di-wave i:nth-child(22) { height: 48%; }
.di-wave i:nth-child(23) { height: 32%; }
.di-wave i:nth-child(24) { height: 22%; }

/* Phones: steps read as compact rows, icon on the left. */
@media (max-width: 799px) {
  .h-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 20px 20px 20px 18px; }
  .h-step-icon { grid-row: span 2; }
  .h-step h3 { margin-top: 0; font-size: 20px; padding-right: 28px; }
  .h-step p { margin-top: 4px; font-size: 15px; }
  .h-step-num { top: 22px; right: 20px; }
}
@media (max-width: 639px) {
  .safety { gap: 12px; }
  .safety li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; }
  .safety .icon-tile { grid-row: span 2; }
  .safety h3 { margin-top: 2px; }
  .safety p { margin-top: 4px; }
}
