/* ==========================================================================
   SAMPLE — marketing site design
   ==========================================================================
   A deliberately different design language from the portfolio that hosts it:
   light, warm, generous, serif headlines, a single ink colour doing the work.
   A portfolio that shows one look only proves you can build one look.

   Everything is scoped under .smp so it cannot leak into the site around it.
   ========================================================================== */

.smp {
  --ink:        #17171c;
  --ink-2:      #45454f;
  --ink-3:      #63636d;   /* 5.7:1 on the paper; #74747f was 4.4 and failed */
  --paper:      #fbf9f6;
  --paper-2:    #f2ede6;
  --card:       #ffffff;
  --rule:       #e5ded4;
  --rule-2:     #d3c9bb;
  --brand:      #4338ca;
  --brand-2:    #6d5ce7;
  --brand-wash: #eeecfb;
  --gold:       #8a6410;   /* 4.9:1 on the wash; #b4801f was 3.2 and failed */
  --gold-wash:  #fdf4e3;

  --smp-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --smp-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --smp-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --smp-shadow: 0 1px 2px rgba(23, 23, 28, .04), 0 12px 32px -12px rgba(23, 23, 28, .12);
  --smp-shadow-lg: 0 2px 4px rgba(23, 23, 28, .05), 0 40px 80px -32px rgba(23, 23, 28, .28);

  background: var(--paper);
  color: var(--ink);
  font-family: var(--smp-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* This sample is a fixed light design on purpose — it is a specimen, not a
   component of the surrounding site, so it does not follow the site's theme. */
.smp *, .smp *::before, .smp *::after { box-sizing: border-box; }
.smp img, .smp svg { display: block; max-width: 100%; }
.smp a { color: inherit; text-decoration: none; }
.smp ::selection { background: var(--brand); color: #fff; }

.smp-wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

/* ------------------------------------------------------------- the label --- */

/* Permanent, and deliberately not subtle: nobody should be able to screenshot
   this and present it as a real company's website. */
.smp-flag {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding: .6rem clamp(1rem, 4vw, 2rem);
  background: #17171c;
  color: #e8e6f5;
  font-family: var(--smp-mono);
  font-size: .72rem;
  letter-spacing: .04em;
}
.smp-flag b { color: #a5b4fc; font-weight: 500; }
.smp-flag a {
  margin-left: auto;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 1px;
  white-space: nowrap;
}
.smp-flag a:hover { border-bottom-color: #fff; }

/* -------------------------------------------------------------- typography -- */

.smp h1, .smp h2, .smp h3 {
  font-family: var(--smp-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
.smp h1 { font-size: clamp(2.9rem, 6.4vw, 4.9rem); }
.smp h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.smp h3 { font-size: 1.28rem; font-family: var(--smp-sans); font-weight: 600; letter-spacing: -0.015em; }
.smp p { margin: 0 0 1.1em; }
.smp .lead { font-size: clamp(1.06rem, 1.7vw, 1.28rem); color: var(--ink-2); line-height: 1.55; }

.smp-eyebrow {
  display: inline-block;
  font-family: var(--smp-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.smp-section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.smp-section--tint { background: var(--paper-2); }
.smp-center { text-align: center; }
.smp-center .lead { max-width: 40rem; margin-inline: auto; }

/* ------------------------------------------------------------------- nav --- */

.smp-nav {
  position: sticky;
  top: 2.2rem;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.smp-nav.is-stuck { border-bottom-color: var(--rule); }
.smp-nav__in {
  display: flex;
  /* The nav is logo + links + call to action on one line. At 320 the button
     ran off the end and was clipped rather than reachable; the gap has to
     shrink too or wrapping alone still leaves it short. */
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.6rem, 3vw, 2rem);
  min-height: 4.5rem;
}
.smp-logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; letter-spacing: -0.02em; font-size: 1.06rem; }
.smp-logo svg { width: 26px; height: 26px; }
.smp-nav__links { display: flex; gap: 1.6rem; margin-left: 1rem; }
.smp-nav__links a { color: var(--ink-2); font-size: .93rem; transition: color .2s; }
.smp-nav__links a:hover { color: var(--ink); }
.smp-nav__cta { margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

@media (max-width: 54rem) {
  .smp-nav__links { display: none; }
}

/* --------------------------------------------------------------- buttons --- */

.smp-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: inherit;
  font-size: .93rem;
  font-weight: 500;
  padding: .68rem 1.25rem;
  border-radius: 9px;
  border: 1px solid var(--rule-2);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.4,.64,1), box-shadow .2s, background .2s, border-color .2s;
}
.smp-btn:hover { transform: translateY(-1px); box-shadow: var(--smp-shadow); }
.smp-btn:active { transform: translateY(0); }
.smp-btn svg { width: 15px; height: 15px; }

/*
 * `.smp` prefixed, and it has to be. These buttons are <a> elements, and the
 * blanket `.smp a { color: inherit }` above scores (0,1,1) against a bare
 * `.smp-btn--primary`'s (0,1,0) - so the plain version lost, and every primary
 * call to action on the page rendered near-black on indigo at 2.3:1. It looked
 * deliberate, which is exactly why it survived this long.
 */
.smp .smp-btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(67, 56, 202, .3), 0 8px 20px -8px rgba(67, 56, 202, .5);
}
.smp .smp-btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.smp .smp-btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.smp .smp-btn--ghost:hover { color: var(--ink); box-shadow: none; }
.smp-btn--lg { font-size: 1rem; padding: .85rem 1.6rem; }

/* ------------------------------------------------------------------ hero --- */

.smp-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.smp-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .smp-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.smp-hero h1 em { font-style: italic; color: var(--brand); }
.smp-hero .lead { max-width: 30rem; }
.smp-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.smp-hero__note { margin-top: 1.5rem; font-size: .85rem; color: var(--ink-3); }

.smp-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .32rem .8rem .32rem .4rem;
  border-radius: 99px;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.smp-pill b {
  background: var(--brand);
  color: #fff;
  border-radius: 99px;
  padding: .1rem .5rem;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* The product shot. Drawn, not photographed, so it stays sharp and weightless. */
.smp-shot {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--smp-shadow-lg);
  overflow: hidden;
}
.smp-shot__bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.smp-shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); display: block; }
.smp-shot__bar span {
  margin-left: .6rem;
  font-family: var(--smp-mono);
  font-size: .68rem;
  color: var(--ink-3);
}
.smp-shot svg { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------- trusted --- */

.smp-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-block: 2.5rem;
  border-block: 1px solid var(--rule);
}
.smp-marks p {
  width: 100%;
  text-align: center;
  margin: 0 0 .5rem;
  font-family: var(--smp-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* Invented marks, drawn as abstract shapes. Real logos here would be a lie
   about who uses a product that does not exist. */
.smp-marks svg { height: 22px; width: auto; opacity: .42; }

/* -------------------------------------------------------------- features --- */

.smp-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.smp-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.6rem;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
}
.smp-card:hover { transform: translateY(-3px); box-shadow: var(--smp-shadow); border-color: var(--rule-2); }
.smp-card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-wash);
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.smp-card__icon svg { width: 19px; height: 19px; }
.smp-card p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* Two-up feature with a drawing beside it. */
.smp-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 58rem) {
  .smp-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smp-split--flip > *:first-child { order: 2; }
}
.smp-checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.smp-checks li { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: start; color: var(--ink-2); font-size: .95rem; }
.smp-checks svg { width: 20px; height: 20px; color: var(--brand); margin-top: .15rem; }

/* ---------------------------------------------------------------- steps --- */

.smp-steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.smp-step { position: relative; padding-top: 2.6rem; }
.smp-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--smp-mono);
  font-size: .8rem;
  color: var(--brand);
  border: 1px solid var(--rule-2);
  border-radius: 99px;
  padding: .3rem .7rem;
  background: var(--card);
}
.smp-step p { color: var(--ink-2); font-size: .93rem; }

/* -------------------------------------------------------------- pricing --- */

.smp-toggle {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  border-radius: 99px;
  border: 1px solid var(--rule);
  background: var(--card);
  margin-bottom: 2.5rem;
}
.smp-toggle button {
  font: inherit;
  font-size: .88rem;
  border: 0;
  background: none;
  color: var(--ink-3);
  padding: .45rem 1.1rem;
  border-radius: 99px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.smp-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.smp-toggle .save { font-size: .72rem; color: var(--gold); background: var(--gold-wash); border-radius: 99px; padding: .18rem .5rem; margin-left: .4rem; }

.smp-tiers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: start; text-align: left; }
.smp-tier {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.smp-tier--best { border-color: var(--brand); box-shadow: 0 24px 60px -30px rgba(67, 56, 202, .55); }
.smp-tier__flag {
  position: absolute;
  top: -.7rem; left: 1.8rem;
  background: var(--brand);
  color: #fff;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 99px;
  padding: .25rem .7rem;
}
.smp-tier h3 { margin: 0; }
.smp-price { font-family: var(--smp-serif); font-size: 3rem; line-height: 1; letter-spacing: -0.03em; }
.smp-price small { font-family: var(--smp-sans); font-size: .88rem; color: var(--ink-3); letter-spacing: 0; }
.smp-tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .91rem; color: var(--ink-2); }
.smp-tier li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; align-items: start; }
.smp-tier li svg { width: 18px; height: 18px; color: var(--brand); margin-top: .16rem; }
.smp-tier .smp-btn { justify-content: center; margin-top: auto; }

