/* English /instagram-dm-automation-free, Ink and Lime (Vytas, 2026-11-03). Template: frontend/free-plan/free_plan_ink.pug.
   Loads after ink/home.css and ink/use-case.css (the builder mocks) and only adds this page's pieces. New classes start with fp-. */

.fp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Triggers: three cards, so three columns until the row swipes on phones ---------- */
@media (min-width: 768px) {
  html body.ik:not(#_):not(#_) .ik-trg.fp-trg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
html body.ik:not(#_) .fp-trg .ik-dmcard { width: min(250px, 100%); transform: rotate(1.5deg); }
html body.ik:not(#_) .fp-trg .ik-dmcard p.ik-dm__in .ik-kw { font-size: 13px; }
html body.ik:not(#_) .fp-trg .ik-art:has(.ik-dmcard) { justify-content: center; padding-bottom: 14px; }
html body.ik:not(#_) .fp-trg .ik-post__cmt img { width: 22px; height: 22px; }

/* Story card: the shop's Story, a reply from Zoe at the bottom, as Instagram shows it. */
.fp-story { position: relative; width: 132px; overflow: hidden; border-radius: 16px; background: #222; color: #fff; transform: rotate(-2deg); }
html body.ik:not(#_) img.fp-story__pic { width: 100%; height: 176px; object-fit: cover; object-position: center 40%; }
.fp-story__top { position: absolute; z-index: 1; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: 10px 8px 14px; background: linear-gradient(rgba(0, 0, 0, .45), transparent); font-size: 11px; }
html body.ik:not(#_) .fp-story__top img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.fp-story__top b { font-weight: 600; }
.fp-story__top i { font-style: normal; opacity: .75; }
.fp-story__reply { position: absolute; left: 6px; right: 6px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 5px; border-radius: 999px; background: #fff; font-size: 11px; line-height: 1.2; color: #111; }
html body.ik:not(#_) .fp-story__reply img { flex: none; width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.fp-story__reply b { font-weight: 600; }

/* ---------- Plans: one white table on the ink band, the Free column in lime ---------- */
.fp-plans { padding: 8px; border-radius: 28px; background: #fff; color: var(--cf-text); }
html body.ik:not(#_) table.fp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 15px; line-height: 1.35; }
html body.ik:not(#_) .fp-table :is(th, td) { padding: 12px 16px; border-bottom: 1px solid var(--cf-line); text-align: left; vertical-align: middle; }
html body.ik:not(#_) .fp-table thead :is(th, td) { padding-top: 16px; padding-bottom: 14px; border-bottom: 0; }
html body.ik:not(#_) .fp-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
html body.ik:not(#_) .fp-table tbody th { font-weight: 500; color: var(--cf-text); }
/* table-layout: fixed takes column widths from the first row, so the label column width sits on the empty header cell. */
html body.ik:not(#_) .fp-table thead td { width: 34%; }
html body.ik:not(#_) .fp-table td { color: var(--cf-text-2); }
html body.ik:not(#_) .fp-table .is-free { background: #f3ffc4; color: var(--cf-text); font-weight: 500; }
html body.ik:not(#_) .fp-table thead .is-free { border-radius: 20px 20px 0 0; background: var(--cf-lime); }
html body.ik:not(#_) .fp-table tbody tr:last-child .is-free { border-radius: 0 0 20px 20px; }
.fp-table__n { display: block; font-size: 15px; font-weight: 600; }
.fp-table__p { display: block; margin-top: 2px; }
.fp-table__p b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.fp-table__p i { font-style: normal; font-size: 13px; color: var(--cf-text-3); }
.fp-table thead .is-free .fp-table__p i { color: #3d4a00; }
.fp-table caption { caption-side: top; }
.fp-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cf-ink); color: var(--cf-lime); }
.fp-no { color: #a1a1aa; font-size: 18px; }
html body.ik:not(#_) p.fp-plans__note { padding: 14px 16px 10px; font-size: 14px; line-height: 1.5; color: var(--cf-text-2); text-align: left; }
html body.ik:not(#_):not(#_) [role="main"] p.fp-plans__note a { color: var(--cf-text); }

/* ---------- Setup: the three builder pictures one height, as on the comment auto-reply page ---------- */
html body.ik.ikfp:not(#_) #setup .ik-step .ik-art { height: 214px; min-height: 0; padding: 16px; }

/* ---------- Setup step 3: the builder's Start Automation button ---------- */
.fp-start { display: block; margin-top: 10px; padding: 9px; border-radius: 10px; background: var(--cf-lime); font-size: 13px; font-weight: 600; color: #111; text-align: center; }

/* ---------- Close: the app's Usage section on the Free plan (month picker, quota line, daily bars) ---------- */
.fp-month { padding: 5px 10px; border: 1px solid var(--cf-line); border-radius: 999px; font-size: 12px; font-weight: 500; color: #52525b; }
html body.ik:not(#_) p.fp-used { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; font-size: 14px; color: #52525b; text-align: left; }
.fp-used b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; color: #111; font-variant-numeric: tabular-nums; }
.fp-meter { display: block; height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: var(--cf-mist); }
.fp-meter u { display: block; width: calc(var(--w) * 100%); height: 100%; border-radius: 999px; background: var(--cf-ink); }

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  html body.ik:not(#_) table.fp-table { font-size: 13px; }
  html body.ik:not(#_) .fp-table :is(th, td) { padding: 10px 6px; }
  html body.ik:not(#_) .fp-table tbody th { padding-left: 8px; }
  /* The label column gets the room the short values do not need. */
  html body.ik:not(#_) .fp-table thead td { width: 38%; }
  html body.ik:not(#_) .fp-table td { font-size: 12.5px; }
  html body.ik:not(#_) .fp-table thead :is(th, td) { padding-top: 12px; padding-bottom: 10px; }
  .fp-table__n { font-size: 13px; }
  .fp-table__p b { font-size: 22px; }
  .fp-table__p i { display: block; font-size: 11px; }
  html body.ik:not(#_) .fp-table thead .is-free { border-radius: 14px 14px 0 0; }
  html body.ik:not(#_) .fp-table tbody tr:last-child .is-free { border-radius: 0 0 14px 14px; }
  .fp-yes { width: 20px; height: 20px; }
  .fp-yes svg { width: 12px; height: 12px; }
  html body.ik:not(#_) p.fp-plans__note { padding: 12px 8px 6px; font-size: 13px; }
}

/* Plan header: the trial line under each price. Row labels: a short form on phones, so no row wraps past two lines. */
.fp-table__t { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--cf-text-2); }
.fp-table thead .is-free .fp-table__t { color: var(--cf-text); }
.fp-short { display: none; }
html body.ik:not(#_) .fp-table tbody :is(th, td) { padding-top: 11px; padding-bottom: 11px; }
@media (max-width: 767px) {
  /* Hidden by clipping, not display: none, so screen readers still read the full label. */
  .fp-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fp-short { display: inline; }
  .fp-table__t { font-size: 11px; line-height: 1.25; }
  html body.ik:not(#_) .fp-table tbody :is(th, td) { padding-top: 9px; padding-bottom: 9px; }
}

/* Translated plan values ("Nieograniczone", "Fortgeschritten", "Без ограничений") can be wider than a phone column; there
   they may hyphenate or break instead of running into the next cell (screen review 2026-11-07). */
@media (max-width: 600px) { html:not([lang^="en"]) body.ik:not(#_) .fp-table :is(th, td) { overflow-wrap: anywhere; hyphens: auto; } }
@media (max-width: 600px) { html:not([lang^="en"]) body.ik:not(#_) .fp-table :is(th, td) { padding-left: 8px; padding-right: 6px; } }
