.home-v2 {
  --home-bg:#07111f;
  --home-surface:#0c1929;
  --home-border:#203754;
  --home-text:#f6f8ff;
  --home-muted:#9fb0c8;
  min-height:100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(104,112,255,.18), transparent 25%),
    linear-gradient(180deg,#06101d 0%,#08111e 48%,#0a1220 100%);
  color:var(--home-text);
}
.home-v2 *{box-sizing:border-box}
.home-v2 a{text-decoration:none}
.home-header{
  height:84px;
  display:flex;
  align-items:center;
  gap:34px;
  padding:0 4.8vw;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(5,14,25,.84);
  backdrop-filter:blur(18px);
  position:sticky;
  top:0;
  z-index:200;
}
.home-header .brand{width:220px}
.home-nav{display:flex;gap:28px;align-items:center;flex:1}
.home-nav a,.home-actions a{color:#dce5f4;font-size:14px}
.home-nav a:hover,.home-actions a:hover{color:white}
.home-actions{display:flex;gap:12px;align-items:center}
.home-primary,.home-secondary{padding:11px 18px;border-radius:12px}
.home-primary{background:linear-gradient(110deg,#a9b4ff,#8079ff);color:#0b1430!important;font-weight:700}
.home-secondary{border:1px solid #354d70}

.home-v2 main{padding:0 4.8vw 48px}
.home-hero{
  min-height:520px;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
  gap:42px;
  align-items:stretch;
  padding:44px 0 24px;
}
.home-hero-copy{align-self:center;max-width:820px}
.home-eyebrow,.home-section-kicker{
  display:inline-block;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px;
  color:#9c92ff;
  font-weight:700;
}
.home-hero h1{font-size:64px;line-height:1.02;letter-spacing:-2.7px;margin:12px 0 16px}
.home-hero h1 em{font-style:normal;color:#9e95ff}
.home-hero-copy>p{font-size:18px;line-height:1.65;color:#c0ccdd;max-width:760px;margin-bottom:22px}

.intent-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.intent-card{
  display:grid;
  grid-template-columns:38px 1fr 20px;
  align-items:center;
  gap:12px;
  border:1px solid #31496a;
  background:linear-gradient(120deg,#0f1f33,#0b1726);
  border-radius:16px;
  min-height:74px;
  padding:14px 16px;
  color:#f3f7ff;
  text-align:left;
}
.intent-card.active{border-color:#9c7dff;box-shadow:0 0 0 1px rgba(161,125,255,.22),0 12px 32px rgba(73,43,174,.18)}
.intent-card>i:first-child{font-size:25px;color:#9daaff}
.intent-card span{display:grid;gap:4px}
.intent-card strong{font-size:15px}
.intent-card small{font-size:12px;color:#9dadc4}

.home-search-wrap{position:relative}
.home-search{
  height:58px;
  display:grid;
  grid-template-columns:26px 1fr auto;
  align-items:center;
  gap:10px;
  border:1px solid #8c8cff;
  border-radius:15px;
  background:#f7f8fb;
  padding:5px 5px 5px 16px;
  box-shadow:0 12px 38px rgba(51,59,146,.18);
}
.home-search>i{color:#56637a;font-size:20px}
.home-search input{border:0;outline:0;background:transparent;color:#17223a;font-size:15px;min-width:0}
.home-search button{
  border:0;
  min-height:46px;
  border-radius:11px;
  padding:0 20px;
  background:linear-gradient(110deg,#8f98ff,#7067f4);
  color:white;
  font-weight:700;
}
.home-search-suggestions{
  position:absolute;
  z-index:120;
  top:66px;
  left:0;
  right:0;
  max-height:320px;
  overflow:auto;
  padding:7px;
  border:1px solid #30496c;
  border-radius:15px;
  background:#0b1828;
  box-shadow:0 22px 60px rgba(0,0,0,.42);
}
.home-search-suggestion{
  width:100%;
  border:0;
  background:transparent;
  color:#dfe8f7;
  text-align:left;
  padding:10px 12px;
  border-radius:9px;
}
.home-search-suggestion:hover{background:#172944;color:white}
.home-popular{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.home-popular>span{font-size:12px;color:#91a1ba}
.home-popular a{font-size:12px;color:#dbe4f5;border:1px solid #2c4261;border-radius:18px;padding:7px 11px;background:#0e1c2d}
.home-popular a:hover{background:#172b43}

.home-hero-visual{
  position:relative;
  min-height:450px;
  border:1px solid #223b5c;
  border-radius:26px;
  background:
    linear-gradient(150deg,rgba(13,28,45,.2),rgba(6,14,26,.88)),
    url("/images/discovery/mountain-hero.png") center/cover;
  overflow:hidden;
  padding:26px;
}
.hero-glow{position:absolute;inset:auto 12% -24% 12%;height:55%;background:radial-gradient(circle,#6655ff55,transparent 66%);filter:blur(18px)}
.hero-visual-card{
  position:absolute;
  border:1px solid rgba(146,171,210,.25);
  background:rgba(7,18,31,.84);
  backdrop-filter:blur(15px);
  border-radius:18px;
  color:#eef4ff;
  box-shadow:0 18px 45px rgba(0,0,0,.25);
}
.hero-visual-card.ai{
  top:34px;right:28px;width:min(320px,78%);padding:16px;display:flex;gap:14px;align-items:center
}
.hero-visual-card.ai .assistant-orb{width:44px;height:44px}
.hero-visual-card.ai strong{font-size:14px}
.hero-visual-card.ai p{color:#aebcd0;font-size:12px;line-height:1.5;margin-top:4px}
.hero-visual-card.quote{left:26px;bottom:112px;width:250px;padding:17px}
.hero-visual-card.quote strong{font-size:17px}
.hero-visual-card.quote p{color:#aebbd0;font-size:12px;line-height:1.5;margin-top:6px}
.hero-visual-card.promise{left:26px;right:26px;bottom:24px;padding:13px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.hero-visual-card.promise span{display:flex;align-items:center;gap:7px;font-size:11px;color:#d9e4f4}
.hero-visual-card.promise i{color:#9b9cff}

.home-benefits{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border:1px solid #203652;
  border-radius:18px;
  background:#0a1727;
  margin:8px 0 38px;
}
.home-benefits article{display:flex;gap:12px;align-items:center;padding:18px 20px;border-right:1px solid #1a2e47}
.home-benefits article:last-child{border-right:0}
.home-benefits i{font-size:23px;color:#9a92ff}
.home-benefits div{display:grid;gap:3px}
.home-benefits strong{font-size:13px}
.home-benefits span{font-size:11px;color:#91a2ba;line-height:1.4}

.home-featured{padding:18px 0 24px}
.home-section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:17px}
.home-section-head h2,.home-how h2,.home-teach h2{font-size:30px;margin:5px 0}
.home-section-head p,.home-how p,.home-teach p{color:#9eb0c9;line-height:1.55}
.home-section-head>a{color:#c7d4ea;border:1px solid #2f4666;padding:10px 14px;border-radius:12px;white-space:nowrap}

.home-tutor-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.home-tutor-card{overflow:hidden;border:1px solid #263f60;border-radius:17px;background:linear-gradient(145deg,#0b1929,#0a1523)}
.home-tutor-photo{position:relative;height:170px;background:#13253a}
.home-tutor-photo img{width:100%;height:100%;object-fit:cover}
.home-online{position:absolute;left:9px;bottom:9px;background:#0b1c20d9;border:1px solid #2d6856;color:#c9ffe8;border-radius:14px;padding:5px 8px;font-size:10px}
.home-online i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#54efaa;margin-right:5px}
.home-tutor-body{padding:13px}
.home-tutor-name{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.home-tutor-name h3{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-tutor-name span{font-size:10px;color:#c8d3e3;white-space:nowrap}
.home-tutor-name b{color:#ffc157}
.home-subject-pill{display:inline-block;margin:8px 0 7px;padding:4px 8px;border-radius:11px;background:#282758;color:#bab8ff;font-size:10px}
.home-price{font-size:11px;color:#aab8cb;margin-bottom:7px}
.home-price strong{font-size:16px;color:#f5f8ff}
.home-tutor-copy{color:#a0aec2;font-size:11px;line-height:1.45;height:32px;overflow:hidden}
.home-tutor-body>a{display:flex;justify-content:center;margin-top:11px;border:1px solid #35506f;border-radius:10px;padding:8px;color:#e5ecf7;font-size:11px}
.home-empty-tutors{grid-column:1/-1;text-align:center;padding:45px;border:1px dashed #314967;border-radius:18px;background:#091726}
.home-empty-tutors i{font-size:34px;color:#9d96ff}
.home-empty-tutors p{color:#9baac0}
.home-empty-tutors a{display:inline-block;margin-top:12px;padding:10px 14px;border-radius:10px;background:#8c83ff;color:white}

.home-how{
  margin-top:30px;
  display:grid;
  grid-template-columns:1.3fr repeat(3,1fr);
  gap:12px;
  align-items:stretch;
}
.home-how-intro,.home-step{border:1px solid #213a58;border-radius:17px;background:#0a1726;padding:20px}
.home-step{display:grid;grid-template-columns:28px 34px 1fr;align-items:center;gap:10px}
.home-step>b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#25255d;color:#bab5ff;font-size:11px}
.home-step>i{font-size:22px;color:#9c98ff}
.home-step div{display:grid;gap:4px}
.home-step strong{font-size:14px}
.home-step span{font-size:11px;line-height:1.45;color:#9aabc2}

.home-teach{
  margin-top:14px;
  padding:26px;
  border:1px solid #3d376d;
  border-radius:20px;
  background:linear-gradient(115deg,#161b3d,#261a47 55%,#0b1930);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.home-teach>div{max-width:760px}
.home-teach>a{white-space:nowrap;border-radius:13px;padding:13px 18px;background:linear-gradient(110deg,#9d80ff,#686ef5);color:white;font-weight:700}

@media(max-width:1250px){
  .home-nav{gap:18px}.home-nav a:nth-last-child(-n+2){display:none}
  .home-tutor-grid{grid-template-columns:repeat(3,1fr)}
  .home-benefits{grid-template-columns:repeat(3,1fr)}
  .home-benefits article{border-bottom:1px solid #1a2e47}
  .home-how{grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
  .home-header{padding:0 20px}.home-nav{display:none}.home-header .brand{flex:1}
  .home-actions .home-secondary{display:none}
  .home-v2 main{padding:0 20px 36px}
  .home-hero{grid-template-columns:1fr;padding-top:28px}
  .home-hero h1{font-size:48px}
  .home-hero-visual{min-height:360px}
  .home-benefits{grid-template-columns:1fr 1fr}
  .home-tutor-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .home-header .brand small{display:none}
  /* Dölj bara sekundära åtgärder. "Log in" och "My account" måste finnas kvar:
     de är enda vägen tillbaka för någon som redan har ett konto, och headern
     är den enda navigationen på mobil eftersom .home-nav döljs vid 900px. */
  .home-actions>a.home-secondary{display:none}
  .home-actions{gap:10px}
  .home-actions a{font-size:13px}
  .home-primary{padding:10px 14px}
  .home-hero h1{font-size:39px}
  .home-hero-copy>p{font-size:15px}
  .intent-switch{grid-template-columns:1fr}
  .home-search{grid-template-columns:22px 1fr;height:auto;padding:10px}
  .home-search button{grid-column:1/-1;width:100%}
  .home-hero-visual{min-height:320px}.hero-visual-card.ai{left:18px;right:18px;width:auto}
  .hero-visual-card.quote{display:none}.hero-visual-card.promise{grid-template-columns:1fr;bottom:18px}
  .home-benefits{grid-template-columns:1fr}
  .home-benefits article{border-right:0}
  .home-tutor-grid{grid-template-columns:1fr}
  .home-how{grid-template-columns:1fr}
  .home-teach{align-items:flex-start;flex-direction:column}
  .home-section-head{align-items:flex-start;flex-direction:column}
}

.home-footer{
  margin-top:52px;
  border-top:1px solid #1c314b;
  background:
    radial-gradient(circle at 14% 12%,rgba(104,112,255,.10),transparent 28%),
    #07111e;
}
.home-footer-main{
  padding:48px 4.8vw 38px;
  display:grid;
  grid-template-columns:minmax(260px,1.15fr) minmax(0,2fr);
  gap:54px;
  max-width:1600px;
  margin:0 auto;
}
.home-footer-brand{max-width:390px}
.home-footer-brand .brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  margin-bottom:18px;
}
.home-footer-brand .brand>span{
  font-size:29px;
  font-weight:800;
  line-height:.92;
  letter-spacing:-1px;
}
.home-footer-brand .brand small{
  display:block;
  margin-top:6px;
  font-size:7px;
  letter-spacing:.08em;
  color:#bfcde0;
  font-weight:500;
}
.home-footer-brand>p{
  color:#8fa2bb;
  font-size:13px;
  line-height:1.65;
  margin:0 0 18px;
}
.home-footer-contact{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#c8d5e8;
  font-size:12px;
}
.home-footer-contact i{color:#9d96ff}
.home-footer-links{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:30px;
}
.home-footer-links>div{display:flex;flex-direction:column;gap:10px}
.home-footer-links h3{
  margin:0 0 5px;
  color:#f5f8ff;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.home-footer-links a{
  color:#879ab3;
  font-size:12px;
  line-height:1.35;
  transition:color .15s ease;
}
.home-footer-links a:hover{color:#fff}
.home-footer-bottom{
  border-top:1px solid #172b43;
  padding:18px 4.8vw 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  max-width:1600px;
  margin:0 auto;
  color:#6f839d;
  font-size:11px;
}
.home-footer-bottom>div{display:flex;gap:18px;flex-wrap:wrap}
.home-footer-bottom a{color:#8296b0}
.home-footer-bottom a:hover{color:#fff}

@media(max-width:900px){
  .home-footer-main{grid-template-columns:1fr;gap:34px;padding-left:20px;padding-right:20px}
  .home-footer-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-footer-bottom{padding-left:20px;padding-right:20px}
}
@media(max-width:560px){
  .home-footer{margin-top:36px}
  .home-footer-main{padding-top:36px}
  .home-footer-links{grid-template-columns:1fr 1fr;gap:28px 20px}
  .home-footer-bottom{align-items:flex-start;flex-direction:column}
}

/* Language switcher (Views/Shared/_LanguageSwitcher.cshtml), used in the Home and Explore headers */
.lang-switch{position:relative}
.lang-switch summary{list-style:none;display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:10px;cursor:pointer;color:#c7d3e5;font-size:13px;font-weight:700;letter-spacing:.04em}
.lang-switch summary::-webkit-details-marker{display:none}
.lang-switch summary:hover,.lang-switch[open] summary{color:#fff;background:#ffffff10}
.lang-switch summary i{font-size:17px}
.lang-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:170px;padding:6px;border-radius:14px;
  background:var(--surface,#0d1829);border:1px solid var(--border,#22324f);box-shadow:0 18px 40px #0008}
.lang-menu a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:9px;font-size:14px;font-weight:600;color:var(--text,#eef2ff)}
.lang-menu a:hover{background:#ffffff0d}
.lang-menu a[aria-current] i{color:#61f4cc}
/* Footer language links */
.home-footer-langs{display:flex;align-items:center;gap:14px}
.home-footer-langs a[aria-current]{color:#fff;font-weight:700}

/* Phone headers (Home and Explore). With the language switcher and longer words like "Se connecter"
   there is no room for the full wordmark: the logo keeps its mark, the switcher its globe, and no link
   wraps onto two lines. */
@media (max-width:420px){
  .home-header .brand>span,
  .discovery-header .brand>span{display:none}
  .lang-switch summary{padding:8px}
  .lang-switch summary span{display:none}
  /* where the globe sits depends on the language's word lengths, so centre the menu under it:
     that keeps it on screen whether the globe ends up near the left or the right */
  .lang-menu{left:50%;right:auto;transform:translateX(-50%)}
  .home-actions a,
  .discovery-auth a{white-space:nowrap}
}
