/* Pricing, under the security section. Five plans cheapest first, as Raspberry lays them out: the $5 trial lowers
   the first step, Team sits in the middle in the dark of the section above so the eye lands on it, Enterprise closes
   the row with a conversation instead of a price. Below: the refund promise and the pre-launch note. */

.price { padding: 14vh var(--edge) 12vh; background: var(--ground); }
.price-head { max-width: 860px; margin: 0 auto; text-align: center; }
.price .eyebrow { margin: 0; }
.price h2 { margin: 18px 0 0; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.price .lede { margin: 18px auto 0; max-width: 60ch; color: var(--muted); font-size: 18px; }

.plans {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1280px;
  margin: 56px auto 0;
  align-items: stretch;
}
.plan {
  position: relative;
  /* the five rows of every card (name, who, price, button, list) are shared across the row of cards,
     so a price that wraps to two lines (the trial's) moves every button down together */
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  padding: 26px 22px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.plan h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.plan-who { margin: 6px 0 0; min-height: 2.9em; color: var(--muted); font-size: 15px; line-height: 1.4; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 18px 0 0; }
.plan-price b { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-price s { color: var(--muted); font-size: 20px; font-weight: 500; text-decoration-thickness: 1.5px; }
.plan-price s[hidden] { display: none; }

/* Aylık / Yıllık: one pill under the lede, Yıllık pressed first; shown only once price.js runs */
.period { display: inline-flex; gap: 4px; margin: 32px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.period[hidden] { display: none; }
.period-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.period-tab:hover { color: var(--ink); }
.period-tab[aria-pressed="true"] { background: #141518; color: #f2f2ee; }
.period-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.period-save { color: var(--brand); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.period-tab[aria-pressed="true"] .period-save { color: #a9c6ea; }
.plan .btn { justify-content: center; width: 100%; margin-top: 22px; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { color: #fff; box-shadow: none; }
.plan-list { display: grid; align-content: start; gap: 10px; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; line-height: 1.4; }
.plan-list li { position: relative; padding-left: 22px; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.soon {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 61, 116, 0.08);
  color: var(--brand);
  font: 500 11px var(--mono);
  font-style: normal;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ---------- Kumaş kartelası (Berdan and Buket, 2026-11-27): the paywall's plan cards, cut from the same cloth.
   Every card is a fabric swatch on a hang tag: an eyelet at its head, croqi's dashed topstitch running round it,
   its weave in the ground. Trial raw canvas, Pro linen, Team indigo denim sewn in gold thread, Business charcoal
   wool, Enterprise a sheet of pattern paper. The button sits under what the plan gives, as on the paywall. ---------- */
.plan {
  --c-ink: var(--ink); --c-soft: var(--muted); --c-line: rgba(21, 23, 26, 0.14); --c-tick: var(--brand);
  --stitch: rgba(21, 23, 26, 0.24); --eyelet: #c9c3b5;
  isolation: isolate; padding: 44px 22px 24px; border-color: rgba(21, 23, 26, 0.12); color: var(--c-ink);
}
.plan::after { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--stitch); border-radius: 12px; pointer-events: none; }
.plan::before {
  content: ""; position: absolute; top: 15px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--ground); box-shadow: 0 0 0 3px var(--eyelet), inset 0 1px 2px rgba(21, 23, 26, 0.35), 0 1px 0 4px rgba(21, 23, 26, 0.1);
}
.plan .plan-list { grid-row: 4; border-top-color: var(--c-line); }
.plan .btn { grid-row: 5; align-self: end; margin-top: 26px; }
.plan-who, .plan-price span, .plan-price s { color: var(--c-soft); }
.plan-list li::before { border-color: var(--c-tick); }
.plan--trial {
  border-style: solid;
  background: repeating-linear-gradient(0deg, rgba(21, 23, 26, 0.03) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(21, 23, 26, 0.03) 0 1px, transparent 1px 3px), #f2ede2;
}
.plan--pro {
  --eyelet: #bdb5a4;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(21, 23, 26, 0.035) 0 1px, transparent 1px 5px), #e5ded0;
}
.plan--pick, .plan--business {
  --c-ink: #f6f3ea; --c-soft: rgba(246, 243, 234, 0.74); --c-line: rgba(246, 243, 234, 0.18); --c-tick: #f6f3ea;
}
.plan--pick .btn, .plan--business .btn { background: #f6f3ea; color: var(--ink); box-shadow: none; }
.plan--pick .btn:hover, .plan--business .btn:hover { background: #ffffff; color: var(--ink); }
.plan--pick .soon, .plan--business .soon { background: rgba(246, 243, 234, 0.14); color: #f6f3ea; }
.plan--pick {
  --stitch: rgba(217, 165, 74, 0.85); --eyelet: #c69a4e; --c-tick: #e8bd6a;
  border-color: #1d355e; box-shadow: 0 28px 60px -30px rgba(31, 57, 102, 0.75);
  background: repeating-linear-gradient(-58deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px), repeating-linear-gradient(-58deg, transparent 0 2px, rgba(11, 26, 51, 0.08) 2px 3px),
    linear-gradient(165deg, #3a5d97 0%, #2b4a7e 42%, #203b68 100%);
}
.plan--pick .soon { background: rgba(232, 189, 106, 0.2); color: #f1d08f; }
.plan--business {
  --stitch: rgba(246, 243, 234, 0.3); --eyelet: #8d8f94;
  border-color: #141518; box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.6);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 6L6 0L12 6' stroke='%23fff' stroke-opacity='.07' fill='none'/%3E%3C/svg%3E") 0 0 / 12px 6px,
    linear-gradient(170deg, #34363b 0%, #26282c 45%, #1b1c1f 100%);
}
.plan--quote { --stitch: rgba(21, 23, 26, 0.18); background: var(--paper); }
.plan-badge {
  position: absolute; z-index: 1; margin: 0; top: 47px; right: 18px; left: auto; padding: 4px 9px; border-radius: 999px; background: #e8bd6a; color: #1d2a12;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
}

/* the one promise every plan shares: a quiet line under the cards */
.price-every { max-width: 1280px; margin: 40px auto 0; color: var(--muted); font-size: 15px; text-align: center; }

.price-note { max-width: 1280px; margin: 10px auto 0; color: var(--muted); font-size: 14px; text-align: center; }

@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .plan-who { min-height: 0; }
}
