/* Shared product families on home/catalog; package choices stay on the detail page. */
#grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.fam-card{--product-color:#7792b9;--product-dark:#1c2739;--product-light:#e7eef8}
.grid>a.fam-card{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);text-decoration:none;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.fam-card[data-product-art="netflix"]{--product-color:#e73145;--product-dark:#39191f;--product-light:#ffe5e8}
.fam-card[data-product-art="spotify"]{--product-color:#1dbb67;--product-dark:#143526;--product-light:#dcf6e7}
.fam-card[data-product-art="youtube"]{--product-color:#fa4545;--product-dark:#371e22;--product-light:#ffe8e5}
.fam-card[data-product-art="capcut"]{--product-color:#9297af;--product-dark:#282b3b;--product-light:#e8eaf3}
.fam-card[data-product-art="canva"]{--product-color:#8b65eb;--product-dark:#292147;--product-light:#ece4ff}
.fam-card[data-product-art="word"]{--product-color:#4189ed;--product-dark:#172b47;--product-light:#dfedff}
.fam-card[data-product-art="powerpoint"]{--product-color:#ed7952;--product-dark:#3c251d;--product-light:#ffeadf}
.fam-card[data-product-art="turnitin"]{--product-color:#14a4d9;--product-dark:#12313d;--product-light:#dff4fc}
.fam-card[data-product-art="muse"]{--product-color:#4199ed;--product-dark:#192d42;--product-light:#e2f1ff}
.fam-card[data-product-art="gemini"]{--product-color:#8c80ee;--product-dark:#292542;--product-light:#ede9ff}
.fam-art{position:relative;isolation:isolate;display:grid;place-items:center;height:128px;flex:none;overflow:hidden;background:var(--product-dark);border-bottom:1px solid color-mix(in srgb,var(--product-color) 22%,transparent)}
:root[data-theme="light"] .fam-art{background:var(--product-light)}
.fam-art::before,.fam-art::after{content:"";position:absolute;z-index:-1;width:150px;height:150px;border:1px solid color-mix(in srgb,var(--product-color) 28%,transparent);border-radius:30px;transform:rotate(-24deg)}
.fam-art::after{width:210px;height:210px;border-radius:42px}
.fam-art .tile{width:68px;height:68px;padding:13px;border-radius:18px;background:#fff;border:0;outline:0;box-shadow:none;transform:rotate(-5deg);transition:transform .2s ease}
.fam-art .tile img{transform:rotate(5deg)}
.fam-body{display:flex;flex-direction:column;flex:1;min-width:0;padding:22px}
.fam-card h3{font-size:20px;line-height:1.4;font-weight:700;letter-spacing:-.025em;min-height:2.8em;overflow-wrap:break-word;text-decoration:none}
.fam-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:auto;padding-top:20px;min-width:0}
.fam-foot .price{min-width:0;font-size:26px;line-height:1.25;letter-spacing:-.035em}
.fam-foot .price small{font-size:13px;line-height:1.5;margin:0 0 5px;font-weight:500;letter-spacing:0;color:var(--ink-soft)}
.fam-price-value{display:block;white-space:nowrap}
.fam-arrow{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:var(--surface-2);color:var(--ink-soft);margin-bottom:1px}
.fam-arrow svg{width:18px;height:18px}
.grid>a.fam-card:link,.grid>a.fam-card:visited,.grid>a.fam-card:hover,.grid>a.fam-card:active{color:var(--ink);text-decoration:none}
@media(hover:hover) and (pointer:fine){
  .grid>a.fam-card:hover{transform:translateY(-4px);border-color:var(--product-color);box-shadow:0 8px 24px #00000010}
  .fam-card:hover .tile{transform:rotate(0)}
}
@media(max-width:900px){
  #grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .grid>a.fam-card{border-radius:17px}
  .fam-art{height:96px}
  .fam-art .tile{width:54px;height:54px;padding:10px;border-radius:14px}
  .fam-art::before{width:116px;height:116px;border-radius:24px}
  .fam-art::after{width:164px;height:164px;border-radius:34px}
  .fam-body{padding:15px 14px 17px}
  .fam-card h3{font-size:16px;line-height:1.4}
  .fam-foot{padding-top:17px;gap:5px}
  .fam-foot .price{font-size:22px}
  .fam-foot .price small{font-size:12px}
  .fam-arrow{width:26px;height:26px}
  .fam-arrow svg{width:15px;height:15px}
}
@media(max-width:379px){
  #grid{gap:10px}
  .fam-art{height:86px}
  .fam-body{padding:13px 11px 15px}
  .fam-card h3{font-size:14px}
  .fam-foot .price{font-size:19px}
  .fam-arrow{width:23px;height:23px}
}
.product-package-picker{display:grid;gap:9px;margin-bottom:22px}
.product-package-picker label{font-size:13px;font-weight:600}
.product-package-picker select{width:100%;max-width:100%;font-size:13px;text-overflow:ellipsis}


/* Subtle glass-edge feedback, clipped to the outer card radius. */
.grid>a.fam-card{position:relative}
.fam-card::after{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;padding:1px;pointer-events:none;background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 55%,var(--ink)),transparent 45%,color-mix(in srgb,var(--brand) 40%,var(--ink)));mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;opacity:0;transition:opacity .16s ease}
.fam-body{transition:background-color .16s ease}
.grid>a.fam-card:active{transform:scale(.985);box-shadow:inset 0 1px 0 #ffffff30,0 4px 16px #00000012}
.fam-card:active::after{opacity:.8}
.fam-card:active .fam-body{background:color-mix(in srgb,var(--brand) 5%,var(--surface))}
@media(hover:hover) and (pointer:fine){
  .grid>a.fam-card:hover{border-color:transparent;box-shadow:inset 0 1px 0 #ffffff24,0 8px 24px -16px #0004}
  .fam-card:hover::after{opacity:.65}
}

/* Dark cards use a shared graphite surface with soft application-colored light. */
:root[data-theme="dark"] .grid>a.fam-card{background:#1b1f24;border-color:#343b43}
:root[data-theme="dark"] .fam-art{background:radial-gradient(ellipse at 50% 15%,color-mix(in srgb,var(--product-color) 25%,transparent),transparent 78%),linear-gradient(180deg,#272d34,#1d2228);border-bottom-color:#ffffff0b}
:root[data-theme="dark"] .fam-art::before,:root[data-theme="dark"] .fam-art::after{opacity:.32;border-color:color-mix(in srgb,var(--product-color) 45%,#c2cedb)}
:root[data-theme="dark"] .fam-art .tile{background:#f3f5f7;box-shadow:0 5px 16px #0003}
:root[data-theme="dark"] .fam-arrow{background:color-mix(in srgb,var(--product-color) 12%,#252b32);border-color:transparent;color:color-mix(in srgb,var(--product-color) 40%,#e4e9ef)}
