/* ============================================================
   IC LINKS CO — Content pages (Our Story, How It Works,
   Gift, Contact, Account)
   ============================================================ */

/* ── Legal pages (Privacy, Terms, Shipping & Returns) — dense document-
   style prose, not a marketing section, so h2 needs to be much smaller
   than its sitewide hero-section size (clamp(2rem,4vw,3.1rem)), and the
   global `ul { list-style: none }` reset needs bullets put back for a
   plain reference list to actually read as a list. ── */
.legal-copy h2 { font-size: 1.4rem; letter-spacing: normal; margin: 2.25rem 0 0.75rem; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { margin-bottom: 1rem; }
.legal-copy ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-copy li { color: var(--charcoal-mid); line-height: 1.85; margin-bottom: 0.4rem; }
.legal-copy a { color: var(--rose-dark); text-decoration: underline; }

/* ── Page hero with a photo alongside the text (how-it-works) ── */
/* Same trim as .coll-hero in shop.css (was the base .page-hero 5.5rem/
   4.5rem) -- hugs the 320px circle instead of floating it in a tall bar. */
.page-hero-split { padding: 1.75rem 0 1.5rem; }
.page-hero-split .container { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.page-hero-text { flex: 1; min-width: 280px; }
.page-hero-photo {
  /* Matches the collection-page hero emblem size (.coll-hero-emblem in
     shop.css) -- was 260px. */
  width: 320px; height: 320px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35); box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .page-hero-photo { display: none; }
}

/* ── Story blocks (alternating image + text) ── */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.story-block + .story-block { margin-top: 4.5rem; }
.story-block.reverse .story-visual { order: 2; }
.story-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--plum-light), var(--rose-light));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.story-visual.alt { background: linear-gradient(160deg, var(--rose-light), var(--ivory-deep)); }
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.story-visual .emblem { color: rgba(255,255,255,0.85); }
.story-visual .emblem svg { width: 96px; height: 96px; stroke-width: 1; }
.story-block h2 { margin-bottom: 0.5rem; }
.story-block p + p { margin-top: 1rem; }
.signature {
  font-family: var(--font-display); font-style: italic; font-size: 1.7rem;
  color: var(--rose-dark); margin-top: 1.5rem;
}
.signature small { display: block; font-family: var(--font-body); font-style: normal;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal-light); margin-top: 0.3rem; }

/* ── Values row ── */
.values-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.value-pill {
  text-align: center; padding: 1.75rem 1rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: var(--trans);
}
.value-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.value-pill .vp-ic {
  width: 48px; height: 48px; margin: 0 auto 0.9rem; border-radius: 14px;
  background: var(--plum-mist); color: var(--plum-dark);
  display: flex; align-items: center; justify-content: center;
}
.value-pill .vp-ic svg { width: 24px; height: 24px; stroke-width: 1.5; }
.value-pill h4 { color: var(--charcoal); font-size: 0.92rem; }

/* ── FAQ accordion ── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--charcoal);
}
.faq-q .faq-icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; transition: transform var(--trans); color: var(--rose-dark); }
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 0 1.4rem; font-size: 0.96rem; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.contact-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-soft);
}
.contact-form .grid-2 { gap: 1.25rem; }
.contact-info-card {
  background: var(--plum-mist); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem;
}
.contact-info-card h3 { margin-bottom: 1.25rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.6rem 0; font-size: 0.92rem; color: var(--charcoal-mid); }
.contact-info-item svg { width: 20px; height: 20px; color: var(--plum-dark); flex-shrink: 0; margin-top: 2px; }
.contact-info-item a { color: var(--charcoal); }
.contact-info-item a:hover { color: var(--rose-dark); }
.contact-support {
  background: var(--rose-mist); border-left: 4px solid var(--rose);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; font-size: 0.86rem; color: var(--charcoal-mid);
}
.contact-support strong { color: var(--rose-dark); }
.form-success { text-align: center; padding: 2rem; }
.form-success svg { width: 54px; height: 54px; color: var(--plum); margin: 0 auto 1rem; }

/* ── Gift ── */
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.gift-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--trans);
}
.gift-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.gift-top { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; }
.gift-top svg { width: 56px; height: 56px; stroke-width: 1.3; }
.gift-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.gift-body .gift-for { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-dark); margin-bottom: 0.4rem; }
.gift-body h3 { margin-bottom: 0.5rem; }
.gift-body p { font-size: 0.9rem; flex: 1; margin-bottom: 1.1rem; }

/* ── How-it-works ribbon ── */
.ribbon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ribbon-step { text-align: center; padding: 0 1rem; }
.ribbon-num {
  font-family: var(--font-display); font-size: 2.6rem; color: var(--gold);
  line-height: 1; margin-bottom: 0.75rem;
}

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; max-width: 820px; margin: 0 auto; }
/* Three packages (2026-09 revamp) rather than the original two, so the grid
   needs a third track instead of leaving one card alone on a second row. */
