Pricing Card ·

jnevius

Notes from jnevius

Testing to see how Gemini 3.8 would style it.

AI-assistedupdated 5w ago
Preview
:root {
      --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      --bg-page: #0b0f19;
      --bg-card: rgba(17, 24, 39, 0.85);
      --card-border: rgba(99, 102, 241, 0.25);
      --card-border-glow: rgba(99, 102, 241, 0.45);
      --badge-bg: rgba(99, 102, 241, 0.12);
      --badge-border: rgba(129, 140, 248, 0.35);
      --badge-text: #a5b4fc;
      --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
      --accent-glow: rgba(139, 92, 246, 0.35);
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-subtle: #64748b;
      --icon-check: #34d399;
      --shadow-elevation: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 
                          0 0 0 1px var(--card-border),
                          0 0 35px -5px rgba(99, 102, 241, 0.18);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 2rem 1rem;
      background-color: var(--bg-page);
      background-image: 
        radial-gradient(circle at 50% 15%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(217, 70, 239, 0.08) 0%, transparent 40%);
      font-family: var(--font-family);
      color: var(--text-main);
      -webkit-font-smoothing: antialiased;
      line-height: 1.5;
    }

    .plan {
      position: relative;
      width: 100%;
      max-width: 400px;
      padding: 2.25rem 2rem 2rem;
      border-radius: 1.5rem;
      background: var(--bg-card);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: var(--shadow-elevation);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                  box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                  border-color 0.3s ease;
      display: flex;
      flex-direction: column;
      gap: 1.75rem;
      overflow: hidden;
    }

    .plan::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1.5px;
      background: linear-gradient(135deg, rgba(165, 180, 252, 0.6) 0%, rgba(99, 102, 241, 0.2) 40%, rgba(217, 70, 239, 0.3) 100%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .plan:hover {
      transform: translateY(-4px);
      box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.65), 
                  0 0 0 1px var(--card-border-glow),
                  0 0 50px -5px rgba(139, 92, 246, 0.28);
    }

    .plan header {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
    }

    .plan-badge {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.35rem 0.85rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: var(--badge-bg);
      color: var(--badge-text);
      border: 1px solid var(--badge-border);
      box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    }

    .plan-name {
      font-size: 1.625rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text-main);
      margin-top: 0.25rem;
    }

    .plan-price {
      display: flex;
      align-items: baseline;
      gap: 0.2rem;
      margin-top: 0.25rem;
    }

    .plan-price .currency {
      font-size: 1.65rem;
      font-weight: 600;
      color: var(--text-muted);
      transform: translateY(-0.35em);
    }

    .plan-price .amount {
      font-size: 3.25rem;
      font-weight: 800;
      line-height: 1;
      letter-spacing: -0.04em;
      background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .plan-price .period {
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--text-muted);
      margin-left: 0.25rem;
    }

    .plan-tagline {
      font-size: 0.925rem;
      line-height: 1.55;
      color: var(--text-muted);
      margin-top: 0.25rem;
    }

    .plan-features {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.875rem;
      padding: 1.25rem 0;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .plan-features li {
      position: relative;
      padding-left: 1.85rem;
      font-size: 0.935rem;
      color: #e2e8f0;
      display: flex;
      align-items: center;
      transition: color 0.2s ease;
    }

    /* Green checkmark for active features */
    .plan-features li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 1.15rem;
      height: 1.15rem;
      border-radius: 50%;
      background-color: rgba(52, 211, 153, 0.15);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2334d399'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center;
      background-size: 0.75rem;
    }

    /* Styling disabled / unavailable features */
    .plan-features li.unavailable {
      color: var(--text-subtle);
      text-decoration: line-through;
      text-decoration-color: rgba(100, 116, 139, 0.5);
    }

    .plan-features li.unavailable::before {
      background-color: rgba(100, 116, 139, 0.12);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
      background-size: 0.65rem;
    }

    .plan footer {
      display: flex;
      flex-direction: column;
      gap: 0.875rem;
      text-align: center;
    }

    .plan-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.95rem 1.75rem;
      border-radius: 0.75rem;
      background: var(--accent-gradient);
      color: #ffffff;
      font-size: 0.975rem;
      font-weight: 700;
      text-decoration: none;
      letter-spacing: 0.01em;
      box-shadow: 0 4px 18px var(--accent-glow);
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer;
    }

    .plan-cta:hover {
      box-shadow: 0 8px 26px rgba(139, 92, 246, 0.55);
      transform: translateY(-2px);
      filter: brightness(1.08);
    }

    .plan-cta:active {
      transform: translateY(0);
      box-shadow: 0 2px 10px var(--accent-glow);
    }

    .plan-cta:focus-visible {
      outline: 2px solid #c084fc;
      outline-offset: 3px;
    }

    .plan-fineprint {
      font-size: 0.775rem;
      color: var(--text-subtle);
    }

Discussion 0

    Sign in to join the discussion.