/* ------------------------------------------------------------------ faq --- */

.smp-faq { max-width: 44rem; margin-inline: auto; border-top: 1px solid var(--rule); }
.smp-faq details { border-bottom: 1px solid var(--rule); }
.smp-faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.02rem;
  list-style: none;
}
.smp-faq summary::-webkit-details-marker { display: none; }
.smp-faq summary::after {
  content: "";
  margin-left: auto;
  width: 10px; height: 10px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
  flex: none;
}
.smp-faq details[open] summary::after { transform: rotate(-135deg); }
.smp-faq p { color: var(--ink-2); font-size: .95rem; padding-bottom: 1.25rem; margin: 0; max-width: 40rem; }

/* ------------------------------------------------------------------ cta --- */

.smp-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  /* The glow inside is 40rem across on purpose; without this it escapes the
     panel and widens the whole document on a narrow phone. */
  overflow: hidden;
  overflow: hidden;
}
.smp-cta h2 { color: #fff; }
.smp-cta .lead { color: #b9b7c6; max-width: 34rem; margin-inline: auto; }
.smp-cta .smp-btn { background: #fff; border-color: #fff; color: var(--ink); }
.smp-cta .smp-btn--ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.smp-cta__glow {
  position: absolute;
  width: 40rem; height: 40rem;
  left: 50%; top: -60%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(109, 92, 231, .5), transparent 62%);
  pointer-events: none;
}
.smp-cta > * { position: relative; }

/* --------------------------------------------------------------- footer --- */

.smp-foot { border-top: 1px solid var(--rule); padding-block: 3.5rem 2.5rem; }
.smp-foot__cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.smp-foot h3 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1rem; font-family: var(--smp-mono); font-weight: 400; }
.smp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.smp-foot a { color: var(--ink-2); font-size: .92rem; transition: color .2s; }
.smp-foot a:hover { color: var(--ink); }
.smp-foot__base {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: var(--ink-3);
}

/* ------------------------------------------------------------ reveal ---- */

.js .smp [data-up] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--d, 0ms);
}
.js .smp [data-up].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .smp [data-up] { opacity: 1; transform: none; }
  .smp * { transition-duration: .01ms !important; }
}

/* The site-wide focus ring is the portfolio's teal. Inside a sample that
   reads as a leak from the host page, so each one states its own. */
.smp :focus-visible { outline-color: var(--brand); }
