/* Public-page additions. Inline style attributes and <style> blocks from the prototypes live here
   (CSP style-src 'self'). */
.nowrap{white-space:nowrap}

/* Home: primary action and process explanation. */
.hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.site-more{position:relative;font-size:var(--fs-sm);color:var(--ink)}
.site-more summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;font-weight:600}
.site-more summary::-webkit-details-marker{display:none}
.site-more>div{position:absolute;top:calc(100% + 16px);left:-12px;min-width:180px;background:white;border:1px solid var(--border);border-radius:10px;padding:6px;box-shadow:var(--shadow-md);z-index:60}
.site-more>div a{display:flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:6px;white-space:nowrap}
.site-more>div a:hover{background:var(--surface)}

/* Home: what we do in your name (the actions an authorization can grant) */
.acts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.act{display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:12px;align-items:start;padding:var(--card-pad);background:#fff;border:1px solid var(--border);border-radius:var(--r-lg)}
.act .svc-icon{grid-row:span 2}
.act h3{font-size:var(--fs-h4);margin:2px 0 4px}
.act p{font-size:var(--fs-sm);margin:0}

/* Home: featured shop packages (only when some are featured) */
.section-head .pkg-lead{margin:6px 0 0}
.pkg-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.pkg{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.pkg:hover{text-decoration:none;border-color:var(--violet-100);box-shadow:var(--shadow-md)}
.pkg-img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;background:var(--surface);border-bottom:1px solid var(--border)}
.pkg-ph{display:grid;place-items:center;background:var(--violet-50);color:var(--violet)}
.storefront .pkg-ph .i{width:28px;height:28px;stroke-width:1.75}
.pkg-body{flex:1;display:flex;flex-direction:column;gap:4px;padding:var(--card-pad);min-width:0}
.pkg-name{font-size:var(--fs-h4);font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.pkg-sum{font-size:var(--fs-sm);color:var(--text);line-height:1.45}
.pkg-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:10px}
.pkg-price{font-size:1.0625rem;font-weight:800;color:var(--ink);letter-spacing:-.01em;font-variant-numeric:lining-nums tabular-nums}
.pkg-view{display:inline-flex;align-items:center;gap:4px;font-size:var(--fs-sm);font-weight:700;color:var(--violet)}
.pkg-view .i{transition:transform .15s}
.pkg:hover .pkg-view .i{transform:translateX(3px)}

@media (max-width:959px){
  .acts,.pkg-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .hero-actions .btn{flex:1 1 auto}
  .acts{grid-template-columns:1fr;gap:10px}
  .act{padding:14px}
  .pkg-grid{grid-template-columns:1fr;gap:10px}
  .pkg{flex-direction:row}
  .pkg-img{flex:none;width:96px;aspect-ratio:1;border-bottom:0;border-right:1px solid var(--border)}
  .pkg-body{padding:12px 14px}
}

/* Social-media service homepage. Other public pages keep their existing layout. */
.home-refresh{--fs-body:1rem;--fs-h2:clamp(1.5rem,2.4vw,2rem);--section:clamp(40px,6vw,76px)}
.home-refresh h1,.home-refresh h2{font-weight:700;letter-spacing:-.035em}
.home-refresh .nav-row{height:68px}
.home-refresh .main-nav{gap:28px}
.home-refresh .main-nav a{font-size:.875rem}
.home-refresh .nav-actions .btn{height:44px;font-size:.8125rem;padding:0 18px}
.home-refresh .hero{position:relative;isolation:isolate;padding:44px 0;background:radial-gradient(ellipse at 86% 15%,rgba(18,201,165,.28),transparent 50%),radial-gradient(ellipse at 14% 90%,rgba(91,46,255,.66),transparent 60%),#0E1330}
.home-refresh .hero::before{content:"";position:absolute;inset:0;background:url("../assets/illustrations/hero-grain.01bb946ff9b7.svg") repeat;opacity:.08;pointer-events:none;z-index:-1}
.home-refresh .hero>.container{position:relative}
.home-refresh .hero-grid{grid-template-columns:1.2fr .8fr;gap:40px}
.home-refresh .home-hero-surface{background:#fff;border-radius:18px;padding:46px}
.home-refresh .hero-copy{max-width:540px}
.home-refresh .eyebrow{font-size:.75rem;letter-spacing:.07em;margin-bottom:14px}
.home-refresh .display{font-size:clamp(2rem,3.2vw,2.75rem);font-weight:600;line-height:1.12;max-width:18ch;margin-bottom:20px;text-wrap:initial}
.home-refresh .hl{white-space:normal}
.home-refresh .lead{font-size:.9375rem;line-height:1.75;max-width:44ch;margin-bottom:24px}
.home-refresh .hero-actions{gap:18px;align-items:center}
.home-refresh .hero-actions .btn{height:44px;padding:0 18px;border-radius:8px;font-size:.8125rem;box-shadow:none;flex:none;transition:none;transform:none}
.home-refresh .hero-actions .btn:hover{transform:none}
.home-text-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:.875rem;font-weight:600}
.home-reassurance{display:flex;align-items:flex-start;gap:7px;font-size:.75rem;line-height:1.6;margin:20px 0 0;color:var(--text)}
.home-reassurance .i{margin-top:2px;color:var(--mint-800)}
.home-refresh .hero-art{max-width:320px;justify-self:center;width:100%;padding:18px 6px 0;pointer-events:none}
.home-refresh .hero-art .home-social-post{display:block;width:min(100%,260px);height:auto;aspect-ratio:1;margin:auto;transform:rotate(-4deg);filter:drop-shadow(0 12px 12px rgba(14,19,48,.06))}
.home-report-tag{position:relative;display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;margin:-12px 0 0 auto;padding:12px 16px;border:1px solid #D8CBFF;background:#EEE8FF;border-radius:8px;color:#4A1FEB;font-size:.75rem;transform:rotate(3deg)}
.home-report-tag svg{flex:none}
.home-art-caption{display:block;text-align:center;color:var(--text);font-size:.75rem;line-height:1.6;margin:24px 0 0}
.home-art-caption span{margin:0 8px;color:#706580}
.home-refresh .section-head p{max-width:45ch;font-size:.9375rem;line-height:1.7}
.home-refresh .more{min-height:44px;align-items:center;font-size:.8125rem}
.home-refresh #services h2,.home-refresh #appoint h2,.home-refresh #panel h2{font-size:clamp(1.625rem,2.6vw,2.25rem);font-weight:600;line-height:1.2;letter-spacing:-.03em}
.home-services .section-head{margin-bottom:32px}
.home-services .section-head p{max-width:56ch;margin:14px 0 0;font-size:1rem}
.home-service-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px}
.home-service-list li{border-top:1px solid var(--border)}
.home-service-list a{display:grid;grid-template-columns:22px minmax(0,1fr) 16px;align-items:start;gap:16px;height:100%;padding:24px 8px 24px 0;color:var(--ink);border-radius:4px}
.home-service-list a:hover{text-decoration:none;color:var(--violet);background:#FAF9FF}
.home-service-list a:focus-visible{outline:2px solid var(--violet);outline-offset:4px;box-shadow:none}
.home-service-list a>.i:first-child{color:var(--violet)}
.home-service-list a>.i{margin-top:3px}
.home-service-list b{font-size:1rem;font-weight:600;line-height:1.5;display:block}
.home-service-list small{display:block;font-size:.9375rem;font-weight:400;color:var(--text);line-height:1.65;margin-top:5px}
.home-refresh #appoint h2{max-width:25ch}
.home-process{list-style:none;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.home-process li{position:relative;min-width:0}
.home-process li:not(:last-child)::after{content:"";position:absolute;top:19px;left:52px;right:-20px;border-top:1px solid #CEC7E3}
.home-process li>span{position:relative;display:grid;place-items:center;width:40px;height:40px;border:1px solid #C8B9FA;border-radius:50%;background:#fff;color:var(--violet);font-size:.8125rem;font-weight:600;margin-bottom:20px;font-variant-numeric:tabular-nums}
.home-process h3{font-size:1rem;font-weight:600;line-height:1.4;margin-bottom:10px}
.home-process p{font-size:.9375rem;line-height:1.7;margin-bottom:0}
.home-details{display:grid;grid-template-columns:.9fr 1.1fr;gap:80px;align-items:start}
.home-details p{font-size:.875rem;line-height:1.75;margin-bottom:0}
.home-terms{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.home-terms h3{font-size:1rem;line-height:1.4;font-weight:600}
.home-terms .more{margin-top:10px}
.home-panel-surface{padding:48px;background:#F3F0FC;border:1px solid #E5DEF4;border-radius:16px}
.home-refresh .panel-copy{max-width:48ch}
.home-refresh .panel-copy>p:not(.panel-actions){font-size:1rem;line-height:1.7}
.home-refresh .panel-art{max-width:360px;justify-self:center}
.home-refresh .panel-points{font-size:.9375rem;gap:14px}
.home-refresh .panel-points .i{color:#087A64;background:#DCF5EE;width:20px;height:20px;padding:3px}
.home-refresh .panel-actions .btn{min-height:44px;padding:0 18px;font-size:.875rem;border-radius:8px;box-shadow:none;transition:none;transform:none}
@media(max-width:959px){
  .home-refresh .hero-grid{grid-template-columns:1fr;gap:24px}
  .home-refresh .home-hero-surface{padding:32px}
  .home-refresh .hero-art{max-width:290px;justify-self:center}
  .home-service-list{column-gap:32px}
  .home-details{gap:32px;grid-template-columns:1fr 1fr}
  .home-process{grid-template-columns:1fr 1fr;gap:24px}
  .home-process li::after{display:none}
  .home-panel-surface{padding:32px;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:28px}
  .home-terms{grid-template-columns:1fr;gap:24px}
}
@media(max-width:640px){
  .home-refresh .nav-row{height:auto;min-height:64px;gap:10px;padding-block:8px}
  .home-refresh .nav-actions{min-width:0}
  .home-refresh .nav-toggle{flex:none}
  .home-refresh .nav-actions .btn{height:auto;min-height:44px;min-width:0;padding:6px 12px;font-size:.75rem;white-space:normal;text-align:center}
  .home-refresh .hero{padding:20px 0}
  .home-refresh .home-hero-surface{padding:24px 20px;border-radius:14px}
  .home-refresh .display{font-size:1.875rem;margin-bottom:16px}
  .home-refresh .lead{font-size:.9375rem;line-height:1.65;margin-bottom:18px}
  .home-refresh .hero-actions{gap:6px 16px}
  .home-refresh .hero-actions .btn{height:44px;padding:0 16px;font-size:.8125rem}
  .home-text-link{font-size:.8125rem}
  .home-reassurance{margin-top:12px}
  .home-refresh .hero-art{max-width:240px;padding:6px 4px 0;margin-top:0}
  .home-refresh .hero-art .home-social-post{max-width:210px}
  .home-report-tag{padding:10px 12px;font-size:.75rem;margin-top:-10px}
  .home-art-caption{margin-top:18px}
  .home-services .section-head{display:block;margin-bottom:24px}
  .home-services .section-head .more{margin-top:12px}
  .home-service-list{grid-template-columns:1fr}
  .home-details{grid-template-columns:1fr;gap:20px}
  .home-service-list a{padding:20px 0;gap:12px}
  .home-process{grid-template-columns:1fr;gap:24px;margin-top:24px}
  .home-process li{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:16px}
  .home-process li>span{grid-row:span 2;width:36px;height:36px;margin:0}
  .home-process li:not(:last-child)::after{display:block;top:44px;bottom:-16px;left:17px;right:auto;border-top:0;border-left:1px solid #CEC7E3}
  .home-process h3{margin-bottom:6px}
  .home-process p{font-size:.9375rem}
  .home-panel-surface{grid-template-columns:minmax(0,1fr);padding:28px 20px;gap:28px}
  .home-refresh .panel-art{max-width:260px}
  .home-refresh .panel-actions .btn{width:auto;white-space:normal;height:auto;min-height:44px;padding:10px 16px}
}
@media(max-height:500px) and (orientation:landscape){.home-refresh .hero-grid{grid-template-columns:1fr}.home-refresh .hero-copy{max-width:640px}}