.pricing-grid-tri { grid-template-columns: repeat(3, 1fr); max-width: 1040px; }
.pricing-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.25rem 2rem; text-align: center; transition: var(--trans);
  display: flex; flex-direction: column;
}
.pricing-card.featured, .pricing-card.is-selected-plan { border-color: var(--plum); box-shadow: var(--shadow-card); }
.pricing-card .btn { margin-top: auto; }
.pricing-card h3 { margin-bottom: 0.75rem; }
.pricing-card .price-tag { margin-bottom: 0.35rem; }
.pricing-note { font-size: 0.85rem; color: var(--charcoal-light); margin-bottom: 1.5rem; }
.pricing-note + .pricing-note { margin-top: -1rem; }
.pricing-best-badge {
  align-self: center; font-size: 0.85rem; padding: 0.55rem 1.4rem; letter-spacing: 0.14em;
  background: var(--plum); color: var(--white); box-shadow: 0 8px 20px rgba(71,22,62,0.4);
  margin-bottom: 1rem;
}
.pricing-includes { list-style: none; text-align: left; margin: 0 0 1.75rem; display: grid; gap: 0.65rem; }
.pricing-includes li { position: relative; padding-left: 1.6rem; font-size: 0.92rem; color: var(--charcoal-mid); }
.pricing-includes li::before {
  content: ''; position: absolute; left: 0; top: 0.3rem; width: 16px; height: 16px;
  background: var(--plum-mist); border-radius: 50%;
}
.pricing-includes li::after {
  content: ''; position: absolute; left: 4.5px; top: 0.55rem; width: 7px; height: 4px;
  border-left: 1.5px solid var(--plum-dark); border-bottom: 1.5px solid var(--plum-dark); transform: rotate(-45deg);
}

.pricing-fineprint {
  max-width: 620px; margin: 2rem auto 0; padding: 1.5rem 2rem;
  background: var(--ivory-dark); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.pricing-fineprint .pricing-includes { margin: 0; }

.pricing-gift {
  margin-top: 3rem; padding: 2.25rem 2.5rem; text-align: center;
  background: var(--rose-mist); border-radius: var(--radius-lg);
}
.pricing-gift h3 { margin: 0.35rem 0 1rem; }
.pricing-gift > p { max-width: 560px; margin: 0 auto 1.5rem; font-size: 0.95rem; color: var(--charcoal-mid); }
.pricing-gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; text-align: left; max-width: 720px; margin: 0 auto; }
.pricing-gift-option h4 { margin-bottom: 0.4rem; color: var(--charcoal); }
.pricing-gift-option p { font-size: 0.9rem; margin: 0; }

/* The three-up needs to break earlier than the two-up: three cards of this
   width are already cramped well before 700px. */
@media (max-width: 940px) { .pricing-grid-tri { grid-template-columns: 1fr; max-width: 460px; } }
@media (max-width: 700px) {
  .pricing-grid, .pricing-gift-grid { grid-template-columns: 1fr; }
}

/* ── Auth / Account ── */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: 2.5rem; overflow: hidden;
}
.auth-tabs { display: flex; gap: 0.5rem; background: var(--ivory-dark); border-radius: var(--radius-pill); padding: 0.3rem; margin-bottom: 2rem; }
.auth-tab {
  flex: 1; padding: 0.65rem; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--charcoal-mid); transition: var(--trans);
}
.auth-tab.active { background: var(--white); color: var(--charcoal); box-shadow: 0 2px 8px rgba(56,53,47,0.08); }
.auth-note {
  margin-top: 1.5rem; text-align: center; font-size: 0.82rem; color: var(--charcoal-light);
}
.auth-soon {
  margin-top: 1.5rem; background: var(--plum-mist); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: 0.84rem; color: var(--plum-dark); text-align: center;
}
.account-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.account-perk { text-align: center; }
.account-perk .ap-ic { width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 14px; background: var(--rose-mist); color: var(--rose-dark); display: flex; align-items: center; justify-content: center; }
.account-perk .ap-ic svg { width: 26px; height: 26px; stroke-width: 1.5; }

/* Dashboard (account.html signed-in view) -- Order History, My Journey,
   Journey History, Wishlist. Was completely unstyled (bare text stacked in
   the page), which read as fragmented; a plain contained card per section
   gives each one a clear edge instead of everything running together. */
.dashboard-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
}
.dashboard-block h3 { margin-bottom: 0.25rem; }

/* Order History -- itemized as an actual aligned matrix (Item / Qty / Price
   columns) instead of a run-on "Bracelet x1, Spacer x3" sentence. */
.order-card + .order-card { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.order-card-head { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.6rem; }
.order-items-matrix { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.order-items-row {
  display: grid; grid-template-columns: 1fr 50px 90px; gap: 0.5rem;
  padding: 0.55rem 0.9rem; font-size: 0.88rem;
}
.order-items-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.order-items-row span:nth-child(2) { text-align: center; }
.order-items-row span:nth-child(3) { text-align: right; }
.order-items-header {
  background: var(--ivory-dark, #f7f3ee); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal-light);
}
.order-item-variant { color: var(--charcoal-light); font-size: 0.85em; }
.order-no-items { margin: 0; font-size: 0.85rem; }
@media (max-width: 480px) {
  .order-items-row { grid-template-columns: 1fr 36px 70px; font-size: 0.82rem; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .story-block { grid-template-columns: 1fr; gap: 2rem; }
  .story-block.reverse .story-visual { order: 0; }
  .story-visual { max-width: 440px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .values-row { grid-template-columns: repeat(3, 1fr); }
  .gift-grid, .ribbon, .account-perks { grid-template-columns: repeat(2, 1fr); }
  .ribbon { gap: 2.5rem; }
}
@media (max-width: 600px) {
  .values-row, .gift-grid, .ribbon, .account-perks { grid-template-columns: 1fr; }
  .contact-form, .auth-card { padding: 1.75rem; }
}
