plans.scss 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500
  1. @use 'sass:math';
  2. $container-plans-responsive-width: 95%;
  3. $container-xl: 1280px;
  4. $z-index-plans-new-tabs-content: 0;
  5. $z-index-plans-new-tabs: 1;
  6. $border-radius-full-new: 9999px;
  7. $highlighted-heading-line-height: 24px; // this is ported directly from the .less file as value
  8. $highlighted-heading-padding-vertical: $spacing-02;
  9. $highlighted-heading-height: (
  10. $highlighted-heading-line-height + (2 * $highlighted-heading-padding-vertical)
  11. );
  12. $switcher-container-margin-bottom: $highlighted-heading-height + $spacing-10;
  13. $table-4-column-width: 25%;
  14. $table-5-column-width: 20%;
  15. $nondiscounted-price-element-height: var(--line-height-02);
  16. $group-member-picker-height: 24px;
  17. $group-member-picker-top-height: 36px;
  18. $z-index-group-member-picker-list: 1;
  19. .plans-new-design {
  20. --border-width-base: 3px; // TODO: put this variable in a decent location
  21. --border-radius-large-new: 16px; // TODO: put this variable in a decent location
  22. padding-top: $header-height;
  23. overflow: unset;
  24. .container {
  25. padding: 0 var(--spacing-06);
  26. @include media-breakpoint-up(md) {
  27. width: $container-plans-responsive-width;
  28. }
  29. @include media-breakpoint-up(xxl) {
  30. width: $container-xl;
  31. }
  32. .geo-banner-container {
  33. margin-top: var(--spacing-08);
  34. }
  35. .plans-new-design-content-spacing {
  36. margin-top: var(--spacing-16);
  37. }
  38. .interstitial-new-design-content-spacing {
  39. margin-top: var(--spacing-13);
  40. }
  41. }
  42. .main-heading-section {
  43. text-align: center;
  44. max-width: 885px;
  45. margin-left: auto;
  46. margin-right: auto;
  47. @include media-breakpoint-down(md) {
  48. text-align: left;
  49. padding: 0 16px;
  50. }
  51. .plans-page-heading {
  52. margin-top: 8px;
  53. margin-bottom: unset;
  54. font-size: 3rem;
  55. font-weight: 600;
  56. line-height: 64px;
  57. @include media-breakpoint-down(md) {
  58. font-size: 2.25rem;
  59. line-height: 48px;
  60. padding-right: 5rem;
  61. }
  62. }
  63. .plans-page-sub-heading {
  64. font-size: 1.125rem;
  65. line-height: 24px;
  66. margin-top: 16px;
  67. margin-bottom: unset;
  68. }
  69. }
  70. .plans-new-content {
  71. display: flex;
  72. flex-direction: column;
  73. align-items: center;
  74. position: relative;
  75. @include media-breakpoint-up(md) {
  76. border-left: 1px solid var(--border-divider);
  77. border-right: 1px solid var(--border-divider);
  78. border-bottom: 1px solid var(--border-divider);
  79. border-radius: 8px;
  80. }
  81. // this is the border between the tabs and the content, specifically on the left and right side
  82. // this is necessary to enable top border radius on the plans-new-content
  83. &::before {
  84. content: '';
  85. display: block;
  86. z-index: $z-index-plans-new-tabs-content;
  87. position: absolute;
  88. top: -1px; // make border overlap with the border on .plans-new-tabs
  89. width: 100%;
  90. height: 20px; // arbitrary height since it's transparent, make sure that it's bigger than border radius
  91. background: transparent;
  92. border-top: 1px solid var(--border-divider);
  93. @include media-breakpoint-up(md) {
  94. border-top-left-radius: 8px;
  95. border-top-right-radius: 8px;
  96. }
  97. }
  98. }
  99. .plans-new-tabs-container {
  100. z-index: $z-index-plans-new-tabs;
  101. margin-top: var(--spacing-16);
  102. // explicit padding to tell that the bottom left and bottom right
  103. // does not have bottom border defined in .plans-new-tabs
  104. // technically unnecessary because padding is already defined in bootstrap column
  105. padding: 0 16px;
  106. }
  107. .plans-new-tabs {
  108. display: flex;
  109. justify-content: center;
  110. gap: 8px;
  111. border-bottom: 1px solid var(--border-divider);
  112. .plans-new-tab {
  113. cursor: pointer;
  114. font-size: 16px;
  115. font-weight: 600;
  116. border-top-right-radius: 8px;
  117. border-top-left-radius: 8px;
  118. margin-bottom: -1px; // to overlap with the border on .plans-new-tabs to avoid double border
  119. .plans-new-tab-link {
  120. display: flex;
  121. align-items: center;
  122. color: var(--content-secondary);
  123. margin: 0;
  124. border-top-right-radius: 8px;
  125. border-top-left-radius: 8px;
  126. /* stylelint-disable-next-line declaration-block-no-duplicate-properties */
  127. border: 1px solid var(--border-divider);
  128. padding: var(--spacing-05) var(--spacing-08);
  129. gap: var(--spacing-04);
  130. text-decoration: unset;
  131. &:focus {
  132. background-color: unset;
  133. outline: 0;
  134. }
  135. &:hover {
  136. background-color: var(--neutral-20);
  137. }
  138. // TODO: this is copied directly from the `.less` file, migrate this to scss
  139. // tab navigation focus style
  140. // &:focus-visible {
  141. // .box-shadow-button-input();
  142. // outline: 0;
  143. // }
  144. .group-discount-bubble {
  145. padding: var(--spacing-01) var(--spacing-04);
  146. background-color: var(--green-10);
  147. color: var(--green-50);
  148. border-radius: $border-radius-full-new; // TODO: this is ported direction as a scss variable, change this to a css variable
  149. font-family: 'DM Mono', monospace;
  150. font-feature-settings: 'ss05';
  151. font-size: var(--font-size-01);
  152. line-height: var(--line-height-01);
  153. font-weight: 500;
  154. @include media-breakpoint-down(md) {
  155. display: none;
  156. }
  157. }
  158. @include media-breakpoint-down(md) {
  159. font-size: var(--font-size-02);
  160. line-height: var(--line-height-02);
  161. padding: var(--spacing-05);
  162. gap: var(--spacing-02);
  163. }
  164. }
  165. &:has(.active) {
  166. .plans-new-tab-link {
  167. border: 1px solid white;
  168. position: relative;
  169. color: var(--green-50);
  170. // remove the border on tab focus
  171. &:focus-visible {
  172. &::before {
  173. content: unset;
  174. }
  175. }
  176. &::before {
  177. content: '';
  178. position: absolute;
  179. background: border-box
  180. linear-gradient(
  181. to bottom,
  182. $green-50 0%,
  183. $neutral-20 85%,
  184. $neutral-20 100%
  185. );
  186. /* stylelint-disable-next-line property-no-vendor-prefix */
  187. -webkit-mask:
  188. linear-gradient(white 0 0) padding-box,
  189. linear-gradient(white 0 0);
  190. mask:
  191. linear-gradient(white 0 0) padding-box,
  192. linear-gradient(white 0 0);
  193. /* stylelint-disable-next-line property-no-vendor-prefix */
  194. -webkit-mask-composite: xor;
  195. mask-composite: exclude;
  196. border-top-right-radius: 8px;
  197. border-top-left-radius: 8px;
  198. border: 1px solid transparent;
  199. border-bottom: 1px solid white;
  200. // make the border overlap with the .plans-new-tab-link border
  201. top: 0;
  202. bottom: -2px;
  203. left: -1px;
  204. /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
  205. right: -1px;
  206. }
  207. &:hover {
  208. background-color: unset;
  209. }
  210. }
  211. .plans-new-discount-badge {
  212. background-color: var(--green-10);
  213. color: var(--green-60);
  214. }
  215. }
  216. }
  217. }
  218. .plans-new-period-switcher-container {
  219. position: relative;
  220. display: inline-flex;
  221. background-color: var(--bg-light-secondary);
  222. border-radius: $border-radius-full-new; // TODO: this is ported direction as a scss variable, change this to a css variable
  223. padding: var(--spacing-03);
  224. margin-top: var(--spacing-09);
  225. margin-bottom: $switcher-container-margin-bottom;
  226. gap: var(--spacing-04);
  227. @include media-breakpoint-down(md) {
  228. margin-bottom: var(--spacing-09);
  229. }
  230. label {
  231. display: inline-flex;
  232. align-items: center;
  233. margin: 0;
  234. font-size: var(--font-size-05);
  235. font-weight: 600;
  236. line-height: var(--line-height-04);
  237. text-align: center;
  238. padding: var(--spacing-01) var(--spacing-04);
  239. border-radius: $border-radius-full-new; // TODO: this is ported direction as a scss variable, change this to a css variable
  240. &:hover {
  241. background-color: var(--neutral-20);
  242. cursor: pointer;
  243. }
  244. }
  245. input[type='radio'] {
  246. position: absolute;
  247. left: -9999px;
  248. &:focus,
  249. &:focus-visible {
  250. outline: 0;
  251. }
  252. }
  253. // TODO: this is copied directly from the `.less` file, migrate this to scss
  254. // input[type='radio']:focus-visible + label,
  255. // input[type='radio']:checked:focus-visible + label {
  256. // .box-shadow-button-input();
  257. // }
  258. input[type='radio']:checked + label {
  259. background-color: var(--green-50);
  260. color: white;
  261. /* stylelint-disable-next-line length-zero-no-unit, color-function-notation, alpha-value-notation */
  262. box-shadow: 0px 2px 4px 0px rgba(30, 37, 48, 0.16);
  263. .plans-new-discount-badge {
  264. background-color: var(--green-10);
  265. color: var(--green-60);
  266. }
  267. }
  268. .plans-new-discount-badge {
  269. margin-left: var(--spacing-03);
  270. }
  271. }
  272. .plans-new-discount-badge {
  273. font-size: var(--font-size-01);
  274. font-family: 'DM Mono', monospace;
  275. padding: 2px 8px;
  276. height: 20px;
  277. border-radius: 10px;
  278. background-color: var(--neutral-70);
  279. color: white;
  280. display: flex;
  281. align-items: center;
  282. font-weight: 500;
  283. line-height: var(--line-height-01);
  284. }
  285. .plans-new-tab-content {
  286. width: 100%;
  287. border: none;
  288. padding-top: 0;
  289. @include media-breakpoint-down(md) {
  290. padding: 0;
  291. }
  292. }
  293. .plans-new-mobile {
  294. display: none;
  295. @include media-breakpoint-down(md) {
  296. display: block;
  297. }
  298. }
  299. .plans-new-desktop {
  300. display: block;
  301. @include media-breakpoint-down(md) {
  302. display: none;
  303. }
  304. }
  305. .plans-new-table {
  306. width: 100%;
  307. // keep the borders separate to help with spacing and alignment in the CTAs
  308. border-collapse: separate;
  309. border-spacing: 0;
  310. th,
  311. td {
  312. width: $table-4-column-width;
  313. }
  314. }
  315. .plans-new-table-student {
  316. margin-left: math.div($table-4-column-width, 2);
  317. }
  318. .plans-new-table-student-verification {
  319. font-weight: 600;
  320. font-size: var(--font-size-01);
  321. text-align: center;
  322. }
  323. .plans-new-table-group {
  324. margin-top: $spacing-11 + $highlighted-heading-height;
  325. }
  326. thead th {
  327. position: relative;
  328. padding: var(--spacing-06) var(--spacing-08) var(--spacing-04)
  329. var(--spacing-08);
  330. font-size: var(--font-size-05);
  331. font-weight: 600;
  332. line-height: var(--line-height-04);
  333. color: var(--content-primary);
  334. text-align: center;
  335. @include media-breakpoint-down(md) {
  336. padding: var(--spacing-05) var(--spacing-05) 0 var(--spacing-05);
  337. }
  338. }
  339. .plans-new-table-subheader {
  340. vertical-align: top;
  341. padding: 0 var(--spacing-08);
  342. @include media-breakpoint-down(xl) {
  343. padding: 0 var(--spacing-05);
  344. }
  345. &.plans-new-table-icon-cta-cell,
  346. &.plans-subheader-monthly-cta {
  347. vertical-align: bottom;
  348. }
  349. }
  350. .plans-new-table-cta-row {
  351. td {
  352. padding-bottom: var(--spacing-06);
  353. @include media-breakpoint-down(xl) {
  354. padding-bottom: var(--spacing-05);
  355. }
  356. // use transparent borders to use the same spacing as highlighted cells
  357. &:not(.plans-new-table-highlighted-cell) {
  358. border-right: var(--border-width-base) solid transparent;
  359. border-left: var(--border-width-base) solid transparent;
  360. }
  361. }
  362. .plans-cta + .plans-cta {
  363. margin-top: var(--spacing-04);
  364. }
  365. }
  366. .plans-new-table-header-grid-container {
  367. display: flex;
  368. flex-direction: column;
  369. align-items: center;
  370. s,
  371. .match-original-price-height {
  372. font-size: var(--font-size-02);
  373. line-height: $nondiscounted-price-element-height;
  374. color: var(--neutral-60);
  375. font-weight: 600;
  376. }
  377. .plans-new-table-header-price {
  378. font-size: var(--font-size-08);
  379. font-weight: 600;
  380. line-height: var(--line-height-07);
  381. color: var(--content-primary);
  382. }
  383. .plans-new-table-header-price-unit {
  384. font-size: var(--font-size-02);
  385. line-height: var(--line-height-02);
  386. text-align: center;
  387. }
  388. .plans-new-table-cta {
  389. margin-top: auto;
  390. a:nth-child(2) {
  391. margin-top: var(--spacing-04);
  392. }
  393. }
  394. .plans-new-table-header-icon {
  395. font-size: 56px;
  396. color: var(--content-primary);
  397. }
  398. }
  399. .plans-new-table-header-price-unit-total {
  400. font-size: var(--font-size-01);
  401. line-height: var(--line-height-01);
  402. }
  403. .plans-new-table-header-desc {
  404. margin-top: var(--spacing-05);
  405. margin-bottom: var(--spacing-08);
  406. font-size: var(--font-size-02);
  407. line-height: var(--line-height-02);
  408. }
  409. .plans-new-group-member-picker {
  410. .plans-new-group-member-picker-text {
  411. font-size: var(--font-size-02);
  412. line-height: var(--line-height-02);
  413. font-weight: 600;
  414. margin-bottom: var(--spacing-02);
  415. }
  416. .plans-new-group-member-picker-form {
  417. position: relative;
  418. .plans-new-group-member-picker-button {
  419. width: 100%;
  420. background-color: white;
  421. border-radius: var(--border-radius-base-new);
  422. border: 1px solid var(--neutral-60);
  423. display: flex;
  424. align-items: center;
  425. justify-content: space-between;
  426. padding: var(--spacing-01) var(--spacing-03);
  427. margin-bottom: var(--spacing-04);
  428. height: $group-member-picker-height;
  429. font-size: var(--font-size-02);
  430. line-height: var(--line-height-02);
  431. &[aria-expanded='true'] {
  432. i {
  433. transform: rotate(180deg);
  434. transition: transform 0.35s ease;
  435. }
  436. }
  437. &[aria-expanded='false'] {
  438. i {
  439. transition: transform 0.35s ease;
  440. }
  441. }
  442. &[data-ol-plans-new-group-member-picker-button='group-all'] {
  443. height: $group-member-picker-top-height;
  444. }
  445. .material-symbols {
  446. pointer-events: none;
  447. }
  448. }
  449. ul.plans-new-group-member-picker-list {
  450. list-style-type: none;
  451. margin-bottom: 0;
  452. overflow: auto; // to enable box-shadow
  453. /* stylelint-disable-next-line length-zero-no-unit, color-function-notation, alpha-value-notation */
  454. box-shadow: 0px 2px 4px 0px rgba(30, 37, 48, 0.16);
  455. padding: var(--spacing-02);
  456. position: absolute;
  457. top: $group-member-picker-height;
  458. background-color: white;
  459. width: 100%;
  460. margin-top: var(--spacing-01);
  461. z-index: $z-index-group-member-picker-list;
  462. &[data-ol-plans-new-group-member-picker-dropdown='group-all'] {
  463. top: $group-member-picker-top-height;
  464. }
  465. }
  466. li.plans-new-group-member-picker-footer {
  467. font-size: var(--font-size-02);
  468. line-height: var(--line-height-02);
  469. padding: var(--spacing-05) var(--spacing-04);
  470. span {
  471. display: block;
  472. }
  473. button {
  474. font-weight: 400;
  475. padding: 0;
  476. font-size: var(--font-size-02);
  477. line-height: var(--line-height-02);
  478. }
  479. }
  480. li {
  481. position: relative;
  482. &:not(:last-child) {
  483. margin-bottom: var(--spacing-02);
  484. }
  485. &:not(.plans-new-group-member-picker-footer):hover {
  486. input[type='radio']:not(:checked) + p {
  487. background-color: var(--bg-light-secondary);
  488. }
  489. }
  490. input[type='radio'] {
  491. position: absolute;
  492. opacity: 0;
  493. cursor: pointer;
  494. // TODO: this is copied directly from the `.less` file, migrate this to scss
  495. // &:focus + p {
  496. // &:extend(.input-focus-style);
  497. // }
  498. + p {
  499. padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
  500. var(--spacing-04);
  501. margin-bottom: 0;
  502. border-radius: var(--border-radius-base-new);
  503. }
  504. }
  505. input[type='radio']:checked + p {
  506. background-color: var(--green-10);
  507. color: var(--green-70);
  508. position: relative;
  509. word-wrap: break-word;
  510. &::after {
  511. content: url(../../../../public/img/material-icons/check-green-20.svg);
  512. position: absolute;
  513. right: 12px;
  514. top: 50%;
  515. transform: translateY(-50%);
  516. @include media-breakpoint-down(md) {
  517. right: var(--spacing-04);
  518. }
  519. }
  520. }
  521. label {
  522. width: 100%;
  523. font-size: var(--font-size-02);
  524. line-height: var(--line-height-02);
  525. margin-bottom: var(--spacing-00);
  526. font-weight: 400;
  527. cursor: pointer;
  528. border-radius: var(--border-radius-base-new);
  529. .list-item-footer {
  530. font-size: var(--font-size-01);
  531. line-height: var(--line-height-01);
  532. }
  533. }
  534. }
  535. .plans-new-edu-discount {
  536. display: flex;
  537. align-items: flex-start;
  538. gap: var(--spacing-04);
  539. margin-bottom: var(--spacing-06);
  540. font-weight: 400;
  541. input[type='checkbox'] {
  542. margin: var(--spacing-02);
  543. accent-color: var(--green-50);
  544. // TODO: this is copied directly from the `.less` file, migrate this to scss
  545. // &:focus-visible {
  546. // .box-shadow-button-input();
  547. // }
  548. }
  549. .plans-new-edu-discount-content {
  550. display: flex;
  551. flex-direction: column;
  552. span {
  553. line-height: var(--line-height-03);
  554. color: var(--content-primary);
  555. }
  556. small {
  557. color: var(--content-secondary);
  558. font-size: var(--font-size-01);
  559. line-height: var(--line-height-01);
  560. }
  561. }
  562. }
  563. }
  564. }
  565. .plans-new-table-body:last-of-type {
  566. .plans-new-table-feature-row:last-of-type {
  567. .plans-new-table-feature-td.plans-new-table-highlighted-cell {
  568. border-bottom: var(--border-width-base) solid var(--green-50);
  569. }
  570. }
  571. }
  572. .plans-new-table-heading-row {
  573. // this means min-height, min-height does not work in table layout
  574. // https://stackoverflow.com/questions/7790222
  575. height: 64px;
  576. }
  577. .plans-new-table-heading-text {
  578. padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
  579. var(--spacing-05);
  580. font-weight: 600;
  581. font-size: var(--font-size-04);
  582. line-height: var(--line-height-03);
  583. vertical-align: bottom;
  584. }
  585. .plans-new-table-feature-row {
  586. &:nth-child(even) {
  587. background-color: var(--bg-light-secondary);
  588. }
  589. }
  590. .plans-new-table-section-without-header-row {
  591. &:nth-child(odd):not(.plans-new-table-heading-row) {
  592. background-color: var(--bg-light-secondary);
  593. }
  594. &:nth-child(even):not(.plans-new-table-heading-row) {
  595. background-color: var(--white);
  596. }
  597. }
  598. .plans-new-table-feature-th {
  599. font-weight: normal;
  600. padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
  601. var(--spacing-05);
  602. .plans-new-table-feature-th-content {
  603. line-height: var(--line-height-03);
  604. display: flex;
  605. justify-content: space-between;
  606. align-items: center;
  607. .plans-new-table-feature-tooltip-icon {
  608. cursor: help;
  609. margin-left: var(--spacing-05);
  610. }
  611. .tooltip.in {
  612. opacity: 1;
  613. }
  614. .tooltip-inner {
  615. padding: var(--spacing-04) var(--spacing-06);
  616. max-width: 258px;
  617. width: 258px;
  618. font-family: Lato, sans-serif;
  619. font-size: var(--font-size-02);
  620. text-align: left;
  621. background-color: var(--content-primary);
  622. border-radius: var(--border-radius-base-new);
  623. }
  624. }
  625. }
  626. .plans-new-table-feature-td {
  627. padding: var(--spacing-05) var(--spacing-08);
  628. text-align: center;
  629. line-height: var(--line-height-03);
  630. .green-round-background {
  631. margin-right: 0;
  632. }
  633. }
  634. .plans-new-table-highlighted-heading {
  635. position: absolute;
  636. left: calc(-1 * var(--border-width-base));
  637. top: -1 * $highlighted-heading-height;
  638. height: $highlighted-heading-height;
  639. width: calc(100% + (2 * var(--border-width-base)));
  640. border-top-left-radius: var(--border-radius-large-new);
  641. border-top-right-radius: var(--border-radius-large-new);
  642. padding: $highlighted-heading-padding-vertical var(--spacing-04);
  643. font-weight: 600;
  644. text-align: center;
  645. line-height: $highlighted-heading-line-height;
  646. background-color: var(--green-50);
  647. color: var(--white);
  648. font-size: var(--font-size-03);
  649. }
  650. .plans-new-table-highlighted-cell {
  651. border-right: var(--border-width-base) solid var(--green-50);
  652. border-left: var(--border-width-base) solid var(--green-50);
  653. }
  654. .ai-assist {
  655. color: var(--neutral-90);
  656. @include media-breakpoint-up(lg) {
  657. padding-left: 0 !important;
  658. padding-right: 0 !important;
  659. }
  660. .ai-assist-heading {
  661. margin-top: var(--spacing-12);
  662. margin-bottom: var(--spacing-12);
  663. text-align: center;
  664. }
  665. .ai-assist-container {
  666. padding: var(--spacing-10);
  667. border: var(--spacing-02) solid var(--neutral-10);
  668. border-radius: var(--border-radius-large-new);
  669. background:
  670. linear-gradient(270deg, var(--blue-10), #fff) 0.13%,
  671. #fff 63.21%;
  672. @include media-breakpoint-down(lg) {
  673. background: var(--bg-light-primary);
  674. border-width: 2px;
  675. border-radius: var(--border-radius-medium);
  676. border-color: var(--premium-gradient);
  677. padding: var(--spacing-09);
  678. }
  679. .ai-assist-content {
  680. display: flex;
  681. justify-content: space-between;
  682. gap: var(--spacing-07);
  683. @include media-breakpoint-down(lg) {
  684. flex-direction: column;
  685. }
  686. .ai-assist-left {
  687. display: flex;
  688. gap: var(--spacing-07);
  689. flex-direction: column;
  690. max-width: 480px;
  691. @include media-breakpoint-down(lg) {
  692. max-width: 100%;
  693. }
  694. .ai-assist-price {
  695. font-weight: 600;
  696. font-size: var(--font-size-03);
  697. @include media-breakpoint-down(lg) {
  698. font-weight: normal;
  699. font-size: var(--font-size-02);
  700. .price {
  701. font-size: var(--font-size-08);
  702. font-weight: 600;
  703. }
  704. }
  705. }
  706. .ai-assist-annually-price {
  707. display: block;
  708. }
  709. .ai-assist-monthly-price {
  710. display: none;
  711. }
  712. .ai-assist-header-switch {
  713. display: none;
  714. }
  715. .ai-assist-header {
  716. display: flex;
  717. align-items: center;
  718. justify-content: space-between;
  719. .ai-assist-header-content {
  720. display: flex;
  721. gap: var(--spacing-06);
  722. align-items: center;
  723. h3 {
  724. font-size: var(--font-size-07);
  725. margin: 0;
  726. padding: 0;
  727. @include media-breakpoint-down(lg) {
  728. font-size: var(--font-size-05);
  729. }
  730. }
  731. img {
  732. @include media-breakpoint-down(lg) {
  733. width: 24px;
  734. }
  735. }
  736. }
  737. .ai-assist-header-switch {
  738. align-items: center;
  739. gap: var(--spacing-03);
  740. user-select: none;
  741. input {
  742. margin: 0;
  743. }
  744. label {
  745. margin: 0;
  746. font-weight: normal;
  747. font-size: var(--font-size-03);
  748. }
  749. }
  750. }
  751. }
  752. .ai-assist-right {
  753. display: flex;
  754. align-items: center;
  755. gap: var(--spacing-06);
  756. .ai-assist-features {
  757. list-style: none;
  758. display: flex;
  759. flex-direction: column;
  760. gap: var(--spacing-04);
  761. min-width: 210px;
  762. margin-bottom: 0;
  763. .feature-item {
  764. display: flex;
  765. align-items: center;
  766. font-size: var(--font-size-03);
  767. cursor: default;
  768. .feature-icon {
  769. margin-right: var(--spacing-05);
  770. color: var(--neutral-70);
  771. width: 16px;
  772. height: 16px;
  773. }
  774. .feature-text {
  775. color: var(--neutral-90);
  776. }
  777. }
  778. @include media-breakpoint-up(lg) {
  779. .feature-item-selected {
  780. .feature-text {
  781. color: var(--blue-50);
  782. font-weight: 600;
  783. }
  784. .feature-icon {
  785. content: url(../../../../public/img/check-circle-blue-filled.svg);
  786. }
  787. }
  788. }
  789. }
  790. .ai-assist-images {
  791. display: flex;
  792. align-items: flex-start;
  793. width: 280px;
  794. justify-content: center;
  795. @include media-breakpoint-down(lg) {
  796. display: none;
  797. }
  798. }
  799. }
  800. }
  801. }
  802. .ai-assist-header-switch {
  803. display: flex !important;
  804. }
  805. .ai-assist-button-container {
  806. display: flex;
  807. gap: var(--spacing-05);
  808. &.mobile {
  809. display: none;
  810. margin-top: var(--spacing-06);
  811. flex-direction: column;
  812. }
  813. @include media-breakpoint-down(lg) {
  814. &.mobile {
  815. display: flex;
  816. }
  817. &.desktop {
  818. display: none;
  819. }
  820. }
  821. .btn.monthly {
  822. display: none;
  823. }
  824. }
  825. .overleaf-assist-screenshot {
  826. height: auto;
  827. max-width: 280px;
  828. max-height: 200px;
  829. border-radius: var(--border-radius-base-new);
  830. display: none;
  831. &.selected {
  832. display: block;
  833. animation: fade-in 1s;
  834. }
  835. }
  836. }
  837. .ai-assist.monthly-period {
  838. .ai-assist-annually-price {
  839. display: none !important;
  840. }
  841. .ai-assist-monthly-price {
  842. display: block !important;
  843. }
  844. .ai-assist-button-container .btn.annual {
  845. display: none !important;
  846. }
  847. .ai-assist-button-container .btn.monthly {
  848. display: block !important;
  849. }
  850. }
  851. .plans-new-organizations {
  852. padding: var(--spacing-13) var(--spacing-08);
  853. .plans-new-organizations-text {
  854. text-align: center;
  855. font-size: var(--font-size-05);
  856. line-height: var(--line-height-04);
  857. margin-bottom: var(--spacing-00);
  858. }
  859. .plans-new-organizations-logo {
  860. margin-top: var(--spacing-09);
  861. display: flex;
  862. justify-content: space-around;
  863. align-items: center;
  864. @include media-breakpoint-down(xl) {
  865. flex-wrap: wrap;
  866. gap: 30px;
  867. }
  868. }
  869. }
  870. .plans-card-container-mobile {
  871. width: 100%;
  872. display: flex;
  873. flex-direction: column;
  874. gap: var(--spacing-06);
  875. .mt-spacing-06 {
  876. margin-top: var(--spacing-06);
  877. }
  878. .highlighted-plans-card {
  879. border: 2px solid var(--green-50) !important;
  880. }
  881. .plans-card-mobile {
  882. padding: var(--spacing-09);
  883. border: 2px solid var(--border-divider);
  884. width: 100%; // might need max-width
  885. border-radius: 8px;
  886. display: flex;
  887. flex-direction: column;
  888. .plans-card-title-mobile {
  889. color: var(--content-primary);
  890. font-size: var(--font-size-05); // 20px
  891. font-weight: 600;
  892. line-height: var(--line-height-04);
  893. }
  894. .plans-card-icon-container-mobile {
  895. margin-top: var(--spacing-04);
  896. .plans-card-icon {
  897. font-size: var(--font-size-09);
  898. color: var(--content-primary);
  899. }
  900. }
  901. s {
  902. padding: var(--spacing-04) 0 0 0;
  903. color: var(--neutral-60);
  904. font-size: var(--font-size-04); // 18px
  905. font-weight: 600;
  906. line-height: var(--line-height-05);
  907. margin-bottom: var(--spacing-04);
  908. }
  909. .plans-card-price-container-mobile {
  910. display: flex;
  911. align-items: baseline;
  912. }
  913. .group-plans-card-price-container-mobile {
  914. display: flex;
  915. align-items: center;
  916. }
  917. .plans-card-price-mobile {
  918. color: var(--content-primary);
  919. font-size: var(--font-size-08); // 36px
  920. font-weight: 600;
  921. line-height: var(--line-height-07);
  922. margin-right: var(--spacing-03);
  923. }
  924. .light-gray-text {
  925. color: var(--content-secondary);
  926. font-size: var(--font-size-02); // 14px
  927. line-height: var(--line-height-02);
  928. }
  929. .plans-card-description-mobile {
  930. .green-round-background {
  931. width: 20px;
  932. height: 20px;
  933. }
  934. .plans-card-description-list-mobile {
  935. list-style-type: none;
  936. padding-left: 0;
  937. margin-bottom: unset;
  938. li {
  939. display: flex;
  940. margin-top: var(--spacing-05);
  941. }
  942. }
  943. .plans-card-cta-container {
  944. margin-top: var(--spacing-08);
  945. width: 100%;
  946. .plans-cta + .plans-cta {
  947. margin-top: var(--spacing-04);
  948. }
  949. }
  950. }
  951. }
  952. }
  953. .plans-new-group-tab-card-container {
  954. margin-top: var(--spacing-09);
  955. }
  956. .plans-features-table-section-container-mobile {
  957. margin-top: var(--spacing-13);
  958. .plans-features-section-heading-mobile {
  959. font-size: var(--font-size-06);
  960. font-weight: 600;
  961. line-height: var(--line-height-05);
  962. color: var(--content-primary);
  963. text-align: center;
  964. margin-bottom: var(--spacing-08);
  965. }
  966. .plans-features-table-mobile {
  967. width: 100%;
  968. .plans-features-table-sticky-header {
  969. position: sticky;
  970. top: 0;
  971. }
  972. .plans-features-table-header {
  973. margin-bottom: var(--space-08);
  974. }
  975. .plans-features-table-header-container-mobile {
  976. margin: var(--spacing-08) auto;
  977. border-bottom: unset;
  978. width: 100%;
  979. max-width: 544px;
  980. .plans-features-table-header-item-mobile {
  981. width: 33%;
  982. min-width: 114px;
  983. padding: unset;
  984. .plans-features-table-header-item-content-mobile {
  985. padding: var(--spacing-04);
  986. text-align: center;
  987. background-color: var(--bg-light-secondary);
  988. }
  989. .plans-group-features-table-header-item-content-mobile {
  990. padding: var(--spacing-04);
  991. text-align: center;
  992. background-color: var(--bg-light-secondary);
  993. height: 64px;
  994. display: flex;
  995. justify-content: center;
  996. align-items: center;
  997. }
  998. .plans-features-table-header-item-title-mobile {
  999. color: var(--content-primary);
  1000. line-height: var(--line-height-03);
  1001. font-weight: 600;
  1002. font-size: var(--font-size-03);
  1003. }
  1004. .plans-features-table-header-item-price-mobile {
  1005. font-weight: 400;
  1006. color: var(--content-secondary);
  1007. line-height: var(--line-height-01);
  1008. font-size: var(--spacing-05);
  1009. }
  1010. }
  1011. .highlighted-styles {
  1012. background-color: var(--neutral-80);
  1013. .plans-features-table-header-item-title-mobile,
  1014. .plans-features-table-header-item-price-mobile {
  1015. color: var(--white);
  1016. }
  1017. }
  1018. .plans-features-table-header-item-content-mobile.highlighted,
  1019. .plans-group-features-table-header-item-content-mobile.highlighted {
  1020. background-color: var(--neutral-80);
  1021. .plans-features-table-header-item-title-mobile,
  1022. .plans-features-table-header-item-price-mobile {
  1023. color: var(--white);
  1024. }
  1025. }
  1026. }
  1027. tr.plans-features-table-row-for-margin {
  1028. height: var(--spacing-08);
  1029. }
  1030. .plans-features-table-body-container-mobile {
  1031. .plans-features-table-row-heading-mobile {
  1032. font-weight: 600;
  1033. text-align: center;
  1034. line-height: var(--line-height-03);
  1035. .plans-features-table-row-section-heading-content-mobile {
  1036. padding-top: var(--spacing-08);
  1037. padding-bottom: var(--spacing-05);
  1038. font-size: var(--font-size-04);
  1039. color: var(--content-primary);
  1040. }
  1041. }
  1042. // .plans-features-table-row-title-mobile and .plans-features-table-row-mobile are combined together to make one row visually, so we are using factors of 4 to alternatively color their backgrounds.
  1043. .plans-features-table-row-title-mobile {
  1044. &.plans-features-table-row-title-mobile-without-heading {
  1045. &:nth-child(4n - 3) {
  1046. background-color: var(--bg-light-secondary);
  1047. }
  1048. &:nth-child(4n - 1) {
  1049. background-color: var(--white);
  1050. }
  1051. }
  1052. &:nth-child(4n - 2) {
  1053. background-color: var(--bg-light-secondary);
  1054. }
  1055. &:nth-child(4n) {
  1056. background-color: var(--white);
  1057. }
  1058. .plans-features-table-row-title-content-mobile {
  1059. display: flex;
  1060. justify-content: center;
  1061. align-items: center;
  1062. padding-top: var(--spacing-06);
  1063. font-weight: 600;
  1064. line-height: var(--line-height-03);
  1065. .plans-features-table-row-title-accordion {
  1066. display: flex;
  1067. justify-content: center;
  1068. flex-direction: column;
  1069. align-items: center;
  1070. text-align: center;
  1071. padding: 0 var(--spacing-04);
  1072. .plans-features-table-row-title-accordion-header {
  1073. font-size: var(--font-size-03);
  1074. font-weight: 600;
  1075. line-height: var(--line-height-03);
  1076. display: flex;
  1077. justify-content: center;
  1078. background-color: unset;
  1079. border: unset;
  1080. .plans-features-table-row-title-accordion-icon {
  1081. display: flex;
  1082. align-items: center;
  1083. transition: transform 0.35s ease;
  1084. margin-left: var(--spacing-02);
  1085. }
  1086. &:not(.collapsed) {
  1087. .plans-features-table-row-title-accordion-icon {
  1088. transform: rotate(180deg);
  1089. transition: transform 0.35s ease;
  1090. }
  1091. }
  1092. }
  1093. .plans-features-table-row-title-accordion-body {
  1094. font-size: var(--font-size-01);
  1095. line-height: var(--line-height-01);
  1096. font-weight: 400;
  1097. }
  1098. }
  1099. }
  1100. }
  1101. .plans-features-table-row-mobile {
  1102. &.plans-features-table-row-mobile-without-heading {
  1103. &:nth-child(4n - 2) {
  1104. background-color: var(--bg-light-secondary);
  1105. }
  1106. &:nth-child(4n) {
  1107. background-color: var(--white);
  1108. }
  1109. }
  1110. &:nth-child(4n - 3) {
  1111. background-color: var(--white);
  1112. }
  1113. &:nth-child(4n - 1) {
  1114. background-color: var(--bg-light-secondary);
  1115. }
  1116. .plans-features-table-cell-content-mobile {
  1117. text-align: center;
  1118. padding-top: var(--spacing-05);
  1119. padding-bottom: var(--spacing-06);
  1120. }
  1121. }
  1122. }
  1123. }
  1124. }
  1125. .plans-price-disclaimer {
  1126. font-size: var(--font-size-01);
  1127. line-height: var(--line-height-01);
  1128. margin-top: var(--spacing-08);
  1129. text-align: center;
  1130. &:last-child {
  1131. margin-bottom: var(--spacing-11);
  1132. }
  1133. &:not(:last-child) {
  1134. margin-bottom: var(--spacing-08);
  1135. }
  1136. .plans-price-disclaimer-icons {
  1137. display: flex;
  1138. justify-content: center;
  1139. gap: var(--spacing-04);
  1140. }
  1141. }
  1142. .only-show-for-specific-plan-type {
  1143. display: none;
  1144. }
  1145. &[data-ol-current-plan-type='group'] {
  1146. .show-for-plan-type-group {
  1147. display: block;
  1148. }
  1149. }
  1150. &[data-ol-current-plan-type='individual'] {
  1151. .show-for-plan-type-individual {
  1152. display: block;
  1153. }
  1154. }
  1155. &[data-ol-current-plan-type='student'] {
  1156. .show-for-plan-type-student {
  1157. display: block;
  1158. }
  1159. }
  1160. .only-show-for-specific-plan-period {
  1161. display: none;
  1162. }
  1163. &[data-ol-current-plan-period='annual'] {
  1164. .show-for-plan-period-annual {
  1165. display: block;
  1166. }
  1167. }
  1168. &[data-ol-current-plan-period='monthly'] {
  1169. .show-for-plan-period-monthly {
  1170. display: block;
  1171. }
  1172. }
  1173. }
  1174. .plans-overleaf-common-request {
  1175. color: var(--content-primary);
  1176. display: flex;
  1177. align-items: center;
  1178. justify-content: center;
  1179. margin: var(--spacing-04) var(--spacing-08);
  1180. text-align: center;
  1181. gap: var(--spacing-06);
  1182. @include media-breakpoint-down(md) {
  1183. flex-direction: column;
  1184. margin: 0;
  1185. }
  1186. a {
  1187. font-size: var(--font-size-02);
  1188. line-height: var(--line-height-02);
  1189. }
  1190. }
  1191. .plans-faq {
  1192. .faq-heading-container {
  1193. text-align: center;
  1194. margin-bottom: var(--spacing-10);
  1195. @include media-breakpoint-down(md) {
  1196. text-align: unset;
  1197. }
  1198. }
  1199. .plans-faq-support {
  1200. margin-top: var(--spacing-06);
  1201. margin-bottom: var(--spacing-06);
  1202. display: flex;
  1203. flex-direction: column;
  1204. align-items: center;
  1205. gap: var(--spacing-04);
  1206. span {
  1207. line-height: var(--line-height-03);
  1208. font-size: var(--font-size-04);
  1209. }
  1210. button {
  1211. font-family: 'DM Mono', monospace;
  1212. font-weight: 500;
  1213. text-decoration: none;
  1214. color: var(--green-50);
  1215. line-height: var(--line-height-03);
  1216. font-size: var(--font-size-04);
  1217. background-color: var(--white);
  1218. border: unset;
  1219. display: flex;
  1220. align-items: center;
  1221. }
  1222. }
  1223. }
  1224. .plans-new-design.plans-interstitial-new-design {
  1225. padding-top: $header-height;
  1226. padding-bottom: var(--spacing-09);
  1227. .plans-interstitial-new-content {
  1228. display: flex;
  1229. flex-direction: column;
  1230. align-items: center;
  1231. }
  1232. .plans-new-table {
  1233. th,
  1234. td {
  1235. width: $table-5-column-width;
  1236. }
  1237. }
  1238. }
  1239. .plans-cta {
  1240. display: block;
  1241. a {
  1242. display: block;
  1243. }
  1244. }
  1245. .plans-faq-tabs {
  1246. max-width: 800px;
  1247. margin: 0 auto;
  1248. .nav-tabs-container {
  1249. margin-bottom: var(--spacing-08);
  1250. }
  1251. .tab-content {
  1252. margin-top: 0;
  1253. }
  1254. }