/* Friemind landing — page-specific styles */

/* ---------- HERO ---------- */
.hero {
  padding: 56px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
}

.hero__strike {
  position: relative;
  display: inline-block;
  color: var(--fm-text-3);
}
.hero__strike::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  top: 56%;
  height: 6px;
  background: var(--fm-accent);
  border-radius: 3px;
  transform: rotate(-2deg);
}
.hero__hint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--fm-text-3);
  letter-spacing: 0.2px;
}

.hero__board {
  position: relative;
  height: 620px;
  background: var(--fm-surface-2);
  border-radius: 24px;
  border: 1px solid var(--fm-stroke-2);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.015) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0,0,0,0.015) 25%, transparent 25%);
  background-size: 8px 8px;
}
.hero__board .postit { position: absolute; }
.hero__handhint {
  position: absolute;
  top: -8px; right: 24px;
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 720px) {
  .hero__board { height: 480px; }
}

/* ---------- THESIS ---------- */
.thesis__inner {
  max-width: 980px;
  margin: 0 auto;
}
.thesis__quote {
  font-family: var(--hand);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  color: var(--fm-text);
  text-align: center;
  text-wrap: balance;
  margin-bottom: 72px;
}
.thesis__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 720px) {
  .thesis__cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FEATURE LAYOUT ---------- */
.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature__grid--reverse .feature__copy { order: 2; }
.feature__grid--reverse .feature__phone,
.feature__grid--reverse .feature__envelopes,
.feature__grid--reverse .feature__wish { order: 1; }
@media (max-width: 960px) {
  .feature__grid { grid-template-columns: 1fr; gap: 48px; }
  .feature__grid--reverse .feature__copy { order: 1; }
  .feature__grid--reverse .feature__phone,
  .feature__grid--reverse .feature__envelopes,
  .feature__grid--reverse .feature__wish { order: 2; }
}

.feature__bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  color: var(--fm-text-2);
  line-height: 1.55;
}
.feature__bullets li {
  padding-left: 22px;
  position: relative;
}
.feature__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--fm-accent);
  transform: rotate(8deg);
}
.feature__bullets b { color: var(--fm-text); font-weight: 700; }

.feature__phone {
  display: flex; justify-content: center;
}

/* ---------- PHONE: WALL ---------- */
.phone-wall {
  padding: 8px 14px 0;
  height: calc(100% - 47px);
}
.phone-wall__head {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0 16px;
}
.phone-wall__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.phone-wall__board {
  position: relative;
  height: 580px;
  background: var(--fm-surface-2);
  border-radius: 16px;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.015) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0,0,0,0.015) 25%, transparent 25%);
  background-size: 8px 8px;
}

/* ---------- PHONE: JAR ---------- */
.phone-jar {
  padding: 8px 22px 0;
  text-align: center;
  height: calc(100% - 47px);
  display: flex; flex-direction: column; align-items: center;
}
.phone-jar__title { font-weight: 700; font-size: 16px; margin-top: 4px; }
.phone-jar__sub { font-size: 12px; color: var(--fm-text-3); letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 12px; }
.jar-vessel { margin-bottom: 14px; }
.phone-jar__count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}
.phone-jar__count > div {
  background: var(--fm-card);
  border: 1px solid var(--fm-stroke-2);
  border-radius: 12px;
  padding: 8px 0;
  display: flex; flex-direction: column;
}
.phone-jar__count span {
  font-size: 22px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fm-text);
  line-height: 1;
}
.phone-jar__count small {
  font-size: 10px;
  color: var(--fm-text-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
}
.phone-jar__inputrow { width: 100%; margin-bottom: 12px; }
.phone-jar__inputbox {
  background: var(--fm-card);
  border: 1px dashed var(--fm-stroke);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: var(--fm-text-3);
  text-align: left;
}
.phone-jar__counter {
  font-size: 11px;
  color: var(--fm-text-3);
}

/* ---------- ENVELOPES ---------- */
.feature__envelopes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}
.envelope {
  background: var(--c, var(--postit-cream));
  border-radius: 8px;
  height: 180px;
  position: relative;
  transform: rotate(var(--rot, 0deg));
  box-shadow: var(--shadow-postit);
  padding: 24px;
  display: flex; align-items: flex-end;
  transition: transform .3s;
}
.envelope:hover { transform: rotate(0deg) translateY(-4px); }
.envelope::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), transparent);
  border-radius: 8px 8px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.envelope__seal {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--fm-accent);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}
.envelope__seal::after {
  content: "F";
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #FAF9F5;
  font-weight: 800;
  font-size: 16px;
  font-family: var(--hand);
}
.envelope__label {
  font-size: 14px;
  color: var(--fm-text);
  line-height: 1.4;
}
.envelope__label b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-top: 2px;
}

/* ---------- WISHLIST ---------- */
.feature__wish {
  display: flex; justify-content: center;
}
.wishcard {
  background: var(--fm-card);
  border: 1px solid var(--fm-stroke-2);
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-card);
}
.wishcard__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fm-stroke-2);
}
.wishcard__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.wishitem {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--fm-stroke-2);
  gap: 14px;
}
.wishitem:last-child { border-bottom: none; }
.wishitem__name { font-weight: 600; font-size: 15px; }
.wishitem__from { font-size: 12px; color: var(--fm-text-3); margin-top: 2px; }
.wishitem__btn {
  background: var(--fm-text);
  color: var(--fm-surface);
  border: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.wishitem__btn:hover { background: var(--fm-accent); }
.wishitem--taken { opacity: 0.55; }
.wishitem__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--fm-text-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

/* ---------- PRINCIPLES ---------- */
.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .principles__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles__grid { grid-template-columns: 1fr; } }

.principle {
  background: var(--fm-card);
  border: 1px solid var(--fm-stroke-2);
  border-radius: 18px;
  padding: 28px;
  position: relative;
}
.principle__num {
  font-family: var(--hand);
  font-size: 32px;
  color: var(--fm-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.principle h3 {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.4px; margin-bottom: 8px;
}
.principle p {
  font-size: 14px;
  color: var(--fm-text-2);
  line-height: 1.55;
}

/* ---------- DOWNLOAD ---------- */
.download__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
